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

We've made it easier to link other cards: You can now find a button Cite other card above the...

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

To access files from another branch or past commit without doing a complete checkout, you can either use

This error simply means you've overloaded a cookie. Hints for fixing: Check if you're putting too much (e.g...

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

Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...

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

turnjs.com

turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...

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

When using Rails to truncate strings, you may end up with strings that are still too long for their container...

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

Consider you have a file that uses improper encoding on special characters. Example: You see the latin1 version "ñ" for...

0xfe.blogspot.com

Chrome now supports desktop notifications using WebKit's webkitNotifications API. This means you can create popup bubbles from Javascript.

The step definition below lets you say: Then I should see a field "Password" But I should not see a...

Sometimes you need to restart the Gnome panel, e.g. when you installed a new Gnome panel widget but the widget...

makandra dev
github.com

ProgressBar is a simple Ruby library for displaying progress of long-running tasks on the console. It is intended to...

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...