Thursday, January 21, 2010

A safer way to map your enums to the DB

The following post explaing how to map your enums safely to the database. I personally think this is a great idea proposed. Requires few extra lines of coding, but maintains data intergrity.

Less HTTP Requests Better Reponse

Have you ever used background-image url in your css? if so you know that each one means another HTTP request. To resolve this issue you can use data uri which encodes the image as base64. Only downside of this is that it is not supported in IE versions lesser than 8. The following URL shows how you can accomplish this.