Monday, November 30, 2009

Tips for a healthy marriage.

Trust: Trust your spouse completely when you love even if you are aware that your spouse is lying or denying saying nothing.Don't ask lot of quetsions which may not necessarily be aswered or you may only get silence as response.May be there is a very strong/valid reason behind which your spouse was compelled to lie or keep silent.Give some time to come out with truth. If you dont get the answer after some time then assume that you are not eligible to know what was that afterall.

Space around: Always give some space around your spouse. Don't always try and force your likes and dislikes on them.Coz every individual thinks different from other. Giving some space to them will keep your relationship more healthy and happy.

Compliment: Compliment right at that moment if your spouse really deserves it. Don't think of the people around, its afterall your wife/husband. At the same time dont ever try to put them down in a crowd or any family get togethers. If you don't like something then let your spouse know that in person and not in public.

Mutual Compromises and Support: "Happiness comes in small packets", this is one of the known facts and is very true. Try to compromise/give away few little things in your life just to see a cute smile in your spouse's face. Sometimes that smile will make your day and even enhances LOVE between you and ofcourse increases an understanding in your marriage.
Give support whenver needed either a moral support or financial support(if possible). Doing this will increase respect towards each other.

Surprises: Surprise your spouse on occasions. A simple candle light dinner or a movie will do. But surprises are surprises small or big will certainly blooms your love life.

All the best "ALWAYS BE HAPPY"....

Tuesday, November 24, 2009

Customize Checkstyle

Checkstyle is one of java code review tool and is highly configurable.
One of the customized check is given below.
Check to find the usage of "+=" for String concatenation.
Below code checks for the usage of "+=" for String concatenation in the java file and reports the same.This is one of the most useful check which does not come with checkstyle_checks.xml.
Lets name the check as "StringConcatenationCheck".

import com.puppycrawl.tools.checkstyle.api.Check;
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
public class StringConcatenationCheck extends Check{
/** Creates a new instance of StringConcatenationCheck */
public StringConcatenationCheck() { }
public int[] getDefaultTokens(){
return new int[]{
TokenTypes.PLUS_ASSIGN
}; }
public void visitToken(DetailAST plusAssignNode){
if(plusAssignNode.branchContains(TokenTypes.STRING_LITERAL))
log(plusAssignNode.getLineNo(),"stringusage.err.msg");
}}

Just add the name of the check in your checkstyle_checks.xml to use it.

Similarly we can write checks to check if database connections/streams are properly closed.
Let me know if anybody insterested in source code.

Thursday, November 19, 2009

My Boss

Hello friends, today is one of my favourites boss's last day in our company.The boss who is always been my wellwisher,guide and philosopher both personally and professionally.My arms and legs went numb and my mind completelty blocked when I got to know that she's putting down her papers.Two days later I realized that I must still go on in the same company with or without her.So later started taking tips from her of how to take things forward in my life agian both personally and professionaly. She gave some good suggestions which one among them is to start writing something like bolgs , whitepapers etc which can improve my self confidence.Part of that itself is this first blog I am writing.

Thanks for everything & Miss you Parimala.... that's my boss's name :).