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

apidock.com

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

rails-erd.rubyforge.org

Gem to generate entity relationship diagrams from your Rails 3 ActiveRecord models. The diagram style is pretty and configurable.

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

How to ignore new files Globally Add the path(s) to your file(s) which you would like to ignore...

blog.carbonfive.com

I still see people promoting various gems and plugins to handle miscellaneous configuration elements for your application. One little known...

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

If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...

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

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

When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...

In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with...

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

require 'open-uri' File.open('/target/path/to/downloaded.file', "wb") do |file| file.write open('http://example.com/your.file').read end Basic Authentication