If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...

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

TeamViewer 6 and lower had an issue where they would see a multi-monitor Linux setup as a single wall...

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

We experienced problems with Sunspot and Solr on Tomcat: Umlauts (ä, ö, ü) were not correctly handled on Tomcat while...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...

Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...

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

makandra dev
github.com

Preview email in the browser instead of sending it.

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

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...

In order to save the original value of a constant, set the new value and restore the old value after...

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

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

Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...

Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...

docs.cksource.com

The article gives a very short tutorial how to customize tabs and fields of CKEditor's dialogs.

makandra dev
stackoverflow.com

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

justincarmony.com

As Justin Carmony points out, Mac OS Lion changed its behavior towards DNS and the usage of /etc/hosts (it quite...

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