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

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

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

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

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

html5please.us

Look up HTML5 features, know if they are ready for use, and if so find out you should use them...

Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:

makandra dev
github.com

Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...

It might sound trivial, but there is no such thing as a "hover" or "mouseover" state on touch devices. If...

Sometimes you want one distinct version of RubyGems to be installed to replicate the same behavior across multiple servers.

makandra dev
github.com

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