Showing posts from August, 2010

Both ends of a knife - 11

I had never been to Andaman in my whole life and the only two things that I heard about Andaman was the jail and earthquakes. So decided its gonna be a boring tour out there. Though i was reminded many times before i left that its a training, I preferred referring it to as tour. Niki's dad smiled at me and i found the reason a little later. I reached there through flight, no guess for the fact that Niki's dad was the sponsor. I was not officially into the mission yet, so accomplishments. The first thing or rather the only thing I noticed about Andaman was the water. Its one more place where water lives around you rather than you living around water else where..:) I was made to wait in airport for an hour before an animal came and took my bags and me. I refer the person as animal not because of disrespect. If there is any animal that would match him, it could only be a cheetah waiting to pounce upon its prey. He was around 6.5 height and would weigh approximately hundred and as…

Both ends of the knife - 10

Writer’s Note:
              First of all sorry to all my readers who have been following my blog faithfully for the delay in the story. I was caught up with couple of technical issues that prevented me from posting the novel for a while. Past is past. Here I am back again with a bang...:)  “Both ends of a knife” is not just another novel that I write for name, fame or time-pass. It’s my dream, a vision that has taken long years to take shape. Each word and each character has been through my mind at least hundred times before I present it to you. You readers are special to me and this story is my small dedication to you. Lets get back to the story…a small synopsis; ram has just become agent Nik to take revenge on people who killed his dad and also threatening to do the same to the Nation. And we are hearing everything through Ram’s eyes.

              Life after I became Nik was not always the same. It was something different and finally I knew I had a purpose to live. But for the cause…

Both Ends of a Knife - 9

He finished his beer and I had also done with my mountain dew and just then I was wondering why he brought me in the middle of the class and telling me all this past history. I decided may be they were work friends and he wanted to help me out financially. The whole idea of being pitied by and being helped by my lover’s dad was little awkward for me. I thought of standing up and leaving when he saw me once again. But this time i saw a completely different face of him. His eyes were wet. I repeat. HIS EYES WERE WET. I never thought he had room for emotions let alone crying in his life. But today, for the first time in my life, i pitied him. Crying didn’t suit him. I just saw him. I wanted to tell him not to cry and above all ask him the reason why his eyes were wet. It didn’t occur to me that time that too much of beer could also wet one’s eyes (that i learn't a little later). He looked at me and said i wish i could have saved your dad from them...What do y…

Email Validation using Callouts in Openbravo

Hi all, I have a written a simple java code that validates an email ID. This is not a completely validated one, but a basic validated one. This can also be also used as a template for creating callouts in Openbravo. special mention to my colleague pandi and one more thanks to ivan from Openbravo in helping me accomplish this task...:)

package org.openbravo.erpCommon.ad_callouts;

import javax.servlet.ServletException;
import org.apache.log4j.Logger;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.openbravo.erpCommon.ad_callouts.SimpleCallout;
import org.openbravo.erpCommon.utility.SequenceIdData;
import org.openbravo.erpCommon.utility.OBError;
import org.openbravo.scheduling.ProcessBundle;

public class Email_CL extends SimpleCallout {

    private static final long serialVersionUID = 1L;
    private static Logger log = Logger.getLogger(Email_CL.class);
    protected void execute(CalloutInfo info) throws ServletException {


Phone Number Validation in postgres

I took a simple number validation code across net and modified it to check phone numbers. It allows only numbers,plus symbol(+) and underscore(_) operators

-- Function: isphoneno(character varying)

-- DROP FUNCTION isphoneno(character varying);

CREATE OR REPLACE FUNCTION isphoneno(character varying)
  RETURNS boolean AS
    RETURN $1 ~ '^[0-9,+,-,.]+$';
  COST 100;
ALTER FUNCTION isphoneno(character varying) OWNER TO tad;

Both ends of the knife - 8

We drove in his car, it was Hyundai Accent, the car i dreamt of owing some day, but somehow decided otherwise today. I felt an ego burning inside me. I didn't want to give her what her dad had already given her. She used to always boast to me about how good her dad was to her and how she always got what she wanted, nothing more or nothing less. Whenever i hear such talks i hear a sense of jealousy inside me, coz i wanted her to be even happy only because of me. That’s my nature. I am really really possessive about her, coz i don't possess anything else in this world. So decided it had to be a benz. Well all these apart, I have still having butterflies under my stomach coz i saw a brand new gun under his shirt. I thought he might have bought it today just to finish me off. And after around half an hour we stopped at a old guest house. A typically setup for a typical ending i thought.
            All along the journey I never spoke with him nor did he. We both kept he…

Both Ends of a Knife - 7

After i did my 12th, there was no intention in my mind to continue studies. Plainly because we were feeding on ajay and it was bit awkward though he treated us like his sons. I spoke about it to ajay one day and he felt I was partly right. He was more in favour of the western culture where youngsters go in search of their life after they do their basic schooling. So he told me that i should not stop studying but start searching for a side income so that i don't feel awkward staying as unpaid guest but also move away from these unwanted distractions(by all means he meant niki). Its not that he was against love, but he felt my age was not right for it and i was not mentally ready for it. I wished to tell him that to some Love is an experience in life and to few like me, love is the elixir of life. How can i tell him that it is niki because of whom i am able to bear all losses and all talks behind me. My brother shyam was just two years old and i looked more like a dad to him and eve…