Sunday, December 31, 2006

Quote A Day Widget For Blogger

Quick quick, i have to take bath n go to the temple. The title says everything, i need not elaborate on what i am gonna write. Ok, why am i wasting time writing this.

What it does?
Displays random quotes on your blogger page.

Got the idea from?
This and this. I dowanna debate on who came up with the idea first. Its obvious that you guys also got the idea from somewhere else.

Advantage over the above ideas
Any number of quotes and no hard coding of the quotes. You can change them on the fly with some effort.

Some extra network bandwidth is utilised each time it is displayed. Not too much. Depands, if 100Kb is too costly for you.

Things to do first

* Go to your blogger account settings page and enable full feed. By default, blogger gives only the first para or 256 chars. Change this settings to full feed.

* Create the quotes file with quotes in it. Quotes should be delimited by "%".e.g file contents below.

mary had a little lamb and it ran away
Where did the lamb go?
Who are you to ask? It went its way!!!
This should be enough for you to know the quotes file format.

Note that, "%" should not appear before the first quote and after the last quote. This can be handled in js but i am bit lazy now to do it and got lot other work too.

* Create a new post, go to the html view and paste the contents of the quotes file there. Publish the post. If you dowant the post to appear on front page, change the post date back to your school time.

* Go to the quotes page and copy the post id form the comments link. e.g :

Red coloured number is blog id and blue coloured is the post id. Make a note of it.

* Add a page element to your template and add this js code where you want to quote

<script language="javascript">
function displayQuote(root) {
var content = root.entry.content.$t ;
var quotesArray = content.split('%');
var index = Math.floor(Math.random() * quotesArray.length);
var quote = quotesArray[index];
var d = document.getElementById ("quotesDiv").innerHTML = quote;
<div id="quotesDiv"></div>
<script language="javascript" src=""

Wait, dont close the widget editor. Replace DDDDD with your blog id and OOOOOO with your quotes post id.

* To add flavour, add css for the quotesDiv if you want.

* Next time when you want to change the quotes, just edit the post and change the contents and republish it.

You can see it working. I followed the same steps. Still if there are any typos, let me know.

Cool!! I like that.


Friday, December 29, 2006

mistake repeated

I am feeling miserable, sad, down, low, like kicking myself. I did a mistake and it costed me 1 full day. I had committed a similar mistake some time back and had costed too much. This time it was 24 hrs and the extra frustration that i will get now. Ok.. will try to minimize it. What is the mistake? Dint read between lines. May be my hormones were too much excited that i was not able to get it right. I had to write a simple client for blogger. Just a test program to post to atom using Apache Abdera. I found this post of James Snell showing how to post to blogger using Abdera. After looking at the java code, my thinking was : " ok... use google api to login to google and then create an entry using abdera and post...". I got this because there is this code :
 Client c= new CommonsClient();

// Get the authentication token
GoogleLogin login =
new GoogleLogin(c, "blogger"," my@email.address","mypassword");
String auth = login.getAuth();
auth = "GoogleLogin " + auth;

// Create the entry that will be posted
Entry entry = Factory.INSTANCE.newEntry ();
entry.setUpdated(new Date());
where you can see a class by name GoogleLogin. Apparently, this seems obvious that its from google api, rest is abdera. Fine. So, i started to hunt for gdata api. Co-incidently or my bad luck (plus few others still shouting in google groups) the download link for gdata api zip file is broken(even now). I sent a urgent mail to my bosses. Even they tried and the same happened. Then i thought of asking my friend who is in US (online right now), Nitin, to download and mail me. (I got it just now). I was soo relieved that finally i got it till i found that the class is not in gdata. Then where is it? Going back to the post, i read it once again. Not the code, but the text != code. I read this line twice, thrice : "It's fairly simple to create a new post using the APP client in Apache Abdera.." to realise that abdera has some handy class to talk to google!! By that time Nitin came back to his office after getting some food n asked me if i got the file. I was in a not so happy mood as i screwed myself for a day. However i thanked him for that, coz i know how desperately i was looking for the library.

Ok... so where is the mistake? Mistake is :

Read the accompanied documents properly and expect the unexpected (like a cow sneezing mangoes/abdera having google login support)

Will sleep now. Its 2:06am. No, will post this from my atom client!! WOW!! Great idea. Wait....

Update: I was not able to use the abdera to talk to google. Had to use gdata. It works fine. Tested it yesterday night. It was good to see things working.


Thursday, December 28, 2006

Party with giri n college snaps

Just now came home from my evening C/O place. My friend giri has come. We went to our college, took some snaps there. Our classroom is now upgraded/degraded?? to staff room. Some sports center is also started. Notices here and there. Some students have written "beware of sem 1...". Some have put up the danger sign which usually appears on electric poles. It was a good college until we passed out ;) All the kids have become freak now. I know most of the people will say the same " when i was there.... it was so nice...", so am i :D. Others who dont like it, please excuse, its my personal opinion. Then we came to Ajanta.Had noodles, manchuri and tea. Talked to giri a lott! Also pinned him to get my RAM exchanged with one of his dealer friend.

That's Giri... (kya re....)


College library...

Some note on the college door..

Elegant Ajanta plate....

Giri got a call from his home, hurrying up....

Once upon a time, there was a classroom, on the first bench used to sit these guys: yogesh n girish. Then the classroom turned to staff room ...

Computer lab..

Giri and the newly constructed school in the backdrop...

powered by performancing firefox

Tuesday, December 26, 2006

My Pharmacy, inspired by dad

My dad has a habit of keeping every small note written or anything just scribbled on. Most of them all, he keeps all the medical prescription. Prescription in the sense, just the tablet name, nothing detail. Some given for tooth ache, other for joint pains, like that. That too, he just goes to the medical shop n tells the person there to give some medicine explaining him the problem. After some time, he does not even remember which medicine is for what purpose. He just remembers, pink note for cold, white one for joint pains, this is joshi's handwriting, its for tooth ache etc. Some time back now, me n mom came up with an idea on this habit of dad. A personalized pharmacy. We start with an empty shop. People come with their prescription. For every person, we allot some space big enough to store the prescriptions for 1 year.We then order the medicine(initially get from the nearby shop).Every person's account is maintained as is done in any bank. Well done. All medicines of all the customers are available anytime. A ATM(Any Time Medicine) machine is also available. Swap your card, select your prescription based on your hints stored, collect the medicine n leave. Though we dont force you to leave, its your wish. Advantages are that the customer can be carefree for his medical needs. He feels good that he owns his own pharmacy(btw, pharmacy name is my pharmacy) n from our point of view, we order only what is required + some error margin. Some kind of statistics has to be used to get the correct figure. Ok. We are all set to put it up. Hey, look out! We have an ATM just beside your house ; )

firefox tip

If you want to open some link in a new window, press shift + click. I found it interesting when i wanted to open some(maid has come... will take bath and come she has some work in bathroom...) bookmarked tabs. I already had many tabs opened and i dint wanted to open more as the tabs currently opened were belonging to a category and i dint wanted to mess up with the other tabs. So i shift+clicked the open all tabs in the bookmark. It opened all the tabs in a new window. Thats cool!


OMG!! this is too small ... :(

Why cant there be uniformity. Though the web runs on strong standards, some things are not done right. Now dont ask me what is right and what is wrong! Ask shresh, i can eat ones head and still chase all the endocrine system. hahahaha....

test failed... :(

Ok, text is not justified and font is not "small". Let me try this size...


new blogger is cool

Just now i upgraded to the new blogger. The best feature i liked about it is the adding and deleting page elements. Before this everytime i used to change the template i had to edit the layout. So i had sticked to only a one template for a long time. Now with this templatable dnd interface, its a breeze. Also these days i am concentrating more on the usability aspect. Got to deliver a product by jan 5! Will i be able to do it? Ummm.... dunno. You never know.

BTW, the ajaxified blogger is using google ajax toolkit or some other :-\ ... just out of a curiosity...

Oh! I am blogging from gmail, and gmail does not let me make the text justified :( Dunno about the font size also, what is small to gmail may be big to blogger and vice versa. As long as they are internally using font-size=small | small-x, lange, large-x (pure html right?) then no problem, but if they have their own definitions fro small and big... then i got to figure out some way. Lets see....


Wednesday, December 20, 2006

tit bits

Its only a matter of seconds to tell how much you love, but a lifetime to really mean it. - ME

Some things never change as if they never end. May your love for your love be like the latter and the above - TM

Dont go through life so fast that someone has to throw a brick at you to get your attention! God whispers in our souls ans speaks to our hearts. Sometimes when we dont have time to listen, He has to throw a brick at us. Its our choice. - From a short story that appeared in TOI June 6 2004

A foolish man proclaimeth his qualifications;
A wise man keepeth them secret within himself;
A straw floateth on the surface of water,
But a precious gem placed upon it sinketh. - Subhashita Ratna Nidhi.

A nice poem
You stayed in my heart all these years
And shared with me, my laughter and tears
You shared my dreams, my heart.
I always wished that we were never apart.
You shared with me, when I was in pain
Moments I spent with you were never in vain.
How many times with you, I did fight
And you took it all so light.
You let me know what life realls is.
To me, you were an angel bringing bliss.
But today, I'm in pain
I wish you'd be with me again,
You are the greatest gift I ever received
O Friend! Today for thee I grieve. - N Deepak Haitei, std 10A

Being defeated is often a temporary condition. Giving up is what makes it permanent. - Marilyn Vas Savant

Fame is a communuicable disease. - PJ O'Rourke

Fate brings you together ; but it is still up to you to make it happen. - Julia Roberts

I want to know God's thoughts. The rest are details. - Albert Einstein

A man is not where he lives, but where he loves. - Latin Proverb

When you realise you want to spend the rest of your life with somebody, you want the rest of your life to start as soon as possible. - When Harry Met Sally

We waste time looking for the perfect lover, instead of creating the perfect love. - Tom Robbinss

We are not the same persons this year as last; nor are those we love. It is a happy chance if we, changin, continue to love a changed person. - W. Somerset Maugham

Put your heart, mind, intellect ans soul even to your smallest acts. This is the secret of success. Swami Sivananda

Concentration is the key to results. - Peter F Drucker.

I could never have done what I have done without the habits of punctuality, order and diligence, without the determination to concentrate myself on one subject at a time. - Charles Dickens

The ability to concentrate and to use time well is everything. - Lee Iaocca

When every physical and mental resource is focused, one's power to solve a problem multiplies tremendously. - Norman V Peale

Friday, July 28, 2006


When we dream, we are not aware that we are dreaming. We feel its all real. Everything in it has life, everything is real. We do all that we do in what we call the so called reality. We cry, we eat, we smell, we feel the touch, we feel the pain.... we live in it. Its only that when we wake up, we see its all gone. We try to recall, we only have a faint memory. But we are soo real in our dreams. So is life, a dream. What we do at this moment, its gone. I spent some 15 minutes sitting in front of the editor. Its no more. I wont get it back. Every small action we do, every single moment we spend will never come back. When we try to recall, we only remember the moments that we adore the most or the moments of pain... etc. In reality, every single breathe we take is memorable. We dont wake up the same every morning. We dont brush our teeth the same way, the same direction, the toothpaste is not the same quantity.... it may be a new paste all together. Nothing is the same, things change, but the magnitude of change is very small. Its soo small that we hardly think about it. We use the same toothbrush for an year or so. The same soap, the same paste.... we wear clothes taken years ago. Do we see any change in them? just some threads come out, color is faded or something else. We dont see these small changes. We feel they are not significant for us. We only remember things that we feel have put a high impact on us, things, events, which change our way of thinking etc. But still, a great amount of change, is in very few people. Everything changes, nothing is stagnant. But the beauty of nature is that, if one thing changes, all other things around also change to adapt the change. This is how we have come al way long till here. See the way i jumped from dreams to changes. ok... all i say is, dreams are nothing but our life and vice versa. After a few years when i see at this blog, it will be a dream for me. The only difference is that we cant go back in dream and change things, or feel them once again. Everything happens in justa moment and we wake up. But after we wake up, we have time. If everything had happened that fast as in dreams then we would not have lived at all. There would have been no life. We can make dreams come true n live our dream instead of just cherishing it. Got many things but, no words. To write this it took me 1 hr....

Tuesday, July 11, 2006

June 22, 2006 03:15pm. Ajanta Backside Seating

OMG!! Many things happening around!! One thing which i can conclude is that the probability of uncertainty is too high, atleast around me i guess. I had written about the girl i was trying to run away errrrrrr, or take the other way around, trying to hide my feelings..supress.....i mean like her...or take in quotes "love" her.....I finally could not supress my heart and the good hearted yogi won over the cold hearted beast. I proposed her...i mean literally "proposed" her....told her that i love her and would like to be with her for the rest of my life...would like to have kids with her...would like to share all my rant with her...make her happy...listen to her....n all that happens in ones life. She said that she likes me, likes me genuinely, but does not loves me still :( well, i gotta wait for that :-? Actually i dint wanted to tell her that.....but i was kinda tired of fighting with my own self. I had to take a decision; tell her and let whatever happens or dont tell her and regret later. I chose the first option. Called her to my fav place where we hang around, and told her. I could not believe it!! Oh! c'mon, its not something you will do daily!! You do it only once, and i did it. At first she did not believe me when i said that she is the only female i have said it. Its because of my previous relations. BUT, there is one difference. First, in college, i dint know what i want. I was with that female daily....had common likings...frequencies matched i felt...yeah...i gotta be with her.... it never happened.... i never said her that i love takes a lott of guts, courage n thinking to say it to some female. It means a lott to her. Also you gotta say it only when you know what you want..... this is an important factor...knowing what you want, and this needs proper thinking.... Its not that you get married and stay for some time(some 2 -5 yars) and then say..honey...i am bored of you.... atleast not with me .. :( OMG!! I cant even think of it :-SS I never told the college female that i love her or anything.... we both liked each other...thats all. Then the relation with a female while working.... same happened here.... we both interacted on a daily basis.... frequencies matched... likings ...etc... (pp: your cat is troubling me.) Its 0403am...will write tomorrow.....even the sleepy cat fell sleepy..... both the cases, i liked them. I was not sure i really want to be with them. (I got a deep desire attack now!!!*) It usually happens at workplaces n college...when you interact with the same person daily, you feel you can be together happily. Well...thats pretty natural i feel. We all are humans after all n we all have a heart which is made up of emotions, feelings, sentiments, compassion. its not just a piece of flesh n blood!

This is remaining as a draft for a long time in my mail account. I am gonna publish it today. What to say, serial blasts in mumbai.... i am kinda tensed. My sister and jeeja stay in mumbai. Also some relatives. All phone lines and mobiles jammed. Right now i am not in a good state to write anymore. Had many interesting things... but, some other time if i remember.
This is published.

Sunday, May 21, 2006


This post is about what i felt some 10 years back...yes i was in school then. I had a habit of writing on just any topic. But since school is the time when we are usually curious about the opposite sex, love etc, most of my thoughts linger around these stuff ;) Some are in hindi and the others in english. Initially the hindi stuff is boring and might occur to you as some hindi filmy dialogs(as my friend said now) but they were as they came to my mind. Ofcourse, some words are stolen from the dictionary(i am not good at volcaburaly). Hindi thoughts are real boring to read, but i have put them because they meant really a lot for me at that time. So, however they sound, "i wrote them" and i have no complaints against them.

One important thing to tell is whatever you might read should not be taken personally, as they were/are my feelings, my thoughts and bear no resemblence to any person living or dead. Howzthat?? A warning!!

You are free to post comments, and typos if you find them(i am bored to read again and again).

Wealth is a wealth, to manage wealth we need health.
- yogesh

Sometimes love is a thing which loves you when your B.Account
is full and hates you when your B.Account is empty.
- yogesh

Sometimes love is a thing which loves you when you are a hero,
and hates you when you are a zero. "0".
- yogesh

Rok nahi sakyi koi devaar,
rok nahi sakti talvaar ki dhaar,
rok sakti hai pyar ki devaar.
- yogesh

Maine suna tha bado se ki kaam karna hai man se,
iseliye mai kaam karta hoon man se, aur schol ko ata hoon deer se.
- yogesh

gulaab ka phoo; ho tum, saajan ki goori ho tum,
chanda ki chakori ho tum, jaaneman mere khwabonki rani ho tum.
- yogesh

Doodh mai shakkar ke bina koi maza nahi,
usi taraha pyar mai mushkil ke bina koi maza nahi.
- yogesh

Bhavaronko phool ke ras ke bina koi asha nahi,
Usi taraha mere jeevan mai tere bina koi asha nahi.
- yogesh

Raat ko soota hoon khayaloon main tumhe dekh ke,
subeh uthata hoon khayaloon mai tumhe dekh ke,
shayad mai aya tha is duniya mai tumhe sooch ke,
aur is duniya se jaana padega tumhe paa ke.
- yogesh

Chehera hai chehera, phoolon sa chehera,
meri manzil hai wohi chehera,
woh chehera hai chehera (my schooltime crush) ka.
- yogesh

A fair little girl,
slim and fast,
tall and smart.
With a fine upright character,
coy, but not more, but some.
When she is angry, she is a rose with a thorn,
but when she is in a jolly mood, she is a rose
laughing in spring.
She is a girl with a fixed strong desire, and a fixed aim.
Who stood always first in our class.
Friendly to everybody, and lovingly to me(i think so).
Whenever i would see her, and to me she sees,
my heart would start beating so fast as if a man
with a lion on his back, but i feel relieved as if a
heavy weight has been lifted from my heart.
This is the result of all that because i live her.
I live her to dear as a bee loves honey.
I never expressed my emotions to her, i would,
but no more she is in our school.
And i pray to god to give me courage and a good chance to
express her my emotions and tell her just three words
of love "i love you".
What do you think, can i? guess her name, can you?
She is queen of my dreams ans i am her dear.
Gues!! Gues!! Guess!! She is...
- yogesh

Daane daane pe likha hai khanewale ka naam,
usi taraha mere khoon ke ek ek katare pe likha hai
______ tumhara naam.
- yogesh

Titalee pukare saavan ko,
mere dil ki dhadkan hardum pukare ______ko.
- yogesh

Yaad ati hai teri yaad ati hai,
akele mai jab soochata hoon,
pyar ki geherai mehasoos hoti hai.
Kyon ke maine pyar kiya hai yumse,
par kahon yeh kaise tumse, jab ki koi moaka na tumne diya.
Kahoon to kisase, kisape utaroo yeh dil kaa boojh,
jab ki koi aisa shaksa na mila.
Mil jaye agar koi aisa shaksa, jiske dil mai
mil jaye mujhe ek chota paksha.
Jaha meri dhadkan uska naam pukaaar sake,
jaha mere khoon ka ek ek katara uska naam nikhaar sake.
- yogesh

character of a being is a living poetry of itself.
- yogesh

Raatonki neend ho tum, ek phool ki titalee ho tum,
jaaneman meri aankhon ki chaandani ho tum.
- yogesh

Kisi kavi ki kavita ho tum, shayar ki shayari ho tum,
meri jaan mere jeevan ki charitra ho tum.
- yogesh

Dont take anything or a work or a duty as your career of life,
take it as a passion.
- yogesh

See a thing with a bad mind or bad thought and it will be a bad
thing and results bad. As the same see the thing with a good thought
and it will good thing and results good, sometimes bad,
depending upon your mind and way of thinking.
- yogesh

I wandered all over the world,
everyehrre in the world,
for everybody i asked,
for everything i asked,
whether they had found my childhood.
Those beautiful days of my child time,
when i had no tensions, no worries of the bad and the good.
Those spring days, when we were the flowers of it.
Where are those days, when only we awere and our play things.
Those beautiful days of wandering here and there
and if late at home to take scoldings and beatings from mom.
Those beautiful days of our cricket
when we had no worry of getting wet in rain and then suffer from cold
and come late ti school and take beatings from our teacher.
For those days are passed on.
As life is a moving train, in which one has to enjoy the scenes
of that present time and leave it back which never arises any time.
So, my friends, dont loose your precious time
for everybody has just one childhood.

Reach for the stars, reach for the stars
as you have to reach it, to become a star.
Have much hopes, have good hopes
never lose hopes, as hopes are the ladders to reach for the stars,
and good thoughts are the climbers(referring to the horizontal bars of the ladder)
Have hopes so as you may fulfill them to the stars.
Have hopes so as you may become an outstanding in the stars,
as the pole star.
Have hopes as it is the backbone of your life and a fulfulled hope
will help you to reach for the stars.

Have you thought of a thing which cannot be defined
nor be seen nor be touched.
Its invisible, its time.
Time is a thing which one cannot see it, but can realise it.
Which one cannot touch it, but can make use of it.
Which cannot be defined naturally but only be defined
artificially. As in one second, you are a beggar or a king,
and you maky become the opposite of it in just the next second.
As tiem can be defined by itself.
As time is as the waves of the ocean which never stops or
waits for someone.
For time is precious, save it and use it.
Because if you will kill time, time will kill you.

Jyot ho ek diye ki tum, jyot bankar rehena tum.
Apane jyot ki roshani se, sansaar ko roshan karna tum.
Jyot bankar rehena tum.
Tum jyot ho komal seedhi saadhi, is sansaar ki tum ho dularee,
par banna padega tumko pyaree, kabhi na kadhi kathin aur nyaree.
Jyot bankar rehena tum.
Woh jyot bankar tum rehena, jo roshan rahe aur rahegi hamesha.
Woh jyot banna tum, jo khud jalkarsansaar ko ujiyaara de kar.
Jo chamakti rahe ek chaandni ki taraha zameen pe,
aur sansaar ko sheetal kare apane vyavahaar se.
- yogesh/02/09/1996

Isaka hruday dukhana mat, yeh ek jeevit putala hai.
Isaki aanknen kuch dekh nahi saktee, jo inki roshani chali gayi.
Iski zubaan kuch bol nahi sakti, jo iski boli chali gayi.
Iske haath kuch kar nahi sakte, jo inki shakti chali gayi.
Iska dil dhadak nahi sakta, jo iski dhadkan chali gayi.
Aur sab kuch chala gaya, usi muskaan ke peeche,
doob gaya hai unhi aankhon mai, rang gaya hai usi gaalo mai,
aur isaka dil usake dil mai.
Yeh sab kuch churaliya usne jo ayi ek bahaar ki taraha,
aur dil le gayi woh jeet ke, aur loatayegi ek din,
jab dil jeetunga mai usaka.
- yogesh

Life is a simple poem, dont byheart it.
Just murmur it and you will be able to sing it and understand it.
- yogesh/13/09/1996

Love is blind, so you dont have to be blind,
as you have to be alert to protect your love,
as love is blind.
- yogesh/13/09/1996

He wo does not make any mistake is not an animal.
- yogesh/16/11/1996

Life is what a season resort,
for different seasons come across and go apart.
There is the childhood of joy which never comes again.
As a past time does not come again. So enjoy it.
Then comes the next season of teen age.
This is the part of your life when one has to control
himself and once taken a wrong step will lead the whole life
in a mournfull destruction. So control yourself.
Then comes the stage, important in your season resort.
As you have to choose a right hand ans a good shadow for you
which will follow you all the while even in darks and lights.
So choose it rightly as it is the last truth of your life.
Follow these truths as you will reach for the stars.
- yogesh/14/10/1996

I will tell you about somebody, you listen to it carefully.
She is tall, but not a tree, she is slim but not a fish.
Her hair as soft as silken cloth, her eyes as mild as deer eyes.
Her cheeks as white as spring clouds, her lips as red as roses red.
Her hands are soft as a linen cloth.
She is not a girl, she is not an angel, not she is a thing.
But yes! She is a living nature.
- yogesh

Life is to live and achieve something for somebody.
If not for somedoby, at the most for ourselves.
If not a luxurious life, atleast achieve somebody's love.
Of all the wonders of god has created,
the most sparkling and glittering truth is love,
which one cannot hide or darken it.
It always glitters and shines as it is an shining naked truth.
Very often it is found in somebody for someone.
For everybody has it in the deep corner of heart.
Where there is a place and affection for someone.
It arises as a volcano at anytime, anyhow.
So one cannot hide it.
Knowing it, one tries to hide it but cannot, as it is a sparkling truth.
Even in infants, in young, in adults or take even an old man.
It arises at anytime any age, from which one should not repel
against it. One has to accept it, as if not accepted he or she will not abe
able to achieve anything in his life.
If achieved anything, it has no value greater than love.
- yogesh/23/11/1996

Jaha bhagvaan hai, waha bhoomi hai.
Jaha bhoomi hai, waha jeev hai.
Jaha jeev hai, waha jeevan hai.
Jaha jeevan hai, waha manushya hai.
Jaha manushya hai, waha achha tan hai.
Jaha achha tan hai, waha swaccha man hai.
Jaha swaccha man hai, waha acche vichaar hai.
Jaha acche vishaar hai, waha sacche maarg hai.
Jaha sacche maarg hai, waha ounche aashaye hai.
Jaha ounche aashaye hai, waha kathin manzil hai.
Jaha kathin manzil hai, waha peeche adhaar hai.
Jaha adhaar hai, waha vishvaas hai.
Java vishwaas hai, waha aasaan manzil hai.
Jaha manzil hai, waha jeevan safal hai.
Jaha yeh sab kuch hai, waha pyaar hai.
Jaha pyar hai, waha ek maatra sarva shreshta bhagvaan hai.
- yogesh/21/12/1996

One realises once, not twice.
One can see it not once, but many times.
One can meet it, not depart from it.
One can and has to realise it,
one has to see it, feel it.
One cannot out-grow with it or over-rule it
or over-ride from it.
Its the last path of a way, its the highest place in universe.
Its the goal of a match which everyone strives to it but does'nt
know what and how it is.
Its the last step of a stair, which one climbs struggling and
alas finds nothing but mud and dust.
Its the truth of everyone's life, which one has to accept it charmingly.
Its the gift of nature which unwillingly one has to recieve it
and thank for it as one can leave back his deeds,
good and even bad to get a new life.
Iths the departure from this world and arrival of two worlds,
either hell or heaven by his grace and our deeds, heaven.
Its the calling of god to be one with him and to get a new life.
Life full of happiness, pleasure, peace of mind, joy and everything
which not achieved in previous life.
Its the rebirth.
- yogesh/21/03/1996

Tum kaun ho, tum kaun ho jo mere khayalon mai aakar
halkese meri palko ko choom kar mujhe sapano ki dubiya mai
lejanewali tum kaun ho?
Tum kaun ho jo meri aankhon ki roshani bankar mujhe
sahi raasta dikhanewali, tum kaun ho?
Tum kaun ho jo meri aawaaz bankar
madhur vani bankar sabke man ko jeetanewali, tum kaun ho?
Tum kaun ho jo mere kandho par sahara bankar mujhe
jimmedariyon ke kabil bananewali tum kaun ho?
Tum kaunho jo meri bazuoo ki takat bankar anyai ke
khilaaf mujhe ladanewali tum kaun ho?
Tum kaun ho jo mere hathonki ungaliya bankar
mujhe sahara deneali tum kaun ho?
Tum kaun ho jo mere paironki takat bankar
mujhe dagmaganese bachanewali, tum kaun ho?
Tum kaun ho jo mere dinakh ki sooch bankar mujhe
galat raasto pe jaane se rooknewali tum kaun ho?
Tum kaun ho jo mere dil ki dhadkan bankar mujhe
jeevan denewali tum kaun ho?
Kya tum meri aatma ho ya meri sagun ho?
Tum kaun ho jo mujhe yeh sab likhane ki prerana denewali
tum kaun ho?
Kya tum meri shakti ho ya mere liye sirf ek sawaal ho?
- yogesh/06/05/1997

Its all created by you the drama with minglence of sentimental acts.
In them i may lose my faith in thee my lord so strengthen my faith
to thee my lord.
Strengthen it during my grief,
strengthen it during my failure,
strengthen it during my joy,
strengthen it during my success,
strengthen it in every second to not to lose faith
in thee my lord.
Strengthen it to understand and accept the truth
that after every dark night there is a bright day,
strengthen my faith to thee my lord as the dark night is going
to approach.
And alas, strengthen it during my departure
from this mingled world to thee my lord.
- yogesh/27/01/1997

Its a road but not any ordinary road. Its a long time road,
where many big vehicles are coming from the front
in between two vehivles.
Its a one way road in which some other vehicles might come
from opposite, breaking the rules.
But on this road on has to keep his step carefully, as once slipped
cannot be repaired. Its the king of road where one has to use the right
rule of truth, which is very long but is decided successfull.
There is also another road of jhoot
which is very short but alas ends in disaster.
So going on this road is not easy task for any person.
Its the road of romance, romance road.
Its that kind of road that any stone can become a melting wax.
Its that kind of road
that an ordinary person can also become a hero.
Its that kind of road that any lazy person
is ready to compete with a plane.
Its that kind of road that any coward person
is ready to fight with a dinosaurous.
Its that kind of road that any feared person
is ready to jump from Mt.Everest.
Its that kind that to complete it one will cross 7 oceans and finish it.
Its thatkind of road that any kanjoos person is ready to give
everything including himself to it.
Its that kind of road that any dull boy can become a rank holder.
Its that kind of road that any person can become a poet,
a writer or a minister. Its that kind of road
that one cannot describe it unless he is going on this road.
Its the romance road.
- yogesh/10/07/1997

Lets go away from this world, come on darling.
Lets go away from this world, lets go to the world of the gods,
lets go to the world of dreams, where no one is there to disturb us.
There where no wall is in between us. Lets go to the world of gods darling.
come on lets leave all the priorities of the world and leave it.
Lets go on the flying leaf on to the world of miracle.
Lets go on singing with the winds and let the cooing of the
cackoo be our rethym. Lets go to the world of thoughts darling.
Let your hand be in my hand both locked and both so close
as the flower and its color. Let us both be together for all while.
Let me kaap you in the bed of roses where no one is there to disturb
us. Let me see you and you to me and let we become one with the
tied know from me to you. Let us go deep into our love.
Let our body and soul be one and let our heart beats be one,
let our breaths be one and every flow of blood be one.
Come on darling, lets go on the bed full of roses where no one
can depart us, where no one can break us.
Come on sweetheart, let us leave all our shy and differences
and become one, for long long years of together.
Let us become one to follow the rule of the nature.
come on darling you are my soul, my life, my everything darling.
Come on lets go to the world of gods and fulfill all our secret desires
and wishes, all our dreams and everything.
- yogesh

Clouds are shying, sun is sweating, seeing my heart is coming.
Dews are pouring, flowers are showering, seeing my heart is coming.
Butterflies are hiding, everything is surprising, as my soul is coming.
Birds are singing, rivers are rythming as my soul is coming.
There she is coming, o dear, i can see you.
She is coming, walking with the ever won deer walk
with love and romance in her talks. She is coming with her soft
and tender eyes with rythm blooming in her voice. She is coming
with her rosy lips with beauty dancing on her finger tips.
She is coming with her cheeks so soft as soft and smooth as linin cloth.
She is coming walking on her velvety legs with cascade like falling
hair above her legs. She is coming closer and closer to be one with me.
Ah! She is here in me. So close as far is the sky from this earth.
She is in me as i am due to her and she is only for me.
She is, __________.
- yogesh/15/07/1997

We are made for eachother forever darling together.
No power can make us far forever, as we are made for eachother.
Let the sky cry forever, or the earth quake forever,
but we are made for eachother.
Let the brightness go in dark forever,
or the world go in a night forever,
but we are made for eachother.
let the world go in destruction,
or the universe go in confusion,
but we are made for eachother.
Let the road of life end forever,
or the game of life lose forever,
but we are made for eachother.
Let humanity die forever,
or cluelty start forever,
but we are madefor eachother.
Let truth die forever,
and lie start forever,
but we are made for eachother.
Let attraction die forever or let affection
lie forever,
but we are made for eachother.
Let friendship die forever,
or enimity start forever,
but we are made for eachother.
Alas, let i die or you die together forever,
but we are made for eachother.
- yogesh

We realise it after its gone, because we cannot realise when it is there.
We cannot feel its importance when we have it and now when we have lost it,
and are in need we come to know what it is and what importance it has
in everybody's life. Its similar to everything, after its gone.
We realise it when it is lost or stolen by anyone.
One cannot stole it, but casually it can be.
We realise it when we are in a well of thorns or
when we are walking on craggy ways. We realie it when its dark
or when we are handicapped spiritually. Its love.
Its love which gives us spiritual as well as will power to face
the forthcoming storms. Its the love of a friend which removes us
from the own built well of thorns. Its the love of our family,
which makes us walk on good ways away from the craggy.
Its the love of some person one with the heart and soul,
which makes us to fight against the waves of problems and
cross the ocean of difficulties and make us stand as a bold swimmer
of problems and as much as difficulties. Its the love of this world
which makes us to live in it. its the affection of this nature which
forces us to love. So love everyone, dont hesitate, be proud, be bold
and the world will be glad to see you as a lover. Think practically.
Understand everyone, friend, family, world and also a heart for you,
which will always be glooming and blooming. And if lost again cannot be gained.
And if gained will be a parallel gap in between.
- yogesh/20/08/1997

Is duniya mai aye hai to jeene ka rasm pura karna hi padega,
agar yeh pura na kiya to use rushta hona hi padega.
is rasma ko pura karna ho to kai reetiyo se guzarna padega,
sabse mazboot reet honi chahiye to vishvaas ki reet.
Yeh vishvaas jise kai naamo se jaana jata hai, pyar unme se ek hai.
Yeh vishvaas pe hi to duniya kayam hai, yeh vishvaas hi to
asambhav ko sambhav karta hai.
Yeh vishvaas hi to hume jeene ka vishvaas deta hai,
taki hum jiye yeh vishvaas lekar ki humse koi na koi
kaam zaroor hoga. Yeh woh vishvaas hai jispar raat ke baad din
ujiyaare ki kiran dikhayi deti hai.
Mazboot vishvaas hi to kisi rishte ke mazboot neev hai.
Isiliye vishvaas ko humare adi na ho ke hume vishvaas
ke adi hona chahiye. Vishvaas hi ek aise bhaavana hai jispar
kathin se kathin manzil paa lee ja sakti hi.
Agar vishvas hi naa rahe to is mai bhi shakk hai ki sooraj ujiyaara
layega ya nahi. Kisi par vishvaas karna hi ek siddha manav ki reet hai,
par sirf uspar jo vishvaas ke layak ho,
naki jo us par jo vishvas ghati ho. Agar kisi par nahi to uspar vishvaas
karna chahiye jo sabka palak-poshak hai. Yeh wohi vishvaas hai jispar
do panchi ek daal par baithate hai. Yeh wohi vishvaas hai jispar do dil
saari duniya ko chooda kar ek hote hain. Yeh wohi vishvaas hai jaha se
girne se aadmi uth nahi sakta. Woh aoani hi nazaro mai itana girata hai ki
woh phir se uth nahi sakta. Isliye hume vishvaas nahi knona chahiye.
Sab kuch khojaye par yeh ek nahi khona chahiye.
- yogesh/20/08/1997

"Fare well to you". In praise of my favourite teacher,
Pramila Dhanvar also to my favourite teacher Farzana Desai
who is getting married next year. May god bless them.

You came to us, with an aim to spread the gentle cheese of knowledge
uon the souls of, we bread.
You came to us, with a mind full ofwords to share some of them
but they were knowledge to us.
You came to us with a pot full of water, to fetch some for us,
but it wasa glucose to our nerves.
You came to us, with a basket full of flowers, to show us the colors,
but they were those who filled our lives with colors.
You came to us, with variety of seeds, to show and give to us,
but they were sown in our mind, and resulted in us.
You came to us, with your heart full of love, to work it on us,
but it was a charge to get a buglow in our hearts.
You came to us and we were in need of you to catch our fingers
and make us walk in the craggy mountains of unknown dark.
You came to us, so soft and gentle, and made our minds education centers.
And now you go so quickly from us, as a shade vanishes from a tree of love.
Though you go from us, you will always be in the bunglow od our hearts
and in every good success of our part.
Farewell to you, our dearest one,
may your life be full of fun, but do keep a part of time in your life,
to remember your children of your past life.
Farewell to you with our hearts full of love.
Always loving you.
- yogesh/30/09/1997

I called upon her early morning, but was unhappy to hear she was not available.
I tried upon my luck and called late night in my bed.
For my goodness she was there, she came in a few minutes to me walking on her whity
foots, shiny silvery body smiling atme and sat beside meon my bed.
I saw at her and she too at me. Both were silent and calm and bed lamp was on.
I shut it off and slipped my hand towards her sleeky softy body,
but asi touched her she started shivering.
Then slowly i took her close ot me,we both were so close that we tow had become
one with our soul, though we were two. I then took a sip from her mouth through
a hot wetty kiss. She started shivering more and more and i then went on taking
kisses and slipping off the juices from her mouth to my, kiss by kiss.
Alas she was calm, she stopped a little bit shivering.
She was lying in the bed nude with nothing in or on her body.
Now my mrves were full of enthusiasm and desires, brain full of words
and i was ready to write a new epic.
The girl who gave me herself, her everything is none other than a glass of whiskey.
- yogesh/15/10/1997

My outline of life is drawn but is incomplete
as there are no colors to fill the design.
So fill some colors in my outline,
so as my life be beautiful as a design.
My empty life is making some noise,
as there is nothing filled in it,
so fetch some good thoughts,
so as it can bring them to life and lessen the noise.
My world of dreams is ready,
but in it everything is steady,
so put some life in it,
so as we may both live and die in it.
Myhouse of love is in construction,
but it is without your foundation of affection,
so put the foundation of it so as my house if love comes to realism.
My Oh! Sorry! Our garden of love is in progress,
but afsoos it is flowerless,
so put some namur of love,
so as our garden be full of flowers.
My song of love are written,
but are really fully out of rythm,
so put it from your voice of sargam,
and make it a complete album.
My engine is on and my bike oflife is running.
Though there is enough fuel in it,
fill some lubricant ot it so as to run smoothly.
My bike of love is running in 180 but my behind seat is empty,
so come and fill itso as my meter might show 360.
As there are many things to go by,
you have to do for your love guy but these are all enough,
to end my life in just a laugh.
- yogesh/07/10/1997

Aapko hum se koi cheen sake
aissa zamane mai koi nahi.
Phool to khair daali se toot jaata hai,
usaki khushboo nahi.
- yogesh/09/10/1997

Chahe na koi kali, ke usake madhu ko koi le jaye.
Agar kismat ne bhavare ko bheja hai,
to usme kali ya bhavare ka kya kasoor?
- yogesh/09/10/1997

Agar woh ek deep hai somya, shaant, naazuk,
aur roshani faila rahi hai, to aii hava
use aur ujjwal kar de, par agar woh koi aag bankar sansaar ko
apani lapeto mai le raha hai to aii hava usase usaki praan vayu
cheen kar use shaant kar de, hamesha ke liye.
- yogesh/09/10/1997

Never give an eye, to a passenger travelling by,
as they are the birds in the sky,
who often say goodbye. Never let an eye.
Never give an eye, to a passenger travelling by,
as they are the clouds in the sky,
who later say goodbye. Never let an eye.
Never give an eye, to a passenger travelling by,
as they are one of the ocean's waves,
who ofter strike the shore and go away. Never let an eye.
Ah! But if you have given an eye ot a passenger travelling by,
then with the help of love in your eye, make them then towards you to fly.
Make them condense and rain love on you.
Make them join your ocean of love in your heart and be not be apart,
though the bodies have to depart, your soul will be one in one heart.
- yogesh/01/02/1998

Its raining, its raining o god! Its not an ordinary rain,
its the rain of problems which is pouring on me.
With every drop of water a new problem is falling on me
and is wetting my eyes by its skill.
Its also the season of winds, the winds of despair are blowing
and also with them are my hopes are blowing, also my faith is moving
far from this hell, where love is nothing but a mere business based on the
principle of give and take. Where affection is nothing but just an attraction
of as a magnet when once dropped by chance loses its power.
Where trust is nothing but just a means of code word to know eachother very deeply
and dearly and then attack eachother. Aslo the fog of confusion is laying its hands
on my mind, and poor mind is not able to find a way in this fog and then the
fog is melting and forming dew by dew falling on me, and saying,
one, trust everyone and the other, trust no one.
So o god, its you who can save me from this delimma.
O god, please lend me a raincoat of your intelligence and a jacket
ot warmth with your love and also a torch for light which might
show me the right way even in the fog.
Or, o god, lift me from this world of corruption.
O god, will you?? will you??...
- yogesh/21/12/1997

For everyone, its a splendorous night, for also a coward and
very much for a knight. For all the childrens, small and young,
will dance the night full of fun. for all the boys and girls will forget
their reserveness an get together like bushes and ferns. For all the aged,
grandma and pa, will forget their shy and dance cha cha cha.
Its a splendorous night for everyone.
Now....when the last second of awaiting hour drives, ar ethe hearts
full of joy and their eyes as brightening as moonlit light and spreading
their light in the darkened night, with nerves full of passion and minds filled
with resolution.
To lighten the candle of change and fame, with much more thoughts in action.
Happy new year to everyone. The hours of dark are there none.
In the sky are balloons flying and crackers burning and lighting.
are the hearts of dirt ar changed andthe minds full of problems washed.
Nerves filled with dark blood are purified and filled with royal blue of light.
No the sun of progress is rising with giving a teach of passion rising.
And the day begins with a new tmie a new air to breath and a new light
to see and so on and on and on.
The days pass and weeks ans months and then again the same night of
splendorous comes and the feelnigs repeat.
- yogesh/22/12/1997

They are a part of our life, not impart as a wife.
They are our soul, good or bad, the whole.
They are of that kind, which one cannot lag them behind,
even on this earth, and even on that non earth.
They are the thoughts, good or bad, they are,
they are the soul on the last path.
No thing comes with us except the blessings or curses of our thoughts.
So have good thoughts, make good thoughts.
Thoughts are the way of your life.
One must, have thoughts, but not transitory thoughts,
but haev gallant thoughts which will leave a lesson back us.
Baffle thoughts, then only you can ferret out the secret of life.
Make good thoughts, think good thoughts, live with good thoughts.
Try to make them extremely living thoughts, fullfilled thoughts.
As thoughts must not be for us but we should be and live for good thoughts.
Do not lag good thoughts, but lag, lay far behind you the bad thoughts
and fill your life with good thoughts.
- yogesh/08/01/1997

Saturday, April 29, 2006

Bug in Microsoft CDO For Windows 2000 Library?

I came across this while writing some code using the Outlook Object Model and CDO For Windows 2000. My requirement is simple. Convert each Outlook MailItem in the Inbox folder to CDO Message object which is processed further. The algorithm that i use is :

msgs(i) = new cdo message
msgs(i).from = mailitem.from
msgs(i).subject = mailitem.subject
copy all the corresponding fields form outlook mailitem to cdo message object

for each attachment in mailitem
tmpname = tmp + "\" +
mailitem.saveAttachment in tmpname
msgs(i).addAttachment tmpname
delete the file tmpname
delete the tmp folder

What i am doing is very simple, copy all Outlook MailItem fields to corresponding CDO Message object fields. Then for each attachment in the MailItem, save the attachment in some temporary directory (tmp) with the name same as the attachment name. Then add that file as an attachment to the CDO Message object. Delete the temporaryt file. Once all the messages are converted, delete the temporary folder.

Problem occurs when an attempt is made to delete the temporary file, i.e when i am deleteing the temporary file in the loop. The error was straight forward, file access error, cannot delete the file. Which meant that there is some reference, even after the file is added as attachment to the Message object. One thought which occured to my mind was that may be the CDO library implements a lazy algorithm which builds the actual object only if it is sent or a stream is obtained from it etc. So i modified the code to add a Message.GetStream call to make sure that the attachment is actually loaded in to the Message object and the mime structure is built. Everything was fine. It buiilt the actual mime structure embedding the file. But still the reference was not released. It was very much evident because i was not even able to delete the file from the filesystem.

Finally i could conclude that the reference is still not released though the mime structure is built. Workaround was to get the stream from the object, create a temporary file, write the stream in it. Set the object to 'nothing', now the references are released here and the attached files are deleted . Create a new CDO Message object, load the stream from the saved file.

Well i dunno how far my approach of getting the job done was right. May be i am using the wrong approach, or it is indeed a bug in the CDO library which does not close the stream even after the mime structure is built.

Comments are welcome :)

Saturday, April 22, 2006


OMG!! Looks nice.. I am thinking of making a sticker of it and paste it somewhere i can see daily..Ok...My temporary memory loss created a big havoc!! The girl thought that i was "using" her :( I only talk to her when i want and not otherwise. If i have no one to talk then i talk to her, spend time with her etc. It was all due to the lack of good written communication in me. I am not good at communicating my thoughts in writing. Well, it was a quite long chat for around 6 hrs!! Thats my longest chat ever. She stressed more on why i gave the gaps. tell you the truth, the gaps were to divert my mind from her thought. Coz i am still in the struggling phase of my career. So....Anyway...henceforth i am not gonna bother about it...if her thought comes in my mind, let it come. Who knows, how long we are gonna live!! I will just live for the moment and be happy and make others happy. Keep smiling.... :)

Monday, April 17, 2006

How to create your own widgets

Well, there might be many tutorials available on "how to write your own widgets", but i could not find one. Yes, may be i am not that smart in googling :( From nowhere i got this idea of writing a widget. Its very simple than you might think. Atleast some simple widgets are damn easy to write. All you need is a proper connection of available tools :) Before starting i would like to say that i am not any expert in these things, but just another programmer. Anyone reading this is free to comment and suggest some nice ideas.

Setup :
  • Firefox
  • Enough(mail me to know how much is "enough") knowledge of HTML, javascript.
  • Behaviour, Prototype
  • Simple ASCII editor, Notepad or Notepad++(i use it).
  • 2 minutes of your valuable time to get the widget ready and 1 minute to read this scrap.
Ok..i am going to show you how to write a very basic, "hello world" kind of widget. We will call this widget as "SayMyName" widget which takes your name as parameter and echoes it. You will place this widget in your HTML with a single line like this :

<span id="SomeId" class="SayMyName" name="Tutankhamun" />

When you place this line in your HTML, all occurences of this line will be replaced with something like :
Hello Tutankhamun!!

Ofcourse, not Tutankhamun all the time but whatever is the value for the name attribute. I will first show you the complete widget and then go into the details.

Step 1 :

Create a directory and put prototype.js, behaviour.js in it. Later save your html file and myWidget.js in it.

Step 2 :

Copy this HTML and save it as a HTML file :

<script type="text/javascript" language="javascript" src="prototype.js"></script>
<script type="text/javascript" language="javascript" src="behaviour.js"></script>
<script type="text/javascript" language="javascript" src="myWidget.js"></script>
<span id="someId" class="SayMyName" name="Tutankhamun" />

Step 3 :

Copy this javascript and save it as myWidget.js.

var myrule = {
'.SayMyName' : function(element) {
element.onclick = function() {
var helloName = element.getAttribute("name");
new Insertion.Before(element, ' Hello ' + helloName + '!!');

Step 4 :

You are done with the widget. Open the html file in a browser and you should see :


Details :

If you are comfortable with javascript, then it should not be very difficult to get it. Actually the main work is done by the libraries ;) behaviour and prototype. Behaviour lets you attach javascript code to html elements in a much cleaner manner. So the funda is,
  • decide upon some classname which you will be using to attach a handler to. In the above example it is "SayMyName".
  • Write a small rule to tell behaviour what to do if it encounters html elements with the "SayMyName" class selector.
  • Since the handler is not attached to any specific event, it is fired immediately on page load(i guess so, not sure though). The handler is also passed a reference of the element which has the said classname("SayMyName").
  • In the handler, get the value for the attribute "name", store it in a variable. Using the prototype library insert a new <i> element with proper text and the name that we want to echo: new Insertion.Before(element, ' Hello ' + helloName + '!!'); We no more need the span, so delete it : Element.remove(element.firstChild);
Well,...thats it. I know it is a bad tutorial, but it was just an effort to write something. So..instead of writing "something", this is far more better :)

Sunday, April 16, 2006

temporary memory loss...??

Well, this has been the second or the third time i have done this. For every 2 months or so, i talk to this girl and tell her that i am attracted towards her, tell her indirectly that i like her and i am telling this only because i dowanna hold on to my feelings and want to just puke it off! I also tell her that i dowanna get distracted by this thought, coz at this stage in my life my parents happines and career is important, and i should not get distracted. I also tel her that please dont take me seriously and take it just as a friend is sharing some thoughts blah blah...!

Some time passes.......minutes..hours...days...

I am very much enthusiastic, full of confidence and all set to break new records(not really) in my job. I write some shit piece of code which my boss just swallows it coz he's a nice guy :) For me my career is important, my parents and my friends. I have no thougt of making new "relations".

This happened to me thrice till now. It was the third time today. I just saw 50 First Dates. Really a nice movie. Oh hooney....i had told you to pay the electricity bills yesterday....i even reminded you today before going to the office and you say you just forgot it?? You are becoming irresponsible day by day honey... :( This is what happens in our daily life. What would happen if your beloved ones cant remember what happened yesterday!! And you still continue everyday with the same spirit, love compassion and care for each other. Thats how the movie is....Sometimes i feel do i have some kind of temporary memory loss pbm?? Not for a single day..but for a few months that i do this same thing?? God help me....

Sunday, April 02, 2006

Write something, daily.

I am writing this post only to make sure that i am in touch with the language. By profession i am a free lance programmer. Ok, i am writing this because, joel says so. He, as well as my boss says that to become a seasoned software engineer, you have to really be into it, do all that is required right from the first phase of the product development to its implementation etc. I usually dont write documentation. Not only me, i feel many of the developers out there writing a couple thousand lines of code are lazy to do it, or feel it is useless or it is not their job. Infact, it is the most critical and important aspect of software development! I have wasted many hours discussing the same, because of no proper documentation. Recently i wrote a small functional spec of a small part of a product that we are developing. I wrote it as per joel's guidelines. It was cool writing it. Also after writing the initial draft, i felt like, "ok....this is some kind of work...a software engineer..". Even my boss was a bit happy about it. He is more a mentor, than a boss to me. Now you see, how confusing this post is. I started with smoething, and i ended somewhere else! Thats what i need to improve, put your ideas in proper words, and only then you will be able to write a good document. That doesn't mean that you should start documenting only after you are a master in english. See, there are many things in life. You have to be aware of everything! You have to fight!

I will try to write something daily, so that my ability to write and put my ideas into proper words, will improve. May be i will start writing about some domain. Not yet decided.

Tuesday, March 28, 2006

I have become more sadoo

Yesterday I watched "Zinda". A good movie. As usual, dutt always has some different kind of role. Though his appearances in most of the movies is same i mean a strong man who can beat some 20 people, with a knife in his back and still manage to walk out laughing. Am I telling you the complete story? Ok...the story is comlpetely different. I mean narrated in a nice manner. You will not get bored. It makes you curious, why he is kept locked for 14 years! Initially I thought, must be some NSA kind of people trying to use him for some critical mission etc. I got this thought because dutt is a software engineer in the movie. But there is one thing worth noting in the movie, never tease any girl or make fun of her. Especially if she has a brother and is very young around 8 years. Confused? Zinda, dutt, software engineer, NSAn eve teasing.......hahahahah. Dont be..go and watch Zinda. I have stopped betting too :(

A brief introduction about atom

I should have put this long time back. Now the protocol has come far away, but the basics remain the same. I am putting it here for newbies to understand what is Atom and Atom Publishing Protocol.

Atom comprises of two parts.

  1. The Atom Publishing Format.
  2. The Atom Publishing Protocol
The Atom Publishing Format is a standard(rfc 4287), which describes the format of a atom document, termed as an atom feed(mime type "application/atom+xml"). The atom feed is a xml document representing the "change" in the content. It is a list of "entries". Each entry has a title, author, publish date, content summary etc. The idea is that each entry represents some prominent change in the content. For e.g, a book shop owner might add new books to his library, in which case, information about each book can be represented as an entry. The entry content is the content that the user is interested in(about the book). The content usually is the changed content(which may not be in some cases) and the summary is a brief summary of the change, usually a single line. Each entry also has a "link" element. The link element is used to provide the client with an "alternate" or "related" URL which the user might be interested in. When the "rel" attribute is "alternate", it means that the entry also has an alternate representation for e.g html page or plain text. When the "rel" attribute is "related", it means that the link points to some other resource which is related to the entry. For e.g, an entry representing a horror book may have a related link of similar books or a different volume of the book etc.

The Atom Publishing Protocol (APP) is a protocol for editing web resources using the HTTP model. It specifies, how resources on the web may be created/edited or deleted using the HTTP verbs, GET, PUT, DELETE, POST, HEAD. Basically, the protocol is similar to HTTP, only that the data exchanged in the form of atom feed documents. The APP also defines new termiologies. Important ones are given below :

Workspace : A group of collections.
Collection : A collection is similar to a directory or a folder in the filesystem. Every collection has a type. The type can be "entry", which means that the collection SHOULD contain only atom entries, or it can be "media", in which case the collection CAN contain files, documents of any type.
Feed : A list/collection of entries.

Before any client can start interacting with the APP server, it first GETs the Introspection Document. This document defines all the workspaces available in the server along with the collections under each workspace. It also contains the type of collection, i.e entry or media. Every collection has an URI which is also mentioned in the introspection document. This URI is the key to access all the resources in the APP server. The introspection URL is publicly available, usually located on the homepage of the website. Mime for the introspection document is "application/atomserv+xml".

After the introspection document is retrieved, the client makes a GET on the collection URI. The server sends an atom feed listing all the available entries. The number of entries listed in the feed depends on the server. It may not be the complete list of all the available entries. The client can then make a GET/PUT on the entry URI to manipulate it. POSTing to the collection URI causes a new entry to be created on the server. After successful creation the server sends a representation(resource url, id etc) of the newly created entry. PUTing updates an existing entry, and DELETE causes the entry to be premanently deleted from the server. While manipulating the entries the client has to respect the type of the collection, i.e entries should be posted to collection of type "entry" and other arbitrary files should be posted to collection of type "media".

As of now, the resources are categorised as "entries" or "media", but there isn't "entry type". Entry types can be :

  1. Standalone entries - These entries are standalone, i.e the entry stands for itself. The content is all that the entry wants to say about. There is not alternate or related link.
  2. Stub entries - These entries are on behalf of some other resource. e.g a resource uploaded to the media collection has a proxy entry in the entry collection with a link to the actual resource in the media collection.
  3. Referencing entries(Ummm..or some other name?) - These entries say something about some object, but not completely. The complete information about the object is available as URL in the link element of the entry.
The atom standard does not implement entry types. The above abstraction was developed by me and my friend vinod.

Tuesday, January 31, 2006

Rang De Basanti

This movie surely deserves appreciation! "Rang De Basanti". For the first time after hearing the title, i thought some dilip kumar movie :( But for my surprise when i saw the trailers, i was like, wow! A movie like "Dil Chahata Hai"! All the time till yesterday(pp n me watched it), i had the thought of a movie for colllagians, young crowd blah blah...But a twist. The movie is on indirect patriotism. Indirect because, all the heroes kill a defence minister for not being responsible for the Mig crash, in which one of the friend dies. So its a kinda revenge story, but "portrayed patriotism". I wonder how creative the director is. You will never get bored at any time in the movie. If scenes extend and cut and change at the right time! Very impressive! As pp told, it would not have been a hit if all the heoes had not died in the movie. Thats the end. All the friends surrender through radio broadcast, I mean they broadcast their reason etc for killing the minister and some blah blah ...on patriotism. But overall a very great movie! I dunno whether the movie is infact great or it is that all the things i doo and see are great ;) A must watch movie. Enough of movie review. Afterall its a movie. All the youths(me an pp are quite old now, around 45) went home with a thought of doing something for this country. Most of the group friends will find the movie more appealing! Some of them will say I am Aamir Khan...I dunno other names :(....Come on...this is india, thats why whatever was shown in the movie was "in the movie". If it were to become a fact, then we would not have been watching the movie! Change does leads to progress but in a country where the pm is ruled by some lady sitting behind her, that too from some different country, and above all, "A Congress Party"! Bullshit, India will never change. I guess, it will soon be invaded by snioa's country..I dunno from which country she is...but not an Indian. Ok.I shall stop my the movie and enjoy! Forget about changing the government, make money! pp gave an idea, make soooooooooooo much money, that you should be able to bribe the complete government and make things happen! We both dunno how far it is possible, but we are working towards it. Got to go....need to go the pm's office.....

Wednesday, January 25, 2006

Mind your own business!!

Today was my worst jogging schedule. Did some exercise, my friend joined me a bit late. Friend in the sense, he is kinda "uncle friend". Very elder to me. After the exercise was over, slowly a small group started forming. All ground friends. The discussion started. Topic? "Politics and curruption". Yes, its not any topic out of the world, but i think, it is not something on which one should waste time discussing, atleast here in India! Its something which everyone should posses, "curruption". Its an attribute which has to be linked with you if u wanna go into politics. I dowanna discuss it here...but those "uncle guys" were wasting a lot of time in it. Almost 30 minutes. I had to stand there with my friend to continue with the exercise. Ultimately I gave up! Went for a walk, to come back and see that they were still in it :( I remember something my friend had told me long time back.

"If you dont like something, feel that it is wrong, then go ahead and change it. If you cant, then just be quite and mind your own business".

I feel it very much appealing. And I do it almost everywhere I can apply. my tea is getting cold...bye..

Thursday, January 05, 2006


Long time no C :) had been out of station for around one month. Tour was great! Good experiences, and just continuing.....