Very impressive preloading:
Drop Shadow with CSS
.shadow {
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}
Solution found here: http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/
Use the Same Arg in Sprintf
When using sprintf you can use the same argument like so:
sprintf(“You want the %1$s? You can’t handle the %1$s!”, “truth”);
The %1$s means it will pull from the first argument.
MySQL UTF-8
Problem:
I have a database that needs to accommodate all languages. Currently it is set to the default latin1_swedish_c1. I’m thinking I need to change it to UTF8, but there are so many UTF8 encodings!
Solution:
“_cs” is for case sensitive collations. So for case insensitive applications you can use utf8_general_ci. utf8_bin is binary so it’s case sensitive.
All Available Backups in MS SQL
In SQL Server 2008, to see all available db backups:
select * from msdb.dbo.backupset
