This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...
If you need Google Chrome to run in English, and your system locale is a non-English one, you have...
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
My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...
If you want to use a helper_method my_helper_method inside a model, you can write ApplicationController.helpers.my_helper...
When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...
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...
All you need to know about the rise and fall of programming languages. Not really related to the worse is...
If Google Analytics claims that a something@googlemail.com address is not a valid Google account, try adding something@gmail.com.
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 encountered a bug in RSpec 1.x where stubbed class methods ("static methods") would not be unstubbed before the...
I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
When you edit text in Balsamiq Mockups, you can define inline styles like this: | Bold | Some *bold* text | | Italics | Some...
Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...
When using gnome-open (i.e. double-clicking a file, telling to browser to open a download, etc.) on Ubuntu you...
My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...
You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...
When using the resource_controller gem you often hook onto events like this: update.before do do_something end