There are several options, but most of them are impractical. The best way is to use the :ruby filter:

If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...

Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...

If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...

Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...

Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...

sgruendel.blogspot.com

When you install Type 1 fonts (like makandra's corporate typeface), they won't show up in OpenOffice. OpenOffice requires...

By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

If you want to distribute a 's width equally over its columns, you can use the following CSS property:

Clearfix is a hack to clear floating elements without additional HTML markup. If you only need to support IE8 and...

RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...

To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...

linux.die.net

You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...

ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

In order to monitor a Rake task using God your Rake file must write a file with its process ID...

Calling #gsub on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences...

Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...

web.archive.org

Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...

dev.opera.com

Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...

blog.bitcrowd.net

Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...

You can use the step definition below to say this: Then the "Last name" field should have an error

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...