The DOM window object provides access to the browser's history through the history object. It exposes useful methods and...
If you get this: p_elSource.attachEvent is not a function ... you need to disable Firebug or switch to another browser.
Note that you are not allowed to embed any font in a website. You need to check the license first...
In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:
The result is a .ico file with multiple versions of your logo at different resolutions. Now, depending on the context...
Spreewald gives you steps like these: When I enter "text" into the browser dialog Also see Accept or deny JavaScript...
Basic box shadow support is available in all browsers today, but you need to check to which extend they are...
I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
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...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
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...
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
Preview email in the browser instead of sending it.
The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...