makandra dev
relishapp.com

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

cirw.in

If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...

creativecouple.github.com

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

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

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

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

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

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

blog.teamtreehouse.com

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

If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...

makandra dev

Today I got a better understanding of how git works, in particular what git checkout and git reset do.

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