As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...

I was unsatisfied with the existing memory status applets for the Xfce panel, so I wrote a little shell script...

durdn.com

This article contains: Making ‘git diff’ wrap long lines Set a global proxy Clone only a specific branch

Sometimes you want to see what data you get through a TCP or UDP connection. For example, you want to...

makandra dev

The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...

The basic idea is pretty simple: an element's height is accessible via the offsetHeight property, its drawn height via...

stackoverflow.com

This works in all relevant browsers: document.activeElement You can use this in your Selenium steps, for example, to assert that...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

makandra dev

Basic error pages To add a few basic styles to the default error pages in Rails, just edit the default...

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

blog.alexmaccaw.com

Over the next year, there are a number of technologies coming down the pipeline that have the potential to radically...

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

csswizardry.com

Harry Roberts, a youngster from the UK, wrote a comprehensive article telling you how to smell CSS rot early.

davidwalsh.name

David Walsh from Mozilla shows how to fire 'DOM changed' events from CSS. No need for JS to observe DOM...

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

Cards can now be flagged as "Repeating". Every Wednesday, some of these cards will be moved back to the top...

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