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

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

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

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

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

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.

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

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

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

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

In cucumber you are able to run features in whatever directory you like. This also includes executing features in subdirectories...

Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...

Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...

webupd8.org

SkypeTab-NG (NG stands for Next Generation) is a tool that adds tabs to Skype for Linux. Besides providing a...

Code coverage is the ratio of code lines kissed by a test vs. the total number of lines in your...

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...

github.com

When Rack::Bug has been added to your project and your Apache2/Passenger only replies with an Error 500 (Internal Server...

To reduce download time, application servers usually serve content using gzip compression, if the browser supports it.