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...
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); }
All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
So you probably see the following error trace within your Passenger log file if you got here:
An association defined with has_many :through will return the same record multiple times if multiple join models for the...
This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...
You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...
The default behavior of Calc is that when you paste cells from the clipboard, it overwrites whatever cells occupy the...
An = is represented by =3D in the log file. I got confused by the leading 3D which is not part...
Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...
You can define what will be printed by checking View -> Preview Page Breaks and then moving around the blue borders...
After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
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.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...