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


Recover MySQL root Password

It is only common to forget the database password. However, we can recover MySQL database server password following five easy steps.

  1. First step is to stop the MySQL server process.
    $> sudo /etc/init.d/mysql stop
  2. Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for the password.
    $> sudo mysqld_safe --skip-grant-tables &
  3. Then, connect to mysql server as the root user.
    $> mysql -u root
  4. Now that we’re in as the root user, setup new mysql root account password i.e. reset mysql password.
  5. mysql> use mysql;
    mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
    mysql> flush privileges;
    mysql> quit
  6. Finally, exit and restart the MySQL server.
    $> sudo /etc/init.d/mysql stop
    $> sudo /etc/init.d/mysql start
    $> mysql -u root -p

With this we would’ve successfully changed the password.

Easy Web Fonts with Google Font API

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:


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


Loading data from multiple files in Ruby using Hash

Loading data into Database reading from multiple files was never easy. I have been working on different projects lately, which required such exercise often. A general technique I followed to do that is explained here. In a gist, this is what it looks like:

require 'rubygems'
require 'fastercsv'

files.each do |key, value|
	file = "#{RAILS_ROOT}/db/drugsatfda/" + key
	recs = 0

	puts "Working with #{value.pluralize}.."
	FasterCSV.foreach(file, :headers => true) do |row|
			obj =, row.fields))

			recs += 1
		rescue => e
			puts "Rows processed: " + recs.to_s
			puts e
	puts "Loaded #{recs} #{value.pluralize}"

What do you think?

Adding close link to flash messages

The flash provides a way to pass temporary objects between actions. Anything you place in the flash will be exposed to the very next action and then cleared out. This is a great way of doing notices and alerts, such as a create action that sets flash[:notice] = "Successfully created" before redirecting to a display action that can then expose the flash to its template. Actually, that exposure is automatically done. But not closing or removing and that flash message will be there till the view is refreshed or a new action is served. [Read more..]

2010 in review

The stats helper monkeys at mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Wow.

Crunchy numbers

Featured image

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 210,000 times in 2010. If it were an exhibit at The Louvre Museum, it would take 9 days for that many people to see it.


In 2010, there were 7 new posts, growing the total archive of this blog to 203 posts. There were 6 pictures uploaded, taking up a total of 406kb.

The busiest day of the year was August 23rd with 868 views. The most popular post that day was Nebula.

Where did they come from?

The top referring sites in 2010 were,,,, and

Some visitors came searching, mostly for nebula, taj mahal, believe, ripley’s believe it or not, and tajmahal.

Attractions in 2010

These are the posts and pages that got the most views in 2010.


Nebula April 2008


Taj Mahal May 2008


Ripley’s Believe it or not!. October 2007


Japanese Invisible Technology – Optical Camouflage January 2008