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...
In order to open a MySQL shell without the need to enter user and password, you can say the following...
Oniguruma is an advanced regular expression engine for Ruby. Install Oniguruma with binary dependencies like this: sudo apt-get install...
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...
Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...
Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...
You can use the step definition below to say this: Then the "Last name" field should have an error
When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...
You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...
You can use this shell command: uniq -u input.txt output.txt
This article explains why some regular expressions take years to match against certain strings. A common culprit are nested repetition...
Sometimes you may need to figure out what branches exist on a remote repository so you can pull them down...
Good guide to different ways you can write CSS selectors that select elements by their attribute values.
features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...
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...
When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
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 installing your first formula, Homebrew may complain about not being able to access certain directories. The easiest solution to...
When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...