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

REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...

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

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

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

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

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

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

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

If you want to move a complete commit from one repository to another (and you don't want to add...

If you defined your association via class Article belongs_to "category" end and you try Article.scoped(:include => :category)

In order to chain greps on log files that are opened via tail -f test.log you have to use the...

makandra dev

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

answers.yahoo.com

You want Photoshop to always open files with "full" (100%) zoom and not try to fit them to your screen...