willbryant.net

September 2008

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 :).

Posted Sat 27 September 2008 16:10 (+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.

Posted Wed 24 September 2008 23:52 (+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.

Posted Wed 24 September 2008 22:16 (+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.

Posted Fri 19 September 2008 12:03 (+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.

Posted Fri 19 September 2008 00:19 (+1200)

Demon cat

Sarah sends this somewhat cute but oddly unsettling cat video:

Posted Mon 15 September 2008 23:07 (+1200)

Back in NZ

It's good to be home. Shop-front guy with microphone on Willis St:
“come in and get some great sunglasses and pay bugger all…”

Posted Mon 15 September 2008 22:58 (+1200)

About me

I'm a Wellington, New Zealand-based software consultant.

Need to get in touch? Try me at my public email address.