-
Archives
- July 2011
- July 2010
- April 2010
- July 2009
- June 2009
- February 2009
- January 2009
- November 2008
- October 2008
- July 2008
- June 2008
- May 2008
- April 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- May 2007
- April 2007
- December 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
-
Meta
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
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
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
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
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
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
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
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
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