Tag Archives: ruby

Ruby En Rails 2007 Conference

On June 7th the Ruby En Rails 2007 Conference will be held here in Amsterdam. I’m really looking forward to meeting up with the dutch Rails crowd. I’ll be giving a lighting talk on Mongrel clustering and will share my … Continue reading

Posted in Home | Tagged , , , , | 4 Comments

Using MPlayer identify with Ruby

For a project I need to fetch some metadata from WAV recordings. Mplayer can extract this information nicely with the -identify command. I’m using Ruby Sessions for executing the external mplayer command, although a simple IO.POpen() might do fine too. … Continue reading

Posted in Home | Tagged , , | 4 Comments

Rails’ end_of_month

Whilst building the payment module for one of my Rails apps I used the very convenient Rails’ Time extension method end_of_month returns the last day of the month. However it sets the time to 00:00:00, which is quite unexpected IMHO! … Continue reading

Posted in Home | Tagged , | 2 Comments

ActiveRecord InvalidStatement

It seems that ActiveRecord cannot return sane errors when some constraint on a database operation is not met, for instance if you forget to set an attribute which has a “NOT NULL” constraint. If this happens AR simply throws an … Continue reading

Posted in Home | Tagged , , | Leave a comment