Thursday, December 14, 2006

Get your Drain OuT....

When we think of a building what comes in our mind is a four walled structure comprising of Master bedroom, hall, kitchen, balcony and so on...
But do we miss to place the drainage system right! ?

The answer is NO! We don't. Its crucial for a building to have its drain gets out through.. and it is never missed, its one of the serious things thought in planning of the structure.

Same is the case with the Drain in a software application. When it is built, an atmost care has to be taken as to how the inside drain is washed out.
What I mean by drainage are few simple things, like handling exceptions or returning an error code. It can even be making proper use of functions returning Success/Failure.

I have seen and interacted with many Developers who don't pay much attention to this crucial stuff, and end up implementing a good algorithm with a BAD drainage.

It has to be planned well before getting your hands on coding...
The way exceptions will be handled, how they will be handled,
which Abstraction will handle which exceptions.
Who will return an error code,
what error code,
to whome,
wht will be done when it is received.

All these questions have to be answered while designing a piece of software.
I know this may sound very amature and you might say that this all care is taken .... but NO! very rarely I have come across such application where I find a good implementation of this stuff... blame it on my tiny industry experience.... but thats a fact at my end.

And .....it has taught me well enough to take care of DrAiN in MY Building...

Tuesday, October 17, 2006

Shayrana Andaaz...( II )

Following are few ones I composed last night....I hope you will like it..
Any suggestions on thr improvement are Welcome.. (Its open source..) :D


koi bujhaye na bujhe....
ye shama kuch aisi hai.
Sard main ped par thehra akhri patta..
dil-jale parwane ki halat kuch waisi hai.
Ae-Shama...kyun hai to itni magroor....
ki tuzko uspe taras bhi nahi hai.
kya uski ye be-intehan Mohobbat....
bas tere daman main jal kar ghutne ke liye hai ???

nazakat ki nazakat, nazakat se hoti hai
is nazakat ko nazakat se nazakt banaye rakhiye..
kahin yahi nazakat, nazakat-e-nijaaz ki nazakat na ban jaye...

badi muddat se sambhala tha apne dil ko is Ashiyane main..
badi muddat se sambhala tha apne dil ko is Ashiyane main..
Ashiyana to kab ka bikhur chuka...
ab hum apne dil ko dhoondte hain..
kahin wo aapke pass to chala nahi aaya...

kya gunah kiya ki aaj yahan hoon main..
kyon kiya ki ye takleef seh rahan hoon main..
jinki wajah se hai.... unke liye to mehroom hoon main..
Shayad khuda ko bhi yun hi manjoor hoon main..
aur khamaka unki aagosh ke sapnon main mashgool hoon main..

Suhel..

Wednesday, October 11, 2006

Athvan ...

Ho..
Aaj mala athvan yet aahe...

'mi' mhanvoon ghenarya RAJPATH chi...
'mi ithech rahnar' ashi ichchashakti balagnarya Vella Bench chi...
'mi digital aahe' asa ghemend rakhnarya Library chi...
'mi pan tumchya gappa aiknar' asa miskilpana dakhawnarya Post Box chi..
'Sakal zali..breakfast la yaa' ashi baang denarya Canteen chi..

Ho..
AAj mala athvan yet aahe...

'mazyavar kai ata olympic khelnar kai??' asaa prashna vicharnarya basket ball court chi...
'maza mouse tuch chorlas..' asaa aaroop lavnari ti lab madhlya computers chi...
'aaj mi karandak jinknaarach..' ashi khatri rakhnarya Purshottam chi...
'Pariksha javal aali ..abhyas kara..' asa datavnarya tya PL's chi...

Ho...
AAj mala athavan yet aahe...

Mazya hostel chi...
Mazya pustakanchi...
Mazya savangadyanchi...
Mazya terrace warchya gappanchi...

Ho..
AAj mala athvan yet aahe...

tya bike's warchya rides chi...
tya door honarya mitranchi...
tya tekdivar chya mandirachi...
ani tya don aashru bindunchi...


Ho...
AAj mala athvan yet aahe...
AAj mala athvan yet aahe...

Friday, October 06, 2006

'!'......Where is it??

I have already written here abt the intellectual capacity of G.
here is one more such "KISSA"..

Yesterday I had taken leave to the office...
G had some things to take from my Comp.
Now being a true engineer I keep my workstation computer password protected...
So he wanted to know my password.
G called me up..
"What is your password??"

Being a company policy, I had to keep one special character in the password, and that special character in my 12 character long password was '!' mark. When it came to the '!' point, I said,
"Sir, press exclamation"
"Where is it??" comes the reply.
knowing the limited knowledge of this guy, I said.
"Press Shift + 1" Every person who has made even a minimal use of computer can knw wht does this means....but with G.....you can expect the weirdest thing of all...

G was trying to press Shift + [ 1 from numeric pad ]

I was about to faint.... :(

Tuesday, October 03, 2006

Shayarana Andaaaz...

Few Shayaris I love...

Hazaaron khwaaishen aisi ke har khwahish pe dam nikle,
Bahut nikle mere armaan, lekin phir bhi kam nikle.

Nikalna khuld se aadam ka sunte aae the lekin,
Bahut be aabroo ho kar tere kuche se ham nikle.

Magar likhwae koi usko khat to ham se likhwae,
Hui subah aur kaan par dhar kar qalam nikle.

Mohabbat mein nahin hai farq jeene aur marne ka,
usi ko dekh kar jeete hain, jis kaafir pe dam nikle.

Kahaan maikhana ka darwaaza Ghalib, aur kahaan waiz,
Par itna jante hain kal woh jaata tha ke ham nikle.

-------------------------------------------------------------

Dil-e-naadan tujhe hua kya hai?
Aakhir is dard ki dawa kya hai?

Ham hain mushtaaq aur woh be-zaar,
Ya Ilahi yeh maajra kya hai?

Jab ke tujh bin koi nahin maujud,
Phir yeh hangaama ai Khuda kya hai?

yeh pari chehra log kaise hain,
Ghamza-e-ushwa-o-adaa kya hai?

Shikan-e-zulf-e-ambrin kyon hai?
Nigaah-e-chashm-e-surma sa kya hai?

Hum ko un se wafa ki hai umeed,
Jo nahin jaante wafa kya hai..

-------------------------------------------------------

Koi umeed bar nahin aati,
Koi surat nazr nahin aati.

Maut ka ek din maayen hai,
Neend kyon raat bhar nahin aati?

Aage aati thi haal-e-dil pe hansi,
Ab kisi baat par nahin aati.

Jaanta hun sawaab-e-taait-o-zuhd,
Par tabiat idhar nahin aati.

Hai kuch aisi hi baat jo chup hun,
Warna kya baat kar nahin aati.

Daagh-e-dil gar nazr nahin aata,
Bu bhi ai chaaragar nahin aati?

Hum wahaan hai jahaan se hum ko bhi,
Kucch hamaari khabar nahin aati.

----------------------------------------------------

Phone Call..

It was friday evening...my mood was good as it was goin to be the beginning of a new weekend...had the exact feeling like a kid who has just discovered a box-full-of-chocolates under the couch. we guys ( me and A) had gone out.. to watch a movie and had dinner in a classy restaurant. We were back at around 11:30.. I was ready to go to bed...It was then that my cell phone started ringing....I wished to see some other name on the display...but I was unlucky..

It was her call...

Tuesday, September 12, 2006

Weird ...

It was Saturday Night. Me n two of my flatmates were running back to our flat in the hope that our guest of the night might not have arrived..
We came with all the things we wanted to make the party rocking...CD's, props and everything that is necessary for the party. Everybody in my flat has asked their friends to join the party, most of them were our colleagues in the company. People started coming at around 7:30 and the party was getting into mood by nine. Drinks were getting served, our little dance floor was getting overcrowded and the Music was rocking...

Then the time arrived when everybody (exausted frm the dance) started to feel, what we call in hindi "Pet main chuhe daudna". It was then that we three realised that we have forgot to pick up the dinner order....It was no time to scream or panic. It was time for the action.

Mr. V ( my flatmate), smartest amongst three of us, got up from his seat went into the kitchen and came out after 5 minutes and whispered into my ears
'I have orderd the Dinner'
'How on earth did u manage to do that, its 11:30 ', I said with a Big question mark on my face.
'Internet Magic' He said with his usual proud expression
'but who is gonna deliver u at this time?'
'No one'
'No one?? What do you mean, No one?' I was getting angry as I thought he was making fun of me but I was curious on the other hand to know if he has actually managed to do that.
'Can you please explain to me Mr. Smart ??' I insisted, without making it sound like an idiot.
'The dinner.....' He said with a long pause at the end, 'Is going to get downloaded in couple of minutes'.

I sprinted towards kitchen to find out our kitchen crockery n stuff being replaced by this Computer. Which btw looked like 1973 Server machine ... which was somehow connected to the giant cpu like box having water taps and on top of which it had this circular opening...

It was no time to think how this machine landed in my kitchen. I was busy with my flatmates collecting Dal and soup from the taps ( which looked like water taps) and Roti's coming from the circular opening above the machine...

I thanked Mr. V for having this all arranged without which our party would have got spoiled...
While taking a hot soup bowl towards one of my friend somebody thought I would look funny lying on floor with the same bowl getting all empty on my head. Which encouraged him to put his leg in my way and in no time I was lying on the floor. But there was no bowl, no soup, no music, no crowd.........

I realised everything when I reckoned my left elbow hurting and my right ear going red...
I had fallen of my bed... ( now don't ask me how I managed to hurt my left elbow and right ear)

It was ALL in my dream... (checked my kitchen to confirm this)... :)

Some people say Dreams are the mixture of emotions and things that happened in that day..
I guess it was all because of my boss forcing me to think out of the box, to think in an innovative manner...( Though he never does that by himself...)....
It was just Food downloading Dream...God knows whats gonna be next...

Monday, September 04, 2006

GL Furry...

I will refer to my GL as G


few days bak...G's bag got locked somehow..( his usual black one...)

And this bag happens to have a number lock with two number rings having 0 to 9 on it..

apparently G did not know the combination to unlock it.
So he asked me how many combination will it take to try.
I said...100 ( as there are two rings to be rotated each having 10 numbers on it makin it 00 to 99 ) .

G started to argue with me that it will take 200. I was stunned....as to how this man came to this absurd conclusion.... I asked him for an explanation..
This is what he said to me....

' Rotate first ring to mark zero, then rotate second ring from 0 to 9, this will make 10 combinations.
now, set first ring to 1 and rotate second ring from 0 to 9 this will make another 10 combination.
Likewise setting 1st ring from next 2 to 9 will give us total of 100 combination....'
I said ' you are right sir, but how 200??'

He said..."Simple, now instead of first ring use second ring to set to zero and rotate first ring from 0 to 9, continuing like this for rest of the numbers on second ring will give you another set of 100 combination.
Adding, first 100 to second 100 gives you 200' :-0 :-0

It was so difficult for me to control my laughter...that I had to move out of the cubicle and not return for another half an hour..... later I had to make him sit and explain that what he was talking about the combination of two set of 100 actually make one set and the other is just the replica....

so, now u c...how genius G is.....

hats off to such a great person..

I know you must be petying on me to have such a person as my boss...
but I guess everybody has such a moment in their life ... after all who doesn't like to laugh at thir Bosses... ;)

Tuesday, July 25, 2006

Riddiculous

Now....why would government want to ban on Blog...??
It was said from the officials that, some terrorist groups used blog to communicate....
Give me a break...!!!
Blogspot is not the only one to provide with free space to blog around...
and even a kid on the street knows this... so, should we say these so called, "Experts" sitting in the government offices are dumb witted ?
I guess so...

The only word that comes to my mind now is ...RIDDICULOUS...!!

Tuesday, May 30, 2006

Problem Zone..

12:00 O clock ....and I am still in the office...scratching my head ...desperately trying to find solution to one of the problems.....
I never understood why these problems have to come up at the last moment...
Yesterday I was ready with all the functionalities working properly....I thought I have tested my work enough...closed all previous bugs...but the moment the release time was announced....few issues came up....n to make the matter worst....they were of the CATASTROPHIC....category.....
...
I think I should get bak to the code....otherwise...I won't be alive to write nymore of such stuff...

Saturday, April 15, 2006

Mrityunjay

I love Marathi...
Everybody has always wondered, how come I speak Marathi so fluent???
Born n brought up in a Muslim family with Hindi speaking people around...studied in English Medium...but still I love marathi...then any other language.

I started reading Marathi novels when I was in school. Since then I have gone through many of the best writers in Marathi like PuLa Deshpande, Madgulkar, Shivaji Savant ...and many more. But my ever time best book has been Mrityunjay by Shivaji Savant, Biography of Mahabharata legend, son of sun, Karna.

The language in the book is a bit sophisticated with many "alankar's" used, but it is still so easy to understand. The chapters describing Karna from Karna's point of view, Kunti and Duryodhana are best.

I always use to wonder why Karna was friend of Duryodhana inspite of knowing that Duryodhana was at the side of ADHARMA. But after reading Mrityunjay I understood the real meaning of Mahabharata. No one is perfect. Everybody has done some or the other mistakes in their lives. There is always someone superior to you but every superior does not always get what he deserves. There has to be a compromise in life at one point or the other.

Karna was Best in every field but still he never got the respect which he deserves only because he was a son of Sarathi ( one who drives the Rath). All the credits went to Arjuna always and Karna use to get furious but he could do nothing. Dronacharya ( guru of pandava's and Kaurava's) never looked at Karna, never taught him anything by himself. It was karna's dedication that made him what he was. And at this stage only Duryodhana supported him when everybody was criticizing him and since then Karna has always been with Duryodhana supporting him.

Everybody is aware of the story where Arujuna said he could see only the eye of the parrot on the tree and was allowed to shoot the arrow by Dronacharya. This exercise was carried out in full day light. But very few know that Karna on the same night did the most spectacular thing which even I doubt if Bhism could have done at this age. Karna brought the same kind of parrot and tied it on the tree at the highest branch and asked his brother Shon to take up lantern on the tree. He then fired two arrow's at the same time in such a way that, the first one hit the visible eye of the parot which made it rotate and the second arrow hit the other now visible eye. Such was the Karna.

There are many such stories of Karna's legendry, heroic events which go unnotice in the limelight of Pandava's who were actually younger brothers to Karna. Such was Karna the ultimate legend.

The book gives us to notice the unnoticed....
I am sure you will start loving the book once you start it....not only because of karna's story but for the way it is written and put up the struggle of Karna..

Sunday, January 15, 2006

My First Blog

Well...
here goes my first blog...

I was thinking of creating blog since I left college...and finally I have made it.... :)

I will keep on writing...