Monday, December 31, 2007

Happy New Year

Happy New Year. Wishing new year to be successful and peaceful.

Wednesday, December 26, 2007

Digital Posters Everywhere

I have been home for Christmas. One thing i observed in my village(Amaravathi) was that there were digital posters everywhere. I am not worried about the no. of posters. What i feel bad is that posters contains reference to a politician or a Film hero or a religion or some thing to their caste. I feel these small things can have an impact on the villager's relationships. In India, where caste or religion or hero following is into the blood of the people, these posters can be one of the reasons for the communal rites. Even in Hyderabad, there were too many posters of Jagan, Andhra Pradesh CM's Son. I don't know why there is need for too much publicity for CM Son's Birthday, even District Collectors participated in his Birthday celebrations!! Regardless of how technology have made out life comfortable, easier and sophisticated, few people find a way to use for the wrong reason.

Saturday, December 15, 2007

My last week

At last, i have a life insurance. To my surprise, the formalities were completed in two days. Can you believe this !!. Last Sunday i spoke to the Agent, regarding the LIC plan i am interested in and he said that since it was a bit large amount i have to go through medical checkup. He arranged for the same on Tuesday and i am done with that. So all damn thing were over in a couple of days, now i have just get official details from the LIC. It was a term life cover, and since the agent won't get much of the commission, he tried to convince me to take another regular plans, but i was firm on not taking them and said the same to him. You know i just want to separate investments from insurance. Car Driving..!!. I did go to car driving school and i enquired about the timings and cost details. But i have to defer my plans , as i was suffering from wrist pain. So planning to learn after Christmas. Also right now i am reading "Build To Last" by Collins and Porras. It was about how few startup companies emerged as visionary companies. Will right much about the book later.

Thursday, December 13, 2007

OOP with javascript

Today, i was suprised to know OOP(Object-Oriented Programming) is possible with javascript. i came to know this while debugging dwr engine.js for stressing up dwr calls on jetty server. Below are the two links i found them useful for OOP in javascript http://www.webreference.com/js/column79/ http://www.webreference.com/js/column80/

Friday, November 23, 2007

The week after "The CAT"

The next day after CAT i thought i can get an idea about my performance in the CAT, if i verify the answers with the key provided in rediff.com. I thought i fared well in all the sections, but the fact is that i did very bad in the Verbal Ability(VA) Section. By then i am clear that i am not going to get any call for GD/Interview. Now i am in dilemma about my career. Many ideas are pouring into my mind. I know now my "emotion level" is high and so now i am not able to finalize. Will wait for sometime to finalize my plans. Thats all for now. I started reading the novel "Passenger to Frankfurt" by Agatha Christie. Its genre is mystery.May be i will writing a blog tomorrow after IIFT admission examination.

Sunday, November 18, 2007

"The CAT" is over

The CAT-2007 is over. I was preparing for this exam for a year. I did my best. Hoping for a positive response due Jan'08. It has been a tough year for me, going to my job and preparing for the exam. And whenever my friends ask me to spend time with them, always there was "THE CAT"excuse. I have postponed few things because of the exam. Now i think i am virtually free i will list down few things i want to do now. First and foremost i have to take Life Insurance for me as i was postponing this from the Jan this year. Second read.. read.. read books. I know that i am not that fluent in English i want to learn it and only way to read and make it a habit. Third.. increase my technical skills. Fourth.. Writing blogs regularly (may be weekly)... (Yeah!.. I am serious) Fifth.. Learn about margin trading, futures and options. and Sixth going to Gym regularly and also there are few others like Learn swimming Learn Car Driving Watch a lot of movies especially English.

Wednesday, October 17, 2007

Chiru, please retire high

Megastar Chiranjeevi.. alias chiru. Even a just born kid knows about him. That is the image he have in Andhra Pradesh, India. He is the top hero in the Telugu film industry since 2 decades. He is the heart rob for millions of people. He is known for consistent in delivering good movies. Known for his dances and fights. He brought his movies to the stage where people never differentiated as flop or hit. It is a "chiru movie" and they have to watch for "chiru". Now being in the last stages of his career, he is in the media for the wrong reasons. Be his first daughter's marriage or his younger brother's divorce case and presently his second daughter's love marriage. Also he hasn't delivered a good movie since 2 years. A few success people retire high. I being a hard-core fan for you expects you to be courage and brave in difficult times (as you are facing now). Deliver a few good movies and please retire high as a successful person.

Thursday, August 30, 2007

New technologies

Last week.. i moved from Poker Team to Architect team... In my previous team, i worked mostly on Core Java. After joining Architect Team i started learning new technologies... Right now, i am learning Terracotta, Jetty, Springs... and doing POC based on these 3 technologies.

Tuesday, August 28, 2007

My Birtyday

Today is my birthday, completed 23 years and entering into 24th. Achieved some thing in this 23 years.. and have to achieve a lot in the coming years.... One thing which is in priority is MBA from a good university. As today is also "Rakhi" met sister in the morning. Went to 'Shikar' (Mexican) for lunch. Planning to take my roommates for dinner too. Had a nice day.. :)

Tuesday, August 21, 2007

Away from Stock Market

Everyday, i keep updating with the stock market details by refreshing stock internet pages frequently. I feel like i am addicted and i feel that i have so many other areas that i have to concentrate. Firstly i have no access to trading sites in my office and secondly, i only trade from online trading sites, but i don't know why i keep updating myself with stock details. But why i am saying it aloud is that daily fluctuations doesn't matter for me as i am not a trader.. i feel myself as Investor. So, i am planning to passively watch the market(daily update)as i may miss good buying opportunities. Nowadays the market is in bear mood, so will buy few stocks and then will act passively.

Monday, August 20, 2007

Resisting the resist to change

Most of a time i do a small mistake and then later i say to myself that will be the last time and never again. Since i am accustomed with my habits, i do a small mistakes, later regrets the same. This is a common scenario in my life. Every time i try to change, it will last long for few days & then back to normal, though i am complacent with some of my "good" habits. But still if feel i can improve myself more than what i am now. As a part of this process i want to write blogs regularly*. Listing few habits i want to change:- 1) One of my best friends say that i react lately(emotional feelings) 2) Obsession mania (If something goes wrong i think.. think..about that) [ It is past dude..learn and go ahead] Wish me all the best.. :) *provided time is available

Sunday, August 19, 2007

Shopping @ Guntur

Friday(17th night) i went to my home town, Amaravathi. I wanted to buy 3 pairs of clothes, so i went to nearby town Guntur with my mom on Saturday. After reaching guntur we straight away went to Raymond Shop. Salesman showed different varieties of trouser clothing. Prices are too high compared to that of Hyderabad Central where i usually buy. As i cannot find my shirt size(39") in Central (Even though 39" size is available in Central, it will be bigger one for me as i prefer short length) this time i thought to stitch. I liked few of the trouser clothings the salesmen showed and we finalized two. I was skeptical about the price but with out thinking too much i said yes. Later we moved for shirts clothing and i chose clothing for 3 shirts and also for 1 cotton trouser. Finally i paid the bill, and the 2 trouser clothings i bought out turned out to be the costliest trousers i had ever bought till now and more over i has to still stitch them. Then we left for home. Later i thought whether the trousers were that worth i have paid.?? Even though i like them, I think i have paid much more than required. Things learned from this experience:- 1) Have an idea about the range of price for the things we want to buy. 2) Never ever go to one shop and finalize the deal. 3) Don't do shopping in show-rooms in towns(prefer Hyd in my case)

Friday, June 15, 2007

Team Outing

Yesterday, my team (Poker & Back Gammon) members went for outing to Runway9. Though some of my team-members have been there already, for most of the people it was first visit. We left around 2:30 p.m and reached there by 3:15 p.m For sometime we played TT, as Go-Karting was full. Then we people went for Go-Karting. It was first time for me(also for few more) and it had been so fun and exciting. It was for 6 laps and i bumped twice. ;) Every time i go to Prasads IMAX i think of rock climbing. Though i have never done there. Here and today i thought i not going to miss it. Here there are two walls one horizontal and one which is inclined towards us at the top. Obviously the latter one is tougher. I tried the latter one. But i failed to reach the top though i was very near , but i thought i am not going from here before i reach that top. Then it was time for shooting and archery. They were short events as there were only 4 chances and but we spent much time in queue. Next, few people along with me went for rock climbling, others went for go-karting. All the people climbing the horizontal wall have made it to the top. But my eye was on the second one. It was my chance and i was ready. I slipped at the beginning but then it never happened. In the middle i took rest at the critical points and the cheering by my colleagues helped to gain extra energy and finally i made it to the top. :) Yahoo!!!. Then it was time for "Laser Combat". We formed two groups of five. It also have been a good and fun event though my team lost the battle. Finally everybody had dinner. And my Project Manager dropped me at Sec'Bad from where i moved to my relatives house.

Wednesday, June 13, 2007

Party Time

To celebrate one year completion @ IVY Comptech, we, the group which joined IVY last year as freshers went to "Sahib Sind Sultan" restaurant, at CityCenter, yesterday (12/6/07). Had a great time there. Food was very good and mainly that place was a treat to the eyes. Ambiance was great. Spend most of the time memorizing last year and watching pretty girls around.

We ordered for non-veg platter as starter, which was mix of chicken, fish, prawns. Chicken was the highlight. For main course we ordered 2 roti baskets, chicken tikka masala, chicken peshawari and one more curry which i cannot recall. We also ordered "Thompson Aata Chicken", a dry item which was the
best item we had yesterday.

The final touch came when we were stepping out of CityCenter, i and ramulu (as others took a different path) came across a lady in red wrap around skirt swinging her back a little right and little left. God damn.. She is too sexy and gorgeous. For a moment i thought nothing more is needed for this life ;)

Wednesday, April 11, 2007

Instantiating a java Object bypassing constructor

One more interesting fact i have come across today is we can instantiate a java object bypassing a constructor. We have a class which have a constructor with some arguments and doesn't contains no argument constructor. If we try to create a object by calling default constructor it will throw an error. Below example shows what i have said above. class PersonalDetails { private String fname; private String lname; private int id; public PersonalDetails(String fname, String lname, int id){ this.fname=fname; this.lname=lname; this.id=id; } public String getFname() { return fname; } public void setFname(String fname) { this.fname = fname; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getLname() { return lname; } public void setLname(String lname) { this.lname = lname; } } public class Instantiation { public static void main(String[] args) { PersonalDetails personalDetails = new PersonalDetails(); } } When tried to run, it will give the following error Exception in thread "main" java.lang.Error: Unresolved compilation problem: The constructor PersonalDetails() is undefined at Instantiation.main(Instantiation.java:45) But with Objenesis we can create a object bypassing constructor. Below example shows how to create a object bypassing constructor. import org.objenesis.Objenesis; import org.objenesis.ObjenesisStd; import org.objenesis.instantiator.ObjectInstantiator; class PersonalDetails { private String fname; private String lname; private int id; public PersonalDetails(String fname, String lname, int id){ this.fname=fname; this.lname=lname; this.id=id; } public String getFname() { return fname; } public void setFname(String fname) { this.fname = fname; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getLname() { return lname; } public void setLname(String lname) { this.lname = lname; } } public class Instantiation { public static void main(String[] args) { Objenesis objenesis = new ObjenesisStd(); // or ObjenesisSerializer ObjectInstantiator pDInstantiator = objenesis.getInstantiatorOf(PersonalDetails.class); PersonalDetails personalDetails =(PersonalDetails)pDInstantiator.newInstance(); System.out.println("fname="+personalDetails.getFname()+" | lname="+personalDetails.getLname()+" | id="+personalDetails.getId()); } } Output:- fname=null | lname=null | id=0 Note:- objenesis.jar is required for the above program to work. You can find the jar in the link provided below Below link contains much more info about Objenesis. http://objenesis.googlecode.com/svn/docs/index.html

Tuesday, April 10, 2007

Accessing and Modifying Private and Final variables in java

In the office, today, i got into a situation where i have to access private members of a java class without setters and getters. Initially i thought its impossible!! As usual searched in google. Below is the epitome of my findings. In fact, we can access not only private variables but also modify them. One more interesting fact is that we can modify final variables. We can achieve this through Reflection. Only Exception to this is we cannot access or modify static final variables. Below example explains everything. Class PersonalDetails contains a static private, a final private and a private variable. import java.lang.reflect.*; class PersonalDetails { private static String fname = "Ravi"; private final String lname="Sankar"; private int id = 123456; } public class ReflectionAbuse { public static void main(String[] args) throws Exception { PersonalDetails personalDetails = new PersonalDetails(); Field fnameField = PersonalDetails.class.getDeclaredField("fname"); Field lnameField = PersonalDetails.class.getDeclaredField("lname"); Field idField = PersonalDetails.class.getDeclaredField("id"); /** Setting Accessible to true to access the variables */ fnameField.setAccessible(true); lnameField.setAccessible(true); idField.setAccessible(true); /** Accessing private and Fianl Variables */ String fname = (String)fnameField.get(personalDetails); String lname = (String)lnameField.get(personalDetails); int id = idField.getInt(personalDetails); /** Before Setting: Printing the values */ System.out.println("fname="+fname+" | lname="+lname+" | id="+id); /** Modifing Private and Final Variables */ fnameField.set(personalDetails, "Anil"); lnameField.set(personalDetails,"Kumara"); idField.set(personalDetails,987654); fname = (String)fnameField.get(personalDetails); lname = (String)lnameField.get(personalDetails); id = idField.getInt(personalDetails); /** After Setting: Printing the values */ System.out.println("fname="+fname+" | lname="+lname+" | id="+id); } } Output:- fname=Ravi | lname=Sankar | id=123456 fname=Anil | lname=Kumara | id=987654 If we try to modify value of a static final then it will throw java.lang.IllegalAccessException: exception References:- http://www.roseindia.net/javatutorials/jdk5_final_is_not_final.shtml http://www.javalobby.org/java/forums/m91815224.html