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

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

You can create a Regexp object from existing Regexp objects by using the interpolation syntax you know from strings:

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

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

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

You've been there: A form cannot be submitted, but you don't see a validation error because the field...

Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...

Note that if you plan to downgrade Firefox because your Selenium tests broke after a Firefox upgrade, there is a...

Note that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, there is...

Sometimes the Rails helper #distance_of_time_in_words is using too much magic. When you need a time difference...

makandra dev
forums.mysql.com

Do you wonder which databases are actually taking up how much space but only have one huge ibdata1 in your...

This article from the FreeBSD Handbook suggests that editing /etc/rc.conf enables DHCP. Unfortunately, some times this seems not sufficient.

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

Vim allows recording a batch of commands as a macro. This is handy if you need to do the same...

Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...

wiki.nginx.org

If you get the error "413 Request Entity Too Large" from Nginx client_max_body_size is too low (default...

Don't simply test for the presence of the magic Paperclip attribute, it will return a paperclip Attachment object and...

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

makandra dev

When you need to create a locale for a language variant (like Austrian for German), you probably don't want...

paperplanes.de

This post is not about devops, it's not about lean startups, it's not about web scale, it's...

codeodor.com

Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails.

makandra dev
web.archive.org

When you need to zip up files in Ruby, use zipruby. sudo gem install zipruby You can add existing files...