Target IE6 and IE7 Browsers without Conditional Comments

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 colour 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 */

Blue Screen of Death (BSoD) to Chuckle About

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 Cheatsheet – setup


git clone

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

Add colours 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:

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