We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...

makandra dev
jakiestfu.github.com

Behave.js is a lightweight library for adding IDE style behaviors to plain text areas, making it much more enjoyable to...

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...

If you worked with a system Ruby before switching to RVM, this system Ruby will be in your way when...

Geordi now has a script that runs capistrano with all known deploy targets (i.e. staging, production...). Use with geordi capistrano...

So you want to find out how many horizontal pixels you have available on a mobile device. This is super...

kernel.org

If you say git stash, your stashed changes will be identified with an automatically generated message: $ git stash

While you are probably using will_paginate to paginate ActiveRecord scopes, it can actually paginate plain Ruby arrays. The resulting...

When doing a git blame, git will blame the person who added or removed white space in a line (e.g...

makandra dev
github.com

Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...

creativecouple.github.com

jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...

makandra dev

A nice way to stage absolutely all changes (edits, additions, deletions): git add --all

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...

Our old solution for cronjobs, the "craken" plugin, is no longer maintained and does not work on Rails 3.2+.

Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...

darwinweb.net

Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

If you can now longer hear or record sounds after upgrading Ubuntu, you probably need to re-tell Ubuntu which...