MT-Blacklist update at jayallen.org

Jay Allen notes a couple of bugs and an overzealous regexp in the default distro of MT-Blacklist.

I hope Mr. Allen takes the time over the next week to set up a board to centralize user-experience, bug reports, and the like.

The install here went smoothy, albeit I had to install Storable.pm (‘sudo CPAN’ and then ‘install storable,’ for those undergoing the same head scratching I was for a moment or two, wondering why ‘install Storable.pm’ was failing).

I was concerned on being able to get in to the blacklist admin UI apparently without logging in, but was mistaken – Blacklist uses your MT login info.

I believe I will still install the captcha-style mod as well, but I haven’t taken the time to disentangle the issues with getting GD to install.

Resumay update time

Is there anything as annoying as updating one’s resumé?

I don’t think so.

Ah well. An unexpected recruiter call lit a fire under my patootie, acually. I also did a comprehensive update last spring – but the really horrible server outage – the one that took the KGP away from us – also kilt my hard-won puffery.

Naturally, I also have some contract work to keep me busy on Friday.

In other news, a test burn of the Gizmos DVD was entirely successful, chapterpoints and all. I will need to doublecheck the entries to be sure I didn’t inadvertently miss a song or two and to make sure I haven’t brain-farted and mislabeled a tune, but WOO HOO.

(Among the furiously dancing heads of my friends I’ve ID’d is a wild-haired blond woman, swinging her tresses – nay, her mane – with wild abandon. Could it be a certain buttoned-up editor currently a-soujourning in London?)

Using Cron to schedule iTunes

So, for reasons unclear to me, I have fallen into the habit of listening to the radio on my computer during the day as I work, playing streams via iTunes. I can play feeds from many stations all over the world, but mostly I stick close to home and listen to KUOW, the local NPR gabfest. I actually would prefer if it were a music station but I find myself more irritated than pleased when I listen to the local stations that occasionally play music to my tastes – either they are commercial, and the ads drive me nuts, or they are not, and the taste of the deejays doesn’t often reflect my own.

Lately my local station began airing an NPR-Slate coproduction at midday, Day to Day. I gave the show a try, but it just grates on me. It seems to be a considered attempt from NPR to broaden their base by incorporating contemporary journalistic perspectives that reflect a more conservative bent than often heard on NPR. It’s a project that fits well with the editorial objectives of Slate.

I’m reasonably sure the show’s doomed; I kinda doubt that droves of conservative radio listeners are tuning in to escape the mind-numbing palaver of Dr. Laura and Rush. Day to Day maintains the even-tempered, thoughtful, voice-of-quiet-reason presentation that’s the NPR house style, and as I understand it, that’s the specific element that puts non-NPR listeners to sleep.

So, as you may have noticed, I rarely write about negative news and entertainment consumption experiences. It’s not that I don’t have them, but it is that I don’t think my negative reaction to a given work, show, book, or what not is really, on balance, a positive contribution to discourse in the world.

However, in this case, I was sufficiently motivated to do something about it. Being me, I wrote an Applescript radio-station switcher for iTunes which allows me to set up a schedule with cron, so that during the day, iTunes will switch from station to station according to a schedule – so now, when Day to Day comes on, I find my self listening to WFHB, the non-NPR public radio station that morphed into broadcast existence from several strands of community radio organizations in my hometown shortly after I left.

I use Cronnix to set up the schedule. Cronnix is a GUI front end to cron. I believe that cron is included with the stock OSX install.

You’ll need to make sure you have ScriptEditor – get it from Apple’s Applescript site. I think you must register with the Apple Developer Connection to get the free download, but don’t recall.

Here is a link to a text-only version of the switcher script. Download it, open it in ScriptEditor, change the default values at the top of the script, and Save As > Application to a folder in your Home Library folder, specifically to ~/Library/iTunes/Scripts. The folder will also appear in the menubar for iTunes so you can run the script from within iTunes. When I save the scripts, I name it with the callsign of the station – so the sample script would be renamed as KUOW.

Here’s the part of the script you need to edit:

set myPlaylist to “a radio selection”
set theCallSign to “KUOW”

You need to change “a radio selection” to the name of a playlist which contains the streaming tracks you want to access – you could try it with the default “Radio” playlist, but I have not. Instead, I have a separate, much shorter list.

A note: the script looks for the callsign you enter in the name of the track – but not all radio stations keep that callsign, and when you access the stream, the name of the track may change. Finally, streaming tracks that have certain special characters or a long name may not be called accurately. It wasn’t a problem for me, but might be for you.

If you want to poke around to make this script better, Doug’s Applescripts for iTunes and the associated discussion board will be very helpful. Doug’s Applescripts for iTunes also offers a method to use iCal to accomplish some very similar stuff. I avoid the .Mac apps, though, after the email address bait-and-switch.

So what does the script do?

When it’s run, a voice will say “Switching to KUOW” or to whatever the callsign is you enter. Then it looks to see if there are mounted ejectable discs – that could be CD’s, DVD’s, Jaz, Zip, mounted disk images, whatever.

Then it looks for disc-related apps – Toast and iDVD, but you can add more if you want. Carbon Copy Cloner leaps to mind, actually.

If it sees you do have a disk mounted or one of these apps is active, it asks you if you want to continue. That’s to allow the user a chance to stop the script if you’re doing something that might make the radio streaming unwanted – installing something, backing up, ripping, watching a movie… stuff like that. It’s not the best way to ascertain, but it’s simple and you can always allow the script to continue.

Once that’s out of the way, the script will look in the specified playlist for the first track that contains the callsign you specified. I don’t think I have an explicit error handler in case of no match, but if there’s a problem – maybe iTunes is busy with a modal dialog or in a crucial burning phase – the script will speak, saying, “iTunes is busy at the moment.”

That’s it! I open the script, edit the call signs, and save each time as an Application, naming each applet with the callsign. Then you set up you schedule in Cronnix, and you’re in business.

Testing

Testing!

Code:

if
some stuff
else
some other stuff
end if

There we go.

If you care:

.code
{
font-family: Courier, Verdana, Arial;
font-size: 8pt;
line-height: 8pt;
font-weight: bold;
color: navy;
white-space: pre;
background-color: #FFC;
border: 1px solid Black;
width: 70%;
margin-left: 25px;
margin-bottom: 12px;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
}

Victory!

I’m sorry, did i say “Defeat?

What I meant, of course, was “Victory!”

I got that 9500 to boot. I had to remove the large additional internal SCSI drive and mount it in a discarded and suspect external SCSI case. Then I used CCC to dupe the volume I was hoping to grab, and I was in business.

Mind you, removing the physical boot volume and mounting it in the drive chassis is by no means an acceptable long-term solution – in the end, I still need two bootable OSX volumes. But, enough time wasted for now.

Defeat

Well, darn. After black struggle, I have to admit defeat and time wasted on the mirrored 9500 project. Just after I posted last, even the limited success I was experiencing with the Jaz drive halted; and sadly, I must judge that a sufficient investment of time has been expended in my efforts to develop a sub-1gb bootable OS X image.

I’ll revisit matters at some indeterminate future point.

I should note that the developer of BootCD has generously corresponded in response to my questions. I have found that his CDs, when burned exactly as he recommends (using Disck Copy from an unmounted disk image) produces a bootable CD. What appears to be required, then, is a bit-based copy utility for OS X.

The alternate path is to carefully delete files from the “System” folder of a duplicated and verified bootable OS X volume. After trial and error, I was able to boot some very considerably slimmed volumes. Alas, in no case was I able to successfully get the boot process to move past the stage of startup which leads to the appearance of Aqua.

I found that the removal of any single item from /System/Library, such as the “Printers” folder, horked the process; so I assume that there’s some sort of manifest that the boot process is checking against and hangs on failure.

But five solid days is far too long to waste on such trivialities.

jeepers

My, my, has this been a week of techno-struggle.

Just before Bellerophon was to be overworked by the results of the post-blackout linkfest (palpably demonstrating the value of getting there fustest with the mostest) I embarked on my occasional quixotic quest to retrofit an aging Mac (Athena, a 9500 with a G3 upgrade card, for the propeller-heads out there) into a dual-boot backup server, so that I can swap between Bel and the 9500 in the event of untimely misfortune.

Athena has long been outfitted with a suite of OS9 backup services – SIMS for email and the venerable QuidProQuo providing the web server – but as I’ve become further ensconced in the land of OS X, the setup has gotten less similar to what I run currently.

Step one was to finally acquire an absurdly large outboard firewire drive to – gasp – actually store backups. I ordered it this weekend, just as the blackout was ending.

As I watched the stats climb earlier this week, I figured booting Athena in case of a Bellerophon crash made sense. I began thinking about how to mirror Bellerophon to Athena, dug out an old jaz drive, and started tinkering. So it was a good thing that I’d been poking around thinking about how to do backups and so forth when the crash occurred.

A day later, and I have updated backups for Bellerophon and the traffic has subsided. But what’s this? Sobig.F floods the internet and I’m puzzling over my mailserver logs on both platforms to make sure I’m not actually contributing accidentally. Thankfully, both servers were secure but I sure did get a whole bunch of “message bounced” notes indicating that some hassled large-scale IT staff will pretty much not believe this.

So anyway, it’s been a heck of a week, the giant backup drive has arrived, and – yes – I have been able to boot the 9500 into OS X from the jaz, although not entirely to my satisfaction. The key tools have been charlessoft‘s BootCD, which enables a bootable OS X volume of under 2 gb; the indispensable Carbon Copy Cloner, from Mike Bombich (although not for working with BootCD, which requires special handling of its’ disc images; I had to dupe to the Jaz using “ditto -rsrcFork”); and the woefully supported but boy-am-I-glad-it’s-there XPostFacto from Ryan Stempel and available at OWC.

There are still significant sloggeries to be inflicted but I do see the light at then end of the tunnel, probably without automated failover but very possibly with autmated backups.