Latest posts

27 SAT September 2008 4:10 p.m. (+1200)

Rails 2.1 eager loading doubleup bug

I’ve created Rails lighthouse ticket #1110 for another bug in the new 2.1.x association preloading code that was causing some has_manys to get loaded with two copies of each record in the collection (and less seriously, double SQL loads of all types of collections). The problem turned out to be triggered by associations that have :includes defined on them themselves when the :includes are also supplied in the find call. My patch is on the ticket. +1s welcome :).

24 WED September 2008 11:52 p.m. (+1200)

1% of adults incarcerated in the United States

While researching the numbers on the current recession in America I ran into this disturbing Pew Centre report from earlier in the year putting the number of people incarcerated in the United States at the start of the year to more than 2.3 million – over 1% of the total US adult population.

24 WED September 2008 10:16 p.m. (+1200)

Rails 2.1 eager loading conditions hash bugfix

I’ve created Rails lighthouse ticket #1101 for a blatant 2.1.x bug breaking :including of associations that have :conditions hashes. My patch is on the ticket. Remember to +1 it so it gets merged.

19 FRI September 2008 12:03 p.m. (+1200)

Socotra Island

Check out these amazing pictures from Socotra, a small archipelago in the Indian Ocean off Africa. Apparently more than a third of the surveyed plants found there are found nowhere else.

19 FRI September 2008 12:19 a.m. (+1200)

Diggers and bobcats

Turns out that Anne Troake’s Pretty Big Dig – essentially dancing excavators (the bit where they touch hands and spin is pretty impressive) is just the tip of the iceberg.

15 MON September 2008 11:07 p.m. (+1200)

Demon cat

Sarah sends this somewhat cute but oddly unsettling cat video:

Recent photos

Paging Dr Freud Inside a sculpture on campus The WWII-damaged Kaiser William Memorial Church Nazi-branded S-Bahn train from the 40s Fecking big locomotive WTF, asymmetric camel Patrick the cow Everyone loves eisbären (aka. polar bears) More

About me

I'm a Wellington, New Zealand-based software consultant, cook, traveller, and progressive house devotee.

Need to get in touch? Try me at my public email address, or by phone at +64 21 655 443.