In another post, I wrote about getting syntax-hilighted code in your favourite color scheme in html format to publish in blogger. Today, I added two more functions to the blog-htmlize.el file (link here) (save the file as blog-htmlize.el).
  1. blog-htmlize-region-with-linum
  2. blog-htmlize-buffer-with-linum
These functions produce almost the same output as their without "-with-linum" counterparts. The addition is the line numbers column on the left side of the code.
And unlinke many other online code snippets (see example here), when you try to select the code for copy pasting, only the code is selected and not the numbers. Go ahead and try copy-pasting / selecting text from the following test snippet.
#include <iostream>

using namespace std;

int main ()
     cout << "Hello World!" << endl;
     cout << "Here is the code in my favourite color scheme." << endl;
     cout << "You can get it too!" << endl;
     return 0;
If you have already added the required lines in your .emacs file as told in that post, to get these new functions, all you have to do is replace the blog-htmlize.el file which you already have with the updated one.

If God were to give me power to purge a day off from my life, without a second thought, I would tell him to wipe yesterday off. Yesterday was my 20th birthday and the worst one. Having my "friends" ditching my treat for their comfortable and routine weekend, ("friends" who bluntly said "Let's have your treat some other day.") I had an rough idea that it is not going to be a very nice day. But did not expect it to be this worse either.

Recently I came to know about the full movies available on youtube. And for marathi, they have a good selection of recent movies. But somehow, I was not getting the "movie" experience. The other stuff on the page was distracting. I could not watch the movie with full screen because it looked very bad (the best resolution is 480p). So I wrote some javascript code and executed it. Following was the result.
Before executing the code (left), and after (right)

This post is for absolute beginners - those who use the web, but have no idea about how the webpages/websites work. By the end of the post, I hope to get the reader at a position where he/she has an overall idea about what goes into a simple webpage. And hopefully, (if the reader has some programming background) the reader should be able to start coding and enjoying javascript.

In his essay "Hackers and Painters", Paul Graham says :
Empathy is probably the single most important difference between a good hacker and a great one. One way to tell how good people are at empathy is to watch them explain a technical question to someone without a technical background.
I decided to try it myself. Hence this attempt of a "introduction for beginners".

आज-काल गल्लोगल्ली लागणाऱ्या पुढाऱ्यांच्या पोस्टर्सवरून "प्रेरणा" घेऊन, मागच्या वर्षी मी आणि स्नेहलने आईच्या वाढदिवसासाठी एक ग्रीटिंग कार्ड बनवलं होतं! त्यात एक कविता होती - वेबवरून "उचललेली". तेव्हाच माझ्या मनाच्या कुठल्यातरी कोपऱ्यात, माझ्याच नकळत, मी ठरवलं होतं - पुढच्या वर्षी मी कविता करणार!

मागच्या वर्षी आम्ही बनवलेलं ग्रीटिंग कार्ड 

Do you know what happens when bad design happens to big companies like Google?... Widespread bad design!

It is a bad design when the interface does not communicate naturally. Will any sane person answer a yes/no type question with ok/cancel? Just imagine... you are in a hotel and you ask the waiter "Do you have cold water?" and instead of "No, I am sorry." answer comes - "Cancel"! And that, my friends, is the problem with these dialogue boxes. For example, check this blogger example.

Original blogger dialogue box.
Why the names on the buttons have to be so meaningless that you have to explain which button does what? Won't we be better off with more natural dialogue boxes like the following (hypothetical) one?
See that? Crisp and clear!

Disclaimer : This post is about the psychological process, for the wave phenomenon, see here.

My friend and room mate Guru P has always been yelling at me... "dude! get a life da! life is not all about computers!" But to realize anything, it always takes a thing called the "final push"... the moment of realization, when all things become clear and you wonder why it did not happen before! That moment for me came when Saheel told me "I pity you and your life...". Which forced me to think, am I turning into some machine? Is my life becoming so miserable, and yet I am not noticing it?

A movie which looks like yet another science fiction film on the surface, I found Gattaca to be a gem of a movie. Not just because of the stunning performance by Ethan Hawke (who plays Vincent, the protagnoist), but because the connection the movie shared with me.