I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to have the full database structure with some data to use on my development machine.
After trying se…
These steps are now part of Spreewald.
Here are some useful examples how to use the attached Cucumber [Timecop](https://g…
This card has four sections, concerning
- all apps behind SSL
- apps employing Clearance
- apps with basic authentication
- apps with home-made, self-built authentication
Choose what applies to y…
bundle update (without arguments) updates all your gems at once. Given that many gems don't care about stable APIs, this will break your application in a million ways. Don't do it.
There seems to be no way to use
therubyracer -v '0.11.4' and
libv8 -v '220.127.116.11' on OS X Mavericks.
bundle update therubyracer worked for me. It installed `therubyracer -v …
pngquant is a command-line utility and a library for converting 24/32-bit PNG images to paletted (8-bit) PNGs.
The conversion reduces file sizes significantly (often as much as 70%) and preserves …
DECIMAL column is used when it is important to preserve exact precision. It takes two parameters, where precision is the total number of digits and scale the number of digit…
Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in
If you want to keep tcmalloc functionality, you can do it like this:
- Open `~/.rbenv/plugins/ru…
Great slide deck about various forms of refactorings.
You might sometimes use
self to capture the context of
this before it is destroyed by some function.
self is also an alias for
service bluetooth stop
Always use simply
If you mix it up like
require 'spec_helper' require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/../.....
Our rspec_candy gem has a matcher that will compare
BigDecimals with each other:
If you want to test that a certain text is contained within the document title of your page, you can do so using Selenium and a step such as
Then /^"(.*?)" should be shown in the document titl...
When you do something like this in your code:
def var_value @var ||= some_expensive_calculation end
Be aware that it will run some_expensive_calculation every time you call v…