Archives by date

You are browsing the site archives by date.

Cleaning Up an iTunes Library with MacRuby

For a little more than a year now, I’ve been meaning to write a script to rename all of the files in my iTunes library so that they’re in proper English title case. In large part, this project was inspired by reading John Gruber’s post about a Perl script that he’d written to convert text […]

Suggestions for TextMate’s Search and Replace

Like so many other programmers, I adore TextMate. For that reasons, here are two simple features that I’d enjoy seeing in the next version: A case-preserving search and replace tool. If I search for a string like my_class and want to replace it with my_new_class, I’d like my_class to transform into my_new_class at the same […]

The Sort of Men Involved in Domestic Abuse

Here’s a real testament to the strength of character of men who beat their wives: they beat them more when their favorite sports team loses.

The Top Scores for Canabalt, Take 2

Introduction As promised on Thursday, here’s my second pass at a statistical analysis of Canabalt scores. There are some useful results I’ll present right at the start, and then there are some results that are more or less worthless, except that working through my own mistakes helped me to think more clearly about statistical modeling […]


At the office today, I got into a discussion with two of my fellow graduate students about the distribution of scores you can get while playing Canabalt. Because (1) the layout of the levels in the game is fully randomized and (2) the difficulty of certain actions (specifically jumping through windows) is exceptionally high, we […]

Two of Unison’s Quirks

As many people know, I adore the program Unison. That said, Unison has its fair share of quirks. Today I found myself confronting one that I had spent a whole day confused by about a month ago. Unison stores a cache of information about the file system for every directory that it synchronizes. On Macs, […]

Tunnel Vision

What made his company so unpleasant was not simply that he was unable to see the forest for the trees, but that he went about like some evangelizing atheist informing everyone he met that he did not even believe in forests — that these mythical forests were, in point of fact, some vague nonsense born […]