Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...
When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...
Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }
It's not logical, so don't be too hard on yourself. You need to give it a height and...
The DOM window object provides access to the browser's history through the history object. It exposes useful methods and...
Note that you are not allowed to embed any font in a website. You need to check the license first...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
So you probably see the following error trace within your Passenger log file if you got here:
A small library to provide the Rails I18n translations in Javascript clients.
When you create a new branch and push it to origin, you won't be tracking it. This means a...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...
RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...
Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
A lightweight javascript date library for parsing, manipulating, and formatting dates.
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
When using Rails to truncate strings, you may end up with strings that are still too long for their container...