If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...

When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...

will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...

Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...

You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...

In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...

When your gems complain about invalid gemspecs and illformed requirements, it is most probably an error resulting from the transition...

You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.

Don't you just hate to write Cucumber path helpers to be able to say this?

makandra dev

Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...

You can now add code blocks without indentation, by using triple-backticks: ``` Code block goes here. ```

When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...

Imagine you have a piece of code that tries to send a request to a remote server. Now the server...

makandra dev
stackoverflow.com

If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...

Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...

makandra dev

Saying git diff only shows unstaged changes relative to the index (or HEAD if the index is empty, alternatively any...

makandra dev

This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...

makandra dev
github.com

Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.

makandra dev
github.com

Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...

Let's say you have commits that change a file (and looking at the commit details show you the changes...

Removing features and merging those changes back can be painful. Here is how it worked for me.\

miekd.com

A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the...