Date::Performance is a gem that replaces various method in Ruby's Date class with fast C implementations. Unfortunately it...
Vim allows recording a batch of commands as a macro. This is handy if you need to do the same...
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...
When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...
Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...
When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...
Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...
Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...
The first thing to do with any new U2410 should be to disable the incredibly annoying beep when pressing any...
Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.
You can say: $(element).is(':visible') and $(element).is(':hidden') jQuery considers an element to be visible if it...
When you open up a story to only have a look at it, close it by pressing the "Cancel" button...
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.
This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...
Because your examples should not change global state, you should not need to care about the order in which RSpec...
I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
If you would like to enrich your website with semantic markup like contact data, places or events you should have...
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...