We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Backbone plugin to override getters and setters with logic.
To reset the position of split dividers, drag all the dividers out of the screen. Then turn off splitting and...
You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
Caution when using .where to exclude records from a scope like this: # Fragile - avoid User.where("id NOT IN (?)", excluded_ids...
The way Rational#to_s works on Ruby has changed from Ruby 1.9 on. Here is how to get the...
Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...
CSSmatic lets you play around with four rather complex CSS stylings and gives you CSS or SASS code to use...
Do not pass times to date attributes. Always convert times to dates when your application uses time zones. Background
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.
RVM needs to be updated regularly to know of Ruby versions released since installation (or last update).
There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...
Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...
Prism is a new lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s a spin-off...
When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...
The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...