Note: You might also want to check out BoxCryptor which does pretty much the same, and is supported across many...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...
Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...
Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...
Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?
If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...
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"; }
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
You can set the resolution and user agent used in selenium tests with chrome with the method described in this...
When you want to test how an web-application reacts in a specific resolution, you can set up a specific...
The DOM window object provides access to the browser's history through the history object. It exposes useful methods and...
The closest is probably Nimbus Sans L, which is released under the GPL, AFPL, LPPL licenses. However, I couldn't...
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...