One of the things I have really enjoyed about having my website on a MediaTemple server is the fact that I now have full root access (via SSH), which means I have more control over my own setup. The downside of this is that I’m still learning a lot of the basics of how to manage a server in this manner. This results in quite a few headaches from time to time, as I have to learn how to do ‘new’ things by doing them wrong about 100 times first. Don’t worry – I haven’t managed to actually break anything yet.
One of the features of Shamus Writes that I lost when I transferred from Bluehost to MediaTemple was the ability to insert LaTeX code into my blog posts. On Bluehost, I’d had to cobble together a ‘dirty’ solution, since they didn’t allow us root access on the shared servers to install software and weren’t willing to work with those of us who wanted it to install it for us. When I switched over to MediaTemple, I was more concerned with getting everything set up and learning how everything is put together here than I was with trying to figure out why LaTeX no longer worked.
Now, five months after the transfer, I was ready to tackle the issue again. In order to run to LaTeX on a server, though, you need four things installed: 1) LaTeX (duh); 2) ImageMagick, for managing the image files; 3) dvipng, for converting LaTeX’s dvi files into a usable PNG format; and, 4) Ghostscript. MediaTemple has ImageMagick, LaTeX, and dvipng installed on the server right out of the box. What puzzles me, though, is why they neglect to install Ghostscript (GS), when that is an essential part of any LaTeX installation.
Since GS clearly wasn’t installed, however, I decided it was time to venture into the dark waters of installing the application on my server. The trouble I kept running into, though, was in getting the GS install package uploaded to the server in the first place. I knew it needed to be on the root somewhere, and my first approach was to try uploading the package via FTP – but nearly every location I tried refused the upload outright and the two or three directories that would allow me to upload would then refuse me permission to run the configuration command. I tossed a couple of queries at MediaTemple’s (mt) tech guys trying to find out, first, if Ghostscript was installed (it wasn’t) and then, how I would go about installing it for myself. I’d already read through the Ghostscript documentation and found the installation instructions less than adequate, given my paltry knowledge of working in Unix. Unfortunately, the (mt) support guy wasn’t much more help, referring me back to the Ghostscript website to check their documentation.
It basically took me two days to finally find a blog that described the process to install a completely different application on an (mt) server. The article dropped the clue of going into the directory to which you would like to install and then downloading the install package directly to that directory. That was the piece I was missing, and from there it was pretty straightforward to run through the process of configuring and building GS and then installing the program.
I definitely learned a few things, both about using shell on an (mt) server and on installing applications on said server. And I have LaTeX working again, which is a nice bonus.
Tags: dvipng, Ghostscript, imagemagick, latex, MediaTemple
I’m really, really enjoying my Real Analysis class. My inner math geek has been riding on a cloud of euphoria for the last three weeks, and I finally have a good excuse to play with and learn
, something I’ve wanted to do since I was first introduced to it in my undergraduate calculus classes several years back. I’ve already learned a handful of really cool little algorithms for manually calculating certain number sets that we take for granted because we have calculators that do these things for us now. It’s been a fun ride so far, and I still have about 3.5 months left to jones over all this math-y goodness.
On the very first day of class, our professor opened a can of worms that continues to pop up in our analytical operations. He had everyone break up into groups and then wrote a group activity on the board for us to discuss:
Is
?
In case you’re a bit rusty on your math notation, that’s a zero and decimal point, followed by 9s ad infinitum. My initial gut reaction was to say that no, 0.999999… is not equal to 1, that it’s infinitely close to 1 without ever actually reaching 1. But of course, when you think about that for half a second, you have to wonder how you can ever get infinitely close to something without touching it. I was incorrectly thinking in terms of asymptotes, like the equation
, which is a pair of curved lines that do approach the x and y axes without ever touching. But 0.999999… is a straight line when graphed, and not the curved line of the aforementioned equation. And if you graph 0.999999…, you’ll see no discernable difference between it and a graphed line of 1 – because the two are the exact same number. They’re just different ways of writing the same number.
Our prof pointed us at this math blog, where the author has a series of five entries with proofs showing clearing that 0.99999… is equal to 1 – and lots of discussion in the comments about the validity of said proofs. It’s very interesting to read down through everything, even through the trolling comments of naysayers, because the interactions and ensuing discussions turn up a lot of really good mathematical equations and proofs. If you’re interested in this sort of thing, I highly recommend that you check it out and even add Polymathematics to your feed reader.
So, are your eyes all glazed over now? Anyone still with me?
Tags: latex, mathematics, polymathematics
I’m on a mailing list for a
newsgroup, so I receive a digest of new postings a couple of times a day. I was skimming through the new messages in my Gmail inbox a few moments ago when some of the Google-placed ads and helpful links, which I usually ignore into invisibility, caught my eye. Check it out:

Click for larger view
I’m actually kind of amused by the listing. It’s one of those times where you really wish Google’s search API would actually take case-sensitivity into account. I think they got it closer to correct with the ‘More About…’ links, but still, I’m scared to click on anything since I don’t actually know where they go.
Tags: google, Humor, latex
Hey, check it out! I was finally able to convince the fine folks at Bluehost to install
on my server. So, now I get to play around with all kinds of math-y goodness. See?



Pretty frickin’ cool, eh?
Tags: latex, mathematics
Ok, I know I’m a geek. I read this line from a news item at Gizmodo:
it could mean a faster iPhone or a new iPhone with a latex case. #
and read it as:
it could mean a faster iPhone or a new iPhone with a LaTeX case.
Sheesh.
Tags: gizmodo, latex, math
So, I found out from submitting a support ticket the other day that Bluehost does not allow LaTeX to be installed on their servers. I’ve no idea why. This may be enough to cause me to start looking for a new webhost again and run a server switch near the time when my annual contract expires. And it’s not just the inability to run LaTeX that’s fueling this; it’s a number of other server limitations I keep running into. For instance, I would really like to set up an openID server for those sites I comment on periodically (like LiveJournal blogs) that allow openID authentication. I’d also like to play around with Habari (still in development), but I can’t seem to get it to install on my server.
So, I’m going to start doing a little research and querying to see if I can find a decent and affordable host that lets me do all these things. Shared hosting is most desirable at this point, since paying the exorbitant monthly fees for a Virtual Private Server is well beyond my means. Trouble is, I’m not sure it’s possible to do everything I want to do on a shared server.
For LaTeX, I need a server that has tetex-extra and dvipng installed, as well as imagemagick. For Habari, I need a PHP5 installation that actually functions like PHP5, instead of being a limited version. And I know something else is needed for openID that I don’t currently have, but I haven’t yet been able to pin down what.
I’m open to suggestions from the community, as well. Anything that will make my research a little easier is most welcome.
Tags: dvipng, habari, imagemagick, latex, openid, php5, servers, tetex-extra, virtual-private-server, webhosting
As much as I love my hosted version of WordPress and the power I have to customize it however I see fit, there are some drawbacks to the system that I have yet to be able to hurdle.
- openID. I’ve wanted to set up an openID server for my blog for quite awhile now. The idea of being able to use my domain to securely log into other websites that use openID, rather than having to hassle with different usernames and passwords, was very appealing to me. However, the technology was initially so new that it was difficult to incorporate openID into WordPress without some hefty file hacking to make it work. Then plugins started coming out, some of which worked better than others. Unfortunately, I’ve never been able to get openID to work here, despite a nice little WordPress plugin that’s supposed to take all the hardship right out of installing it. I suspect that problem lies with inadequate support from my webhost, and all my attempts to contact the plugin’s author have been met with the silent treatment. The plugin itself hasn’t even undergone any changes, additions, or revisions since it was first published, so I suspect that it’s probably no longer being supported. This, then, continues to leave me in an openID black hole until something changes either with my webhost or with a plugin developer that can produce an openID plugin that works so well that almost anyone can use it on any hosting package.
- dp.SyntaxHighlighter. I work enough with CSS in the occasional WordPress or bbPress theming project that I do like to share snippets of code when the situation demands it. There’s a host of good code sharing plugins out there for WordPress, but the WordPress.com developers have incorporated a syntax highlighting package into the .com blogs that’s really slick. The thing that I like so much about it is that it has a little button that will automatically copy all the code to your clipboard for easy pasting into a text editor. Gone is the need to highlight and copy and then have to manually remove the numbers from the beginning of each line. Unfortunately, dp.SyntaxHighlighter has not yet been bundled as a WordPress plugin, and not being terribly adept yet at coding in PHP, I’m not sure where I’d even start to create a plugin to incorporate it into hosted versions of WordPress. I may try tackling the project here at some point and learn much more, I’m sure, about PHP in the process, but that will have to wait for another time when I don’t have quite so much on my plate. I suspect, though, it’s only a matter of time before else beats me to it.
- LaTeX. The WordPress.com blogs also have LaTeX installed on them for the uber math geeks. I had a brief introduction to LaTeX when I took Calculus from my father-in-law during my undergraduate education (though I hadn’t yet then met his daughter). I’ve always been somewhat intrigued by coding and markup languages, and LaTeX seemed similar in many ways to HTML and C. The beauty of LaTeX, though, lies in its ability to allow you to easily and attractively put complex mathematical formulas and diagrams on a page. The downside to LaTeX, though, is that the software necessary to make it work is rather complicated to install and somewhat less complicated to use. It’s gotten better in recent iterations, of course, but it’s still somewhat cumbersome to set up. The brains over at WordPress.com actually took the time and effort to make LaTeX work with their blogs and to allow anyone who wants to do so to render LaTeX formulas on their WP.com blogs. There are a couple of plugins that allow you to use LaTeX on hosted versions of WordPress, as well, but they depend heavily on all the LaTeX software being installed on your server. Most webhosts do not have these software packages installed, and it is incredibly difficult, if not impossible, to install these packages yourself or to get tech support to install them for you. So, unfortunately, I have yet to get LaTeX installed on this blog. This does, however, providing a major driving motivation for me to use my WordPress.com blog a bit more, especially since I intend to spend some time working my way through my old Calculus textbook (yes, I did keep it) in an attempt to learn Calculus again and learn it better this time. So, I may end up referring you back and forth between the two blogs, at least until I can find a way to get LaTeX installed here.
Tags: calculus, dp.syntaxhighlighter, latex, mathematics, openid, software, WordPress, wordpress.com