I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...
The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...
ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...
Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...
We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...
Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...
When you use ab to do some performance benchmarking, you might run into output like this: Complete requests: 200
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...
JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
This is awesome. Only ran smoothly in Chrome. Is a slideshow in Firefox.
You probably know that you can use CSS selectors to match against elements and their attributes, such as: