IE Detection in 7 Bytes — Javascript

Great bit of javscript code that detects if a browser is Internet Explorer in just 7 bytes:

if(!+"\v1") // true only in IE

(via http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html)

.plist (Property List) File Mime Type

plist (prop­erty lists) files are just xml, so use the mime type:

application/xml

To serve them correctly.

Dynamically Update Copyright Year with PHP

Here’s a little php code snip­pet to make sure the copy­right year in your site footer is always up to date:

 
Copyright - < ?php echo  date("Y")?>
 

Now this will auto update your page with the cur­rent year ;)