Tuesday, January 8, 2008

A walk down the memory lane

In a curious turn of events, after reading Richard Dawkins' Essay "Sanderson of Oundle" (from A Devil's Chaplain) on Friday night, I went on to watch "Taare Zamin Par" on Saturday. Both are touching stories of great teachers. And it made me take a walk down the memory lane and think about my own teachers.

One name that immediately comes to my mind is Mr. P.K.Patil, affectionately known as PKP, a teacher of great repute from Kolhapur, from whom I had the fortune to learn HSC physics. He has been teaching physics for past 32 years, and has taught literally to generations of students. His students have gone to fame and fortune in a variety of fields.

Maybe you can tell a great teacher from a mere good one in just one lecture. One thing that struck me immediately was his boundless enthusiasm for students. He not only introduced us to the marvels of physics but successfully imparted his enthusiasm on us. He also helped ease the transition of many of us from a 'marathi medium shala' to an 'all english college'. Now physics is a highly mathematical subject and you had to solve tons of numerical problems, but his captivating illustrations never let you get bored. Consider this, while teaching about heat, he placed a book on his head and moved back and forth on the dais in a demonstration of a molecule carrying heat, or consider his demo of circular motion with door and chair. And here is the best part, he could churn out an approximate answer to a numerical problem in just a couple of seconds. This useful technique of 'back-of-the-envelope calculations on-the-back-of-your-mind' has remained with us ever since.

He also taught us to value what is really important and ignore the rest. Unlike many other teachers he never encouraged wasting time to beatify your notebooks, what was important was physics (As a side effect of this, our notebooks resembled something written in hieroglyphs plus Linear B). Sometimes his talk ventured in philosophy, like the question of existence of god from the point of view of a physics teacher. But whatever be the topic, his exposition was always enriching.

Thank you, Sir.

Tuesday, January 1, 2008

A bit of folklore..

Along with the technology, I have always been interested in people who made things actually happen. The computing field is rife with folklore surrounding these influential personalities. Here I present some of the legends I have come across. (I am writing this from memory and don't remember the exact links, sorry).

As we all know, linux began as a project on a minix machine. So the story goes, one day linus' (creator of Linux) filesystem crashed taking with it a few days work. Linus being the uberhacker he is, fixed the minix superblock by hand, and recovered his data.

Seymour Cray (the creator of Cray series of supercomputers) once entered an operating system of his design, into a computer of his design, in octal, by hand, without error. So much for the Real Programmers.

As you might know, there is one particular 'make' (a Unix utility for building complex projects) feature that has bitten many of us. It is that the 'commands' line in a Makefile must begin with a tab. Now you can't just look and say this is a tab and this is a collection of spaces and it causes much pain. But when the original author of make, Stu Feldman was asked to fix this feature, he refused because he already had 10 users.

When Microsoft launched Windows 95, they paid a lot of attention to backward compatibility. As it happened, there was a bug in Simcity's (a popular simulation game) memory management code. It did not manifest on Windows 3.1 but caused Windows 95 to crash. Insted of making Simcity guys fix their bug, the Windows 95 memory manager switches to a different mode if it detects Simcity, so as to allow it to run without problems.

When Steve Jobs purchased a Cray Supercomputer and announced it will be used to design the next Macintosh, Seymour Cray replied, "This is strange because I am using the Macintosh to design the next Cray".

You can check folklore.org for more Macintosh stories.


Friday, December 28, 2007

Cool Sorting animation..

If you have ever taken an Algorithms/Data Structures class, you must have came across sorting algorithms. Today I stumbled upon this cool animation. I am sure you will much better appreciate the difference between O(n^2) and O(nlgn) after watching it.

Monday, December 24, 2007

What is Unix, after all?

Came across this amazing link, on Dennis Ritchie's home page. It's a collection of Unix ads dating from 1981. Just take a look, and you will realize that Unix (and computing) have come a long way. It boasts of 2000 Unix installations, and today we have millions of GNU/Linux installations, not even counting *BSD and proprietary Unix systems. It talks about supporting 48 programmers simultaneously, today's Unix derivatives support hundreds (and maybe thousands) of simultaneous users. It also warns that Unix comes 'as-is and with no technical support'. But this has spawned an entire industry of commercial support for Unix like systems and many a people have made quite a fortune in that niche (And you will also notice that there is no email address in contact information, no sonny, these are old days). Also notice the ad for 'Microsoft Xenix'. The love affair seems to have ended (if you doubt this, search for 'Halloween Documents'), but now after the M$-Novell deal, we may again see something of this sort.

But Unix has transcended the computing world, (ok at least the Unix name), just take a look at this. A bunch of disparate 'things', somehow named Unix. So you have Unix nails, Unix TV antennas and even Unix trash cans.

But you will notice this kind of variety in the Unix computing world as well. So we have Unix like systems that run on watches and Unix like systems running Supercomputers. No other operating system can boast of such a colorful history, and no other operating system has stood the test of time so well.

Consider all this and I am reminded of Neal Stephenson's words,

"Unix is not so much an operating system as an oral history."

Monday, December 10, 2007

The man who knew infinity

Just finished reading 'The man who knew infinity', a biography of the Indian mathematical genius 'S. Ramanujan'. Born in a poor south Indian family, with access only to a little preliminary (and outdated) mathematical literature, Ramanujan discovered theorems that have baffled the best minds of mathematics ever since. Comparable in originality to the likes of Euler and Jacobi and cut off from the latest mathematical research, he rediscovered much of the mathematics of the past century for himself and made profoundly original contributions in the areas of infinite series, partition theory and highly composite numbers. His notebooks are still being studied to discover hidden nuggets. So startling were his contributions that Hardy once remarked, "These theorems must be true, as nobody could have imagined them".

While in India, owing to his single minded obsession with mathematics, Ramanujan was unable to pass the degree exam and get a job. He mailed some of his work to British mathematicians (one of whom was Hardy). Hardy recognized the brilliance of his work and brought Ramanujan to Cambridge. And so began one of the most fruitful collaborations in mathematics. But after just a few years, Ramanujan had to return back because of his ill health and died at the age of just thirty-two. But in such a small lifetime, Ramanujan managed to do so much that one can't keep but wonder what if had he lived a decade or two more?

But apart from mathematics, what he (IMHO more importantly) did was, give confidence to the youth (and in particular Indian Youth), that you can make it against all odds. And you don't have to barter your Indian-ness for success. Generations of mathematicians and scientists all over the world took inspiration from him, which include such luminaries as Freeman Dyson and Nobel laureate S. Chandrashekhar. Where Indians were once looked upon as too backward to achieve anything, he set a shining example.

But his life is also a word of warning, had Hardy ignored him just like almost everybody else, how much would that have cost us? His work in the realm of pure mathematics, that might seem (to some), useless in 'real life', has found applications in diverse fields ranging from crystallography to cryptology. But what about todays Ramanujans? How many are being pushed in obscurity by mindless bureaucracy? That one question is sure to bother us all.

Monday, December 3, 2007

A weekend (well???) spent..

Last weekend slipped through my fingers like sand, had a lot of things to take care of, but managed to get some longtime pending work done (which is unusual for me on a weekend).

So here is what happened..
Fri 7:45 PM
I am just back from work and thinking of taking a nap. But I have a party to attend. I am not very excited at the prospect of getting out of the bed, but hey, its a chance to meet old friends.

Sat 10:15 AM
Ohh S*it, we have to move to a new place today and we haven't even yet packed our .., err stuff. Wake up everybody, miles to go before we sleep (again).

Sat 11:43 AM
It seems like eternity since I am packing these books. But on a positive side, I became pretty good at tying 4-5 books together in a bundle using a thin rope. Then I realize why Henry Ford was so successful with the concept of Assembly line. People really get good (but also bored) by doing the same thing again and again.

Sat 1:03 PM
Where is the tape? (In case you have forgotten, duct tape is a very important part of life. It holds everything from broken toilet windows to wires in your hand-assembled-positronic-time-machine together (maybe it also holds the universe together, who knows). To know about many other important things in life (like towel) read h2g2)

Sat 3:17 PM
Finally at the new place. A quiet, residential neighbourhood. And BIG rooms. But the kitchen tubelight does not work. Gotta talk to landlord.

Sat 6:42 PM
Since time immemorial I am postponing the purchase of a new hard disk. Today is the day to do it.

Sat 11:37 PM
Sabayon managed to f*** up the partition table, time to reinstall..

Sun 12:00 AM
Happy Birthday Anna.

Sun 2:23 AM
What has happened to linux distributions? My debian DVD won't work, and fedora is unable to start X-server after full installation.

Sun 01:12 PM
Unable to sleep, I am at Crosswords. Found 'The man who knew infinity', a biography of the great Indian mathematician, S.Ramanujan. I will be busy for a few days now, my friends.

Sun 03:40 PM
At home, I am very tired, need some sleep. The reinstallation did allow me very little sleep last night.

Sun 4:00 PM
Here comes the electrician and there goes my sleep. But no choice. Let the drilling begin..

Time Unknown
What is this trr, trr. And (to my horror) I realize its my alarm clock. It shows the day as Monday (but to appreciate the horror you must be an IT engineer). But I have very little choice now. Gotta get ready for work. Hope next weekend will arrive sooner.

Disclaimer:
The timings mentioned above are entirely made up and present only for the effect.

Thursday, November 29, 2007

On Slashdot, with Love..

If you are someway related with the IT field, chances are you have already heard about slashdot. And chances are also that you have already made your (possibly negative) opinion about it. The official line goes 'News for Nerds, Stuff that matters', but it is more than just a technical news site. More than the stories themselves, it's the comments that appeal me. Some of the heavyweights from science and tech. and IT frequent the discussions and hearing (reading actually) their opinions is a pretty enlightening experience. But you will say, this happens on every newsgroup worth its salt out there, so what makes slashdot special?

The important thing is that slashdot has evolved a whole culture around it, with its own slang and style (e.g. consider this sentence, "foobar.com was slashdotted", which means after the foobar.com link appeared on slashdot, the massive traffic generated caused a server meltdown at foobar.com). Comments cover the whole spectrum of attitudes, from witty to sarcastic and from insightful to downright flaimbait (but this is the nature of cyberspace). And the most funny thing are the polls, with must-have 'CowBoyNeal' options. You can't post anonymously, but as 'Anonymous Coward', and on the polls page, you get the warning "This whole thing is wildly inaccurate. Rounding errors, ballot stuffers, dynamic IPs, firewalls. If you're using these numbers to do anything important, you're insane." It just can't get any funnier than this. Slashdot also has its own form of social networking, on other sites you have friends and fans but here you also have foes and freaks. And if you don't have a fan, you get the message "You are either loved by all, or just invisible."

Some people (correctly) point out the incorrectness and somewhat sarcastic nature of some of the posts (some of the comments about Outsourcing to India really got on my nerves), but what needs to be remembered is that it is a human gathering. As in any other human affair you will have opinions, and some of them wrong (well, at least from your point of view). It just can't be eliminated (and if done so, it will take the fun out of it). So I am going to keep reading it (and having fun) in the near future.

Here is the link
http://slashdot.org/

and for some the best comments posted on slashdot
http://seenonslash.com/

and hey, hey remember "My UID is prime". :-)