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

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

github.com

When Rack::Bug has been added to your project and your Apache2/Passenger only replies with an Error 500 (Internal Server...

To reduce download time, application servers usually serve content using gzip compression, if the browser supports it.

When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...

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

apidock.com

[1,2,3,4].sample # => e.g. 4 If you'd like to cheat and give different weights to each element...

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

makandra dev

Git has a built-in repository viewer for your web browser. a bit similar (but less awesome) than github.

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

sequel.rubyforge.org

Seems like a useful gem for cases where ActiveRecord is overkill but you don't want to do everything by...

makandra dev
rhnh.net

I introduced DataMapper on my last two major projects. As those projects matured after I had left, they both migrated...

apidock.com

Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...

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

For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...

hacks.mozilla.org

Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup.

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

makandra dev

You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...

You can group contacts using a mailing list in Thunderbird for easier access and less trouble when trying to find...