Simply use OpenStruct#to_h to receive an OpenStruct's hash representation. In older Rubies you need OpenStruct#marshal_dump...
Given you store files on Amazon S3 and you need to stream those files out to people while you don...
This plugin makes it easy to add fit-to-fill background video to websites. It can play silent ambient background...
StaticMatic is a nice tool to build simple static websites. In case you want to have some nifty styles on...
If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
When you work in the MySQL console and you want to see which database is used, type: SELECT database();
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...
When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...
Keychain helps you to manage ssh and GPG keys in a convenient and secure manner. It acts as a frontend...
Stuff like this is now possible in Webkit browsers, Firefox and IE10.
Now works with radio buttons.
Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...
Interesting interview with DHH, where he talks about how they made the new Basecamp feel very fast without using a...
pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks...
If a customer calls and tells you that she cannot see some content of her website beware of the following...
If (for some reason that you don't want to ask yourself) you need to know all classes that define...
If you want to update some records with boolean fields in a migration, always remember to set your values with...
In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...
If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
With the the Ruby Tempfile class you can create temporary files. Those files only stick around as long as you...
Nice list of icon sets that come in the form of fonts. I recommend Font Awesome.
sudo apt-get install gnome-session-fallback or (alias) sudo apt-get install gnome-panel from a terminal.