Monthly Archives: November 2008

Apocalyptica

Recently, a friend of mine turned me on to a band called Apocalyptica (thanks, Oboe). Long-time readers of this blog know I’m a huge fan of classical music and not such a huge fan of most forms of popular music. Being a musician myself, I’m rather particular about the types of music I enjoy and listen to on a regular basis. And it’s not that I disapprove of certain genres of music outright, since I do appreciate the artistry of certain bands that fall under the headings of alternative, rock, and even rap and hard rock (for the sake of simplicity here I will lump all forms of metal under the banner of hard rock, even though I’m sure that will cause metal purists to foam at the mouth).

The thing I love about Apocalyptica is that they’re a group of four metal-style rockers – who are all virtuosos of the cello. They’re simply amazing to watch and listen to, since their music is very definitely a form of hard rock but played exclusively on cello. I love their sound, and as someone currently learning how to play the violin, I can fully appreciate the level of skill necessary to play the music they do.

If you haven’t experienced Apocalyptica yet, below is a video of them playing Edvard Grieg’s “In the Hall of the Mountain King” in their unique style. And then, if you want more, try setting up an Apocalyptica radio station on Pandora.com and get a sampling of them and other groups like them.

HowTo: Install Ghostscript on MediaTemple

I thought I’d go ahead and describe the process for installing Ghostscript on a MediaTemple (dv) server, especially since I’ve already got one reader who would like to see it.

Use your favorite shell client to log on to your (mt) account as root. I use PuTTY Portable from the “portableapps.com”:http://portableapps.com website. At the command line typ:

cd /usr

Type:

wget http://ghostscript.com/releases/ghostscript-8.63.tar.gz

Once the file is done downloading, type:

tar -xvf ghostscript-8.63.tar.gz

Once _that’s_ done, type:

cd ghostscript-8.63

Type:

./configure

which will run for a moment and display a long list of output. Once you have the command line back, type:

make

which will take a bit longer to run than the configure command. Again, once you have the command line back, type:

make install

which will actually install Ghostscript on your server. Provided everything went well and no error messages showed up at any step along the way, you should now have Ghostscript installed. The default location for Ghostscript is:

/usr/local/bin/gs

Typing:

which gs

in the command line will confirm this. If you want to do cleanup, just move back up a directory to

/usr

and type :

rm ghostscript-8.63.tar.gz
rm -vrf ghostscript-8.63

From there, just configure whatever script you want to run with ImageMagick and Ghostscript according to said script’s specifications and have fun!

Fractional Canceling Error

I love “this post”:http://scienceblogs.com/builtonfacts/2008/11/testing_123.php from Matt Spring on “Built on Facts”:http://scienceblogs.com/builtonfacts/ the other day. In it he describes a mathematical manipulation on a test that “he think[s] should almost be worth _negative_ points.” In this case it was a student who took the part on the left side, cancelled the _m_ to get the part on the right:

frac{F-mg}{m} rightarrow F-g

(1)

Which is, of course, wrong wrong wrong. There’s a little rule in math that, in order to cancel out a denominator, it must be able to cancel out on both sides of the subtraction sign in the numerator. Here’s what the formula _should_ look like, after applying the rule properly:

frac{F}{m}-frac{mg}{m}

(2)

As you can see, the _m_ simply can’t cancel out from both sides. Just for fun I ran a little check on myself just to make sure _I_ did it right (since I’m a little rusty on my math sometimes). Let’s let _F_ be equal to 26, _m_ to 7, and g to 3. Substitute those into the original equation (1) and solve:

frac{26-7(3)}{7} = frac{26-21}{7} = frac{5}{7}

(3)

Now, substitute those same numbers in for (2) and solve:

frac{26}{7}-frac{7(3)}{7} = frac{26}{7}-frac{21}{7} = frac{5}{7}

(4)

Same answer, so I know I did it correctly.

Now with LaTeX! (Again)

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”:http://nicksergeant.com/blog/django/tutorial-installing-django-mt-media-temple-dv-35-server-modpython 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.

Monday Linkfest

* I do so love “XKCD”:http://xkcd.com/505/. Webcomics for brainiacs. Nothing better.
* Dave Kellett always “brings the laughs”:http://www.sheldoncomics.com/archive/081117.html
* These “Noel Collection iPhone protectors”:http://www.more-thing.com/noel-collection-incl-mirror-protector.html are amazingly sweet-looking.
* Cherie Priest has a “steampunk novelette up at Subterranean Press”:http://subterraneanpress.com/index.php/magazine/fall-2008/fiction-tanglefoot-a-story-of-the-clockwork-century-by-cherie-priest/
* “Elliptical Arguments”:http://scienceblogs.com/builtonfacts/2008/11/elliptical_arguments.php for the mathematically inclined.

Photo Shamus

If you haven’t seen it already, I have a “photoblog”:http://photos.shamuswrites.com. I haven’t really pointed at it much, since up until recently I hadn’t had a ready supply of photos to post to it and the content was generally pretty stale. Fortunately, my housemate bought a nice digital SLR camera a little while back and has been gracious enough to let my wife and me borrow from time to time. Currently, I’m running a series of photographs taken on a recent trip to Louisville. Over the course of three days, I took somewhere in the vicinity of 800 pictures, and I’m posting the best of that crop to my photoblog. The photoblog is a picture a day, and there are just over 40 pictures in the archives already. I also have enough pictures queued up to post one every day until the end of the year, and I’ll be adding more to the queue over the next several days. So, if you enjoy photography, feel free to “check it out”:http://photos.shamuswrites.com, and either bookmark the site or add the RSS feed to your favorite feed reader. I’d love to share my work.

Reality – Checked

Scalzi has a nice little “reality check”:http://whatever.scalzi.com/2008/11/05/reality-check/ over on his site this morning:

bq. 1. It was Obama who won, not necessarily the Democrats. Which is why, while the Democrats gained in both the House and the Senate, they don’t appear to be having the blow-out additions to their numbers some folks seemed to think would happen (note that at least a couple of Senate races are still in play).

Regardless of your feelings toward Barack Obama, he _is_ going to be our next president, and as such we him our support. Now, folks, how about we put aside the petty, juvenile grievances, do away with the name-calling, and get on board with this to help our new president do the best job possible, eh?