Tuesday, December 23, 2008

Bhagawad-gita online

Some time its intresting to read Bhagawad-gita.

raja-vidya raja-guhyam pavitram idam uttamam
pratyak savagamam dharmyam susukham kartum avyayam

This knowledge is the king of all wisdom, the king of all that is confidential. It is the purest and the topmost and because it gives direct perception of the self by realization it is the perfection of all religion and everlastingly joyful to perform. Bhagavad-Gita, chapter 9, verse 2

Friday, December 19, 2008

How to make XML Parser ignore the parsing the tag?

There are two ways to do:
A-
1. put standalone="yes" to declaration.
2. Starting XDK for Java 9.0.2D, the customer can use the function

B-
xmlparser.setAttribute(XMLParser.STANDALONE, Boolean.TRUE)
to treat the input file as if it had standalone="yes" in the XML declaration.

My small wonder super Computer- Riya

I am really proud to have her as my daughter. She secured Second Runners-Up Trophy in 2nd Karnataka state level UCMas Competition in such a small age of just 7 years.
She is with her teacher Ramandeep and her Principal in these pics.

My cute niece (twins) Archita - Arpita



Thursday, November 13, 2008

Presidents of India

Presidents of India

Name : Smt. Pratibha Patil
Full Name: Smt. Pratibha Devisingh Patil
Life Span: b-1934
Term : 25 July 2007-

Name : DR. A.P.J. Abdul Kalam
Full Name: Dr. Avul Pakir Jainulabdeen Abdul Kalam
Life Span: b-1931
Term : 25 July 2002-25 July 2007

Name : Shri K. R. Narayanan
Full Name: Shri Kocheril Raman Narayanan
Life Span: 1920-2005
Term : 25 July 1997 - 25 July 2002

Name : Dr S. D. Sharma
Full Name: Dr Shankar Dayal Sharma
Life Span: 1918-1999
Term : 25 July 1992 - 25 July 1997

Name : Shri R Venkataraman
Full Name: Shri Rajamadam Venkataraman
Life Span: b-1910
Term : 25 July 1987 - 25 July 1992

Name : Giani Zail Singh
Full Name:
Life Span: 1916-1994
Term : 25 July 1982 - 25 July 1987

Name : Shri. N. S. Reddy
Full Name: Shri Neelam Sanjiva Reddy
Life Span: 1913-1996
Term : 25 July 1977 - 25 July 1982

Name : Dr. Fakhruddin Ali Ahmed
Full Name:
Life Span: 1905-1977
Term : 24 August 1974 -11 February 1977

Name : Shri V. V. Giri
Full Name: Shri Varahagiri Venkata Giri
Life Span: 1894-1980
Term : 3 May 1969 - 20 July 1969 & 24 August 1969 - 24 August 1974

Name : Dr. Zakir Husain
Full Name:
Life Span: 1897-1969
Term : 13 May 1967 - 3 May 1969

Name : Dr. Sarvapalli Radhakrishnan
Full Name:
Life Span: 1888-1975
Term : 13 May 1962 - 13 May 1967

Name : Dr. Rajendra Prasad
Full Name:
Life Span: 1884-1963
Term : 26 January 1950 - 13 May 1962

What is Dream ?

"Dreams are the one which you will not get in sleep,
but are the one's which will not let you sleep"
.... Dr. A.P.J. Abdul Kalam

Tuesday, September 02, 2008

Saraswati Vandana

Yaa Kundendu tushaara haara-dhavalaa,
Yaa shubhra-vastra'avritha
Yaa veena-vara-danda-manditakara,
Yaa shwetha padma'asana
Yaa brahma'achyutha shankara prabhritibhir
Devai-sadaa Vanditha
Saa Maam Paatu Saraswati Bhagavatee
Nihshesha jaadyaa-pahaa

Shuklam Brahmavicara-saraparamam
Adyam jagadvvyapinim,
vinapustaka-dharinim abhayadam
jadyandhakarapaham,
haste sphatika-malikam ca dadhatim
padmasane sansthitam,
vande tam Parameshvarim Bhagavatim
buddhipradam Sharadam

Monday, August 25, 2008

Yashomati Maiya Se

यशोमती मय्या से बोले नंदलाला
राधा क्यों गोरी मैं क्यों काला -२

बोली मुस्काती मय्या ललन को बताया
कारी अंधियरी आधी रात में तू आया
लाडला कंहय्या मेरा होऽ
लाडला कंहय्या मेरा काली कमली वाला
इसीलिए काला

यशोमती मय्या से बोले नंदलाला
राधा क्यों गोरी मैं क्यों काला -२

बोली मुस्काती मय्या सुन मेरे प्यारे -२
गोरी-गोरी राधिका के नैन कजरारे
काले नैनों वाली ने होऽ
काले नैनों वाली ने ऐसा जादू डाला
इसीलिए काला
यशोमती मय्या से बोले नंदलाला
राधा क्यों गोरी मैं क्यों काला -२

इतने में राधा प्यारी आई इठलाती
मैं ने न जादू डाला बोली बलखाती
मैया कन्हय्या तेरा जग से निराला
इसीलिए काला

यशोमती मय्या से बोले नंदलाला
राधा क्यों गोरी मैं क्यों काला -२

Monday, August 04, 2008

Hum ko man ki shakti dena

Hum ko man ki shakti dena, man vijay kare
Dusaron ki jay se pahale, khud ko jay kare

Bhedabhav apane dil se saaf kar sake
Doston se bhool ho to maaf kar sake

Zooth se bache rahe, sach kadam bhare
Dusron ki jay se pahale, khud ko jay kare

Mushkile pade to hum pe itana karam kar
Sath de to dharam ka, chale to dharam par

Khud pe hausala rahe, bade se naa dare
Dusaron ki jay se pahale, khud ko jay kare

Hum ko man kee shakti dena, man vijay kare
Dusaron ki jay se pahale, khud ko jay kare !!

This prarthna was sung by Vani Jairam in film guddi (1971).

Tumhi ho Mata, Pita Tumhi ho

Tumhi ho Mata, Pita Tumhi ho
Tumhi ho bandhu, sakha Tumhi ho

Tumhi ho sathi, Tumhi sahare
Koyee na apna siva Tumhare
Tumhi ho naiya Tumhi khavaiya
Tumhi ho bandhu sakha Tumhi ho

Jo khil sake na woh phool ham hain
Tumhare charano ki dhool ham hain
Daya ki drishti sada hi rakhna
Tumhi ho bandhu sakha Tumhi ho

Tumhi ho Mata, Pita Tumhi ho
Tumhi ho bandhu, sakha Tumhi ho.

He Sharde Maa

He Sharde Maa, He Sharde Maa
agyanta se hame taarde Ma

Tu swarki Devi ye sangeet tujhse,
har shabd tera hai har geet tujhse

Ham hai akele, hum hai adhure,
teri sharan hum hame pyar de Ma

Muniyon ne samjhi, guniyon ne jaani,
Vedonki bhasha, Puranoki bani

Ham bhi to samjhe, hum bhi to jaane,
vidhya ka hamko adhikaar de Ma

Tu shwat varni kamalpe viraje,
hathon me veena, mukut serpe saje

Manse hamare mitake andhere,
hamko ujalon ka sansaar de Ma

He Sharde Maa, He Sharde Maa.

Wednesday, July 23, 2008

Keep the Spark

Inaugural Speech by Chetan Bhagat for the new batch at the Symbiosis BBA program 2008


Good Morning everyone and thank you for giving me this chance to speak to you. This day is about you. You, who have come to this college, leaving the comfort of your homes (or in some cases discomfort), to become something in your life. I am sure you are excited. There are few days in human life when one is truly elated. The first day in college is one of them. When you were getting ready today, you felt a tingling in your stomach. What would the auditorium be like, what would the teachers be like, who are my new classmates - there is so much to be curious about. I call this excitement, the spark within you that makes you feel truly alive today. Today I am going to talk about keeping the spark shining. Or to put it another way, how to be happy most, if not all the time.

Where do these sparks start? I think we are born with them. My 3-year old twin boys have a million sparks. A little Spiderman toy can make them jump on the bed. They get thrills from creaky swings in the park. A story from daddy gets them excited. They do a daily countdown for birthday party several months in advance just for the day they will cut their own birthday cake.

I see students like you, and I still see some sparks. But when I see older people, the spark is difficult to find. That means as we age, the spark fades. People whose spark has faded too much are dull, dejected, aimless and bitter. Remember Kareena in the first half of Jab We Met vs the second half? That is what happens when the spark is lost. So how to save the spark?

Imagine the spark to be a lamp's flame. The first aspect is nurturing – to give your spark the fuel, continuously. The second is to guard against storms.

To nurture, always have goals. It is human nature to strive, improve and achieve full potential. In fact, that is success. It is what is possible for you. It isn't any external measure - a certain cost to company pay package, a particular car or house.

Most of us are from middle class families. To us, having material landmarks is success and rightly so. When you have grown up where money constraints force everyday choices, financial freedom is a big achievement.

But it isn't the purpose of life. If that was the case, Mr Ambani would not show up for work. Shah Rukh Khan would stay at home and not dance anymore. Steve Jobs won't be working hard to make a better iPhone, as he sold Pixar for billions of dollars already. Why do they do it? What makes them come to work everyday? They do it because it makes them happy. They do it because it makes them feel alive. Just getting better from current levels feels good. If you study hard, you can improve your rank. If you make an effort to interact with people, you will do better in interviews. If you practice, your cricket will get better. You may also know that you cannot become Tendulkar, yet. But you can get to the next level. Striving for that next level is important.

Nature designed with a random set of genes and circumstances in which we were born. To be happy, we have to accept it and make the most of nature's design. Are you? Goals will help you do that.

I must add, don't just have career or academic goals. Set goals to give you a balanced, successful life. I use the word balanced before successful. Balanced means ensuring your health, relationships, mental peace are all in good order.

There is no point of getting a promotion on the day of your breakup. There is no fun in driving a car if your back hurts. Shopping is not enjoyable if your mind is full of tensions.

You must have read some quotes - Life is a tough race, it is a marathon or whatever. No, from what I have seen so far, life is one of those races in nursery school. Where you have to run with a marble in a spoon kept in your mouth. If the marble falls, there is no point coming first. Same with life, where health and relationships are the marble. Your striving is only worth it if there is harmony in your life. Else, you may achieve the success, but this spark, this feeling of being excited and alive, will start to die.

One last thing about nurturing the spark - don't take life seriously. One of my yoga teachers used to make students laugh during classes. One student asked him if these jokes would take away something from the yoga practice. The teacher said - don't be serious, be sincere. This quote has defined my work ever since. Whether its my writing, my job, my relationships or any of my goals. I get thousands of opinions on my writing everyday. There is heaps of praise, there is intense criticism. If I take it all seriously, how will I write? Or rather, how will I live? Life is not to be taken seriously, as we are really temporary here. We are like a pre-paid card with limited validity. If we are lucky, we may last another 50 years. And 50 years is just 2,500 weekends. Do we really need to get so worked up? It's ok, bunk a few classes, goof up a few interviews, fall in love. We are people, not programmed devices.

I've told you three things - reasonable goals, balance and not taking it too seriously that will nurture the spark. However, there are four storms in life that will threaten to completely put out the flame. These must be guarded against. These are disappointment, frustration, unfairness and loneliness of purpose.

Disappointment will come when your effort does not give you the expected return. If things don't go as planned or if you face failure. Failure is extremely difficult to handle, but those that do come out stronger. What did this failure teach me? is the question you will need to ask. You will feel miserable. You will want to quit, like I wanted to when nine publishers rejected my first book. Some IITians kill themselves over low grades how silly is that? But that is how much failure can hurt you.

But it's life. If challenges could always be overcome, they would cease to be a challenge. And remember - if you are failing at something, that means you are at your limit or potential. And that's where you want to be.

Disappointment's cousin is frustration, the second storm. Have you ever been frustrated? It happens when things are stuck. This is especially relevant in India. From traffic jams to getting that job you deserve, sometimes things take so long that you don't know if you chose the right goal. After books, I set the goal of writing for Bollywood, as I thought they needed writers. I am called extremely lucky, but it took me five years to get close to a release.

Frustration saps excitement, and turns your initial energy into something negative, making you a bitter person. How did I deal with it? A realistic assessment of the time involved movies take a long time to make even though they are watched quickly, seeking a certain enjoyment in the process rather than the end result at least I was learning how to write scripts, having a side plan I had my third book to write and even something as simple as pleasurable distractions in your life - friends, food, travel can help you overcome it. Remember, nothing is to be taken seriously. Frustration is a sign somewhere, you took it too seriously.

Unfairness - this is hardest to deal with, but unfortunately that is how our country works. People with connections, rich dads, beautiful faces, pedigree find it easier to make it not just in Bollywood, but everywhere. And sometimes it is just plain luck. There are so few opportunities in India, so many stars need to be aligned for you to make it happen. Merit and hard work is not always linked to achievement in the short term, but the long term correlation is high, and ultimately things do work out. But realize, there will be some people luckier than you.

In fact, to have an opportunity to go to college and understand this speech in English means you are pretty darn lucky by Indian standards. Let's be grateful for what we have and get the strength to accept what we don't. I have so much love from my readers that other writers cannot even imagine it. However, I don't get literary praise. It's ok. I don't look like Aishwarya Rai, but I have two boys who think I am more beautiful than her. It's ok. Don't let unfairness kill your spark.

Finally, the last point that can kill your spark is isolation. As you grow older you will realize you are unique. When you are little, all kids want Ice cream and Spiderman. As you grow older to college, you still are a lot like your friends. But ten years later and you realize you are unique. What you want, what you believe in, what makes you feel, may be different from even the people closest to you. This can create conflict as your goals may not match with others. . And you may drop some of them. Basketball captains in college invariably stop playing basketball by the time they have their second child. They give up something that meant so much to them. They do it for their family. But in doing that, the spark dies. Never, ever make that compromise. Love yourself first, and then others.

There you go. I've told you the four thunderstorms - disappointment, frustration, unfairness and isolation. You cannot avoid them, as like the monsoon they will come into your life at regular intervals. You just need to keep the raincoat handy to not let the spark die.

I welcome you again to the most wonderful years of your life. If someone gave me the choice to go back in time, I will surely choose college. But I also hope that ten years later as well, you eyes will shine the same way as they do today. That you will Keep the Spark alive, not only through college, but through the next 2,500 weekends. And I hope not just you, but my whole country will keep that spark alive, as we really need it now more than any moment in history. And there is something cool about saying – I come from the land of a billion sparks.

Thank You.

Monday, June 02, 2008

Summer 2008 !!

Punctuality + discipline are the ONLY things, practising which, one can achieve even the GOD.

June has started. The beautiful monsoon has started. In Bangalore schools started. My 6 year old started her 1st standard. She is very happy and I feel the bundle of joy near to me always.

In summer we had great days. Playing sudoku (She plays sudoku very well), learning Craft, Abacus, Hindi, Cycling when we walk in the evening and even in the morning also. She learned pretty good dancing also, she is going to perform on next weekend.

The last 2 months of summer just gone with so much of experience. I do not know if she will remember or not. But definitely I will.

Nothing much from myself. Some times just don't want to become big/grown :).

Friday, May 09, 2008

Get Environment Variables in Java

In Java 1.5, to get the value of a single environment variable, you simply need to call the getEnv("environment variable") method providing the environment variable name that you want to evaluate. The following is a simple example:

String variable = System.getenv("PATH");
System.out.println(variable);

In Java 1.5, a new method was introduced to allow you to discover all of the environment variables defined in the system. The following example uses the new method to print all of the environment variables and their values:

Map variables = System.getenv();for (Map.Entry entry : variables.entrySet()){ String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + "=" + value);}

That's it.

Tuesday, May 06, 2008

B'day with noble ideas

Few days back, I have attended a Birthday Party of some relative's kid. It was good being there. While coming back, they gave all the invitees a plant of "Bela". It was really nice manner to have greenery.

My daughter even do not want to spent lavishly on her B'day. She wants to distribute some fruits and chocolates to the kids/elders who do not get opportunity to celebrate their B'day. A noble idea at a very small age.

Election time

In Karnataka, election is going on. Daily some or other party's people will come for canvasing. Parties are publishing their manifesto, a set of pages with lot of promises which will never happen, or if they do happen, it will be full of business opportunities for party leader's family members.

When candidates disclose wealth of their immediate family members, why election commission do not ask for source of income. Those who have been in power for 2 years or so even (in hung assembly), becomes millionaire. How come ???
What is jini, they have ??

Amitabh Bachchan

Now a days Amitabh Bachchan's blog is a news in indian media as well as among his huge fans across the world.
Though his writings are mostly his views about certain subjects, which he could not talk publicly, But still on the other side he as a idol in many's life gives chance to his viewer's to interact with him more frequently.
His life's disciplined should be followed by his followers.