If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...
You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...
In order to open a Nautilus window in your terminal's working directory, you can say: nautilus .
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
You can create a Regexp object from existing Regexp objects by using the interpolation syntax you know from strings:
There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...
Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
If you have a time given in a different time zone than your local one, parsing will convert it for...
Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there...
I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...
When writing a piece of reusable code, you sometimes need to have separate code for Rails 2 and Rails 3...
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
You've been there: A form cannot be submitted, but you don't see a validation error because the field...
Just add the parameter :post to the visit method: visit publish_entry_path, :post
Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...
This is a bug in Timecop 0.3.4 or lower. You should upgrade to 0.3.5.
Calling Time#utc, Time#gmt or Time#localtime will not create a converted copy. Instead these methods modify the receiving...
Note that converting from RGB to CMYK will usually degrade your colors because no exact mapping is possible. Anyway, this...
Use the PDF toolkit: sudo apt-get install pdftk To rotate page 1 by 90 degrees clockwise: pdftk in.pdf cat...
Linux provides a fix number of filesystem watches. If you have some greedy daemon (like dropbox) running, chances are it...