If you want to use the (badly implemented!) solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port...
Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...
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...
Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. 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...
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...
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...
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...
When you need to create a locale for a language variant (like Austrian for German), you probably don't want...
Select as many rows as you'd like to insert by dragging over the row numbers on the left. Then...
When you need to use diff in either some Ruby code or your Rails app, use the differ gem.
This post is not about devops, it's not about lean startups, it's not about web scale, it's...
Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...
Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...
Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails.
I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...
When you need to zip up files in Ruby, use zipruby. sudo gem install zipruby You can add existing files...
To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end