If you previously used version 2.x of Thunderbird and upgraded to 3.x (for example through an Ubuntu release...

You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...

If you want to see how long your database queries actually take, you need to disable MySQL's query cache...

timetobleed.com

This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...

You need to install the following packages before you can build the Paperclip gem: sudo apt-get install imagemagick librmagick...

When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com

gem-session.com

If you want to exclude your staging site from Google using robots.txt without running the risk to forget deleting the...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...

This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...

One option is to use partials. Or you can set the @template field to the name of another action:

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

Spreewald has steps that let you test that e-mails have been sent, using arbitrary conditions in any combination.

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).

In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

When a Cucumber feature leaves your page through an external Link, Webrat has problems like "Could not find field: "E...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...