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 Amazon AWS cloud services you definitively want to utilize software raid for IO intensive stuff such as...

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

Whenever you deploy using Capistrano, a new folder is created within the releases directory on the remote server containing the...

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

harvesthq.github.com

Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in...

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

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

makandra dev
github.com

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

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

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

vimdoc.sourceforge.net

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