The first thing to do with any new U2410 should be to disable the incredibly annoying beep when pressing any...
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...
This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...
When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0
Because your examples should not change global state, you should not need to care about the order in which RSpec...
I encountered a bug in RSpec 1.x where stubbed class methods ("static methods") would not be unstubbed before the...
geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
For Email-Patterns see most recent E-Mail-Pattern. HOST = /\A[a-z0-9]+[a-z0-9\-\.]*[a-z0-9...
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
When your cucumber features grow massively over time, the test execution can take a lot of time.
One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window...
This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...
You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...
There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...
At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...