It's that simple to allow one of your Linux users to run a single command as UID 0:

If you're on Ubuntu: sudo apt-get install ruby-dev On other platforms: Look for a package containing ruby...

This is for those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need...

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...

When you are using Apache for development, it still accepts connections from everyone in the same network as you.

cssdiscussion.com

If you want your application to display properly on iPad, iPhone or Android there are two things to do:

Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...

imperialviolet.org

In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...

justinfrench.com

If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...

kernel.org

Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.

If you want to iterate over a Range, but only look at every n-th element, use the step method...

See our new comprehensive guide to upgrading every Rails 2 version ever.

When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests...

Our collection of the most useful Cucumber steps, Spreewald, now supports exact matching of form fields and lets you use...

When your block takes an argument that should have an default, only in Ruby 1.9 you can say: block = lambda...

linux.die.net

If you need to find out which of your local commits are not on the remote server do this:

alistapart.com

I was recently confronted with the task of creating a two-column liquid layout with a header and footer in...

timeless.judofyr.net

This must be one of the coolest, yet quite unknown, technique in Ruby. For certain types of problems (e.g. when...

In order to redirect all requests from redirecting-host.com to desired-host.com while keeping path and query params unchanged, change your Apache...

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

makandra dev
railsforzombies.org

Learning Rails for the first time should be fun, and Rails for Zombies allows you to get your feet wet...

Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...

makandra dev

To clear the query cache in your MySQL database manually, e.g. for database profiling, execute the following command in your...