If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...

Our old solution for cronjobs, the "craken" plugin, is no longer maintained and does not work on Rails 3.2+.

makandra dev
httpd.apache.org

Debugging .htaccess is hell, and RewriteRules in particular if they are not working as expected. But fear not! RewriteLog will...

If some AJAX functionality does not work, but you see Firefox making an OPTIONS request, the reasons is most likely...

You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...

Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...

darwinweb.net

Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

When you want to copy/move from a shared folder (on Windows guests, for example) and it fails with absurd error...

If you can now longer hear or record sounds after upgrading Ubuntu, you probably need to re-tell Ubuntu which...

If you don't want to mess around with arcane incantations inside xorg.conf, you can use the graphical arandr tool...

odyniec.net

imgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement...

progfu.com

I am talking about development speed. When your application starts growing and you start adding gems, it starts to take...

makandra dev
github.com

The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...

makandra dev

The very useful andand gem does not play very nice with Ruby's SimpleDelegator (or vice versa). This following will...

If you get a stacktrace complaining about uninitialized constant MysqlCompat::MysqlRes a system library update might broke your gem.

Since I use this a lot in my daily work and there were no scripts working properly for me, I...

perlstalker.vuser.org

While you can set your own font in your terminal or other tools, it will not change the default "Monospace...

When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...

Modern cameras often produce JPEGs that have a "I should be rotated 90° to the left" flag. If you process...

coding.smashingmagazine.com

JavaScript engines such as Google’s V8 (Chrome, Node) are specifically designed for the fast execution of large JavaScript applications...