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
pdfposter.origo.ethz.ch

Pdfposter is a Python script that allows to convert large PDFs into a PDF with multiple pages that can be...

I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks

Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...

When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...

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...

Grep prints one line per match. To return the number if matches, use the -c switch: grep -c "something" filename...

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

We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...

makandra dev
ethanschoonover.com

Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. It...

Date::Performance is a gem that replaces various method in Ruby's Date class with fast C implementations. Unfortunately it...

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

makandra dev

Attached is a working config to deploy an application with Capistrano that needs to monitor Resque workers with God.

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

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

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

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

makandra dev

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

makandra dev
github.com

When you need to use diff in either some Ruby code or your Rails app, use the differ gem.

en.wikipedia.org

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...

en.wikipedia.org

Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...

vimdoc.sourceforge.net

If you are in the middle of a file and want to scroll, but don't want to move your...