For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...
One reason programmers dislike meetings so much is that they're on a different type of schedule from other people...
Ruby 1.9 brings a shorter way to define lambdas using the -> operator: twice = -> (x) { 2 * x } twice.call(5) # => 10
The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
Use the click method on the DOM element: let link = document.querySelector('a') link.click()
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Similar to closing an opened browser window, spreewald now supports the I switch to the new browser tab step.
The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...
Set the hash to a dummy hash which doesn't hit any id at your page, for example: window.location.hash = "_";
You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml
A great and enjoyable introduction into the concept of the web and about what HTTP was designed for. The original...
Rails 4.0 is finally ready after a thorough process of betas and release candidates. It's an amazing new version...
Active Record's select method allows you to make use of the power of MySQL select statements. On the one...
Backbone plugin to override getters and setters with logic.
ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...
Coffeescript allows you to create classes whose methods are automatically bound to the correct this. You can do this by...
In order to have more human readable git branches, do git pull --rebase To always pull like this, write these...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...
Do it like this: attribute :active, Virtus::Attribute::Boolean Long story In Virtus you define attribute with their type...