Category: Ruby on Rails
-
REE segfaults when Rails application has too many localisation files
We ran into an interesting problem – at some point of time our Rails application started to fail occaionally because of REE segfaults on startup. Even starting the console with ‘script/console production’ was occasionally failing with REE segfault. Application was growing, new features were added and segfaults started happening more and more often. There was…
-
Pitfalls of Rails fragment caching with memcached
Fragment caching is a powerful technique for improving performance of your web application. Rails site describes in detail how to apply this technique. Rails are providing developers with really excellent abstractions, but it’s always good to know what’s under the hood and how it all works. There are a few things that might potentially cause…
-
Notes from Gothenburg – Nordic Ruby 2011 conference
Here are my notes from Nordic Ruby conference in Göteborg, Sweden. I’d like to say big thanks to the organisers of the conference (especially CJ @cjkihlbom) – everything went really smooth, even though there’s been 150 people attending this year compared to 90 last year. Some points that I’d really like to highlight are: a…
-
vim is the best editor, also for RoR development
vim is a natural choice when you’re starting a new programming project (if you’re emacs or textmate adept – you can stop reading now 🙂 If you’re starting a Ruby on Rails project there are a couple of scripts/configurations you might want to install to make development with vim an even more pleasant experience. 1.…
-
Increasing Ruby interpreter performance by adjusting garbage collector settings
According to Evan Weaver from Twitter it is possible for a typical production Rails app on Ruby 1.8 to recover 20% to 40% of user CPU by simply adjusting Ruby garbage collector settings. In August I set out on a quest to verify that statement on HeiaHeia servers. Results have really exceeded my expectations. Time to…
-
Running Rails applications using Nginx with Passenger on Ubuntu Server
If you’re planning to run Rails applications on Nginx using Phusion Passenger, and do it on Ubuntu Linux, here’s what needs to be done. Even though there’s Ubuntu nginx package available (which works perfectly when you’re running PHP apps using FCGI), if you want to take into use Phusion Passenger, you’ll need to recompile Nginx…
-
Informal notes from #frozenrails 2010
Thanks to organisers from Kisko Labs and the HHLinuxClub on Friday, May 7th, 2010 Finland got its first Rails conference. Conference has drawn very interesting speakers and international crowd – from Finland (naturally), Sweden, Poland, Germany, Russia and other countries. I made a few notes from selected talks on the conference. Chris Wanstrath / GitHub (@defunkt) Slides:…
-
Setting up Ruby, Rails, Git and Redmine on Dreamhost
The task is to have: – Redmine installation on redmine.mydomain.com – Several Git repositories on git.mydomain.com with different access rights to each one This proved to be a non-trivial task. There is a number of tutorials on the net, but none of them described the full solution. So after getting it all to work, I…
-
Radiant CMS
Easter weekend didn’t start well – I decided to upgrade Joomla on one of my sites to version 1.5.1 from 1.0 and upgrade just totally ruined the entire site – content was lost, template wasn’t compatible with version 1.5.1. At first I thought that the reason is Dreamhost‘s automatic one-click upgrade that I used, but…