In order to rename your Ubuntu box, replace all occurences of the the old name in the following two files...
In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...
Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...
This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...
To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...
When some of your Google contacts are no longer synchronized with your e-mail client or mobile phone, those contacts...
Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String
If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...
My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...
When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...
Consider the following: describe '#something' do context 'with lots of required arguments' do it 'should work' do subject.something(:foo => 'foo...
This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...
If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...
We recently added custom fields to Highrise which allow you to keep track of extra details beyond standard contact information...
An ancient essay on software design that, after 20 years, should still guide you for every line of code you...
All you need to know about the rise and fall of programming languages. Not really related to the worse is...
When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0
Sass comes with many built-in functions to manipulate color. Some of the more interesting functions include: adjust-hue($color...
Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more...
Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...
You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are
Because your examples should not change global state, you should not need to care about the order in which RSpec...
I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...
Choosing the right product to develop is crucial. Great execution is also very important. But if you develop a product...