Browsers support different types of redirects. Be very careful with these status codes: 301 Moved Permanently 308 Permanent Redirect
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
Showing various caching patterns. Includes WhatsApp screenshots.
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation
Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...
Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...
If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
Active Record's select method allows you to make use of the power of MySQL select statements. On the one...
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...
Consider this Sass: .comment width: 320px; height: 240px; Any textarea with the comment class will be sized 320 by 240...
So you probably see the following error trace within your Passenger log file if you got here:
An = is represented by =3D in the log file. I got confused by the leading 3D which is not part...
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...
You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9...
MySQL's MIN and MAX functions are for aggregations only. This will not work and produce an error:
If you want your application to display properly on iPad, iPhone or Android there are two things to do:
When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.