Sunday, March 25, 2007

Tech supports

Dear Tech Support:

Last year I upgraded from Boyfriend 5.0 to Husband 1.0
and noticed a slow down in the performance of flower
and jewellry applications that had operated flawlessly
under Boyfriend 5.0

In addition, Husband 1.0 un-installed many other
valuable programs, such as Romance 9.9, but installed
undesirable programs such as NFL 5.0 and NBA 3.0.

Conversation 8.0 no longer runs and Housecleaning 2.6
simply crashes the system. I've tried running NAGGING
5.3 to fix these problems, but to no avail. What can I
do?

Desperate
***************************

[REPLY]




Dear Desperate,


First keep in mind, Boyfriend 5.0 is an entertainment
package, while Husband 1.0 is an operating system.

Try to enter the command: C:/I THOUGHT YOU LOVED ME and
install Tears 6.2.

Husband 1.0 should then automatically run the applications: Guilty 3.0 and
Flowers 7.0.

But remember, overuse can cause Husband 1.0 to default to Grumpy Silence
2.5, Happy Hour 7.0, or Television 6.1. Television 6.1 is a very bad program

that will create Loud noises ( WAV files) and does not get deleted.

DO NOT install Mother-In-Law 1.0 or reinstall another Boyfriend program.
These are not supported applications and will crash Husband 1.0.

In summary, Husband 1.0 is a great program, but it does have a limited
memory and cannot learn new applications quickly. You might consider buying
additional software to improve performance. I personally recommend Hot Food 3.0 and Cheerfulness 2.0.



Good Luck,

Tech Support

The Ten Commandments of DOS

I am thy DOS, thou shall have no OS before me, unless Bill Gates gets a cut of the profits therefrom.

Thy DOS is a character based, single user, single tasking, standalone operating system. Thou shall not attempt to make DOS network, multitask, or display a graphical user interface, for that would be a gross hack .

Thy hard disk shall never have more than 1024 sectors. You don't need that much space anyway.

Thy application program and data shall all fit in 640K of RAM. After all, it's ten times what you had on a CP/M machine. Keep holy this 640K of RAM, and clutter it not with device drivers, memory managers, or other things that might make thy computer useful.

Thou shall use the one true slash character to separate thy directory path. Thou shall learn and love this character, even though it appears on no typewriter keyboard, and is unfamiliar. Standardization on where that character is located on a computer keyboard is right out .

Thou shall edit and shuffle the sacred lines of CONFIG.SYS and AUTOEXEC.BAT until DOS functions adequately for the likes of you. Giving up in disgust is not allowed.

Know in thy heart that DOS shall always maintain backward compatibility to the holy 2.0 version, blindly ignoring opportunities to become compatible with things created in the latter half of this century. But you can still run WordStar 1.0

Improve thy memory, for thou shall be required to remember that JD031792.LTR is the letter that you wrote to Jane Doe three years ago regarding the tax deductible contribution that you made to her organization. The IRS Auditor shall be impressed by thy memory as he stands over you demanding proof .

Pick carefully the names of thy directories, for renaming them shall be mighty difficult. While you're at it, don't try to relocate branches of the directory tree, either.

Learn well the Vulcan Nerve Pinch (ctrl-alt-del) for it shall be thy saviour on many an occasion. Believe in thy heart that everyone reboots their OS to solve problems that shouldn't occur in the first place.

Friday, March 23, 2007

The Top 11 Entries in Bill Gates' Diary

11. Invited entire tech-support department to play golf. Brought Melissa to complete the foursome.

10. Steve Jobs started work today. The silverware looks great, but he doesn't do windows -- yet.

9. The baby cries constantly. Maybe I'll buy Fisher-Price.

8. Bought my first Macintosh. It's sooooo cute!

7. Good day. Found over 15 bucks' worth of soda cans in the trash bins outside Microsoft headquarters.

6. Bad day. Ellison sent back the heads of two of the three hitmen I hired, along with a note saying he ate the third one whole.

5. Still ahead of Murdoch and Eisner. Yes!

4. Reminder: 35-cent Snapple coupon expires in two days!

3. Memo to self: Next time, when my wife says we need to buy china, she means dishes.

2. Ran into Demi and Bruce. Upped my offer to a billion dollars.

and the Number 1 Entry in Bill Gates' Diary...

1. Seventh day: rested.

C programs

Hello World !
How the way people code "Hello World" varies depending on their age and job:
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

void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}


Seasoned professional
#include
#include
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:perator=(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);
}


System Administrator
#include
#include
main()
{
char *tmp;
int i=0;
/* on y va bourin */
tmp=(char *)malloc(1024*sizeof(char));
while (tmp[i]="Hello Wolrd"[i++]);
/* Ooopps y'a une infusion ! */
i=(int)tmp[8];
tmp[8]=tmp[9];
tmp[9]=(char)i;
printf("%s\n",tmp);
}

Apprentice Hacker
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV >= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
1;

Experienced Hacker
#include
#include
#define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}


Seasoned Hacker
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Hello, world.


Guru Hacker
% cat
Hello, world.

New Manager (do you remember?)
10 PRINT "HELLO WORLD"
20 END


Middle Manager
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D


Senior Manager
% zmail jim
I need a "Hello, world." program by this afternoon.

Chief Executive
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout

Research Scientist
PROGRAM HELLO
PRINT *, 'Hello World'
END

Older research Scientist
WRITE (6, 100)
100 FORMAT (1H ,11HHELLO WORLD)
CALL EXIT
END

Ramayan By BILL GATES

When Bill Gates was in India, he had a chance 2 listen Ramayana from Atal Behari Vajpayee. After returning 2 US he wrote it in his personal Diary. A Tabloid in US got a copy of his writings. These are excerpts from his diary.
Â*
Ramayana by Bill Gates...
Â*
LAN, LAN ago, in the SYSTEM of I/O-dhya, there ruled a PROCESSOR named DOS-rat. Once he EXECUTED a great sacrifice PROGRAM after which his queens gave an OUTPUT of four SUNs--RAM, LSIman, BUG-rat and SED-rughana. RAM the eldest was a MICROCHIP with excellent MEMORY. His brothers, however, were only PERIPHERAL ICs. Once when RAM was only 16MB, he married princess 'C'ta. 12years passed and DOS-rat decided to INSTALL RAM as his successor. However, Queen CIE/CAE(Kayegayee), who was once offered a boon
by DOS-rat for a lifesaving HELP COMMAND, took this opportunity at the instigation of her BIOSed maid (a real plotter), and insisted that her son Bug-rat be INSTALLED and that RAM be CUT-N-PASTED to the forest for 14 years.
Â*
At this cruel and unexpected demand, a SURGE passed through DOS-rat and he collapsed, power-less. RAM agreed to LOG INTO forest and 'C'ta insisted to LOGIN with him. LSI-man also resolved on LOGGING IN with his brother. The forest was the dwelling of SPARCnakha, the TRAN-SISTOR of RAW-van, PROCESSOR of LAN-ka. Attracted by RAM's stature, she proposed that he should marry her. RAM, politely declined. Perceiving 'C'ta to be the SOURCE CODE of her distress, she hastened to kill her. Weeping, SPARC-nakha fled to LAN-ka ,where RAW-van, moved by TRAN-SISTOR's plight, approached his uncle MAR-icha. MAR-icha REPROGRAMED himself into the form of a golden stag and drew RAM deep into the forest. Finally, tired of chase, RAM shot the deer, which, with his last breath, cried out desperately for LSI-man in RAM's voice. Fooled by this VIRTUAL RAM SOUND, 'C'ta urged LSI-man to his brother's aid. Catching the opportunity ,RAW-van DELINKED 'C'ta from her LIBRARY and changed her ROOT DIRECTORY to LAN-ka.
Â*
RAM and LSI-man started SEARCHING for the missing 'C'ta all over the
forest. They made friendship with the forest SYSTEM ADMINISTRATOR SU-greev and his powerful co-processor Ha-NEUMAN. SU-greev agreed to help RAM. SU-greev ordered his PROGRAMMERS to use powerful 'SEARCH' techniques to FIND the missing 'C'ta. His PROGRAMMERS
SEARCHED all around the INTER-NETworked forests. Many tried to 'EXCITE' the birds and animals not to forget the 'WEBCRAWLERS' (Insects) and tried to 'INFO SEEK. something about 'C'ta. Some of them even shouted'YAA-HOO' but they all ended up with 'NOT OUNDMESSAGES'. Several other SEARCH techniques proved useless. Ha-NEUMAN devised a RISKy TECHNOLOGY and used it to cross the seas at an astonishing CLOCK SPEED. Soon Ha-NEUMAN
DOWNLOADED himself into LAN-ka. After doing some local SEARCH, Ha-NEUMAN found 'C'ta weeping under a TREE STRUCTURE Ha-NEUMAN used a LOGIN ID (ring) to identify himself to 'C'ta. After DECRYPTING THE KEY, 'C'ta believed in him and asked him to send a 'STATUS_OK' MESSAGE to RAM. Meanwhile all the raakshasa BUGS around 'C'tacaptured Ha-NEUMAN and tried to DELETE him using pyro-techniques. But Ha-NEUMAN managed to spread chaos by spreading the VIRUS 'Fire'. Ha-NEUMAN happily pressed ESCAPE from
LAN-ka and conveyed all the STATUSMESSAGES to RAM and SU-greev. RAW-wan decided to take the all-powerful RAM head-on and prepared for the battle. One of the RAW-wan's SUN (son) almost DELETED RAM &LSI-man with a powerful brahma-astra. But Ha-NEUMAN resorted to some ACTIVE-X gradients and REFORMATTED RAM and LSI-man. RAM used the SOURCE CODE secrets of RAW-wan and once for all wiped out RAW-wan's presence on earth. After the battle, RAM got INSTALLED in I/O-dhya and spreaded his MICROSOFT WORKS and other USER FRIENDLY PROGRAMS to all USERS and every one lived happily ever after.