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...
Set the hash to a dummy hash which doesn't hit any id at your page, for example: window.location.hash = "_";
You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml
Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...
A great and enjoyable introduction into the concept of the web and about what HTTP was designed for. The original...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
Rails 4.0 is finally ready after a thorough process of betas and release candidates. It's an amazing new version...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Active Record's select method allows you to make use of the power of MySQL select statements. On the one...
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...
Coffeescript allows you to create classes whose methods are automatically bound to the correct this. You can do this by...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...
Do it like this: attribute :active, Virtus::Attribute::Boolean Long story In Virtus you define attribute with their type...
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...
As Bill Dueber has on his blog, you can call rvm in the shebang to select a Ruby version like...
Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad...
Capybara drivers will usually delete all cookies after each scenario. If you need to lose cookie data in the middle...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
In order to clone a git repository including all branches and tags you need to use two parameters when cloning...