lab.hakim.se

Stuff like this is now possible in Webkit browsers, Firefox and IE10.

We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

rubyforge.org

Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...

youtube.com

Interesting interview with DHH, where he talks about how they made the new Basecamp feel very fast without using a...

makandra dev
github.com

pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks...

makandra dev

If a customer calls and tells you that she cannot see some content of her website beware of the following...

If you have an html_safe string, you won't be able to call gsub with a block and match...

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

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

Tempfiles get deleted automatically With the the ruby Tempfile class you can create temporary files. Those files only stick around...

makandra dev

This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...

There are many fun Unicode characters like ▲ or ☯. You might be tempted to use them for graphical elements in lieu...

sudo apt-get install gnome-session-fallback or (alias) sudo apt-get install gnome-panel from a terminal.

Assuming the following sunspot setup of the post class: class Post < ActiveRecord::Base searchable do text :title string :state

Note: Instead of using the method in this card, you probably want to use ActiveType's nested attributes which is...

When committing, you should always check the diff of your changes so you don't include any leftovers or irrelevant/bad...

Jedes nicht rein private Profil auf Social Media Portalen muss ein Impressum haben, das heißt insbesondere Unternehmen und Freiberufler (§ 5...

Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...

If you encounter a Firefox that does not care about your font settings but always uses specific fonts, you can...

Never name your shared example group *_spec.rb. Otherwise rspec will try to load your example group as a spec and...

github.com

Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...

So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...