validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...

So you want to find out how many horizontal pixels you have available on a mobile device. This is super...

makandra dev
css-tricks.com

Examples how to create dozens of shapes using pure CSS and a single HTML element.

makandra dev
relishapp.com

You can define methods in any example group using Ruby's def keyword or define_method method. These helper methods...

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

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

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

github.com

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

The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...

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

Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...

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

Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:

If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...

blog.teamtreehouse.com

Randy Hoyt is presenting a way to display something (e.g. products) in a grid. It's responsive, too!

simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

StaticMatic is a nice tool to build simple static websites. In case you want to have some nifty styles on...