Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
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...
The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
Good article that tells you how to change behavior of certain keys via xmodmap (with the help of exv if...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
Sometimes you need a piece of code to do something different for specs than for features. If you don't...
Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
Issue this command: sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='APP_NAME';" && killall Dock This tells sqlite3 to...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
In the following example the method update_offices_people_count won't be called when office_id changes, because it...
You can detect city and country from an IP address by using the GeoLite database. This is a flat file...
tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...
Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...
In specs, the session never persists but is always a new object for each request. Data put into the session...