Jokes

Laughter All The Way….

Archive for the ‘Programmers’ Category

The Software Development cycle!

Posted by @ B H i on January 22, 2007

1. Programmer produces code he believes is bug-free.

2. Product is tested. 20 bugs are found.

3. Programmer fixes 10 of the bugs and explains to the testing department that the other 10 aren’t really bugs.

4. Testing department finds that five of the fixes didn’t work and discovers 15 new bugs.

5. Repeat three times steps 3 and 4.

6. Due to marketing pressure and an extremely premature product announcement based on overly-optimistic programming schedule, the product is released.

7. Users find 137 new bugs.

8. Original programmer, having cashed his royalty check, is nowhere to be found.

9. Newly-assembled programming team fixes almost all of the 137 bugs, but introduce 456 new ones.

10. Original programmer sends underpaid testing department a postcard from Fiji. Entire testing department quits.

11. Company is bought in a hostile takeover by competitor using profits from their latest release, which had 783 bugs.

12. New CEO is brought in by board of directors. He hires a programmer to redo program from scratch.

13. Programmer produces code he believes is bug-free.

And the cycle continues….

Posted in Analysis, Funny, Programmers, Software | 1 Comment »

Orkut Blocked …… Don’t worry …..

Posted by @ B H i on January 22, 2007

Try d link :
https://68.186.102.226/cgi-bin/nph-049591.cgi/010110A/https/www.orkut.com/

after the login ….

may be hanged at redirecting page…

don’t worry …

type the same url again and press enter ….

Enjoy…..

Posted in Analysis, Current Issues, Information, Internet Links, NIce Trick, Office, Programmers, Technology | 2 Comments »

Close Outlook from your home

Posted by @ B H i on December 15, 2006

Problem Situation:

Friday night in the comforts of your home. Looking ahead for a happy weekend.

You suddenly remember that you are going to receive an important mail from onsite, on Friday EOD their time i.e. Saturday morning our time, for which you have to reply. The contents of the mail is not the problem.

You know you could reply in your comforts of your home using webaccess.

The Big Bang. You forgot to close Outlook and the mail will sink into your PST. 😦

Solution 1:
Go to office first thing on Saturday morning just to close outlook or reply to the mail if it has already arrived.

Solution 2:
Send an email on Friday night to your own email ID, which is preconfigured to close Outlook in your machine.

Cool…right?… So how do you do it?

Open Notepad
Type “tskill outlook”         //without the quotes
Save it as closeoutlook.bat, in a secure location

Open Outlook
Go to Tool-> Rules and Alerts
Choose “New Rule”
In the “Rules Wizard” popup choose “Start from a blank rule”. Leave the default option of “Check message when they arrive”. Click Next.
Tick “with specific words in the subject or body”. Click on “specific words” at the window and type a text like “kindlyclosemyoutlook”. Click Next.
In the new options pane, tick “start application”. Choose the “closeoutlook.bat” file by browsing. By default it will show only *.exe files I the browse panel. Choose all files to view your file.
Click Next and then Finish.
Voila! You are done.

Test it by sending a mail to yourself with the text “kindlyclosemyoutlook” in your mail subject or body.
Enjoy Happy Weekends Ahead!!!

Posted in NIce Trick, Office, Programmers, Windows | Leave a Comment »

JavaScript Trick in IE

Posted by @ B H i on August 20, 2006

just copy and paste this on the internet explorer adress bar and press enter.

java-script:function reverse() { var inp = “.mih morf nrael oD .seod ruknA ekil krow lufesu emos oD .esnesnon siht lla gniod rof uoy gniyap ton si ynapmoC”; var outp = “”; for (i = 0; i <= inp.length ;i++){ outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse()

Posted in Programmers | 1 Comment »

Software Programmer’s Love !!! eNJOY

Posted by @ B H i on July 23, 2006

Mere… Company kee ladkiyaan sunder hain Aur lonely hain…
Problem ye hai ki bus voh READ-ONLY hain…

Shayad mere pyar ko taste Karna bhool gaye…
Dil sey aisa CUT kiya ke PASTE karna bhool gaye..

Tumhare samne hain itney items Kabhi hame bhi pick karo…
Hamare pyar ke ICON pe Kabhi to tum DOUBLE-CLICK karo…

Roz subha hum karte hai Itne pyar se unhe good morning…
Woh humhe ghoor kar dekhte hain Jaise 0 ERRORS but 5 WARNINGS…

Ho gayi galti humse, Click ho gaya mouse
Duniya ki parwaah chhodo, ban jaao meri spouse!

Tumse mila main kal to, Mere dil mein hua ek sound,
Lekin aaj tum mili To kehti ho: Your file not found!

Ab aur kaho na tum, “but” ya “if”
Tum ho meri zindagi ki animated gif

Aysa bhi nahin hai ke, I don’t likeyour face
Par dil ke computer mein, Nahin hai enough disk space

Ghar se nikalti ho tum jab, Pehen ke evening gown
Too many requests se, Ho jaata hai server down

Tumhaare liye pyaar ki application, Create main karoonga
Tum usse debug karna, Wait main karoonga

Tumhaara intezaar karte karte, Main so gaya
Yeh dekho mera connection, Time out ho gaya

Kya chaal hai tumhaari, Jaise chalti hai koi cat
What is your ICQ number, Aao karein chat

Tum jabse meri zindagi, mein aayi ho banke female,
Yaad raha na ab kuch, Na postman , Na e-Mail

Joh sadiyaon se hota aaya hai Woh repeat kar doonga…
Tu naa mili to tujhko dil sey Ctrl+Alt+Delete kar doonga…

Humse Kya Khata Hui Ki message Aanna Band Hai…….
Aap hi humse naraz hain ya Web Server band hai…….

Badli hai duniya , kuchch mein bhi badal gaya hoon
Pahle bekaar tha ab S/W Programmer ban gaya hoon

Project extend ho gaya to kya ho jaata hai?
Are Tankha milti hai aur timepass ho jata hai..

teri yaad me sanam raat bhar humne to wine piya
teri yaad me sanam raat bhar humne to wine piya
kabhi offline to kabhi online piya

Pyar ke sitaare jab gardish mein hote hai
Pyar ke sitaare jab gardish mein hote hai
Laila ghar mein aur majnoo project testing kar rahe hote hai

More Collection of great romantic and bewaf Sher aur Sayari at Shayari-e-Azam

Posted in Programmers, Shayari | 2 Comments »

Beauty of Maths!

Posted by @ B H i on July 4, 2006

1 x 8 + 1 = 9
12 x 8 + 2 = 98
123 x 8 + 3 = 987
1234 x 8 + 4 = 9876
12345 x 8 + 5 = 98765
123456 x 8 + 6 = 987654
1234567 x 8 + 7 = 9876543
12345678 x 8 + 8 = 98765432
123456789 x 8 + 9 = 987654321

1 x 9 + 2 = 11
12 x 9 + 3 = 111
123 x 9 + 4 = 1111
1234 x 9 + 5 = 11111
12345 x 9 + 6 = 111111
123456 x 9 + 7 = 1111111
1234567 x 9 + 8 = 11111111
12345678 x 9 + 9 = 111111111
123456789 x 9 +10= 1111111111

9 x 9 + 7 = 88
98 x 9 + 6 = 888
987 x 9 + 5 = 8888
9876 x 9 + 4 = 88888
98765 x 9 + 3 = 888888
987654 x 9 + 2 = 8888888
9876543 x 9 + 1 = 88888888
98765432 x 9 + 0 = 888888888

Brilliant, isn’t it?

And finally, take a look at this symmetry:

1 x 1 = 1
11 x 11 = 121
111 x 111 = 12321
1111 x 1111 = 1234321
11111 x 11111 = 123454321
111111 x 111111 = 12345654321
1111111 x 1111111 = 1234567654321
11111111 x 11111111 = 123456787654321
111111111 x 111111111=12345678987654321

Posted in NIce Trick, Programmers | 6 Comments »

Nice Site…

Posted by @ B H i on July 3, 2006

Check it out. It’s really interesting!!!!!!!!!

1. Open internet explorer
2. In the address bar type the following
3. http://<your name> .youaremighty.com and press enter
(For eg: http://ruchi.youaremighty.com )
4. Turn on the speakers if available.

Posted in NIce Trick, Programmers | 1 Comment »

The Evolution of a Programmer

Posted by @ B H i on July 3, 2006

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 (list ‘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(”)) {}

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] = ”;
wcsT[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);
}
 



Program Manager

   

 

Dear Team Worker,

Please write a program to print “Hello World” before the EOD.

Dont send it to Onsite , i will send it.

With regards,

PM.


Believe it or not, all these
give the same output “Hello World”   

Posted in Programmers | Leave a Comment »