Saturday, July 28, 2012

The English Teacher

The Sunday morning phone call was a mini-ritual in the Kulkarni household. The phone would ring. Shivaram Kulkarni, "English Master" to everyone besides family, would look up from his newspaper as his wife of 37 years would hurry to get the phone. He would watch his wife from behind the newspaper, pretending to be indifferent, secretly listening to various tidbits from their son Keerti's stay in London. The call would last a good half hour, ending with his wife reminding him to call again next week.

There must have been something different about this phone call though, because his usually cheerful wife was looking confused. The confused expression changed into apprehension, surprise and anger in quick succession. As she put the phone down, she turned towards him with a dazed expression. "Our son", she started to cry, "Our son is in love with some English girl. Why? Why?".

Kulkarni got up from his chair, leaving his sobbing wife sitting near the phone, and went into his study. Making sure that the door was closed, he opened his private cupboard - and smiled.

Unknown to everyone, even his wife of 37 years, Shivaram Kulkarni was an Anglophile.

His love of all things English had begun in school, blossomed in college, and grown into a full-time obsession by the age of 25. He was careful though, to keep it a secret - such thoughts were frowned upon in recently-independent India. His secret cupboard was a shrine to his passion - Newspaper clippings of the queen, an autographed photograph of Ian Botham, the Union Jack, all lined its spaces. It was his eternal lament that he was born in the wrong generation - His father could have served the British Raj as a clerk while his son was able to study in England.


Emily. That turned out to be the name of his future daughter-in-law. Emily, that very English of names, its very letters conjuring up a pale white Yorkshire lass. His wife, predictably, gave in to her son's wishes - the practical realities of estranging her only son didn't escape her. Kulkarni maintained a stoic demeanor, but inwardly he was brimming with joy - his son had done what he couldn't: become British.


News came that Keerti and Emily would visit them soon. Kulkarni was happy - he would finally get to meet  an Englishwoman. He imagined having cultured conversations with her, speaking about such varied topics as the weather and Wimbledon. He read books, from Forster to Forrestor, lest he came across as uncultured.


The day finally came. "Too tan", was Kulkarni's first impression of her, "but passably English". "Namaskar", she greeted him and his wife. "How was the flight"? "It could of been better - it was literally a thousand hours long", she laughed. Kulkarni grimaced - "could have" he corrected. "Did the holiday season make catching the flight more difficult?", he asked. "Nah, Heathrow is busy irregardless of season". "You mean regardless". "Yeah, same thing".


The trend continued throughout her visit. Kulkarni couldn't believe a native of England could butcher the language so badly. "Who" instead of "whom", "then"/"than", "what"/"that" - The final straw was Emily saying "LOL" at some joke Keerti made - Kulkarni had given her an earful that day.


A few days after the visit, a dejected Keerti called to say that he and Emily broke up. She couldn't bear joining a family where her father-in-law was such a grammar Nazi, she had said. Kulkarni's wife was more than happy to send marriage proposals his way - nice Kannada girls, of course.


As he sat in his chair, Kulkarni realized the irony of the whole affair - his love of English was what drove his son's one chance at Englishness away.

Friday, July 20, 2012

The Social Network Sequel to focus on PHP Programmer

David Fincher, the director of the Oscar-winning 2010 movie The Social Network, announced the sequel to the movie, tentatively titled The Social Network 2.0. At a press conference in Los Angeles, Fincher announced that unlike the first movie, which focused on the founding of Facebook by the billionaire Mark Zuckerberg, the second movie will focus on the technical architecture and PHP code which forms the backbone of the internet company. "PHP is the real hero of the story, you know. When you click the 'Like' button, it's not Mark who updates the page all over the world - it's PHP."

What if the Like button stopped working one day?
Aaron Sorkin, the writer of the screenplay, said that the exciting plot line will follow a rookie programmer in the core platform services team, fighting one of the biggest challenges of his life - the Like button stops working. "How he overcomes technical and personal problems, hostile code reviewers and failing unit test cases is a true story of the triumph of the Human Spirit. When we get to the climax, when he finally checks that fix in, not knowing whether it'll work or not ... the tension is palpable."

While most aspects of the movie are based on reality, Fincher said they had made some changes to spice it up. "No one wants to see a boring old Data Center. Instead, Facebook will be this monstrous 300 ft tall ultra mega computer. The computer would talk and respond to voice commands, it'll be so cool. Morgan Freeman has been roped in for the voice."


Fincher assured us that all source code will have subtitles
Fincher has promised that at least 250 lines of real Facebook source code will be shown on the screen. "Don't ask us where we got it", Fincher laughed. With Mark Zuckerberg officially declining to support the movie, sources suggest that a disgruntled employee might be behind the leak of source code. 'The movie will finally reveal the ugliness of the Facebook code base - the global variables, the uninitialized variables, the gratuitous hacks." Fincher declined to comment on whether the movie will be rated "R" due to multiple uses of gotos and global variables.

Saturday, May 12, 2012

PES to give honorary Engineering seat to Sachin Tendulkar

People's Education Society Institute of Technology (PESIT) today announced that they were awarding a honorary engineering seat to Rajya Sabha member Sachin Tendulkar. In a press conference held in front of the college's main gate, principal J.S. Upendra stated that this was a great moment in PES history. Stating that they were fed up with rival RV College of Engineering's incessant hyping of former student Anil Kumble, PES "invested an unspecified amount to acquire a prolific cricketer as former student". Sachin Tendulkar was the ideal candidate, Upendra said, because of his recent Rajya Sabha membership. "Now that Sachin has 100 centuries, his new ambition is to get 100 seats at institutions he doesn't plan to attend." Apart from Rajya Sabha and PESIT, Sachin was in talks to obtain a seat at the Censor board.

Sachin among the list of students
Dr H.S. Boregowda, HOD of the Civil Engineering Department at PESIT said he was honored that Sachin was going to be enrolled in his department. "Even though he will never enter these hallways, his name on the attendance register will be enough to boost enrollment". He expected Civil Engineering to surpass Computer Science at the next CET counselling.

To circumvent strict VTU rules about attendance, a 3rd year student Sachin Damdekar has been chosen as the official proxy. Damdekar was chosen because of his name and short stature. "It is a great honor to put fake attendance for such a great man." Damdekar will travel around campus following Tendulkar's class schedule."

To seal the new partnership, PESIT Sports Director was in talks with Tendulkar's agent to get him to play in the annual Mysore Road Cricket Cup (MRCC) match against RVCE. He said the match would be held at the Corporation ground in Nayandalli, which would suit the Master Blaster's batting style.

Sunday, November 14, 2010

Wedding Invitation generator

Bride:
Groom:
Style:
This blog post requires a HTML5 enabled browser like Internet Explorer 9, FireFox or Chrome.

Thursday, September 16, 2010

EEE Story

Barnabus 'Barny' Roy's world came crashing down at precisely 9:03 AM on a warm Saturday morning.

Barny was in good spirits that morning. It was an altogether pleasant morning in Herfordshire, the late spring Sun shining lazily down the main thoroughfare, a light breeze bringing in the sweet smell of daffodils from the fields. As was his routine, Barny tipped his hat to old Mr Weatherby, kept a crown on the counter, and took a copy of The Times. At precisely 9:03 AM, he looked at the newspaper.

The headlines screamed "HMS MANDRAKE LOST AT SEA!".

Barny couldn't believe his eyes. HMS Mandrake, a ship bringing exotic goods from the Orient, had been his ticket to a comfortable retirement. Urged by his friends, Barny had invested all his life savings on that ship. Now that dream was shattered, leaving Barny penniless and on the brink of bankruptcy.

Barny was dejected as he walked back home. His wife looked up as he came into the kitchen, her eyes picking up the despondency seen clearly on his face. With faltering words punctuated with sobs, Barny told her how he had lost all their savings.

After he finished, his wife stood up, went to her cupboard, took a box out and handed it to her husband. Puzzled, Barny opened the box ... and it was full of money! "Where did you get this?", he asked, to which she replied "Every day for twenty years, I stole 1 pound from your purse, no more, no less. I knew that it would come in handy some day. Now I'm giving it back to you". Barny was stumped, but when he realized that his wife's petty theft had saved him from bankruptcy, he embraced her with joy.

Moral of the story: B B Roy Of Great Britain had a Very Good Wife.

Friday, August 27, 2010

MIT vs MIT



Disclaimer: All images were derived from xkcd. I claim no ownership or originality.


Note: The RV-vs-PES story is similar, but without dinosaurs.

Wednesday, June 09, 2010

Science Fiction Story

2041 AD.

Tarek sighed as he gazed across the harsh terrain that was once California.

It was seventeen years since the end of the Great War. Seventeen years without the warmth and light of the sun had stripped the land bare of all vegetation. Even if there was light, nothing would grow in this soil polluted by the ashes of a thousand atomic bombs. Humanity was all but extinct, with a few thousand scattered around the globe. But without food, without knowledge, the end of the human race was inevitable.

Mankind's only hope was The Book.

The Book, prophecy told, contained all the knowledge of mankind. With it, mankind could start rebuilding what the War had torn apart. It would lead mankind once again to great heights of civilization.

Tarek was the leader of a small band of wanderers who had been searching for The Book. After months of hard marching, tempers were now at a tipping point in the group. Rations were also running low. Tarek knew that they had to find The Book soon.

As Tarek trudged along, he began to ask himself: How can one book contain all the knowledge of mankind? Maybe there never was such a book. Maybe they were on a wild goose chase.

"TAREK!". Ebonil's shout broke Tarek out of his revere. "Take a look at this!". Excitement bubbled in Tarek as Ebonil pointed towards a mark on the rock. "Isn't this the one mentioned in the prophecy?". Ebonil was right! It was. "There should be an entrance to a cave nearby". "There it is!".

Tarek rushed into the cave. As his eyes adjusted to the darkness, a sense of destiny washed over him. In front of him lay the salvation of all mankind. He started to vaguely make out ... a pedestal, on which there was a black slab. The Book.

As he took it in his hands, Tarek realized: The Book was not a book: It was magic. At his touch, The Book began to glow, a glow not seen on Earth for seventeen years. Tarek was overcome with wonder. He began to explore the hidden magic of The Book.

Tarek studied The Book for many hours. It began to dawn on him that it held no knowledge. The prophecy was a lie. There was no wisdom in The Book, it was merely a curiosity. Disappointment washed over him as the hopes and dreams of the human race crumbled before him.

Tarek closed his eyes. He wept.

2011 AD.

Steve Jobs bans the Wikipedia app from the iPad.

Tuesday, June 08, 2010

What really happened.

A Linux programmer, a Windows programmer and an Apple programmer walked into a bar. They were having a heated discussion about which operating system is the best.

"Look, we'll never settle it this way", said the Apple programmer after many arguments, "I have an idea. Look at that girl over there". He pointed towards a smoking hot girl sitting alone at the bar. "Whoever impresses that girl with their Pen Computer will win the argument." They all agreed.

The Linux programmer went first: "Greetings, Female". "Hi", the girl responded. "You know, I just wrote this wicked Emacs macro in lisp to grawp mercurial and auto sync -". The girl tossed her drink at his face "Go away, you creep!". The Linux programmer went away dejectedly.

The Windows programmer was next: "Hi", he goes. "Hi", she replied. "Hey, check out this new game, you'll love it". He showed her a flash game with cute bunnies. "OMG! that's so cute". But just when she was about to give him her number: "Windows has performed an illegal operation and will shut down". "Whatever, loser". The Windows programmer also went away, head bowed in shame.

The Apple programmer kept his phone down on the table and straightened his collar. He went to the girl. "Hey baby, what do you think of this?". He shows her his MacBook Air. "Ooh! That's so cool. I wish I had one". She smiled coyly as she slipped a napkin into his hand "Call Me".

As he left the bar, he made sure that the Linux and Windows programmers saw his gloating face. He danced all the way to his home. He took out his key to unlock the door ....

That was when Gray Powell realized with horror that he had left his million-dollar iPhone prototype at the bar.

Sunday, May 23, 2010

Three-by-Three : Bollywood Cliches

Disclaimer: All images were derived from xkcd. I claim no ownership or originality.

Each row/column/diagonal depicts a cliche oft seen in Bollywood movies. Move your mouse over the row/column/diagonal captions to see the text.


Sweet
heart
Judwaa Police Balatkar Love
Triangle
B
h
a
i
B
h
a
i
L
o
v
e
L
o
v
e
J
a
n
a
m
J
a
n
a
m
Judwaa Police Balatkar

Tuesday, April 06, 2010

Greatest Hits: Volume II

A lot of people are visiting this blog right now (thanks to xkpj), so I'm going to shamelessly advertise my older blog posts. This is mainly to help people who don't want to crawl through all the crappy posts to find the few funny ones.

Slapstick/Parody/Silly

Kannada/Bengaluru

Geeky

Tales with a twist: These are stories which have a surprise ending.

Sunday, April 04, 2010

xkpj

Disclaimer: All images were derived from xkcd. I claim no ownership or originality.




Tuesday, March 30, 2010

Interactive story

Scene opens with a long shot. Location: Top secret Nuclear Missile Command. People are milling around. Suddenly the door opens and a harried looking man rushes inside. He is the NATIONAL SECURITY ADVISER. He is on the verge of panic.

NSA: Who's the lead programmer here? Where is he?

An intern points towards a lonely guy sitting in a cubicle on the far end. The guy JOE is fat, almost bald. He's wearing a faded t-shirt and drinking coffee from a paper cup. The NSA runs over to the cubicle.

NSA: Quick! We have no time to lose. We have to override the launch command!

JOE: Hey! calm down, man! What happened?

NSA: A janitor accidentally pressed the deploy button on our ICBM control! The missiles are pointed directly towards us! If you don't override the launch we'll all die! HURRY!


JOE is a programmer.

Monday, March 22, 2010

Unicode variable names in Java

Total I learned that you can have Unicode characters in your class/variable names.

public class Lang
{
 public static final int प्रियानंद  = 42;
 public static final int ಪ್ರಿಯಾನನ್ದ = 33;

 public static int ನನ್ನ(int x)
 {
  return x + 1;
 }
 public static int ಹೆಸರು(int x)
 {
  return x - 1;
 }
 public static void main(String [] args)
 {
  ನನ್ನ(ಹೆಸರು(ಪ್ರಿಯಾನನ್ದ));
 }
}

Note: You might have to specify -encoding Unicode when compiling.

Tuesday, February 23, 2010

Introducing Fair and Na'vi

Are you dissatisfied with your pale brown skin? Have you secretly fantasized about having pointy ears and a long tail? Then look no further. Hindustan Lever Limited in association with James Cameron is pleased to announce its latest beauty product: Fair And Na'vi.


Fair and Na'vi is specially prepared from extracts of Aloe Vera and Pandorum Unobtainium to give you that sleek blue look. Its fast acting formula enriches your skin to leave it smooth and shiny. Within four weeks you will see a visible improvement in your appearance or you'll get your money back.


That's not all! If you order a 12 pack before March 31, 2010, you'll be eligible for a chance to visit Pandora itself. Hurry! Offer valid till stocks last.



You may be wondering what to do with all the Fair And Lovely cream that you already have. Why would you want to be white when you can be blue! Fortunately you can use Fair and Lovely for many other things!


Five unexpected uses for Fair and Lovely


1. Converting black money to white money.
Just rub your illegal bribes/dowries/ill gotten jewelry with Fair and Lovely and within six weeks it'll be completely legal!


2. In Chess.
You're playing white and losing? No fear! Just rub the opponent's pieces with Fair and Lovely, and presto! the piece is now yours.



3. Changing Test match to Twenty20 match.
Forced to play test cricket because you only have a red ball? Just use some Fair and Lovely, and the ball will turn white in no time.



4. Changing Rap music into Country music.
Has you son started saying words like f*** and m**********r? Rap music is to blame! But don't worry, just rub the CD with Fair and Lovely, you'll have him listening to John Mayer in no time.



5. Changing Horror movie into Romantic Drama.
Boyfriend got a horror movie to watch? Just use Fair and Lovely and the movie will turn into a sentimental romantic movie.

Credits: The na'vi-fication of Aish was done with the help of this.

Tuesday, February 16, 2010

My name is Rrrawwr

Thunderous applause greeted President Barack Hussien Obama as he stood up and approached the mike.  A huge crowd had gathered to hear the charismatic leader address the nation. "Good Evening, citizens of the United States of America, and welcome - aaah!".

Everyone craned their necks to see what had startled the President. There was a tiger on the stage! A real, live asian tiger in Washington DC!

Now, if  it had been a big ferocious tiger, the president's gaurds would have shot it immediately. But it was a tiny little cub! With its large, playful eyes and its tongue hanging out of its mouth, the tiger cub frolicked happily around the stage. "Awww, he's cho cute", remarked First Lady Michelle Obama, an opinion which many in the audience shared. Even the president forgot the serious talk he was supposed to give and started playing with the cub.

Staring into the president's eyes, the cub mewed in a surprisingly human way. "Did you hear that? What is he saying?", the president asked. The cub made the strange noise again. Everyone was silent. The consulate general of India spoke up, "S-Sir ...I think it's speaking Tamil, an Indian language". "Well, what is it saying?", the president asked. The consulate general translated:

"I am a Tamil Tiger and I am not a terrorist.".

Tuesday, February 09, 2010

Moral Science Story 2

Once upon a time in ancient India, there lived a great rishi(sage) called Shulyaka. In order to please Shiva, Shulyaka undertook a deep penance. For 27 years, the great sage never wavered from his mediation. At last, Lord Shiva appeared in front of him. "Shulyaka, your penance has pleased me. I will grant you a boon unlike any other: When you are about to die, you can choose to bring one dead soul to life. tathaastu".

Many years passed, and the sage grew old. By this time, Shulyaka's fame had grown, and many had heard of his boon. People thronged his ashrama in order to try and get their loved ones back. After much deliberation, the other sages chose two people to present their case to the sage.

The first was a young lady. "Kind sage, I had been married only for a day when my husband died of an accident. I am now a widow, a fate worse than death. Please, bring my husband back".

The second was a small boy. "Greetings to you, sir. I have no father. My mother was very sick, yet she took care of me. Yesterday she succumbed to her illness, leaving me an orphan. Show me some kindness and bring her back".

As the sage was pondering, there was a commotion outside. A man burst into the kuTeera, holding a lifeless form in his hand. He cried, "I beseech you, great sage. Please have mercy on me. My daughter was playing in the river when this rabid dog bit her". Behind him a servant entered, carrying a dead dog. "Before we could reach and kill the dog, it had bitten my daughter. She is my only loved one in this world. Please save her", he implored.

The sage thought for a moment, and then announced "It is time for me to die", and fell dead. The young woman, the boy and the father all stared at each other, trying to guess who was chosen.

Lord Shiva summoned Shulyaka's aatma to kailaasa. "Who among the three did you choose: the husband, the mother or the child?", he asked. "O Omnipotent Shiva, I didn't bring any of them to life.", he answered, "By not choosing any of them I have saved all of them. The boy needs parents, the man needs a child and the lady needs a husband. Their tragedies have brought them together. If I had chosen one of them, the others would have been unhappy". "Very well", the Lord said, "so you wasted my boon". "No sire, I used it on the most deserving being. It is in the nature of the dog to bite; it cannot distinguish good from bad, innocent from evil. The villagers killed the dog for no fault of its own. Therefore I chose to bring the dog back to life".

"You fool," the Lord said, "after you brought it to life, the dog bit the man, the lady and the boy. They all died".

Moral of the story: Dogs bite.

(Thanks to RajeshV for the dog idea. He's written a sequel)

Wednesday, February 03, 2010

Ball Biting incident a viral ad campaign for Dabur Laal Dant Manjan

In a press conference sponsored by Dabur India Pvt Lmtd., Pakistani all-rounder Shahid Afridi made the stunning revelation that the infamous ball biting incident was actually a viral campaign for Dabur Laal Dant Manjan. Laal Dant Manjan is India's leading red-color-tooth-powder brand.


Speaking to the press, Dabur spokesman Mr Chaban Prash announced that the ball biting incident was only the first part of the cricket-themed marketing campaign. "We're negotiating with cricket commentator Madan Laal to get him to change his name to Madan Laal Dant Manjan".

Mr Prash also mentioned that Afridi will be replacing Mike Tyson as the Brand Ambassador for Laal Dant Manjan. "We're disappointed with Mr Tyson. He hasn't bitten anything in many years. Afridi on the other hand is an role model to kids. If he bites a cricket ball, millions of kids will start gnawing at random things".

Over the years many illustrious celebrities have endorsed Dabur Laal Dant Manjan. Here is a list of previous brand ambassadors.

During the freedon struggle, this ferocious "Dabur-man" bit 1754 British Army Officers before being brutally murdered. Inspired by its bravery, Manjan Laal Dabur made it the official mascot of the red colored tooth powder he invented. This is also the reason Laal Dant Manjan is banned in England even today.








With his hectic blood-drinking schedule, Count Dracula needs his fangs to be in great shape. What better powder than the Laal Manjan to keep his teeth sharp and ready? But since the demise of Dracula, Dabur has had a falling out with vampires; younger vampires like Twilight's Edward prefer Colgate.









Mike Tyson was more than an amazing boxer; he was also an exceptionally good biter. His moment of glory came when he bit off his opponent's ear in a boxing match. Subsequent scandals, rape convictions and prison stay has done nothing to diminish that one great moment when Evander Holyfield lay writhing on the ground, blood gushing from where his ear used to be.

Thursday, January 28, 2010

A True Brahmin

Radhesh Venkatesan (not at all related to this fellow) was a true Brahmin. Not one of those "maneli windows 95, beedili chicken 65"-type person. "praaN bhi jaaye, mutton na khaaye" was his motto, along with "I'll beg, but not eat egg". He regarded eating beef as the worst of all crimes. For many years his friends tried to tempt him with tandoori, seduce him with szechwan and bribe him with biriyani, but he didn't budge.

One day, the plane he was traveling in crashed. For two months people thought he was dead. But miraculously, after two months, news came that he was alive. He had been stranded in a remote Pacific island where he had somehow survived for two months. He was the only one alive from the crash.

I went to meet him when he finally returned. After enquiring about his health, I asked him about the question which was in my mind ever since the news had come. "On that island you were stranded in, there were no plants or animals"? "No". "The only food available was a crate of beef which somehow survived the crash?". "Yes, there was a crate". "So!", I exclaimed, "you finally broke your code. You ate beef.". "No, never! I never ate beef". "Then how did you survive for two months? You are lying!".

Radhesh was smiling as he answered "I wasn't the only one who survived the crash".

Monday, January 04, 2010

Mayan civilization sued after nothing happens on December 21, 2012

December 22, 2012.

The Apocalypse Association, a non-profit organization promoting calamities and disasters, has filed a lawsuit against the Mayan civilization, after the disasters predicted by the ancient South American people failed to occur.

"I'm disappointed that millions of people didn't die.", said Michelle Neifer, spokesperson for the AA, "Someone must be held responsible".

Indeed, December 21 turned out to be the most uneventful day in decades. The climate worldwide was pleasant, no assasinations or high-profile murders took place, and only 7000 people died in Iraq, which is way below the average.





Not the first failed prediction

This is not the first time a disaster prediction has fallen flat. Nostradamus predicted that the world would end in 1999, but nothing much happened. Computers were predicted to kill everyone due to the Y2K bug, but that turned out to be a hoax perpetrated by COBOL programmers.

"I'm sick of these lies", says Jody Killdred. Jody killed his dog to spare him an agonizing death during the Y2K scare, which turned out to be nothing. "But this time, I didn't even send my daughter to bed.", he added.

2102 not 2012

Dr Brian Juntilope, of the Canadian Mayan Institute, claims that we have had it wrong all this while. "You see, the Mayans write their years from right-to-left. So the disasters will happen, but in 2102".

While Dr Juntilope may be right, few people from the AA are willing to wait that long. "What's the point if it happens in 2102? I'll be dead by then", exclaimed Michelle.

Sequel to 2012

Unfazed by the lack of catastrophes, Roland Emmerlich, the director of the successful movie 2012, is already planning a sequel to the movie. Titled 2038, the movie is about how the world is destroyed by UNIX computers suffering from the Year 2038 Problem. The movie is set to hit theatres in 2014.

Monday, December 07, 2009

agony_aunt[0] : politically correct coding

Question I recently went to an interview where the lady asked me to design a payroll application. But after seeing my code, she got angry and called security guard to kick me out. I am now being sued for sexual harassment. I'm sending my code to you. Please tell me, where did I go wrong?

agony_aunt No wonder she threw you out! Your code is politically incorrect! Let me tell you why. Here's a piece of your code:

class Employee
{
Gender gender;
String name;
public Employee(String name, Gender gender)
{
this.name = name;
this.gender = gender;
}
...
}
...
Employee employee = new Employee("Ramya", Gender.Female);

Do you see what you did wrong there? You objectified women! You are such a sexist pig! Women should never be represented by objects. You should do this intead:

int calculateSalary(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getSalary();
}
else
{
//be careful not to create an object, not even a structure.
return getSalaryForFemalePerson(name);
}
}

The second mistake you did was here:

class Employee
{
...
int getAge()
{
return age;
}
...
}

You can't ask a woman her age! Thats rude, and in some countries, it's illegal! This is what you should do:

int getAge(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getAge();
}
else
{
throw new SexistException("Male Chauvinist Pig!");
}
}

Your comparison function is also totally wrong. What it should be doing is:

int compareEmployees(String emp1, String emp2)
{
if(isMale(emp1) && isFemale(emp2))
return -1;//men are inferior to women.
if(isFemale(emp1) && isMale(emp2))
return +1;//women are superior to men.
if(isFemale(emp1) && isFemale(emp2))
//woman with more jewelry wins.
return getJewelry(emp1) - getJewelry(emp2);
return 0;//all men are equally stupid.
}

Even though it is a payroll application, you always need to implement these functions:

boolean isFat(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getWeight() > AVERAGE_WEIGHT;
}
else
{
return false;
}
}