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

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

If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...

One of the most common production errors are ActionController::MethodNotAllowed errors. They usually happen when someone reloads a form by...

For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...

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

If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...

How to ignore new files Globally Add the path(s) to your file(s) which you would like to ignore...

If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...

If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...

Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...

Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...

linux.die.net

You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...

stackoverflow.com

The solution in this card is based on a stack overflow post by Leventix. If you need to make request...

makandra dev

If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

makandra dev

In order to monitor a Rake task using God your Rake file must write a file with its process ID...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

makandra dev

cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

If your application raises an error like … Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...