Sass comes with many built-in functions to manipulate color. Some of the more interesting functions include: adjust-hue($color...
Because your examples should not change global state, you should not need to care about the order in which RSpec...
When using the resource_controller gem you often hook onto events like this: update.before do do_something end
This snippet makes links that refer to an anchor (like "...
...") scroll softly to it.\ In this example we only do...
XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
apt-get install libcurl3-dev
Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...
Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
After a new system installation, Ubuntu One starts automatically and seems to try to sync your complete home directory. This...
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes
By default, Opera 11 hides any passed params and the URL's protocol until you focus the address bar.
Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...
There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...
Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...
When you write a custom RSpec matcher a good place to store them is to create one file per matcher...