ImageMagick port “broken” temporarily

Just in case anyone runs into this problem (which, I might add, would probably go away when either the portfile is updated or the source mirror fixes the problem) while installing ImageMagick via MacPorts

While trying to install Rmagick on my spanking, new, glossy, kakkoii MacBook, MacPorts reported a checksum error with the ImageMagick source tarball:

Target com.apple.checksum returned: Unable to verify file checksums

At first, I thought it was an outdated portfile but even after a sudo port selfupdate and sudo port -d sync, the checksum error was still occurring (checksum of the file: 4bcb4264c2170fe562b10a732f43e7af, expected checksum in the portfile: 9469ce1b1b645f8c728158cc434b0ff8).

Turns out, the first listed master site (where MacPorts gets its source files from), http://imagemagick.linux-mirror.org/download/ is hosting a source tarball with a bad checksum. Digging around the man page for port a bit, and switching the order of the master source sites solved it, so it was just a case of a bad file on one of the mirror sites.

sudo port edit imagemagick to edit the portfile and change the source mirror to a legit one. You should see something like this:

master_sites \
  http://imagemagick.linux-mirror.org/download/ \
  http://ftp.surfnet.nl/pub/ImageMagick/ \
  sourceforge:imagemagick \
  ftp://ftp.imagemagick.net/pub/${name}/ \
  ftp://ftp.fifi.org/pub/ImageMagick/ \
  ftp://ftp.nluug.nl/pub/${name}/

Just move an alternative master_site to the top of the list (I used the SourceForge one). There probably is a way to specify the master_site on the command line with port install but I’ve had just about enough of reading man pages and the now nearly unfindable MacPorts documentation (whatever happened to the old Darwin Ports site that had great documentation?)

Anyway, I’ve written to the webmaster of the mirror site linux-mirror.org, so this would probably be fixed for all two of you who are gonna be installing ImageMagick via MacPorts within these few days or so. Still, it was a good exercise in debugging bad port installations.

‘Mac vs PC commercials’.gsub(/Mac/, ‘Rails’).gsub!(/PC/, ‘Java’)

The Rails Envy guys have come up with a spoof of the Mac versus PC commercials. Yes, it’s Rails vs Java. Go watch it or catch it straight on YouTube.

Lucky Star: Konata-ism

I’ve never much blogged about anime before so it’s probably a little known fact around here that I’m a huge anime fan. One of the anime series I’m watching now is Lucky Star, an anime adaptation of a 4-panel comic strip by from Kyoto Animation. This being the same studio that produced the excellent The Melancholy of Haruhi Suzumiya, I knew I had to watch it.

Despite first reading about the numerous negative comments on blogs about the first few episodes of Lucky Star, when I watched it I actually found it pretty funny (there are some good reviews, though rare, such as this one). Four moe school girls, one of them an otaku? KyoAni’s really pandering to the “niche” crowd here (”niche” meaning just about every single anime gamer).

It was not until later (about 3 episodes in) that I realized the main character, Konata Izumi, was voiced by Hirano Aya (who played Haruhi in The Melancholy of Haruhi Suzumiya). Once afflicted by Ayaism, this fact enhanced the appeal of Konata.

Although, by the time I watched episode 5, I was hooked on Konata-ism. I’ll let the screen captures speak for themselves:

I am a tank

So she plays an MMORPG and plays a tank? Back when I was a World of Warcraft junkie, I had a level 60 warrior (yeah, pre-Burning Crusade n00b, I am) and had too much fun with it (to use a cliche, it’s like crack).

Teacher only AOEs

Hahaha… Fair enough. I had a mage in World of Warcraft before switching to a warrior and sometimes I do think that way about my ex-fellow mages ;) Though I’ve had the honor of playing with some of the best mages in my old guild.

I'll pull one

“I’ll pull one.” “lolololo.” Classic.

Teacher logged on

Konata’s teacher (who plays with her often) logs on.

Rare drop!

Konata gets a rare drop. Woo… Good times.

LOL gratz

Roflcopterskates

“LOL gratz”, “roflcopterskates” and “bbq” - I’m not sure if the fansubbers took some liberty here with the translation of the MMORPG-speak.

Ahh, and did I mention Konata watches a lot of anime as well? Konata is the new Haruhi.

Now go watch some anime!

Screencaps taken from a.f.k.’s excellent fansubs.

Sexy migrations on Edge Rails

So it seems DHH was inspired by the Sexy Migrations plugin (which in turn was inspired by Hobo) and committed changeset 6667.

Now, you can do this:


create_table :products do |t|
  t.integer :shop_id, :creator_id
  t.string  :name, :value, :default => "Untitled"
  t.timestamps
end

Succinct!

Growl integration in Firefox 3

Some of the latest Firefox 3 aka Minefield trunk builds include Growl integration! This is probably a non-event for anyone other than Mac users, but hey Growl notifications without needing to install an extension? Pretty nice.

Firefox 3 Growl notification for downloads


Get a nightly here: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

To test Firefox 3 nightlies without possibly messing up your existing profile (preferences, extensions, what have you), use the Profile Manager to create a new profile just for testing. Way less stupid then trying to load up 48 tabs from your current profile in Firefox 3 and then seeing most of the extensions fail to work (which was what I tried to do, once).

Source: Bug 362685 – Growl Integration for Mac OS X (nsIAlertsService)