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

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

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

csswizardry.com

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

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

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

When you are trying to install/update VirtualBox Guest Additions on your guest machine but the setup is for a different/older...

progfu.com

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

github.com

As the title says: this jQuery plugin creates bar charts from HTML tables. It comes in some different flavors.

makandra dev
github.com

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

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

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

stevesouders.com

You can use scheme-less URLs (or protocol-relative URLs) to have browsers use the current protocol (HTTP or HTTPS...

Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...

Our most recent pattern is EMAIL = /\A[a-z0-9\+\-_\.]+@[a-z\d\-.]+\.[a-z]+\z/i Notes