makandra dev
peter.sh

A list of CSS vendor-prefixes.

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...

Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...

developer.mozilla.org

List of non-standard CSS attributes that change how the browser resamples scaled images. Only use them if you know...

For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...

github.com

Framework to write command-line apps in Ruby. Comes with a nice way of processing parameter options, some utility classes...

When you have a complex recipe setup with multistage deployment you may run into this error: `role_list_from': unknown...

github.com

Scenario outlines allow us to more concisely express repetitive examples through the use of a template with placeholders.

makandra dev

When you use one line Ruby comments in ERB templates you should never do this (notice the whitespace in front...

The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...

I have a pair of headphones connected to my desktop's back panel and a headset connected to the front...

beginrescueend.com

To use different Ruby versions on your computer you can use the Ruby Version Manager. It also allows you to...

If you get the above error when running tests in bulk (but not individually), it's actually the fault of...

"Classic" Excel (XLS) has a magic limit of 65535 rows per worksheet. This was fixed in XLSX but the version...

When you have objects in your database that hold latitude and longitude and you want to find others that are...

Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...

Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...

makandra dev

ActiveSupport's memoize has a dangerous feature you might not know about. Assume you have class DeepThought extend ActiveSupport::Memoizable...

makandra dev
blog.jquery.com

Two new methods on and off are the new way of declaring event handlers. bind, delegate and live area deprecated...

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

After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as...

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

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