I (dilbert) am not a Perl expert, I use the language once in a while. One fine day I decided to brush up my Perl skill and started reading Perl Black Book
After I breezed throught some easy chapters, I hit an important milestone, the usage of my, local scope. This was something I had forgotten.. so I read it with great interest. I read the examples and the concepts become clear to me.
Asok (perl expert) was working at Wally's desk. I pinged him and just to trouble him I asked him to explain the difference between my and local, and he did it perfectly. Then Asok and me decided to check if boss knew these concepts (since the boss claims himself to be a technical expert).
I called up boss and we had this conversation
Dilbert: Hello
Boss: हल्लू
Dilbert: Tell me one thing, what's the difference between my and local ?
Boss: (A pause of 2 secs) See my is actually used for local variables. And local is different.
Dilbert: (Controlling his laughter) what does that mean ?
Boss: See local is mostly used to getting system/environment variables.
Dilbert:(Had enough of this nonsense) Ok. It would be good if you can give me some code samples.
Boss: Ok
Dilbert and Asok both have a good laugh about this. Within minutes the boss comes to Dilbert's desk (to give some "garbage" suggestions)
Boss: See my and local are there, but now Perl has come up with a new concept called our ! हाँ !
Dilber,Asok: (Putting up a straight face and controlling the laughter) Hmm.. ok
After the boss had left the scene, Asok and Dilbert broke into laughter :D:D:D
Larry Wall needs to be updated that our a recently added keyword!
Friday, June 6, 2008
Thursday, June 5, 2008
Control + C => It kills.
This case happened in a hospital's Intensive care ward where Patients always died in the same bed and on all Sunday morning at 11a.m, regardless of their medical condition.This puzzled the doctors and some even thought that it had something to do with the supernatural. No one could solve the mystery as to why the deaths took place at 11 AM.So a world-wide expert team was constituted and they decided to go down to the ward to investigate the cause of the incidents. So on the next Sunday morning few minutes before 11 a.m. all doctors and nurses nervously waited outside the ward to see for themselvesWhat the terrible phenomenon was all about. Some were holding wooden crosses, prayer books and other holy objects to ward off evil........Just when the! Clock struck 11...And then......then.....then........Santa Singh, the part-time Sunday sweeper, entered the ward and Unplugged the life support system & plugged in the vacuum cleaner.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Liked the joke? Well, we are lucky enough to have a local Santa Singh in our team - Our dear BOSS.
This is what he did :
It was 8pm. Everyone was eager to go home.
However, no Dev or QA was allowed to go home today as a critical build was going on. Unless the build succedds, and QA approves it, no one can leave the office.
Some Devs were so tensed, that they preferred to monitor the log line by line.
They were monitoring the log, and whenever a component was compiled sucessfully, they were dancing as if it was one day match, and Sachin was batting and hitting boundaries.
And all of a sudden, all of a sudden, all of a sudden ...... Sachin is out ...... I mean, the following line appears in the build log :
Someone sent me a ^C. Terminating the process.
And the build stopped.
Everyone was horrified. Asok had fired the build, and so the phone on his desk started ringing. The incident was reported, and Asok started the investigation.
He found that while doing some private research, THE BOSS had sent a ^C to the build and it was killed. It was a clear cut loss of 1 hour .
All the teams, who would have packed up for the day at 11:30pm, had to wait till 12:30am.
The Issue got escalated, and the super boss scolded the BOSS.
The Boss then came to Asok, and Asked
"एक बात बताओ ^c करनेसे बिल्ड kill कैसे होता है ? "
Do you have any answer? If yes, pls explain him.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Liked the joke? Well, we are lucky enough to have a local Santa Singh in our team - Our dear BOSS.
This is what he did :
It was 8pm. Everyone was eager to go home.
However, no Dev or QA was allowed to go home today as a critical build was going on. Unless the build succedds, and QA approves it, no one can leave the office.
Some Devs were so tensed, that they preferred to monitor the log line by line.
They were monitoring the log, and whenever a component was compiled sucessfully, they were dancing as if it was one day match, and Sachin was batting and hitting boundaries.
And all of a sudden, all of a sudden, all of a sudden ...... Sachin is out ...... I mean, the following line appears in the build log :
Someone sent me a ^C. Terminating the process.
And the build stopped.
Everyone was horrified. Asok had fired the build, and so the phone on his desk started ringing. The incident was reported, and Asok started the investigation.
He found that while doing some private research, THE BOSS had sent a ^C to the build and it was killed. It was a clear cut loss of 1 hour .
All the teams, who would have packed up for the day at 11:30pm, had to wait till 12:30am.
The Issue got escalated, and the super boss scolded the BOSS.
The Boss then came to Asok, and Asked
"एक बात बताओ ^c करनेसे बिल्ड kill कैसे होता है ? "
Do you have any answer? If yes, pls explain him.
Zombie
If you check the dictionary meaning of the word zombie.
The English word means : The Living Dead.
In terms of computer process it means :
On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table, this entry being still needed to allow the process that started the zombie process to read its exit status. The term zombie process derives from the common definition of zombie—an undead person. In the term's colorful metaphor, the child process has died but has not yet been reaped.
That's what he is. He is alive just because he isnt dead. He has no expressions on his face, when he walks. When he talks, he talks just for the sake of talking, and never makes any sense.
He is alive(coming to office) just because his parent process(Super Boss) has not yet send him an exit signal(lay-off).
If you have seen him moving around in the office, you wont be scared when you see 1968 film, Night of the Living Dead.
The English word means : The Living Dead.
In terms of computer process it means :
On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table, this entry being still needed to allow the process that started the zombie process to read its exit status. The term zombie process derives from the common definition of zombie—an undead person. In the term's colorful metaphor, the child process has died but has not yet been reaped.
That's what he is. He is alive just because he isnt dead. He has no expressions on his face, when he walks. When he talks, he talks just for the sake of talking, and never makes any sense.
He is alive(coming to office) just because his parent process(Super Boss) has not yet send him an exit signal(lay-off).
If you have seen him moving around in the office, you wont be scared when you see 1968 film, Night of the Living Dead.
Brownian Motion of the BOSS
Many a times our beloved boss gets up from his cubicle. And starts walking with a blank face looking at the ground. He forgets why he started walking.... And then moves around.... does nothing, returns to his desk, and starts typing mails with one hand.
The path he travelled yesterday can be added to the link below as additional exampls of brownian motion.
(http://en.wikipedia.org/wiki/Brownian_motion)
The path he travelled yesterday can be added to the link below as additional exampls of brownian motion.
(http://en.wikipedia.org/wiki/Brownian_motion)
The MM\DD\YY v/s the DD\MM\YY debate
In my company * we have a web based leave application system. All planned leaves have to be applied through a web based system. The system then sends an automated email to the boss. The boss can the approve/reject the leave
It was late Dec 2007 and I applied for a 2 days off in early Jan 2008; within 2 mins the boss approved it.
Fast forward to 7th Jan 2008 (my day off from work)
Its 12:30 pm and the boss gives a call on my cell (he always calls me from his cell and never from the office line)
Dilbert: Hello
Boss: हल्लू हम boss बात कर रहे है |
Dilbert: (I know its you... I have your number saved in my phone book) Yes Boss tell me whats the matter.
Boss: Are you coming in late today ?
Dilbert: (Lost !!!) Late ??? I am on leave, I won't be coming to office today.
Boss: But you should have called me up to inform about this unplanned leave.
Dilbert: I have already applied for a leave.
Boss: हें Wait.. I will check हें .
Dilbert: (Shaking head in disgust)
Boss: No I can't see anything in the pending approval list
Dilbert: (By now almost gone red) Boss.. it won't be in pending list, you have already approved it.
Boss: Is it ? I will have a look हें
Boss: No I don't see todays date in the approved list !
Dilbert: (Cursing his fate for having such an idiot as his boss) Ok boss, I will check again and call you back.
Immediately Dilbert gives a call to Wally
Dilbert: Hi
Wally: Hi!
Dilbert: Can you do me a favor login to leave application system with X username and Y password and check if todays leave is approved
Wally: Sure. (Logs in to the system). Bingo !! Yes its applied and approved
Dilbert: Can you sow this to the boss ! he has gone blind. According to him, I have not applied for a leave.
Wally:Ok. I will do that
Dilbert: Thanks. Give me a call later.
Wally:Sure
In the mean time the boss went to Asok's desk.
Boss: See people should plan for leaves in advance हें . If they are not coming to work, they should inform their managers. If some one doesn't come to office by noon without intimation then HR will take action against that person
Asok: Gives a sarcastic smile
Wally sees the boss at Asok's desk and gives him a shout
Wally: Hey ! boss. Can you come here
Boss: Yes Wally.
Wally:Dilbert asked me to login to leave application system with his credentials. And the shows the leave as approved!
Boss: (Totally confused.) strange हें
Wally:(Whats so strange in this ?)
Boss goes back to his desk, re-checks the system and then comes smiling to Asok's desk again..
Boss: हें confusion हें mmddyy and ddmmyy हें
Asok: (He has already given up. Again gives up a sarcastic smile)
The leave application system shows 3 columns
Start date/End Date/Number of days
Now if the boss did get confused (which happens in every matter), then he should have also looked at the Number of days column.
Dilbert had applied for leave on 7th and 8 Jan (2 days). Boss interpreted the leave to start from 1 Jul and end on 1 Aug, however Number of days column still showed 1 !!
Boss calls Dilbert from his cell
Boss: हल्लू हम boss बात कर रहे है हें
Dilbert: (I know its you... idiot !!! I have your number saved in my phone book) Tell me...
Boss: Problem has been resolved हें
Dilbert:Ok (Was not at all interested in what was the problem and wanted to hang up). Ok. Bye
Boss: The problem was with mm/dd/yy
Dilbert: (Has no clue and is least interested)Ok. Thanks. Lets discuss this when I am in office
Boss: हे
Dilbert:Bye. (hangs up)
If you think that a normal person can get confused with date formats, then yes I do agree that 1st time you can get confused, however the boss has been using the system for over an year ! Also if you want to grant some one a leave you need to know the duration/start end date. The boss just approved/rejects leaves based on unknown parameters.
People learn through mistakes. However our boss just keeps doing the same mistakes over and over again.
If this episode was not enough, boss repeated this with Wally too.
To avoid causing confusion/trauma to our boss we (the engineers) have decided not to take leave from 1st to 12th of the month
It was late Dec 2007 and I applied for a 2 days off in early Jan 2008; within 2 mins the boss approved it.
Fast forward to 7th Jan 2008 (my day off from work)
Its 12:30 pm and the boss gives a call on my cell (he always calls me from his cell and never from the office line)
Dilbert: Hello
Boss: हल्लू हम boss बात कर रहे है |
Dilbert: (I know its you... I have your number saved in my phone book) Yes Boss tell me whats the matter.
Boss: Are you coming in late today ?
Dilbert: (Lost !!!) Late ??? I am on leave, I won't be coming to office today.
Boss: But you should have called me up to inform about this unplanned leave.
Dilbert: I have already applied for a leave.
Boss: हें Wait.. I will check हें .
Dilbert: (Shaking head in disgust)
Boss: No I can't see anything in the pending approval list
Dilbert: (By now almost gone red) Boss.. it won't be in pending list, you have already approved it.
Boss: Is it ? I will have a look हें
Boss: No I don't see todays date in the approved list !
Dilbert: (Cursing his fate for having such an idiot as his boss) Ok boss, I will check again and call you back.
Immediately Dilbert gives a call to Wally
Dilbert: Hi
Wally: Hi!
Dilbert: Can you do me a favor login to leave application system with X username and Y password and check if todays leave is approved
Wally: Sure. (Logs in to the system). Bingo !! Yes its applied and approved
Dilbert: Can you sow this to the boss ! he has gone blind. According to him, I have not applied for a leave.
Wally:Ok. I will do that
Dilbert: Thanks. Give me a call later.
Wally:Sure
In the mean time the boss went to Asok's desk.
Boss: See people should plan for leaves in advance हें . If they are not coming to work, they should inform their managers. If some one doesn't come to office by noon without intimation then HR will take action against that person
Asok: Gives a sarcastic smile
Wally sees the boss at Asok's desk and gives him a shout
Wally: Hey ! boss. Can you come here
Boss: Yes Wally.
Wally:Dilbert asked me to login to leave application system with his credentials. And the shows the leave as approved!
Boss: (Totally confused.) strange हें
Wally:(Whats so strange in this ?)
Boss goes back to his desk, re-checks the system and then comes smiling to Asok's desk again..
Boss: हें confusion हें mmddyy and ddmmyy हें
Asok: (He has already given up. Again gives up a sarcastic smile)
The leave application system shows 3 columns
Start date/End Date/Number of days
Now if the boss did get confused (which happens in every matter), then he should have also looked at the Number of days column.
Dilbert had applied for leave on 7th and 8 Jan (2 days). Boss interpreted the leave to start from 1 Jul and end on 1 Aug, however Number of days column still showed 1 !!
Boss calls Dilbert from his cell
Boss: हल्लू हम boss बात कर रहे है हें
Dilbert: (I know its you... idiot !!! I have your number saved in my phone book) Tell me...
Boss: Problem has been resolved हें
Dilbert:Ok (Was not at all interested in what was the problem and wanted to hang up). Ok. Bye
Boss: The problem was with mm/dd/yy
Dilbert: (Has no clue and is least interested)Ok. Thanks. Lets discuss this when I am in office
Boss: हे
Dilbert:Bye. (hangs up)
If you think that a normal person can get confused with date formats, then yes I do agree that 1st time you can get confused, however the boss has been using the system for over an year ! Also if you want to grant some one a leave you need to know the duration/start end date. The boss just approved/rejects leaves based on unknown parameters.
People learn through mistakes. However our boss just keeps doing the same mistakes over and over again.
If this episode was not enough, boss repeated this with Wally too.
To avoid causing confusion/trauma to our boss we (the engineers) have decided not to take leave from 1st to 12th of the month
Wednesday, June 4, 2008
What is Recycle Bin????
Wally once goes for a vacation and there is some issue in the office. He gets a call from his boss.
Boss: "Halluuu"
Wally: Hello.
Boss: "Tell me something, how do we fire xxx build ?"
Wally:"It simple, connect to machine 'y' , and run the 's' script under 'zz' folder.
Boss:"ok".
Wally:"And delete the folder 'temp' inside the folder 'zz'.
Boss:"heeeeennnn ok".
Wally is waiting for some response, after few seconds seeing no reply from the boss.
Wally:"so have u started the script"
Boss:"Which one?"
Wally:"The script 's' under 'zz' folder.
Boss:"Ohh Ohh I deleted 'zz' folder".
Wally:"Oh nooo, but I had told u to delete the 'temp' folder only".
Wally is disgusted, and about to break down at the other end. But then he thinks that this mishap can be recovered.
Wally:"Did u do a shift+delete?".
Boss:"What is shift+delete".
Wally looking at heavens "thank God".
Now to the boss.
Wally: "No problem we can recover the scripts. Go to RECYCLE BIN"
Boss:"WHERE IS IT?".

Now how do I tell - this is recyclebin ------------------------------>>
Boss: "Halluuu"
Wally: Hello.
Boss: "Tell me something, how do we fire xxx build ?"
Wally:"It simple, connect to machine 'y' , and run the 's' script under 'zz' folder.
Boss:"ok".
Wally:"And delete the folder 'temp' inside the folder 'zz'.
Boss:"heeeeennnn ok".
Wally is waiting for some response, after few seconds seeing no reply from the boss.
Wally:"so have u started the script"
Boss:"Which one?"
Wally:"The script 's' under 'zz' folder.
Boss:"Ohh Ohh I deleted 'zz' folder".
Wally:"Oh nooo, but I had told u to delete the 'temp' folder only".
Wally is disgusted, and about to break down at the other end. But then he thinks that this mishap can be recovered.
Wally:"Did u do a shift+delete?".
Boss:"What is shift+delete".
Wally looking at heavens "thank God".
Now to the boss.
Wally: "No problem we can recover the scripts. Go to RECYCLE BIN"
Boss:"WHERE IS IT?".

Now how do I tell - this is recyclebin ------------------------------>>
Subscribe to:
Posts (Atom)
