Need to target IE browsers? Here is a quick hack that doesn’t require conditional comments (note that your CSS will therefore not pass auto-validation, which is fine if you are aware of why it doesn’t).

The code below will change the background-color of divs depending on what browser the user is viewing the web page under. Since * cascades down to IE7 and below, we use _ after that declaration so that IE6 (and below) has a different background color from IE7.

div {
background-color: #999; /* all browsers */
*background-color: #ccc; /* add a * before the property – IE7 and below */
_background-color: #000; /* add a _ before the property – IE6 and below */

It can come when we least expect it, when we are happily playing our favourite game and diligently working on the report due tomorrow. Then, all of a sudden, when we are just right about to save our progress, the blue demon appears, stares at you straight in the face and tells you that some sort of fatal, non-recoverable error has occurred. You can cry, curse or swear, but nothing will change the fact that your hard work has all gone to the drain. Nobody will mistake that mocking blue screen for anything but a big FAIL. Yes, it’s the infamous blue screen of death, or BSoD for short. From the list of 30 Priceless Blue Screen of Death (BSoD) to Chuckle About, here I am selecting my favourites. Oh, how we dread seeing one.

Due to its widespread unpopularity, some victims of BSoD have make it a point to capture instances of BSoD for a good laugh (a laugh at their own plight, perhaps?). Others have even photoshopped BSoD into actual images and turned them into jokes. Whatever it is, we all find them hilarious because we’ve experienced them from time to time. To celebrate our contempt for BSoD, I have picked some of the most amusing and clever ones out there to showcase them here. Enjoy and be entertained!

Blue Window of Death
A BSoD drape for your Windows. (via Ezhhh)

Traffic Light
The blue screen of traffic light. (via Houbi)

Gatwick Airport
Which gate is my flight at?(via Cardsfan1985)

Worst Timing Ever
I’m quite sure the pilot would’ve already collapse if this happens during flight. (via Motifake)

Welcome to Vancouver International Airport
A warning screen as the welcome sign. (via Aznricebowl)

Stunning. Breakthrough. Entertaining.
Read carefully. It says it will deliver you a PC experience designed to fit wherever life happens. Even when your system crash?

Live Concert
An anticlimax to an otherwise amazing concert. (via TechMynd)

åRows and rows of BSoD.

Bill Gates’ Fatal Error
The ultimate BSoD of our lives. (via Geeks With Blogs)

Sorry, I Cannot Finish It…
All your work gone in a flash, literally. (via DroziCzech)


git clone <repo>

clone the repository specified by <repo> ; this is similar to “checkout” in
some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

ui = auto
[color “branch”]
current = yellow reverse
local = yellow
remote = green
[color “diff”]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color “status”]
added = yellow
changed = green
untracked = cyan

Highlight whitespace in diffs

ui = true
[color “diff”]
whitespace = red reverse

Add aliases to your ~/.gitconfig file:

st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p

You can recover MySQL database server password with following five easy steps.
Step # 1: Stop the MySQL server process.

# sudo /etc/init.d/mysql stop

Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password.

# sudo mysqld_safe –skip-grant-tables &

Step # 3: Connect to mysql server as the root user.

# mysql -u root

Step # 4: Setup new mysql root account password i.e. reset mysql password.

mysql> use mysql;
mysql> update user set password=PASSWORD(“NEW-ROOT-PASSWORD”) where User=’root’;
mysql> flush privileges;
mysql> quit

Step # 5: Exit and restart the MySQL server.

# sudo /etc/init.d/mysql stop

# sudo /etc/init.d/mysql start
# mysql -u root -p

Web fonts allow you to step outside of the normal web-safe fonts by taking advantage of CSS’s @font-face rule. However, right now, browsers aren’t uniform in its implementation of @font-face. More specifically, web browsers differ in the types of font files they support (hopefully this will change with the WOFF standards). Additionally, you must be careful with the fonts you use since some of them might not be licensed for web use.

To sidestep the issues with @font-face, the Google Font API is here to the rescue. Here is an example of using the Cantarell font on elements that takes advantage of Google Fonts API. If you want to use the Cantarell font from Google Font API, first reference the remote stylesheet inside your tags as such:


To use the font in h1 elements, simply use the font-family CSS property.

h1 {
font-family: ‘Cantarell’, Arial, serif;  /* Use a font stack, just in case. */