The Alchemist's profileMaverick's SpacePhotosBlogListsMore Tools Help

Blog


    5/14/2008

    Hell is near!

    Heard about quakes in china :( ; it's pathetic to see loss of so many human lives in a zap motion of earth; we live so much short uncontrolled lives, and nature reminds us that.

    Yesterday, at least 60 people died in Jaipur in serial blasts , that was more painful to see people taking the news with equal status of IPL matches; how come humans become so heartless; 60 people died, and all people care for is how Shoaib akhtar took wickets yesterday?

    My heartiest condolence for the families of demised; and Prayers to god for resting the souls in peace.

    I feel like Hell is coming near to us all; around 10 million people died in Myanmar a weak back due to cyclone Nargis, then China, and then blasts in India, feels as if Lucifer is getting hold of mankind; but we shall not forget that god gave us a gift of love. and humanity; we shall practice the most basic right of being loved and loving people.

    My love to all....
    5/7/2008

    asterisk for java - installation

    Now a days i am playing with Asterisk, and now I needed to integrate a Java based application with asterisk.

    I started searching, and found about JAsterisk, but later i found that JAsterisk was made with Asterisk 1.0.0 while I am running with Asterisk 1.4, and 1.2 installations.
    Then I found Asterisk for Java ; this package is built on top of Maven [a project management API for Linux],  the pre-requisites were as follows

    1. JDK above version 1.5
    2. Maven

    Now, JDK has a significant style of it :) ... but As I am a .net developer I'll say it sucks....I tumbled a lot with installation sof JDK's and JVM' and environment variables, let me simplify it for you....

    1. Download JDK from http://java.sun.com/javase/downloads/   you need to download the self extracting binary .. with a name somewhat like this jdk-6u6-linux-i586-rpm.bin
    2. Copy it into a directory; I copied it in /opt , extracted it there by command
    ./jdk-6u6-linux-i586-rpm.bin

    Note - it should install automatically, but if it doesn't or it says some Java Package is already installed you'll have to remove it
    yum remove <packagetoremove>

    3. Now we need to create environment variables
    My JAVA is installed in directory /usr/java/jdk1.6.0_06
    this is how you can persist your Java environment variables for good in your linux machine, be it on root OR on user
               open the directory /etc
              Find the file profile open it type these lines, one for PATH, one for JAVA_HOME, and one for CLASSPATH
    Note - remove my comments from here before copy pasting these lines, also put them at end of file
          
    //for the directory path where JAVA imnstallation resides
    export JAVA_HOME=/usr/java/jdk1.6.0_06           

    //For the path where compiler resides, the bin dir contains javac which is the compiler
    export PATH=PATH=$PATH:/usr/java/jdk1.6.0_06/bin

    //For the PATH where classes may reside,m in our case they may reside in any directory
    export CLASSPATH=$CLASSPATH:.

    Now, you should restart your machine, raise the terminal window [command prompt] and cross check
    type these commands, and you may see the results like this
    [root@localhost ~]# java -version
    java version "1.7.0"
    IcedTea Runtime Environment (build 1.7.0-b21)
    IcedTea Client VM (build 1.7.0-b21, mixed mode)
    [root@localhost ~]# which java
    /usr/bin/java
    [root@localhost ~]# which javac
    /usr/bin/javac
    [root@localhost ~]# echo $JAVA_HOME
    /usr/java/jdk1.6.0_06
    [root@localhost ~]# echo $PATH
    /usr/local/apache-maven-2.0.9/bin:PATH=/usr/local/apache-maven-2.0.9/bin:PATH=/usr/local/apache-maven-2.0.9/bin:PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.6.0_06/bin:/usr/java/jdk1.6.0_06/bin:/root/bin:/usr/java/jdk1.6.0_06/bin
    [root@localhost ~]# echo $CLASSPATH
    :.:.:.

    Ok , Now lets
    get the runtime of Asterisk for Java, As I don't have any plans to play with source of asterisk for Java

    download the Asterisk-java-03.jar from http://sourceforge.net/projects/asterisk-java/

    for testing create a directory and copy this Asterisk-java-03.jar file in it
    Now create a file HelloAGIScript.java and copy paste this code

    import org.asteriskjava.fastagi.AgiChannel;
    import org.asteriskjava.fastagi.AgiException;
    import org.asteriskjava.fastagi.AgiRequest;
    import org.asteriskjava.fastagi.BaseAgiScript;

    public class HelloAGIScript extends BaseAgiScript
    {
        public void service(AgiRequest request, AgiChannel channel)
                throws AgiException
        {
            // Answer the channel...
            answer();
                   
            // ...say hello...
            streamFile("tt-monkeysintro");
                   
            // ...and hangup.
            hangup();
        }
    }


    Save it in the same folder, I have saved both of these files at /root/MyAgiScript, now go to terminal window, and compile it
    [root@localhost MyAgiScripts]# javac -g -cp asterisk-java-0.3.jar HelloAGIScript.java
    Now, create a file fastagi-mapping.properties copy and paste this code
    //for mapping the agi script to the Java code we created
    hello.agi = HelloAGIScript

    now go to your dialplan in asterisk  /etc/asterisk/extensions..conf
    I have a dialplan like this, which I can dial from a SIP phone

    [sip]
    ;
    exten => 1,1,Answer()
    exten => 1,2,Wait(2)
    exten => 1,3,Record(asterisk-recording%d:ulaw)
    exten => 1,4,Wait(2)
    exten => 1,5,Playback(${RECORDED_FILE})
    exten => 1,6,Agi(agi://localhost/hello.agi)
    exten => 1,6,Hangup()


    Now open another terminal window, and run your AGI server
    java -cp asterisk-java-0.3.jar:. org.asteriskjava.fastagi.DefaultAgiServer

    and it should run like this
    May 7, 2008 5:38:29 PM org.asteriskjava.fastagi.DefaultAgiServer startup
    INFO: Thread pool started.
    May 7, 2008 5:38:30 PM org.asteriskjava.fastagi.DefaultAgiServer startup
    INFO: Listening on *:4573.
    May 7, 2008 5:39:25 PM org.asteriskjava.fastagi.DefaultAgiServer startup
    INFO: Received connection from /127.0.0.1
    May 7, 2008 5:39:25 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle
    INFO: Added mapping for 'hello.agi' to class HelloAGIScript
    May 7, 2008 5:39:25 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler runScript
    INFO: Begin AgiScript HelloAGIScript on Asterisk-Java DaemonPool-1-thread-1
    May 7, 2008 5:39:25 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler runScript
    INFO: End AgiScript HelloAGIScript on Asterisk-Java DaemonPool-1-thread-1

    This  output- comes when I dial a call from my sip-phone to the asterisk server; and it plays a sound file for me......

    Please feel free to ask me any questions you may have; it was sweet to do this, hope someone could've posted all the details like this.








    3/12/2008

    IIT ka bhoot !

     

    Hieeee!   it was another fire fighting day in my office, a service stopped working for no good reasons; anyways Mr. Prawal gupta, our Managing partner in UK , was visiting us , and we [ employees ] thought "why not give him a treat ?"

    So, Praveen Kumar [ apna local bindaas project managgger * , woh kirket waala nahi :) ] asked me to invite both of our bosses and the rest of team to come and join us for a lunch; for which all the hungry stomachs' agreed; "Mein toh ghar se lunch laata hoon" but i thought i'll give it a skip today.

    They all left for Atta Market, CSM Mall in two cabs, and Me, Praveen decided to come by Bike, toh fir ek honey waaley Papa ka [ "samajh gaye naa ! :)"] bojh apney pichhli seat par lekar hum nikal padey atta ki ore.

    Skinny, moti, aur sexy punjaabi ladkiyan taadtey huey [Taadtey - boley toh aankh seenkna, ab yeh kya hota hai, yeh samjhaaney ka time ko naa beta mere paas, je reader chhori hai toh saturday ko aaja, TwoSON de doon !], haan toh apun pahunch gaye CSM  MAAAL, and we joined in at Punjabi tadka restaurant.

    ab muddey ki baat, Praveen wanted to Ask Tarun [my iitian boss] ,and Prawal [he's a fellow iitian with Tarun] , that when should a guy start preparing for IIT, and Tarun, prawal replied satisfactorily, though i didn't took much part in this conversation, i hardly know about iit's, but it put me in thoughts for a while

    when i was in 8th , 9th or even 11th, 12th, God promise mujhkko bilkul nahi pata tha yeh hoti kya hai?, i was like a lost kid, woh "Taarey zammen Par" waala Chu*** bachcha hai naa, bilkul waisa tha mein :); socha yaar "maa baap ko aajkal kitna pata hai, IIT, FIIT", Tabhi Tarun sir na bataya ki, udhar par back to back exam hotey hain, aur Discipline is hard, aur haan curse words ki bhi baat hui, fir dimaag ke ghodey chaley aur apney graduation ke din aaye - discipline ?  yeh kya hota hai ?   yaad hai woh mussorie ki trip, apun 5 yaar they, ek car mein, aur woh B****C*** toh koi 500000 baar use kiya tha humney, thank god meri behan nahi hai, varna bechaari ko kitna khatra ho jaata tha.....

    Rest - abey yeh aaram waala hai, bachi hui post baad mein kabhi likhoonga.....

    2/21/2008

    Copy Lines from a file to an array of Character pointer or say char*array[]

     

    SO I happened to be in position to write some C code, to copy the contents of a file line by line to an array of character pointers; for a .net guy it's nothing but array of strings, and each string would contain a line of this file, and we had to iterate line by line....seems easy so I came up with this code....

    I initialised  the variables like

     

    /* PS - it's a wrong code...I'll narrate the problem after U see the code...... */

    char c[256]={0};
      FILE *file;

    static char *recogArgv[6];

      file = fopen("MyArgs.txt","r");

    if(file==NULL)
      {
          printf("No arguments supplied in the MyArgs..or the file doesn't exist");
          return 1;
      }

    /* here goes my code to iterate line by line and put variables into the array of char*/
      else
      { int i = 0;     
          while(fgets(c,256,file)!=NULL)
          {              recogArgv[i] = c;        i = i + 1;               
          }
          fclose(file);}

    so every time i ran this "Else" loop. it did get the new line in variable c but always, when i iterate i found that all the contents in the array of char* are same , obvious?

    coz the c is nothing but a pointer, and it ought just copy the pointer address to the recogArgv, leading to the problem of same content in all the items of this array.

    solution?    i did live search, Google search and nothing....people are talking about malloc, calloc, free....Guys  I am a .net guy and i want an API, I don't get registers...and hey I did found an API. and here's the right code...it uses strdup API to get me a duplicate address for the c which I would pass to my recogArgv and problem solved....

    /* The perfect Code */

    char c[256]={0};
      FILE *file;

    static char *recogArgv[6];

      file = fopen("MyArgs.txt","r");

    if(file==NULL)
      {
          printf("No arguments supplied in the MyArgs..or the file doesn't exist");
          return 1;
      }

    /* here goes my code to iterate line by line and put variables into the array of char*/
      else
      { int i = 0;     
          while(fgets(c,256,file)!=NULL)
          {             

    recogArgv[i] = strdup(c);  /*The use of strdup not only made my program pointer safe, but also helped me from getting into the malloc, calloc stuff */

            i = i + 1;               
          }
          fclose(file);}

    Cheers!

    1/29/2008

    LG Viewty Handset Launched in India | PriceGuru | Hardware Prices, News, Reviews, Guides, Events and More

    And i've bought it :)   yippeee...just waiting to buy a new connection; any suggestions- i want a GSM connec with GPRS in it.....

     

    I am gonna buy this phone

    LG Viewty Handset Launched in India | PriceGuru | Hardware Prices, News, Reviews, Guides, Events and More

    12/23/2007

    Sorting an arrayList of Dates

     

    So I just recently, had to sort the arraylist of dates, though i could've done it with a normal sorting algo, but i thought i should do it .net way.

    all I did here is to derive is class from Comparer Generic of type DateTime

    and override the function Compare, the function, inside this function we make use of CompareTo function of Type DateTime.

    Allright let's see how i used it.....

     

             /// <summary>
            /// Returns the sorted array of dates
            /// </summary>
            /// <param name="DateTimes"></param>
            /// <returns></returns>
            public ArrayList GetSortedDatesASC(ArrayList DateTimes)
            {
                DateTimes.Sort(new DateTimeComparer(false));
                return DateTimes;
            }

     

    class DateTimeComparer : Comparer<DateTime>
      {
          private bool _sortDescending = false;

          //pass true to the constructor to sort descending
          public DateTimeComparer(bool descending)
          {
              _sortDescending = descending;
          }

          public override int Compare(DateTime x, DateTime y)
          {
                 if (_sortDescending)
                     return y.CompareTo(x);
                 else
                     return x.CompareTo(y);
          }
      }

     

    Ciao!   Merry Christmas

    12/11/2007

    Issue n°161 : Convention of those wounded in love at Warrior Of Light

    I am becoming a member for this convention...

    what about providing Loving Asylum to all the refugees in love.

    Issue n°161 : Convention of those wounded in love at Warrior Of Light

    12/3/2007

    Whore Or a Saint?

     
    Awesome!  Post by this guy.... i was left spellbounded...
    11/4/2007

    Love Can't be tested, Love is born in the part of us that doesn't die

    I didn't wanted to hear what's wrong with him, and the parents. I told my self. At any rate, it's got nothing to do with me. i pushed the thoughts out of my mind, i felt the breath of that ghosted lie on my face as i walked through the long, thronging way home on this simmer november noon.

    The ambessador brushed past me, and came to halt as if it's an old friend. "I searched for you everywhere." Devenier seized me by arm, and before i could speak or even recognize him, "dude i have been to the most unspeakably foul places looking for you, i couldn't go to your home, you know why" he said , as i knew why he can't come to my place.

    "well dude, i suppose you are the only one, who can help Vikki (Devenier's friend). Leti (Vikki's heartthrob, who keeps kicking him like anything)'s cold heart can unfold, if you just help us" Devenier said.

    I didn't had an idea, i am myself a known failure in love, and i couldn't charm a stone, leave Leti, i can't make her do anything ever.

    "Yeah! well, i wish him the best," i frowned, "but, i am hungry, and lunch must be ready at home by now, you can let me off here".

    "But, no its not possible" Devenier objected, "Leti, is a lot stubborn woman, she could refuse gold or diamonds if someone insisted, that she should take them. She will not participate in the strategy unless someone convinces her, someone like you, and this must be done in an hour from now, sharp at 5:36"

    "And what makes you think i can make her do something, you know how she looks at me each time, we all are around, she's herself told you guys several times in my absence that she feels i am staring her, and i might have dreams for her in my mind; she thinks i am crazy about girls, and the way she talks with Vikki says that she thinks he's a clown, and not a good match for him in this world'

    "You are the only one of us, she deosn't hate, or hasn't hated in some time of past, she's a grown up girl, and certainly she's said those things about you, but she know you  are a young guy, and you have a human limit of control, she adores your intelligence. she'll listen to you, i am sure of it, and with out you plan will fail, Vikki has already risked his life to made this plan successful, you can't imagine how much, dude HELP!"  Devenier said, he was trying to talk me in it, as he knew i am fond of praise, he did his bit.

    'Well nobody told me anything about it,' I complained, still thinking of my lunch, and home.

    'But that's exactly why, i have called you several times since friday, i knew you must be on for your dose at NMH, but i thought you might would like to talk before you go for sleep, i came to know you were in Lucknow before that, but you never picked the call. you have no choice dude, you've got to help him, i know you have a morbid belief in love, and a fascination for the madness that love puts in its victims" Devenier said.

    'i would never bet on my convincing capabilities, Devenier' I said.

    'Leti knows about you man, and now she has this caring attitude for you" Devenier said.

    It was an alarming tone in my mind, who told her, and how bare the person might have told her, about it, it's not something life taking, but i had this idea that Vikki must've talked her in it, to make her cry, and have her sympathy and let her share his shoulder, he's done it in past, i knew he once told her that 'Devenier had Cancer" :) 'Oh! Crap Devenier, what the hell you guys told her, i don't know much about myself, and you shared what...i don't know"

    "Don't worry, bro, everything will be fine, we'll limit it later, we'll make it sound like a miracle later."

    The amby got pulled onto Safdarjung Ralway station, Vikki was there, and his sister ( i never asked her name, she's a beautiful intelligent girl, and known for putting end to every argument).

    "Hey! Bhagwan! you'e here man!" he shaked with both of his hands, and so firmly that i was shaking totally. 'i thought you weren't coming'.

    'Where is Leti' Devenier asked, "she's there observing the flowers" vikram pointed towards her, Leti looked like an angel, she's pale, and skinny, and she wore a pink skirt, as always she didn't tied her hairs, Loose and Blonde she looked wonderful.

    "what am i supposed to do", i asked, Vikram pulled out a black, satin piece of cloth, and said "you've got to talk her in, and ask her to get blindfolded with this cloth, and ask her to keep still". 'OH! come on, can't you see my face, she won't do it for me dude' I objected.

    'She will for you, and just for you, she has this soft corner for stray dogs, children, flowers, and dying people' Vikki said in a firm tone, I hated him for this game, i am not dying. 'Hey! what the hell you made me sick off, i can't do this, it's all lie' I backed off.

    Vikki's sister interrupted 'everything is fair in love and war, won't you still go to your first love and beg her for love always, won't you still go and sit with her even if she humiliates you, won't you still long for her, even if she talks with love to her fiancee, and wears heena on his name, won't you like to stay bachelore until your heart is shattered to pieces and you loose the love completely from your heart. She hates you and you told her you hate her, but There is not hate in love, Love goes on forever, once it begins even if we come to hate the one we love. Love goes on forever bacuse love is born in the part of us that doesn't die'.

    I had tears rolling, and i wiped them before they touch my cheeks, i quickly grabbed the cloth piece folded it neatly while taking my way down to railway bridge, she was there, smelling the merrygold flower, she smiled at me, and as soon as i reached towards her, she pulled me and gave me a tight hug   "You are dear to me, Let's cry sometime" Leti said.

    I departed myself, i did liked her touch, but I knew it had sympathy, and sheer sympathy, it was cheating, but it had love somewhere, it was like finding 'Sin in Crime' and i can't find a Sin here, even if there was, love commands it's way through hell even :).

    "Do you trust me' i asked Leti.

    "Yes! ask for anything, i'll get you anything that pleases you Rajjjaaa Ji" she said with a flirting smile.

    It was 5:30, 'would you blindfold yourself for 15 minutes with this, and stay calm, i give my word nothing BAD would happen, and if there's i am already approaching to hell, one more lash won't do harm to me'  'Dear'  I said, and I said it in two pieces the 'Dear' followed from my heart. She liked it, and she quitely took it from my hands, I helped her folding it, and i tied it gently on her eyes, i took her purse.

    "it doesn't have much in it, you won't be able to hire a decent taxi back home' she laughed while saying, i felt as if i am playing a honeymoon game, but then a train approached, and it had a group of people on roof!

    Vikki, came running, with Devenier, and his sis.

    He lifted her gently, and she suddenly knew, it's not me it's Vikki, it must be him, he's tried it in past, she knows his touch, he always longs for her, she shouted "Rajey! if this is Vikki, i am gonna kill you, you would rot in hell for sure".

    ' I might not keep my promise, but beleive in him, Honey! you would love it, you would certainly love it' Vikki replied while pulling her up to the guys at Train's roof, and Devenier also took the train, in no less then two minutes we all were on roof top, and we all set around her, she was in middle of two of this mustachioed man, they were from punjab, and they were singers. 'they opened her blindfold, but they hold her arms.

    "Vikki i HATE you, i don't love you, don't you know this, 100 times i have denied you, nothing is gonna pull me in" she shouted and she made a fullstop to her dialogue the moment she saw me, i was disappointed, she's stubborn lot. I just raised my finger to the setting Sun, it was indeed beautiful, awesome, and i almost felt so much of love, in me, i can't put it in words.

    They started singing, a Bulleyshah song  .... i can't phrase much out of it, it was beautiful, they sang with passion, i am sure they never sang better than this, there was love for god, for every divine being on earth, for a me and a you....

    The moment of joy came, there was a white banner tied in electric poles ahead,  Vikki raised up like a MAN, and twisted her head to see the banner, it had "LETI I LOVE YOU"...

    He held her palms, and he won't let her go, she know this, she can't deny true love, no one living can.

    An utter piece of silence was around, only the trembling sound of train was there, The Singers stopped singing as well.

    Vikki is crying in her palms begging for love "Love me, Love me, Love me", and she's solid like a rock, the singing started again, They are singing a piece from a Hindi Song

    'usko khuda miley hai khuda ki jise talaash

    mujhko toh ek jhalak mere dildaar ki miley'

    And another banner was approached, it said "WILL YOU MARRY ME".

    She broke in his arms, and i felt at peace.

    "Lucky bastard!" vikki's sis said, settling her head over Deveniers' shoulders.

    Devenier took out 3 Cigars' from his pocket, lighted them, gave two of them to singers, and puffed one on his own.

    I remained quite in my own space, every one had a shoulder to rest, i didn't.

    The train took round of delhi, and came back to Safdarjung at late evening, we all got down, Devenier paid the singers like a king, a hefty amount, which they denied for the sake of love, they hugged the couple, blessed them, and said good bye.

    Leti, rushed Vikki for a quick coffee, and asked his sis to go and get some chips.

    She came to me, "Thanks! i can never commit it, i had it, you don't know how am i going to fight with the upcoming things, but i am sure vikki will handle them; tell me, didn't you ever wanted to have me"...Leti talks flat, and she has those inspecting eyes, she kind of looked in me, she knew the answer.

    "you have so much of love man, for a single being, she must be a lucky fool,  I love your youth, I like your desire, I like your love, You will be fine, and I am sure, you'll find better then her" she said

    I remained quite..."you know Rajey! One Love ONE LOOOVe One love one love" she kept repeating the word for a while until i smiled.

    9/6/2007

    Zeehal-e-Maskeen Makun Ba Ranjish - The origin

    I love this song http://www.youtube.com/watch?v=VKnX3QqFDbk&mode=related&search=&v3 from the movie ghulami.. 
    the great thing is I never knew exact meaning, though the guy who posted the video posted the meaning of song, but he also pointed that original poem was written by Amri Khusaro in two lenguages at once , persian and brij bhasha...i can understand Brij Bhasha...here is the Exact poem
     
     
     
     
     
    Ziehal-e miskeenn makun taghaful, duraye naina banaye batiyan;
    ki taab-e hijran nadaram ay jaan, na leho kaahe lagaye chhatiyan.

    Shaban-e hijran daraz chun zulf wa roz-e waslat cho umr kotah;
    Sakhi piya ko jo main na dekhun to kaise kaatun andheri ratiyan.

    Yakayak az dil do chashm-e jadoo basad farebam baburd taskin;
    Kise pari hai jo jaa sunaave piyare pi ko hamaari batiyan.

    Cho shama sozan cho zarra hairan hamesha giryan be ishq aan meh;
    Na neend naina na ang chaina na aap aaven na bhejen patiyan.

    Bahaqq-e roz-e wisal-e dilbar ki daad mara ghareeb Khusrau;
    Sapet man ke waraaye raakhun jo jaaye paaon piya ke khatiyan.

    And the English translation is:

    Do not overlook my misery by blandishing your eyes,
    and weaving tales; My patience has over-brimmed,
    O sweetheart, why do you not take me to your bosom.
    Long like curls in the night of separation,
    short like life on the day of our union;
    My dear, how will I pass the dark dungeon night
    without your face before.
    Suddenly, using a thousand tricks, the enchanting eyes robbed me
    of my tranquil mind;
    Who would care to go and report this matter to my darling?
    Tossed and bewildered, like a flickering candle,
    I roam about in the fire of love;
    Sleepless eyes, restless body,
    neither comes she, nor any message.
    In honour of the day I meet my beloved
    who has lured me so long, O Khusrau;
    I shall keep my heart suppressed,
    if ever I get a chance to get to her trick.
     
    Great Meaning isn't it.....
    6/17/2007

    Safari for windows

    i have always been using IE, and i did found IE7 really cool, though i have used firefox and opera as well, but i was never in love with either one of them. IE's rendering capabilities are awesome, and it renders almost every kind of tags, that too without flaws, while we have practically seen that Firefox does skips, or show bizarre outputs. i was just browsing through an e-paper, when i saw a link saying "Safari is released for windows" i just downloaded that from this link http://www.apple.com/safari/ trust me it's beautiful, and cool, with lots of animated effects, and the way it renders the HTML is the BEST, but the only problem is it skips the embedded youtube videos, i don't know why, but it's doing so..... i hope they'll fix it. one more thing, it is fast, but for the first few times, it's not.....
    6/16/2007

    even boys has something to say

    i was used to write a blog http://dotnetbuzzz.blogspot.com and today i was just reading it back, when i found an entry in which i wrote a lot of jokes clubbed together,.... the theme was - "some mature questions to kids, and see how they answer" the entry is available at http://dotnetbuzzz.blogspot.com/2005/11/jokesgalore.html
     
    one of the quote by a li'l girl caught my attention, and i know you'll agree with her, if you are a BOY
     
    "Dates are for having fun, and people should use them to get toknow each other. Even boys have something to say if you listen long enough." Lynnette, age 8

     

     


    6/11/2007

    another nice song

     
    no matter, how much i try, i couldnot come up with a techie Entry.....sorry dudes, but can't help it, i think what i know everybody knows.....
     
    here are the lyrics of a beautiful song
     
    Movie Name: Jo Jeeta Wohi Sikandar (1992)
    Singer: Jatin
    Music Director: Jatin-Lalit
    Lyrics: Majrooh Sultanpuri
    Year: 1992
    Producer: Nasir Hussain
    Director: Mansoor Khan
    Actors: Aamir Khan, Ayesha Julka, Deepak Tijori, Kulbushan, Pooja Bedi
    Theme: Family Drama

    Rooth ke humse kahin jab chale jaoge tum
    Rooth ke humse kahin jab chale jaoge tum
    Ye na socha tha kabhi itna yaad aaoge tum
    Rooth ke humse kahin jab chale jaoge tum
    Rooth ke humse kahin

    Main to na chala tha do kad bhi tum bin
    Phir bhi mera bachpan yehi samjhe har din
    Chhod ke mujhe bhala ab kahan jaoge tum
    Chhod ke mujhe bhala ab kahan jaoge tum
    Ye na socha tha kabhi itna yaad aaoge tum
    Rooth ke humse kahin jab chale jaoge tum
    Rooth ke humse kahin

    Baaton kabhi haathon se bhi maara hai tumhein
    Sada yehi kehki hi pukaara hai tumhein
    Kya kar loge mera jo bigad jaoge tum
    Kya kar loge mera jo bigad jaoge tum
    Ye na socha tha kabhi itna yaad aaoge tum
    Rooth ke humse kahin jab chale jaoge tum
    Rooth ke humse kahin

    Dekho mere aansoo yehi karte hain pukaar
    Aao chale aao mere bhai mere yaar
    Poochne aansoo mere kya nahin aaoge tum
    Poochne aansoo mere kya nahin aaoge tum
    Ye na socha tha kabhi itna yaad aaoge tum
    Rooth ke humse kahin jab chale jaoge tum
    Rooth ke humse kahin

    5/4/2007

    Virtual classrooms for WPF recording live + we had a video shoot

    The virtual classroom session's recording is live and available at
     
    Also Tarun sir is getting interviewed by the CNBC tv 18, as well our co. was featured at NewYork Times (i'll post its details very soon).
     Interviewed by Shereen on CNBC India. The interview will be telecast at the following times this week and next week

     

    Day

    Time

    Thursday, May 3, 2007

    7 PM

    Saturday, May 5, 2007

    9 PM

    Sunday, May 6, 2007

    12:30 PM

    Sunday, May 6, 2007

    11 PM

    Thursday, May 10, 2007

    7 PM

    Saturday, May 12, 2007

    9 PM

    Sunday, May 13, 2007

    12:30 PM

    Sunday, May 13, 2007

    11 PM

    NOTE: The telecast times do change occasionally so please check the channel’s ticker at the bottom.

    5/1/2007

    Delhi Heights - Kitni Der Tak

    Awesome ! Feeling.....Though movie was not so good, but rabbi really got the feel of Delhi, with songs....my favorite is
     
    Kitni Der Tak
     
    Song : Kitni Der Tak

    kitni der tak tum baahar rukogi
    kitni der tak mein rukuun yahaan
    kitni der tak tum sochati rahogi
    yeh mein bhi dekhunga
    kitni der tak tum, mujhe na kahogi
    apane sheher aane ko
    kitni der tak, dhundana hai bahaana tumhe
    kisi bhi tarah chhune ka..
    (kitni der tak - 2
    aaj shaam ya savere tak) - 2
    odo? baad main door jaana
    rowaanga mein baithe door kise kone vich
    mud ke ni geet yeh main gaana???
    odo? baad main tur? jaana
    odo? baad tu tur? jaana

    kitne der tum baatien karogi
    filmo ki aur falsafon ki
    kitni der aarjoo aad mein chhupegi
    coffee ki aur kehkaho ki
    kitni der tak uss dil mein rahega
    mere naam par ek sawaal
    kitni der tak yeh chhndana girega
    saath mein chalegi taal
    (kitni der tak - 2
    aaj shaam ya savere tak) - 2
    odo? baad main tur javaa
    rowaanga mein baithe door kise kone vich
    mud ke ni geet main gaana
    odo? baad main tur jaana
    odo? baad tu tur jaana

    (kitni der tak - 2
    aaj shaam ya savere tak) - 4
    odo? baad main door jaana
    rowaanga mein baithe door kise kone vich
    mud ke ni geet main gaana???
    odo? baad main tur jaana
    odo? baad tu tur jaana
    (kitni der tak - 2
    aaj shaam ya savere tak) - 4

    the song has a great meaning, i wish to sing it for someone..

    4/12/2007

    update : - Virtual Classroom Sessions for WPF at Microsoft

     

    The Sessions are live at http://www.microsoft.com/india/virtualclassrooms/default.aspx

    And yeah! this time, i have a brief biography at Microsoft speakers list http://www.microsoft.com/india/webcasts/speakers.aspx#Brij

    The Ultimate in Online Training Environment is here!
    With Developer Virtual Classrooms, you'll enjoy the benefits of LIVE human interaction from the comforts of your desktop for FREE.

    Develop New Age Applications with WPF

    This Classroom will discuss all the pillars of WPF (Windows Presentation Foundation), and enable you to experience the joy of developing new age Win Applications with much ease and performance. The instructors also walk you through some WPF applications.

    Score more than 80% during the online evaluation and earn yourself a certificate of participation from Microsoft.

    Register Now for FREE!

    Registrations Close at 1800hrs on Thursday 19th April. Limited Seats Available

    Chapter Details

    Date

     Introduction to WPF

    Apr 23, 2007
    1700–1830hrs

     Introduction to WPF Controls

    Apr 24, 2007
    1700–1830hrs

     Data Binding in WPF

    Apr 25, 2007
    1700–1830hrs

     Resources and Styling with WPF

    Apr 26, 2007
    1700–1830hrs

     Deployment of WPF applications

    Apr 27, 2007
    1700–1830hrs

    Register Now for FREE!

    Registrations Close at 1800hrs on Thursday 19th April. Limited Seats Available

    Speakers: Tarun Anand & Brij Raj Singh

    ©2007 Microsoft Corporation. All rights reserved. Microsoft is a registered trademark of Microsoft Corporation in the United States and/or other countries. Review our Privacy Statement. If you prefer not to receive future promotional e-mails of this type from Microsoft, please send an email at erase@microsoft.com We will promptly update your preferences; however, you may still receive previously initiated promotional communications from Microsoft. This e-mail is intended for distribution within India.

    4/8/2007

    Testing with Live(R) Writer Beta

    Hi,

         I just came to know about the Live (R) writer beta, which is a blog authoring software by microsoft...

     

     

    update :-  one annoying thing is you can't stop publishing after the button is clicked, there is sometime that it takes to publish, and according to the UX rules if there is a process, which is not gonna take a minimal sub-second you should always provide provision to step back / cancel the process at all.

    I was also looking forward to tilt this image a little and put some more images like, making a collage of images and then post it (pssst....) that's my idea......

    4/5/2007

    Biometrics, how do they work?

    Last Night! my sister called me up and asked how does the biometric systems work, and she wanted to understand it before buying a biometric device and start working with it on a project.
     
    so, i wrote a whitepaper over how biometrics work, here is an excerpt of the same......
     

     

     

    There are actually 3 phases in the lifetime of an application meant to work with any kind of biometric technology

     

    1. Installation and configuration of the biometric device
    2. Initialization of device on the basis of parameters
    3. Passing your biometric data and matching with the biometric print of device

     

     

    I’ll discuss each step one by one in detail

     

    But prior to this you need something to work with, and these are:-

     

    1. A biometric device.
    2. A signing dll, which can be incorporated with your application, so that you can use its functions to initialize the device, enroll the users with the device, prepare the user database, and later use the same database for login etc.

     

    Now, let us get on with our discussion

     

    Installation and configuration of the biometric device

     

    Any biometric device when installed in your system must follow a procedure, in which your application initializes the device and then enrolls the users with it. You can either call it enroll or simply you can call it “Configure”.

     

    Enrollment is a procedure in which your device makes a database of user and user’s PRINT. User is nothing but an id, but User’s PRINT is something interesting, to understand the print you can also compare and say it’s the FingerPrint (Which is unique), but see is it always possible that the angle with which your biometric device might be taking the picture of your finger will always be the same, obviously NOT, so what you need is not the picture but some other smart information about the USER’S PRINT.

     

    For ex –

     

    When you enroll a user with the system, you store his / her name and a character based password (in case something goes bad with that biometric identity, like your finger is hurt).

    And then your device asks for your user’s Print, a PRINT is nothing but a Defer data structure A defer data st. is not made at one go, so what it asks for is to user to give his print at least 3 times to the device, as 3 times is enough to collect all the possible sets of that biometric identity (which could be your face, fingerprint, eyes, speech). You can say user is training the device to understand him / her.

     

     

     

     

    Now let us see how a defer data st. might look like

     

     

    User Name brij raj singh      Password    momitaraj

     

    Defer ds1

     

    20,30

    50,75

    64,76

    98,104

    65,328

    45,34

    64,76

    19,38

    50,75

    67,57

    24,67

    98,104

    98,104

    20,30

    65,328

    63,54

    39,32

    64,76

    64,76

    39,57

     

    Defer  ds2

     

    20,30

    70,79

    65,328

    98,104

    50,75

    45,34

    64,72

    67,57

    50,75

    64,76

    24,67

    28,102

    65,328

    20,30

    98,104

    63,54

    39,32

    39,57

    64,76

    39,32

     

    Defer ds3

     

    20,30

    50,75

    64,76

    98,104

    65,328

    45,34

    64,76

    19,38

    50,75

    67,57

    24,67

    98,104

    98,104

    20,30

    65,328

    63,54

    39,32

    64,76

    64,76

    39,57

     

     

    So when a user gives his identity 3 times to the device for ascertaining his / her identity, the device actually creates these 3 data structures.

     

     

    Initialization of device on the basis of parameters

     

    Device initialization is pretty straight forward by calling some simple API’s and then the device waits for the event of user’s print by user, till the user provides his / her print to the device.

     

    Passing your biometric data and matching with the biometric print of device

     

    When the user provides a PRINT to the device, the device again makes a defer ds and then matches this defer ds with the earlier provided defer ds for the users existing in the database, now this process is pretty critical, and because we have 3 defer ds for one user, it’s very much possible that though the user is genuine but the defer ds doesn’t match with either one of them.

     

    There is a simple yet effective way to solve this problem, and that is

     

    Make Hash keys for all the 9 combinations possible, and when the user provides his defer ds, make its hash key and match it up with the defer ds hash keys already with you.

     

    This is how the device actually works but if you are buying a commercial Biometric device they usually come with an API set which you can always plug in and use without thinking how it works.