Perl Before Swine

Has that title been overdone yet? Oh well…

Here’s my Perl entry for today.

I run in to a ton of Perl code on some of my legacy server projects. A ton. And interestingly enough, two of my three favorite text editors don’t get it. BBEdit gets it of course. SubEthaEdit gets .pl and .pm files, but .cgi is oddly left out. Dreamweaver just shrugs.

To add Perl to Dreamweaver, get the Perl Support extension. Then (assuming you’re on v7.0.1 a.k.a. MX 2004) open ~/Library/Application Support/Macromedia/Dreamweaver MX 2004/Configuration/DocumentTypes/PerlDocumentTypes.xml and add cgi there in the winfileextension and macfileextension values. Quit and restart Dreamweaver and you’re set with .cgi editing in Dreamweaver along with .pl and .pm.

For SubEthaEdit, go to /Applications/ and edit info.plist to add cgi as an extension as shown here in context:


And poof, .cgi files are colored purty.

How to Switch from Safari to Firefox

 I’ve been using Firefox at work lately, and figured it was time to make the switch on my home machine. But I’ve been using Safari for a long time now, and all my bookmarks are in there. But making the switch was relatively painless.

To make the switch to Firefox, here’s what I did:

  1. Download Firefox and install it
  2. Download the Safari Bookmark Exporter and install it
  3. Run the Safari Bookmark Exporter – first click Analyze Bookmarks, select Phoenix/Firebird/Firefox (WTF?) then click Export Bookmarks.
  4. When you click Export Bookmarks, the Safari Bookmark Exporter will try to overwrite your Firefox bookmarks.html file if it exists. Click Save and agree to delete the existing one.
  5. Poof – your bookmarks are now in Firefox.
  6. Now go install bunches of cool Firefox extensions like Web Developer and Gmail Notifier!


I have been itching to do this for months.

I have been without a classical or flamenco guitar now since my old beater was accidentally smashed by a drunken roomate back in Boston nine years ago.

Nine years.

Sure, I’ve played some guitar now and then on my old steel string, which is now on loan to my niece. And who can forget the festive drunken jam session with John in the Real Guitars shop in San Francisco right after our emancipation from Schwab?

But the reality is this: My first real formal one-on-one music lessons for any instrument was with a good old friend by the name of Chris Carnes, and we studied the spanish guitar. Chris was a virtuoso flamenco guitarist and a great historian of this genre of music. And while I spent years studying jazz guitar and classical bass, I always had flamenco in the back of my head.

Back in Boston when I was in college, I was often hired as a guitarist to go sit in front of the painting by John Singer Sargent called “El Jaleo” in the main foyer of the Isabella Stewart Gardner Museum for fundraisers and other wine-and-cheese events. For the ambience. They ate cheese and ignored me mostly, but I got to sit in front of the most incredible painting I have ever seen and play flamenco guitar to it. So cool. Playing guitar is something that has been missed…

So today, finally, I marched myself down to the local Guitar Center (I don’t know any better… WTF?) and proceeded to find the nice little back room humidor where they kept all the nice classical guitars. I was definitely the only person in that room for several hours as the masses picked over the mass-market instruments outside. Nice place to practice. So I played every instrument in the room – from the $3,500 Ramirez instruments to the lowly little starter kits. I found a very nice Córdoba with gorgeous overtones, lively projection, and gorgeous pieces of wood on the top, back, and neck. Very comfortable to play, and a steal for the price they were asking. So now I own it.

I’ve been pulling out sheet music all night. Played my Bach Prelude and Fugue and my études by Sor and Giuliani, and tried to remember how to play Leyenda and Moonlight Sonata. And of course I brought out some old flamenco rasgueados to see if I still had the hands for it. Most of it is there, but it’s going to take work…