December 2008

No posts in December 2008



November 2008

No posts in November 2008



October 2008

No posts in October 2008



September 2008

No posts in September 2008



August 2008

HowTo: Phusion Passenger aka mod_rails for Apache

August 8th, 2008Posted by benediktFiled in Articles, Linux, Ruby, Ruby on Rails

Yesterday I decided to give Phusion Passenger aka mod_rails a try and installed it. It was dead simple to set it up and to deploy rails applications with it. I’m now using it for several “small” applications, for which the whole overhead of setting up a cluster of mongrels and...

My day-to-day resources on Ruby and Rails

August 4th, 2008Posted by benediktFiled in Articles, Ruby, Ruby on Rails

News I try to keep up with Ruby and Ruby on Rails, even if I’m not working with one of them at the moment. These are the three feeds helping me to get the latest news: PlanetRubyOnRails.com, not to be mixed up with PlanetRubyOnRails.org, is a simple feed aggregator with...



July 2008

No posts in July 2008



June 2008

No posts in June 2008



May 2008

No posts in May 2008



April 2008

Using RSpactor with Linux

April 10th, 2008Posted by benediktFiled in Agile Development, Articles, Linux, Ruby, Ruby on Rails

Andreas Wolff recently released RSpactor, a (up to now) command line tool similar to autotest. Nevertheless it differs from autotest in two points. First it’s focused on RSpec and secondly it’s using Mac OS’ FSEvents to monitor file changes. According to this it only runs on Mac OS. To get...



March 2008

Easy SSH authentication with keychain

March 29th, 2008Posted by benediktFiled in Articles, Linux

Typing SSH passwords again and again can be a real pain. For example: Lately I started to use Capistrano to deploy my rails applications. If I want to set up the maintenance-page on the server I’ll type cap deploy:web:disable which of course prompts me for the SSH password. Then I...



February 2008

Extended: Forms with widgets

February 14th, 2008Posted by benediktFiled in Articles, Javascript

There is a great article by Jason Long on Vitamin called ‘Streamline your forms with widgets’. In his article Jason Long describes a nice looking way to clean up a lot of checkboxes into multiple dropdown widgets. What I really liked was the idea to have some summary about the...



January 2008

No posts in January 2008



December 2007

No posts in December 2007



November 2007

No posts in November 2007



October 2007

No posts in October 2007



September 2007

ActiveRecord: Using the "type"-column

September 21st, 2007Posted by benediktFiled in Articles, Ruby on Rails

By default it’s not possible to use a database-column called “type” for anything else than single table inheritance. To change this, simply use set_inheritance_column() and read_attribute(): 1 class TypeTest < ActiveRecord::Base 2 set_inheritance_column(:something_else) 3 4 def type() 5 read_attribute(:type) 6 end 7 8 def type=(value) 9 write_attribute(:type, value) 10 end...



August 2007

No posts in August 2007



July 2007

Getting a class' subclasses

July 10th, 2007Posted by benediktFiled in Articles, Ruby

I needed a way to get a list of the subclasses that inherit a specific. Unfortunately there is no method like Class.subclasses (there is Class.superclass, though) so I had to look for another way to achieve this. Let’s say, we want to have an array containing all subclasses as a...



June 2007

No posts in June 2007



May 2007

HowTo: Setting up Lighttpd + fastcgi

May 22nd, 2007Posted by benediktFiled in Articles, Linux

This short tutorial is going to show how to set up Lighttpd with fastcgi on Debian 4.0 (Etch). Actually it’s nothing special but I hope it demonstrates how easy it is. ;-) What is Lighttpd? Lighttpd is a light (I bet you already guessed that … ;)), fast and secure...