Thursday, September 28, 2006


Yes python. No, I am not refering to the snake, I am refering to the programming language "python". OOPS!!! Sorry for the confusion.

Python is an interpreted, interactive and object oriented programming language. Often compared to perl, java, ruby etc. As per, python was created by some dude named "Guido van Rossum" in 1990. It uses automatic memory management and is a High level language. Oooh.. And python is hot... Why?? Cause it has a very clean syntax and is easy to use and packs a lot of power inside it... Thats why, i think so... So lets get some tits and bits about python...

But before i start, just check out, the official website of python software foundation the creators and maintainers of python.

The thing which will strike you at the start is the way indentation is important in python. Python groups sentenses on the basis of how it is indented. So i would write a for loop as follows

>>> arr = ['a1','b2','c3','d4','e5','f6'] # defining the array
>>> for x in arr: # starting the for loop
>>> print x # print the element and its length
>>> print len(x)
>>> print 'end' # print end the for loop. Indentation says for loop is over

The best thing i like about this is that developers would automatically indent their code making it good to look at - ummm beautiful may be the right word.

python has a nice set of string operators and regular expressions. You can create and iterate over a range very nicely, write functions, create stacks and queues, do file handling and exception handling. You have complete java style - try->catch level exception handling. And ofcourse you can create classes. Serialize and store objects in file very easily and then restore the objects later. Also there are lots of extensions available which would allow you to interact with the net, create threads, do data compression and decompression. control garbage collection.

Wooo, and the main thing is that all this is possible with very easy and clean syntax . I have seen small and large - in fact very large programs being written in python. And maybe sometime down in future python would replace perl for small programs.

You have got to try it out to see the power of python...

Wednesday, September 27, 2006

Your Love Element Is Metal

In love, you inspire and respect your partner.
For you, love is all about fusing together for one incredible life experience.

You attract others with wit and a bit of flash.
Your flirting style is defined by making others want and value you.

Greatness and optimism are the cornerstones of your love life.
You may let go too easily, but you never get weighed down by your past.

You connect best with: Earth

Avoid: Fire

You and another Metal element: will control and smother each other

Monday, September 25, 2006

where have i been??

Oh dear, one whole month gone, and there is just 1 blog - my contribution to the world of bloggers... Too bad "jayant"... Where have you been?? What have you been doing?? The world is moving on and you are still at the same place. Doing nothing, not even writing blogs...

My dear friends, actually there has been certain changes in my life... And i think, i had been a bit busy in these. Waise the start of this month was very eventful. We had a trip to agra. And for the first time in my life, i saw "Taj Mahal". You would say - "well buddy, whats there in a taj mahal. It is one of the wonders of the world, but still, it is just a monument made out of white marble. Isnt it?" And i would say, "yes yes, it is, it is. But you cannot guess the beauty of the monument just by looking at the images. You have to go and look at the monument to enjoy its beauty"....

To cut the long story short. The trip to agra was gud. We took our own cars and drove down to agra and came back in the same day. Went to see the "Taj Mahal" first thing in the morning and then saw the "Agra Fort". Then went to see the Fort at "Fatehpur Sikri". The Taj was gud, no doubt. Made out of white marbel and there are precious stones embedded in the marble. There are carvings and design patterns on the marble created using precious stones of red, orange, green and other colors. A lot of real hard work must have gone in creating the monument. Also take into account the fact that at the time when the taj was built, sophesticated instruments were not available . And the workers took around 22 years to build up the "Taj" - A monument of love created by the mughal emperor "Shah Jahan" for his beloved wife "Mumtaj Mahal" after her death.

Ok ok, so agreed, you were a bit busy in the starting of this month - around 3rd due to your trip to agra. What happened to the rest of the month buddy. Today is 26th. That is 23 days, without a blog. Hmmmmm, Hmmmmm, Aaaaaa, i have nothing to say. Ummm, i have a friend in orkut who keeps on writing lots of scraps and i had to reply her back. So it also took some of my precious time - you know..

Yes, of course!!! i know. And i had to plan my trip home. And ofcourse, another important thing - should i write.... umm maybe... Well, i have been getting lots of calls lately - lots of job offers... Though i keep on telling them that "i am not interested", but these companies and consultants dont leave me alone. And specially Yahoo!!! God, they have been after my life. But, for the time being i will continue with my current organization.

And ofcourse there were certain deadlines to meet in september. And we had some meetings over that and things were finalized. So, i got a bit engaged in those things. Still, saturdays and sundays - you had a bit of those free. You could have written something then.

Umm, yes, but i got busy... Hang on buddy, i will let you know everything after i come back from home. Oh, i will be going home on the 29th of september. And i am not getting 30th off, so i will be forced to take 1st and 2nd as leave increasing the count of leaves taken from 2 to 5. A loss of 3 days.

And i promice, will write a lot of details once i am back from home....

Till then....Just hang on...

Sunday, September 10, 2006

about love

The big question : what is love??

And the important fact for people reading this blog : i am NOT in love... This is just a thought which i wanted to pen down or maybe blog down...

So returning back to the big question. what is love? how would you define love. Is it the relation between a mother and a child, where the mother cares for the child and vice versa. Or is it the feeling between a brother and a sister. It is said that they share a bonding of "love" and care for each other. Or is it the friendship between two friends. Both friends depend on each other for something or other. They just feel good when they are together. Or is it the relation between a boyfriend and a girlfriend, where there is passion sometimes with and sometimes without commitment. Or is it the relation between a husband and a wife - a lifelong relationship where there is commitment, passion, understandings and minunderstandings, small and major fights, caring and dependency upon each other.

Lets explore each of these relations and try to define love out of these. From what i have seen, people generally tell "i love you" to either their boyfriend or girlfriend. Love in this sense symbolyses passion. Dont you think so?

Well lets start from the mother/father who loves her/his child. From the day the baby is born, parents feed and take care of the baby. Fulfill all his desires and try to make a man out of him. Give him education, food, shelter. Take care of him when he is sick. This, i think is love. Though "i love you" is rarely exchanged in this relation. Still, why does the parent take so much care of the child. Because, you feel that the child is your part. You are the creator of the child, and it is your responsibility. This feeling leads to a type of love and bonding. Where the child demands and the parent fulfills. There are fights and misunderstandings, but they are overcome, because you are bound to live together and care for each other....

The relation between a brother and a sister is, i feel somewhat similar to that between two very good childhood friends, except for the fact that the brother and sister have to live together. Again the "bonding" comes into picture. Which makes this relation stronger than that between two very good friends. There is love over here too, born out of the need to share thoughts and exchange ideas. You love and care for your sibling. What about 2 friends? what i feel is that the "love" between two friends is very selfless and fragile. Small fights can break up friendship unless there is good understanding between the friends. Friendships break because there is no "bond" between the friends. Well, friends are people with whom secrets can be shared, the secrets, which, otherwise may be considered "bad" in the family. Friends are people with whom you can form groups to accomplish something in life. You would never say "i love you" either to your sibling or your friend. Well, in some cases an "i love you" to a friend can break the friendship and hearts. So avoid it. Though sharing an "i love you" with your sibling would ofcourse matter and make the relation stronger.

Now lets come to the most important section of "i love you". The one between a boy friend and a girl friend. The boyfriend keeps on saying "i love you" to the girlfriend and vice versa. They generally become possessive of each other. There are cases where fights break out and there are broken hearts. Or one of them starts liking someone else and ditches the other. Whoa, yes there is a "love" between then but then again there is no "bonding" between them to keep the love, and hence them together. But of-course, there are lots of cases where boyfriend and girlfriend have a "love marriage" and live a very happy life.

Moving ahead lets come to the "love" between a husband and a wife. Well, there is commitment and the need to share the same life. To create a new life. There is a bonding between them that they should stay together - no matter what. Well, though in various cases, this bonding goes for a toss and they do separate. But we are dealing with ideal situations over here. Their life starts with passion and lust and moves to caring and understanding and then to parenthood and responsibilities. Do they love each other. Well, cant say. Newly married couples would say "i love you" maybe once every hour. And after ten years, the same couple would talk to each other maybe once in a day and that too for just 5-10 minutes. They still stay together and care for each other, but where has the "love" gone? Dont look like that at me. Even i dont have an answer to that. I am still unmarried and still have to experience all these things....

So from all the above relations what can be derived regarding the definition of love? Is love simply passion? NO... Is it caring and understanding? Well, maybe, but not completely. Then what is love?

I, myself am unsure about the definition. But just for the records i would simply pen down what i think love is. Or maybe what i believe, ideally love should be.

Love is an invisible bonding. A feeling of togetherness. Strengthened by trust, understanding and caring. Love is something which cannot be expressed, but only felt.

If you love someone, you would care for that person. You would be possessive about that person. You would care for him. And you would depend on him and want him to depend on you. But, in addition to being possessive, you will also need to set the person free and trust that the person does not go against your will. If you dont set him free, there would be suffocation in the relationship and both u and ur love would feel sad. And if the person goes against what you want him to do or does something wrong, you will need to understand why? If two people love each other their "love" should become stronger with each fight/misunderstanding they have. Since with each such situation, they would come closer and their understanding about each other will improve. And ideally there should be no place for "ego" in love.

Though there are people who become "deewana/deewani" in love. They have a sense of self sacrifice. To die/give up everything for someone they "love". To bear the pain and sorrow just to see that the one they "love" is happy. This, i believe is also "love".

I m thru... Let me know your ideas...