Thursday, October 29, 2009

"The Golf Balls" - Set priorities of life

When things in your life seem, almost too much to handle,
When 24 Hours in a day is not enough,
Remember the mayonnaise jar and 2 cups of coffee.

A professor stood before his philosophy class and had some items in front of him.
When the class began, wordlessly,
He picked up a very large and empty mayonnaise jar and proceeded to fill it with golf balls.

He then asked the students, if the jar was full. They agreed that it was.

The professor then picked up a box of pebbles and poured them into the jar. He shook the jar lightly.
The pebbles rolled into the open areas between the golf balls.

He then asked the students again if the jar was full. They agreed it was.

The professor next picked up a box of sand and poured it into the jar.
Of course, the sand filled up everything else.
He asked once more if the jar was full. The students responded with a unanimous 'yes.'

The professor then produced two cups of coffee from under the table and poured the entire contents into the jar, effectively filling the empty space between the sand. The students laughed.

'Now,' said the professor, as the laughter subsided,
'I want you to recognize that this jar represents your life.
The golf balls are the important things - family, children, health, Friends, and Favorite passions –
Things that if everything else was lost and only they remained, Your life would still be full.

The pebbles are the other things that matter like your job, house, and car.

The sand is everything else --The small stuff.

'If you put the sand into the jar first,' He continued, 'there is no room for the pebbles or the golf balls.
The same goes for life.

If you spend all your time and energy on the small stuff, You will never have room for the things that are important to you.

So ... ...

Pay attention to the things that are critical to your happiness.
Play With your children.
Take time to get medical checkups.
Take your partner out to dinner.

There will always be time to clean the house and fix the disposal.

'Take care of the golf balls first --
The things that really matter.
Set your priorities. The rest is just sand.'

Thursday, July 23, 2009

Economics: The Great Shift of 2009

I was thinking from while now to write something on so talked world economics, got some thing interesting. Every once in a while, we stumble upon a chart or table that says it all… here’s one hot off the press:





Oh my, where do we begin? So many to talk, lets put in points

1. Obviously, Wal-Mart is no longer No. 1. That title now goes to Royal Dutch Shell. The American consumer is out, and a global oil conglomerate is in… ’nuff said
2. There’s a clear sea change in American business. AIG, Lehman and Bear Stearns fell off the list from 2008-2009. Nike, Google and Amazon moved up
3. The world is increasingly less Amero-centric. An American company is not No. 1 for the first time in over a decade. In the whole list for 2009, 140 companies are American, the lowest number on record
4. The world is increasingly more Sino-centric. Look at China National Petroleum and Sinopec. Both Chinese companies are by far the biggest movers up from 2008-2009. Sinopec, an oil and gas company, also marks China’s first foray into Fortunes’ top 10. China now has 37 companies in the list of 500, its largest presence ever
5. Oil is still where it’s at. In spite of all the price drama over the last year, seven of the top 10 firms are oil companies
6. In the face of the worst global economic environment of our lifetimes, the world’s biggest companies are still making lots of money. The 2008 top 25 pulled in $4.88 trillion in revenue. This year, they made $5.38 trillion
7. And GE… what a black box. The world’s producer of everything was one of very few companies to retain the same position from 2008-2009. And despite the infamous GE Capital, the finance arm that apparently threatened to torpedo the whole company, GE ended up increasing revenues by nearly $7 billion.

Wednesday, April 15, 2009

MMS... A Weak PM ??

Since the day Mr. ManMohan Singh become PM, a tag of "Weak PM" is following him. Opposition parties, specially BJP, keep targeting as an then but Mr. PM never respond until couple of days back. Why so late? Is he really weak? Was PMO driven from 10 Janpath? At some extend Yes.
He is great economist no doubt about that but not a grt politician. During last 5 years, we hardly seen him standing solidly on any initiative always under Shadow of Mrs Gandhi. Does that looks strong? FYI.. Mr. Singh never contest any election so far, all the time he was member of upper house(I call that as back door entry to be in Govt.). Why don't he go in middle of people and face them. Unless you wont feel our real problems, you can not resolve.
When asked why you not accepting Mr. Adwani's chellenge for open debate, he said I do not like to talk loud. Being citizen of India I like to see how my next PM will address the current issues, same way here in US how Obama n McCain did. Whats wrong in that.. again is this his weakness?
You decide on this.....

Sunday, April 12, 2009

iND vs nZ 2009

A historic cricket tour it was!! Series win in both ODI n Test had never been easy task in Newzeland. Congrats Dhoni n team.... beginning of tour we lost T20 matches, was it over confidence, could be.. yes we are world champs but it doesn't mean we will play whatever way we want to be... Dhoni is a smart captain n he understood this very quickly...
we played sensible and attacking cricket in ODIs, result was 3-1 series win. Sachin showed he has lot of cricket left in him with an inning of 163, tht was truly amazing; n another landmark record was Shewag's fastest century from India. Same time we again missed clean swipe, reason could be again over confidence. In this area Dhoni has to work on.
Moving to Test matches without any practise match.. I was praying for team india.. it was first NZ tour for most of squad member including Skipper.. hats of team.. the way they played entire series. apart from couple of session each one in all three test were dominated by us. Again it was superb Sachin in 1st test. We saw another wall(Gambhir) in second test... wht was tht.. single handed he saved tht match. We again played excellent in 3rd match but i was disappoint with captaincy.. why 617 runs target.. in 125 year none of team ever chased 500. Dhoni was happy to win series by 1-0, he did same wht Dravid did in England test series.. we are still not mature enough to take high risks. End of day we won and that what important for every one.. me too happy.
Both Delhites(viru n gauti) openers are key for India's success in all format.
Sachin was undoubtly in grt touch, Dravid n laxman came with experience whn required most, harbhajan n zaher were impressive through out series.
Series over.. lets get ready for Modi's IPL-2 saga

Monday, April 6, 2009

XML transfer between two interface( like: Sharepoint to SAP )

Some time back, I got a requirement in my project. We need to send a xml file from sharepoint to SAP system and get response back from them. Note: This transaction can be done between any two application.
I thought what would be easiest and best approach. Hmmm, lets try with basic HTTP Post/Get method to do that. As in sharepoint I can use compile .NET code so no problem for me to go for it.

.NET Code to do that:

WebRequest req = null;
WebResponse rsp = null;
try
{
string fileName = @"D:\Projects\abc.xml";
string uri = "http://localhost/sap/test/test.htm";
req = WebRequest.Create(uri);
//req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy
req.Method = "POST"; // Post method
req.ContentType = "text/xml"; // content type
//If end user doesnot has rights to update than pass required credential explicitly
req.Credentials= CredentialCache.DefaultCredentials;
req.Credentials = new NetworkCredential("abc", "xyz");
// Wrap the request stream with a text-based writer
StreamWriter writer = new StreamWriter(req.GetRequestStream());
//read the xml file
StreamReader reader = new StreamReader(fileName);
string ret = reader.ReadToEnd();
reader.Close();
// Write the XML text into the stream
writer.WriteLine(ret);
writer.Close();
// Send the data to the webserver
rsp = req.GetResponse();

//Get response from server; ex: two parameters is passed from receiving server
string strContents, strContents1 = "";
strmContents = rsp.Headers["test1"].ToString();
strmContents1 = rsp.Headers["test2"].ToString();
}

Wednesday, April 1, 2009

Pre-Lok Sabha Election 2009

15th Lok Sabha(Indian parliament lower house) Elections are round the corner. All parties are geared up with full force. I always waited for this period and also enjoyed election time since childhood. Why?? Being related to a political family, I followed all the political development and saw the strategic discussion. I see this as a fascinating career field but yes with lot of ups n downs. Single statement can change your entire political career("Jinha was secular" and Adwani had to leave from post of party president).
Lets talk about this election:

Last day BJP announced its manifesto, as expected Ram mandir was there. You know many times I thought, once Ram Mandir will be built then what BJP will do. They will not be having any distinct issues. Apart from this, rest all points were hijacked from other manifesto.

Congress looks confident to win majority, they should not forget what happen to NDA in last election with India Shining campaign. The major plus point with them is Sonia and Rahul. Both with clean image, its highly impressive the way both of them maintain their stature.

Now King makers; SP, RJD, NCP, LJP, BSP, Left, TDP.... long list who are ready to wear the crown or have capability to change king. All are interesting characters, one best I like about them is: They never feel bad if some one tells bad words and you never know who is friend of whom. With "Dil Pe Mat Le Yaar" attitude, they are unavoidable elements of Indian politics.


With my predication of Hung parliament this time... singing off.