Wednesday, September 29, 2004

Newton's Laws of Graduation

Stumbled upon this on phdcomics.com ...

Netwon's Laws of Graduation

Observation: Laws hold for Post graduation and graduation studies as well.

First law:
Well ?! will talk about it later ...
Second law: Reminds me of dayz when I was writing the adhoc networks paper with Sanjeeth and Edwin. I guess it took more than a month to complete. But lets not try to work the law backwards to get an idea of our motivation. It was anyway a `weak reject` much to our dismay.
As for Third law: Distractions outnumbered each of my actions by a factor of atleast 10. So it holds `in-principle` but for the `equality` part.

............sure gives an idea of how difficult LIFE is...
Here I am, despite all odds !!!

Tuesday, September 14, 2004

The Nutty Professor

I've studied and worked under some of the most erudite professors in academics. Most of them being inspiring and influential.
But my experiences with Professor "Nutty" are the most unforgettable.
No doubt I've learned a lot from him. The way he talks, the way he carries himself, his self-confidence, his practical outlook, his optimism, his collectivist theories, his bottomlines ...
I guess, I'll run out of space.
Here are some "Gems of Wisdom" by the Professor
Myself : Sir, It seems this time almost half the class has enrolled for your subject ?
Sir(admittingly) :Yes Praabeer. Apparently they think I give good grades.
Myself(covering up): Probably they are interested in the subject as such Sir.
Sir(arms akimbo) : C'mon yaar Dont tell me I teach well.

Myself : Sir, somebody asked the salary figure "again" in the PPT.
Sir(disgusted): TELL THESE GUYS WE ARE NOT HERE TO CLEAN THEIR SH*T

Myself : Sir, this company is not giving the appointment letter and its been a long time.
Sir : Mr Praabeer, Mr Praabeer, Do u want me to force the HR to SH*T in his pants ?

Myself : Sir, Why cant we ask companies what salary will they be offering before giving them a date in the placements ?
Sir(smiling sheepishly): Excuse me for saying this, and there is a lady sitting here ... Mr Praabeer, You should NOT talk about spending night on your first Date !

A Student : Sir, My Company is going to be taken over by some other company. This is making me unsure about the eventual conversion of internship to job.
Sir : My Dear Student, You cannot stop driving if there are accidents on the ROAD !!

Myself : Sir, some people are down because they could not make it in the interview
Sir(with a smirk which almost touched his left ear) :
Listen guys, Today, is the first day, of the rest of your life. Thats all I want to tell all of you.

Myself: Sir, Some people have issues with their remuneration.
Sir : Mr Praabeer, Mr Praabeer, Are you telling me, Are you telling me, that I should talk to each individual company and ask them to raise the salaries ? Let me tell you I'm like a priest, I'm like a priest. My job is to bring the spouse together, the terms and conditions they shud decide between themselves.

Sir(looking at me from the edge of his eye):
Mr Praabeer, It seems some of your batchmates have switched jobs ?
Myself : Yes Sir. They were getting good offers so they went for it.
Sir(sighs) : You guys behave like prostitutes. Paanch rupiya zyada diya to usko chhor ke tere saath chaloongi.

Sir (shouting in fury) : Prabeer, This guys needed a provisional degree certificate for company formalities.He calls me at 9pm in the night and asks me when can I give him the provisional degree ? You tell me AM I A PIMP ? AM I AA PEEEMP ?

Anthro : Sir, This company was expected to pay much more than what they're paying now. What happend ?
Sir : Man they were ready to pay much more. I made them reduce it.
Anthro : Why Sir ?
Sir : Yaar Koi aadmi mercedes main baith ke tumhare ghar aaye fir tumko impress karke tumhari ladki se shaadi kar le. Fir tumhari ladki ko pregnant karke chala jaye to tum kya karoge ? -- Contributed by Anthro
To Quote Unqote "Cut the long story short", I learned all the "DONT'S" !

Friday, September 03, 2004

VIM: Capable of doing Anything, Everything and More.

I've been using vim for more than 5 years now.
And, I've been learning vim ever since.
I just came across this taglist plugin of vim. Now vim even looks like an IDE ! I remember, the first time I saw this build-edit-rebuild feature I was flabbergasted.
vim test.c
write some erroneous C code
:w
:mak test
then just doing :cn u can jump through the line of code having next error. Likewise :cc for current & :cp for previous error.

I think I saw GOD that day.
Here are some vim features I cannot live without. But, If this is the first time you're trying any one of these, today is the day of your enlightenment. Faint hearted dont gulp it all at once !
Shift K for manpage on the text under cursor.
:set smartindent - makes life easier.
% - to match the brace. >% - on a brace '{' right indents.
* - search for word under cursor.
:Ex - for file explorer in split window.
Ctrl ww - to switch between split windows. :res N to resize the focussed window to n lines in split window mode.
gd & gD - for goto definition of the word under cursor in the current function and current file.
:r filename - copy entire file at the cursor position.
:e filename - edit another file(current file goes in buffer)
:ls - list the files in buffer and :e#N to goto Nth file in the buffer
:Nsb - open Nth file in the buffer in split window.
gf - to goto filename under cursor in the current directory
ma - set a mark at this line and name it a then 'a to goto mark and y'a to copy text from between current cursor position and the mark.Likewise mb, mc, mA, mB, mC etc for more marks.
Ctrl n - (in insert mode)for word complete.

Call it serendipity that I stumbled upon the cscope plugin while trawling aimlessly thru web. Believe me, its a life changing experience. I wonder if this will ever end.
I haven't still tried ctags,key maps, registers, gdb plugin,cvs plugin the list goes on and on and on ...
Its impossible to even know all of what I dont know in vim.
By the way if you are lost, vim will help you with 'the answer to life,the universe and everything'.
Try these, its fun ...
:h 42
:h holy-grail
:help!

... and some people still say emacs is better ? I found this ...
Emacs is a nice OS, but it lacks a good text editor. That's why I use Vim.
Ditto.