So you want to find out how many horizontal pixels you have available on a mobile device. This is super...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...
Examples how to create dozens of shapes using pure CSS and a single HTML element.
You can define methods in any example group using Ruby's def keyword or define_method method. These helper methods...
If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...
jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...
As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...
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...
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...
Debugging .htaccess is hell, and RewriteRules in particular if they are not working as expected. But fear not! RewriteLog will...
You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
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...
Rarely, you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries...
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...