Failure

I have been looking for this video for ages! http://blip.tv/tucs-tech-talks/an-illustrated-history-of-failure-2729174 I saw it some time ago and it was amazing.  The content is great, but more importantly it show how to give a presentation using powerpoint that actually works!

JRuby, Rails and Development mode

Well, that was fun…  I spent quite a bit of time today beating my head against a “memory leak” only to remember that JRuby + Rails + Development mode = very leaky.  Switch to production mode and the problem goes away. A simple little Rails app with one controller and one model is all that …

CruiseControlRb tray icon for Linux

We installed CruiseControlRb at work recently and we’re all really enjoying it 🙂 The web interface works really nicely, but I wanted more. Under Windows there is a really neat little tool called cctray which shows the status of your build in the system tray. I did a bit of searching about the net and …

before_create considered harmful

I had a fsck of a time today working with rails. Normally I love Ruby on Rails, but today it gave me the screaming shifts! I had a model class to which I wanted to add some sensible default values to satisfy some constraints in the database. The logical place for that was before_create, so …

Multiple ruby on rails applications under different folders served by Apache on Mac OS X

I’ve been doing quite a bit of development recently using Ruby on Rails under Mac OS X. Unfortunately it can be a little tricky to get rails apps deployed nicely under Apache. The machine I’m using is an aging G4 with very little RAM so running rails apps in CGI mode is very slow! Initially …