willbryant.net

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)

UK credit card crime

Weak, not only did my camera get stolen in Oxford, but somewhere I used my credit card in London was skimming numbers – it showed up on the bank's system after a bunch of cards that were used at the unnamed place got used for fraud. So, the banks have cancelled all cards that were used there and we have to wait for them to be reissued.

Posted Sun 16 November 2008 11:08 (+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)

Recent photos

Hong Kong at night, from Victoria Peak
An IFC monolith
Lucky Dessert neon
Hong Kong sign overload near Mong Kok
Sunset from Hong Kong Island
One of the stalls making Mong Kok overpoweringly smelly
Making the most of the land you've got
Cool arch up Nong Ping
More

About me

I'm a Wellington, New Zealand-based software consultant. In my spare time I enjoying cooking, traveling, geocaching, progressive house, and fixin stuff.

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