File.chmod(0604, '/path/to/file') # rw----r-- The leading zero is meaningful.

When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

Below you can find the hex color codes for the Color Graphics Adapter palette which used to be popular in...

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

Just in case you did not know it: If you sent a Skype message containing a typo, you don't...

Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...

robots.thoughtbot.com

We are changing our name from Hoptoad to Airbrake. You see, some folks much larger than us reached out and...

VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:

makandra dev

I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

When you open up a story to only have a look at it, close it by pressing the "Cancel" button...

In order to rename your Ubuntu box, replace all occurences of the the old name in the following two files...

If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...

makandra dev
mysqltuner.pl

This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

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...

jwz.org

An ancient essay on software design that, after 20 years, should still guide you for every line of code you...

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...

yehudakatz.com

Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...