November 2008

db:schema:dump after db:migrate:redo Rails patch

I've submitted another patch to Rails for a minor-but-annoying bug – if you use db:migrate:redo you'll find that it does migrate correctly but the schema dump afterwards doesn't work, so db:test:prepare clones the wrong structure (for example). The patch fixes things so that second and subsequent db:schema:dump invocations work properly. Testing and +1s, as always, very welcome.

Posted Wed 19 November 2008 23:07 (+1300)

Media7 on Labour's flop campaign

In addition to a bunch of stuff about past spin doctors and an interesting segment about the Maori Party and what its members up north have been trying to do for the local communities, the election night special of Russell Brown Media7 show had some interesting discussion about the recent campaign.

Posted Sun 16 November 2008 11:55 (+1300)

ERB comments in Ruby 1.8.7

After upgrading my server to Ubuntu Intrepid I found that this Rails site's layouts broke. The problem is this issue resulting from a ERB code change in Ruby 1.8.7: if you put a # Ruby comment in a one-line <% %> block, all the content up to the next %> that's on a subsequent line is ignored.

Posted Sun 09 November 2008 19:21 (+1300)

Disco CPR

Turns out most people do CPR way too slowly – much less than the recommended 100 compressions per minute. The solution is officially rated AWESOME on account of the song title:

Posted Mon 03 November 2008 01:22 (+1300)

About me

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

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