Category Archives: ruby

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

Typo -> Mephisto -> WordPress

First I tried Typo, then Mephisto and now this blog is running WordPress. As a Ruby fan I really wanted to use Ruby everywhere, 2 years ago. I’m now at the point where I just want working stuff (kids will … Continue reading

Posted in ruby | Tagged , , | 5 Comments

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

JRuby saves the day

So I’m rewriting yet another subsystem which consists of a mismash of several languages and programmer ego’s (hardcore C being the largest one, aargh) to what else .. Ruby. Everythings going smoothly. Every line of Ruby code replaces about 10 … Continue reading

Posted in Home, ruby | Tagged | Leave a comment