Linux provides a fix number of filesystem watches. If you have some greedy daemon (like dropbox) running, chances are it...

After updating Rubygems you see a wall of deprecation warnings like this: NOTE: Gem::SourceIndex#add_spec is deprecated, use...

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

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

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

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

makandra dev

If you want to use the (badly implemented!) solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port...

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

If you use Nginx with SSL and get an intermediate certificate with your certificate you have to do this:

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

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

To avoid sending e-mails containing sensitive data unencrypted I strongly suggest you enable a confirmation dialog. Enigmail can show...

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

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

paperplanes.de

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

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

robots.thoughtbot.com

I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...

To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end