Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...
If you want to stop getting notified about new messages in a Skype chat (but not leave it altogether), you...
Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...
Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
When adding a new field to your model's database table, don't set any defaults in the database.
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...
In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...
Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...
The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...
You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...
There is a new card about how to do this with the new AWS Command Line Interface
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...
This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...
We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...
Most likely you run rake and your code is causing an exception which is not the one shown in your...
whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...
When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
We forked craken today and fixed one of the issues we had with new (>0.8.7) rake versions. The craken:install...
Here is a way to create a duplicate of one database, with all its tables and their data, under a...
Random list of useful git commands for advanced users. I found some of them useful.
The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...