Sunday, August 26, 2007

Evolution of A software Engineer........








Evolution of A software Engineer........

 

High School/Jr.High

    10 PRINT "HELLO WORLD"
    20 END
 
     





First year in College

    program Hello(input, output)

      begin

        writeln('Hello World')

      end.

 
     


 





Senior year in College

    (defun hello
      (print

        (cons 'Hello World')))

 
     


 





New professional

    #include <stdio.h>
    void main(void)

    {

      char *message[] = {"Hello ", "World"};
      int i;


      for(i = 0; i < 2; ++i)

        printf("%s", message[i]);

      printf("\n");

    }

 
     


 





Seasoned professional

    #include <iostream.h>

    #include <string.h>

    class string

    {

    private:

      int size;

      char *ptr;


    public:

      string() : size(0), ptr(new char('\0')) {}

      string(const string &s) : size( s.size)
      {

         ptr = new char[size + 1];

        strcpy(ptr, s.ptr);

      }

      ~string()
      {

        delete [] ptr;

      }


      friend ostream &operator <<(ostream &, const string &);
      string &operator=(const char *);
    };


    ostream &operator<<(ostream &stream, const string &s)
    {

      return(stream << s.ptr );

     }

    string &string::operator=(const char *chrs)
    {

      if (this != &chrs)
      {

        delete [] ptr;

       size = strlen(chrs);
        ptr = new char[size + 1];
        strcpy(ptr, chrs);
      }

      return(*this);
    }


    int main()

    {

      string str;


      str = "Hello World";

      cout << str << endl;


      return(0);
    }

 
     


 





Master Programmer

    [

    uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)

    ]

    library LHello

    {

        // bring in the master library

        importlib("actimp.tlb");

        importlib("actexp.tlb");


        // bring in my interfaces
        #include "pshlo.idl"


        [

        uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
        ]

        cotype THello

     {

     interface IHello;

     interface IPersistFile;

     };

    };

    [

    exe,

    uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
    ]
    module CHelloLib
    {

        // some code related header files
        importheader(< windows.h>);

        importheader(< ole2.h>);

        importheader(< except.hxx>);

        importheader(" pshlo.h");

        importheader(" shlo.hxx");

        importheader(" mycls.hxx");


        // needed typelibs

        importlib("actimp.tlb");

        importlib(" actexp.tlb");

        importlib("thlo.tlb");


        [

        uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
        aggregatable

        ]

        coclass CHello
     {

     cotype THello;

     };

    };

    #include "ipfix.hxx "


    extern HANDLE hEvent;

    class CHello : public CHelloBase
    {

    public:
        IPFIX(CLSID_CHello);

        CHello(IUnknown *pUnk);
        ~CHello();

        HRESULT  __stdcall PrintSz(LPWSTR pwszString);

     private:
        static int cObjRef;
    };


    #include < windows.h >
    #include < ole2.h >

    #include < stdio.h>

    #include < stdlib.h>

    #include " thlo.h"

    #include " pshlo.h"

    #include " shlo.hxx "

    #include " mycls.hxx"


    int CHello::cObjRef = 0;

    CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
    {
        cObjRef++;
        return;
    }

    HRESULT  __stdcall  CHello::PrintSz(LPWSTR pwszString)
    {

        printf("%ws\n", pwszString);
        return(ResultFromScode(S_OK));
     }

    CHello::~CHello(void)
    {


    // when the object count goes to zero, stop the server
    cObjRef--;
    if( cObjRef == 0 )
        PulseEvent(hEvent);

    return;
    }


    #include <windows.h>

    #include < ole2.h>

    #include " pshlo.h"

    #include " shlo.hxx"

    #include " mycls.hxx"


    HANDLE hEvent;

     int _cdecl main(

    int argc,

    char * argv[]
    ) {

    ULONG ulRef;

    DWORD dwRegistration;

    CHelloCF *pCF = new CHelloCF();


    hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

    // Initialize the OLE libraries

    CoInitializeEx(NULL, COINIT_MULTITHREADED);

    CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,

        REGCLS_MULTIPLEUSE, &dwRegistration);


    // wait on an event to stop

    WaitForSingleObject(hEvent, INFINITE);

    // revoke and release the class object

    CoRevokeClassObject(dwRegistration);
    ulRef = pCF->Release();

    // Tell OLE we are going away.
    CoUninitialize();

    return(0);
    }


    extern CLSID CLSID_CHello;
    extern UUID LIBID_CHelloLib;

    CLSID CLSID_CHello = { _/* 2573F891-CFEE-101A-9A9F-00AA00342820 */
        0x2573F891,
        0xCFEE,
        0x101A,

        { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
    };

    UUID LIBID_CHelloLib = { _/* 2573F890-CFEE-101A-9A9F-00AA00342820 */
        0x2573F890,

        0xCFEE,

        0x101A,

        { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
    };


    #include <windows.h >
    #include < ole2.h >

    #include < stdlib.h>

    #include < string.h>

    #include < stdio.h>

    #include " pshlo.h"
    #include "shlo.hxx "

    #include " clsid.h"

    int _cdecl main(
    int argc,
    char * argv[]
    ) {
    HRESULT  hRslt;
    IHello        *pHello;
    ULONG  ulCnt;
    IMoniker * pmk;
     WCHAR  wcsT[_MAX_PATH];
    WCHAR  wcsPath[2 * _MAX_PATH];

    // get object path
    wcsPath[0] = '\0';
    wcsT[0] = '\0';
    if( argc > 1) {
        mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
        wcsupr(wcsPath);
        }

    else {
        fprintf(stderr, "Object path must be specified\n");
        return(1);
        }


    // get print string

    if(argc > 2)

        mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
    else
        wcscpy(wcsT, L"Hello World");

    printf("Linking to object %ws\n", wcsPath);
    printf("Text String %ws\n", wcsT);

    // Initialize the OLE libraries
    hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

    if(SUCCEEDED(hRslt)) {


        hRslt = CreateFileMoniker(wcsPath, &pmk);
        if(SUCCEEDED(hRslt))

     hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);

        if(SUCCEEDED(hRslt)) {

     // print a string out

     pHello->PrintSz(wcsT);


     Sleep(2000);

     ulCnt = pHello->Release();

     }

        else
     printf("Failure to connect, status: %lx", hRslt);

        // Tell OLE we are going away.
        CoUninitialize();

        }


    return(0);

    }


----------------------------------------------------------------------------------

Output

HELLO WORLD






     To Join Click here

Regards,
Diptesh

EVERY OFFICE SHOULD have this file







 
How wud it b if u hav this file in ur office?



 

 

 

 


 






     To Join Click here

Regards,
Diptesh

Saturday, August 25, 2007

Leave letters.......



Must read leave letters ------ TOO GOOD


This is a collection of leave letters and applications
written by people in
various places of India ...


1. Infosys, Bangalore : An employee applied for
leave as follows:
Since I have to go to my village to sell my land along
with my wife, please sanction me one-week leave.

2. This is from Oracle Bangalore : >From an employee
who was performing the "mundan" ceremony of his 10
year old son: "as I want to shave
my son's head, please leave me for two days.."

3. Another gem from CDAC. Leave-letter from an
employee who was performing his daughter's wedding:
"as I am marrying my daughter, please grant a week's
leave.."

4. From H.A.L. Administration dept:
"As my mother-in-law has expired and I am only one
responsible for it,please grant me 10 days leave."

5. Another employee applied for half day leave as
follows: "Since I've to go to the cremation ground at
10 o-clock and I may not return, please grant me half
day casual leave"

6. An incident of a leave letter
"I am suffering from fever, please declare one day
holiday."

7. A leave letter to the headmaster:
"As I am studying in this school I am suffering from
headache. I request you to leave me today"

8. Another leave letter written to the headmaster:
"As my headache is paining, please grant me leave for
the day."

9. Covering note:
"I am enclosed herewith..."

10. Another one:
"Dear Sir: with reference to the above, please refer
to my below..."

11. Actual letter written for application of leave:
"My wife is suffering from sickness and as I am her
only husband at home I may be granted leave".

12. Letter writing: -
"I am in well here and hope you are also in the same
well."

13. A candidate's job application:
"This has reference to your advertisement calling for
a ' Typist and an Accountant - Male or Female'... As I
am both(!! )for the past several years
and I can handle both with good experience, I am
applying for the post.

One more to add on to laughter

leave application wriiten by an employee to his boss.
" I am suffering from health, fever came to me, leave me today"






     To Join Click here

Regards,
Diptesh

We've changed



Shall we say Best Hoarding Competition  in  town ?





This is a hoarding Jet Airways put at a busy road in Mumbai



SEE WHAT HAPPENED NEXT .........




AFTER A FEW DAYS ...




and FINALLY ...






image006.jpg


image007.jpg


image008.jpg








     To Join Click here

Regards,
Diptesh

Sunday, August 19, 2007

LAW OF THE JUNGLE

Join Rocking Dudes At http://groups.yahoo.com/group/rockingdudes1/join
 

LAW OF THE JUNGLE

Two guys were hiking through the jungle when they spotted a tiger that looked both hungry and fast.
 
One of the guys reached into his pack and
pulled out a pair of Nike.

His friend looked at him "Do you really think those shoes are going to make you run faster than that tiger?"
 " I don't have to run faster than that tiger, his friend replied. "I just
have to run faster than you".

Welcome to the corporate world !!








     To Join Click here

Regards,
Diptesh

Did you know this all??

Join Rocking Dudes At http://groups.yahoo.com/group/rockingdudes1/join
 




Did you know this all??


1.. Coca-Cola was originally green.

2. The most common name in the world is Mohammed.

3. The name of all the continents end with the same letter that they
start with.

4. There are two credit cards for every person in the United States.

5. TYPEWRITER is the longest word that can be made using the letters
only on one row ! of the keyboard.

6. Women blink nearly twice as much as men!!

7. You can't kill yourself by holding your breath.

8. It is impossible to lick your elbow.

9. People say "Bless you" when you sneeze because when you sneeze, your
heart stops for a millisecond.

10. It is physically impossible for pigs to look up into the sky.

11. The "sixth sick sheik's sixth sheep's sick" is said to be the
toughest tongue twister in the English language.

12. If you sneeze too hard, you can fracture a rib. If you try to
suppress a sneeze, you can rupture a blood vessel in your head or neck and
die.

13. Each king in a deck of playing cards represents great king from
history. Spades - King David Clubs - Alexander the Great, Hearts -
Charlemagne Diamonds - Julius Caesar.

14. 111,111,111 x 111,111,111 = 12,345,678,987,654,321

15. If a statue of a person in the park on a horse has both front legs
in the air, the person died in battle.

16. If the horse has one front leg in the air, the person died as a
result of wounds received in battle.

17. If the horse has all four legs on the ground, the person died of
natural causes.

18. Question - This is the only food that doesn't spoil. What is this?
Ans. - Honey

19. A crocodile cannot stick its tongue out.

20. A snail can sleep for three years.

21. All polar bears are left handed.

22. American Airlines saved $40,000 in 1987 by eliminating one olive
from each salad served in first-class.

23. Butterflies taste with their feet.

24. Elephants are the only animals that can't jump.

25. In the last 4000 years, no new animals have been domesticated.







     To Join Click here

Regards,
Diptesh

Friday, August 17, 2007

The worlds Longest place name, click to enlarge and view its name written down.

The worlds Longest place name, click to enlarge and view its name written down.








To Join Click here

Regards,
Diptesh

HQ Anime Wallpapers







The National Roads Safety




The National Roads Safety Council has done extensive testing on a newly designed seat belt. Results show that accidents can be reduced by as much as 45% when the belt is properly installed.

Correct installation is illustrated below.......

 

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

;

 

 

This is very Important, please pass onto friends and family .

THIS MAY SAVE A LIFE!






     To Join Click here

Regards,
Diptesh

NOKIA cell phone with battery BL-5C alert



Hi

Dear friends if you r using NOKIA cell phone with battery BL-5C... Then please check your battery series. its headline that it may blast any time.
click on this link to check.

http://www.nokia.com/batteryreplacement






     To Join Click here

Regards,
Diptesh

Tuesday, August 14, 2007

Read & Laugh





Delicious Peanuts


A tour bus driver drives with a bus full of seniors down a highway, when he is tapped on his shoulder by a little old lady.

She offers him a handful of peanuts, which he gratefully munches up.

After approximately 15 minutes, she taps him on his shoulder again and she hands him another handful of peanuts. She repeats this gesture about eight times.

At the ninth time he asks the little old lady why they do not eat the peanuts themselves, whereupon she replies that it is not possible because of their old teeth, they are not able to chew them.

"Why do you buy them then?" he asks puzzled.

Whereupon the old lady answers, 'We just love the chocolate around them."

 
      
 
Pregnant Bride


A visitor was strolling along the coastal area one morning. During his walk he came upon a fellow, fishing pole clutched in his hands, sound asleep against the side of a huge coastal rock. Just then the pole began to jerk violently.

"Hey, there!" cried the visitor as he roused the fisherman. "Look out there! You have a bite."

"So I do," yawned the drowsy one glancing out at the water. "If you don't mind, will you pull in the line for me?"

The visitor, somewhat surprised, did as he was requested.

"Now, mister," continued the fisherman, "put some fresh bait on the hook and cast the line out for me."

Again the visitor complied. After doing so he turned to the lazy angler. "You know," he declared, "anyone as lazy as you ought to get married and have a son to do these things for him."

"That's a good idea," beamed the fisherman. "Know where I could find a pregnant woman?"

 
War is War


Once at the time of the world war, the soldiers were looting all villages, of food, wine and women. Before they could enter one such village, the villagers decide to scoot, except for one young man, who had a 80-year-old grandmother. So the soldiers found the one occupied house and tore inside. "Bring us some food!" they demanded.

The young man said, "But I have only half a loaf of bread."

"War is War, bring us the food!"

So he gives his last morsel of food.

"Bring us some wine!"

"But I doubt if there is any in the house, you know how things are these days!"

"War is War, bring us the wine!"

So the young man manages half a bottle and gives it to them.

"Now, bring us a woman!"

"But everyone has left the village. The only female here is my 80 year old grandmother!!"

"War is War, bring her to us!"

The old woman is brought and she's so frail and weak that the soldiers decide against it and say, "We'll let you off this time.'"

Granny says, "The hell you will, War is War!"

 


 
Toilet Encounter


Frank was barely sitting down when he heard a voice from the other stall saying, "Hi, how are you doing?"

He's not the type to start a conversation in the restroom, but he don't know what got into him, so he answered, somewhat embarrassed, "Doing just great!"

And the person in the other stall said, "So, what are you up to?"

What kind of question is that? At this point, Frank was thinking this was too bizarre, so he said, "Uhhh, I'm like you, just traveling!"

At this point he was just trying to get out as fast as he could, when he heard another question, "Can I come over?"

This question was just too weird for Frank, but he figured he could just be polite and end the conversation. He told the person, "No... I'm a little busy right now!!!"

Then he heard the person say nervously, "Listen, I'll have to call you back. There's an idiot in the other stall who keeps answering all my questions!"

 

      
 
Private Secretary


Police was investigating the mysterious death of a prominent businessman who had jumped from a window of his 9th-story office.

Nancy, his voluptuous private secretary could offer no explanation for the action but said that her boss had been acting peculiarly ever since she started working for him, a month ago.

"After my very first week on the job," Nancy said, "I received a raise. At the end of the second week he called me into his private office, gave me a lovely black nightie, five pairs of nylon stockings and said, 'These are for a beautiful efficient secretary.'

"At the end of the third week he gave me a fabulous mink stole. Then, this afternoon, he called me into his private office again, presented me with this fabulous diamond bracelet and asked me if I could consider making love to him and what it would cost."

"I told him that I would, and because he had been so nice to me, he could have it for just 500 bucks, although I was charging all the other guys in the office one thousand. That's when he jumped out the window."

 

 

Santa`s Dream


Once Santa kept having the same weird dream everynight, so he went to a doctor.

Doctor: What was your dream about?

Santa: I was being chased by a vampire!

Doctor: (giggles quitely) So... what is the scenery like?

Santa: I was running in a hall way.

Doctor: Then what happened?

Santa: Well that's the weird thing. In every single dream, the same thing happened. I always come to this door, but I can't open it. I keep pushing the door and pushing the door, but it wouldn't budge!

Doctor: Does the door have any letters on it?

Santa: Yes it did.

Doctor: And what did these letter spell?

Santa: It said "Pull"





     To Join Click here

Regards,
Diptesh