When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...

If you get an error "Adress already in use" with autossh check with lsof or netstat if something already listen...

makandra dev
blog.rubybestpractices.com

class Errormaster CoffeeIsOut = Class.new(StandardError) # is prettier than class CoffeeIsOut < StandardError; end end Reference such an error class with Errormaster...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

github.com

If you have different users for different servers, don't use set :user. Encode the username into the server definition...

Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...

When you don't know which options are available, but need to have an option selected, use this step.

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...

There are many blog posts on encrypting backups, but none works for local drives. #How to Encrypt the external backup...

github.com

Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...

Do you have page caching enabled for the development environment and there are cached pages lying around in public/?

webupd8.org

Great blog with daily news and HOWTOs for Ubuntu, Linux and Gnome.

weblog.rubyonrails.org

jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.

If you have a time given in a different time zone than your local one, parsing will convert it for...

social.technet.microsoft.com

Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there...

I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...

When writing a piece of reusable code, you sometimes need to have separate code for Rails 2 and Rails 3...

If you have any class which requires access to some path methods generated by your routes. Even though you could...

DeaDBeeF is one of the better music players for Linux. You can find installation instructions here.