Archive for June, 2008

Mentally disturbed

During my previous project days, I had this project leader who always used “English words” which were apt for the situation, but nobody understood. To be with him in meetings is like watching a movie in some foreign language you never knew or heard of. Sometimes I doubt even the British won’t be aware of most of the words he throws at us. Let us call him Chaks. Consider this scenario my project mate explained. Chaks was his immediate reporting manager and one fine day he got a mail from him. I know my friend as a person who speaks clean English and knowledgeable in the language. But one particular word of that mail, he couldn’t decipher. As a practice, he highlighted the word and right clicked and got the synonym of the word. Then only he realized if somebody is watching him, they will know that he being ignorant of the word. So he gingerly looked around to see somebody watching him doing that. It was hilarious for him to find his cubicle mates too going through the synonym to understand the word.

Now ,during the same project days , I had this very good friend and colleague , Mani, who was from rural Tamilnadu and spoke the worst form of English that I have come across(Not that mine is the best , but still I manage to converse and make myself understood ). He literally rapes the language with poor grammar and inappropriate words. For instance , one of my friend Rinu was getting married. She was yet to invite Mani for the marriage. That day, when I met Mani , he told me

Mani: ” I spit  Rinu” .

Me : “What ?? But why??”

Mani : ” I talking Rinu , spit about marriage”.

Me   : “Duh!”

Since I knew him very well and know that he won’t do anything of that sort to a girl or anyone for that matter. I tried to get from him what happened. It is like, he asked Rinu regarding the marriage and he wanted to explain me that. And that he wanted to say it in a polished english. “Spilled the word” is the phrase he wanted to use there. There is no meaning of using that, but he did for no good purpose. That is what he is – a big confusion.

Well the relation between Chaks and Mani is , Mani treats Chaks as his GURU and wants to be like him . You got the relation between, Spit and Spill ?? No??. Mani was just trying to use a word he got from Chaks!!

The incident I am about to narrate is one of the most hilarious things that I have witnessed.

Me, Mani and many guys had to stay late at office one day. From where I sit, towards my right, one cubicle apart, Mani is sitting. The guys around 8 to 10, who completed the work and was having a nice time chatting were in front of me, two cubicles ahead. Consider an equilateral triangle with me, mani and the guys as the three corners. That was the seating positions. The guys were good friends of mine, and were unwinding the day’s work with jokes and they were making a lot of noise. Though I too was enjoying their jokes, at times it was getting noisy and was disturbing my work.
Suddenly I heard a loud sound, it was Mani slapping his hand on the desk and he just stood up at his place.
A sudden uneasy silence spread across the whole floor.

He took two steps towards them, and with a irritated expression said – “I am mentally disturbed”.

For a second or two the silence continued, then I heard the voice of Ganesh , ” Yes , we all know that “.

Then there was a complete mayhem and laughs as loud as it could alert the security which lasted for around 10 minutes. It included me too.

PS: He just wanted to communicate in a dramatic manner that, he is unable to concentrate!!! . Poor chap. whatever, he has just arrived in US. God help him and the clients :)

Add comment June 24, 2008

Accessing ActionForm Object using Scriplet

To access an actionform object using scriplet.

<jsp:useBean id=”actionFormNameGivenInStrutsConfig” scope=”session” class=”ActionFormClass”/>
<%
actionFormNameGivenInStrutsConfig.methodName();
%>

Add comment June 19, 2008

Convert String to Date – Java.

if this is the input :- MM/dd/yy
and this is the desired output :- yyyy-MM-dd

String strTmp = “09/21/04″;
Date dtTmp = new SimpleDateFormat(“MM/dd/yy”).parse(strTmp);
String strOutDt = new SimpleDateFormat(“yyyy-MM-dd”).format(dtTmp);

Original solution by travis here

Add comment June 11, 2008


Archives

 

June 2008
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Pages