Category Archives: rails

Snow Leopard + MySQL + Ruby + 64-bit = #fail

Running into the following error after your Snow Leopard upgrade? uninitialized constant MysqlCompat::MysqlRes Then the following build line for the mysql gem might fix it for you: ARCHFLAGS=”-arch i386 -arch x86_64″ \ gem install –no-rdoc –no-ri mysql ]] \ — … Continue reading

Posted in rails, ruby | 1 Comment

Installing new Ruby postgresql adapter on Leopard

I need to fix a project which uses PostgreSQL. On a fresh Leopard install with postgresql 8.3 installed from ports I ran into this problem: $ sudo gem install pg Building native extensions.  This could take a while… ERROR:  Error … Continue reading

Posted in rails, ruby | Tagged | Leave a comment

Passenger with RACK apps

I started converting various apps running on mongrel clusters over to Apache + Passenger. One component of our production system is implemented as as mongrel plugin so it kind of sucks tot keep mongrel around just for this part. The … Continue reading

Posted in rails, ruby | Leave a comment

Passenger makes Apache relevant again

After stearing clear of Apache2 for the last year for all production servers I’m now ready to give it another try, thanks to Phusion’s Passenger. I’ve grown really tired of setting up god scripts for all environments and fighting mongrel’s … Continue reading

Posted in rails, ruby | Tagged | 1 Comment

Rails’ end_of_month fixed

In Rails 2.0.x the end_of_month now properly gives you the end of month e.g. Mon Jun 30 23:59:59 +0200 2008, instead of Mon Jun 30 00:00:00 +0200 2008, which was the case in Rails 1.2.x (see this previous post). Good … Continue reading

Posted in rails, ruby | Tagged | Leave a comment

Massive memory leak in ruby-gettext 1.90.0

Just found out there’s a massive memory leak in ruby gettext 1.90.0, one of our applications started eating GBs of RAM after a couple of days in use. So If you’re using gettext for translating your Rails app take note! … Continue reading

Posted in rails, ruby | Tagged | Leave a comment

Side project: De TV Flat (KRO)

My first Rails 2.0.x project has been running in production for a couple of months now. It’s the website for KRO’s “De TV Flat”, a children/teens program airing every Saturday on dutch national television around 9am (channel Nederland 3) untill … Continue reading

Posted in rails, ruby | Tagged | 1 Comment

Torturing Ruby (and laughing at your own code)

While cleaning up some code I ran across some obscure code of mine from my Ruby youth. I remembered reading about an ultra cool Ruby tool the other day so I decided to give my code a good flogging. The … Continue reading

Posted in Home, rails | Tagged | 10 Comments

Switch from Typo to Mephisto

After the final botched Typo upgrade I gave up on it and am now serving this blog from Mephisto (0.7.3). The migration went fine. Luckily I still had a copy from the old Typo database structure since the Typo SVN … Continue reading

Posted in Home, Misc, rails | Tagged | 3 Comments

Rewriting a (large) PHP application in Rails, part 2

In my previous post on this topic I described the method we used to convert a legacy MySQL PHP database to a Rails conformant PostgreSQL hosted version. In this article I will tell a bit about how we converted the … Continue reading

Posted in Home, rails | Tagged | 7 Comments