Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
%p #{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...
OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running...
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...
CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
If you need to debug Analytics tracking, consider using this chrome extension. It will replace the tracking code with a...
When you are calling a method that may raise an exception that you don't care about, you might think...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...
Don't you just hate to write Cucumber path helpers to be able to say this?
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...