For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...

The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...

I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

stackoverflow.com

The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml

blog.bigbinary.com

Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...

Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...

Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...

imperavi.com

New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.

No chance you would have ever guessed it... sudo palimpsest

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...

ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...

This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...

When HTTP clients make an request they can define which response formats they can process. They do it by adding...

We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...

When you want to do a git diff but do not care about the full diff and just want to...