How QA frustrates Developer

One of my friends sent this interesting mail :

 

Roshan D’Mello: Hey Mukesh, there is a bug in your code. Type a text in
user name text box and press enter. Beep sound doesn’t appear.

Mukesh Thakur: How can that be a bug? There is no requirement that beep
sound should come. Anyway, I will assign it to offshore and get it
fixed.

After 2 days,

Mukesh Thakur: Roshan, bug is fixed. Please verify.

After another 2 days,

Roshan D’Mello: I have re-opened the bug because sound is not coming in
some PCs. Sound is coming in my machine, but my colleague Rajat
Choudhry is not getting the sound.

After another 2 days,

Mukesh Thakur: Not a bug. I observed that your friend Rajat Choudhry
has old IBM machine. Unlike your DELL machine, IBM machines do not have
inbuilt speakers. So, to hear the sound in Rajat Choudhry’s machine,
please use head phones and then get the bug closed soon.

Another 2 days,

Roshan D’Mello: I have re-opened the bug because sound tone is different

cross different machines. Sound is coming as ‘BEEP’ in my machine, but
my colleague Rajat Choudhry who is having IBM machine is getting the
sound as ‘TONG’.

Mukesh Thakur: Not a bug. Get lost man. What can we do for the bug? The
two machines are built in such a way that they produce different
sounds. Do you expect the developers to rebuild the IBM processors to
make them uniform?

Please close it.

Another 2 days,

Roshan D’Mello: I have re-opened the bug because intensity of beep sound

produced on 2 different DELL machines is different. My machine produces
beep sound of intensity 10 decibels whereas my friend’s machine
produces sound worth 20 decibels. Fix your code to make the sound
uniform across all machines.

Another 2 days later,

Mukesh Thakur: Once again it is not a bug. I have noticed that the
volume set is different on the two machines. Ensure that volume is same
in both the machines before I get mad and then close the bug.

Another 2 days,

Roshan D’Mello: I have re-opened the bug.

Mukesh Thakur: What ?? Why? What more stupid reasons can be there for
re-opening?

Roshan D’Mello: Sound intensity is different for machines placed at
different locations (different buildings). So, I have re-opened it.

After 2 days,

Mukesh Thakur:
I have made some scientists do an acoustical analysis of
the two buildings you used for testing. They have observed that the
acoustics in the two buildings varies to a large extent. That is why
sound intensity is different across the 2 buildings. So, I beg you to
please close the bugs.

After 1 year

Roshan D’Mello:
I am re-opeing the bug. During the year, I requested the

clients to arrange architects to build two buildings with same
acoustical features, so that I can test it again. Now, when I tested, I
found that intensity of sound still varying. So, I am re-opening the
defect.

Mukesh Thakur: GROWLLLL…. .I am really mad now. I am sure that the
sound waves of the two buildings are getting distorted due to some
background noice or something. Now I need to waste time to prove that
it is because of background noice.

Roshan D’Mello: No need for that. We will put the machines and run them
in vacuum and see.

Mukesh Thakur: (not alive)

Disabling Notice and Warning in PHP.ini file

Sometime if you are working on some php code and fed up of Warnings or Notices in the browser then easy way out is to disable the settings in PHP.ini file. This is a configuration file which is loaded each time you start your PHP+Apache. Actually, I faced a similar problem, my PHP script was working fine. It was doing everything it was supposed to but at the same time it was throwing errors and warning which doesn’t make sense and were harmful for the application. I disable these warnings and made my life easy:

Here is the method to change the settings in PHP.ini file:

Open PH.ini file.

In this file search for the phrase “ error_reporting = E_ALL” ,[without inverted commas]

Here replace this with “error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING

Make sure you change the real enabled part of this , there are certain other examples given in the file.

Restart your PHP + Apache

Now, no warnings and messages will appear in the browser.

I wouldn’t recommend this for the normal usage, however sometimes you have to deal with the exceptions

mysql_fetch_array()

I was working on a web based polling application. I experienced a problem which took me hours to troubleshoot. The code contains many queries for different purposes. It was working fine on my PC , but when I uploaded it on one of the web hosting sites which supports PHP , I got a strange message :

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result

Same code was working alright on my own pc. I was bamboozled by this error. After two hours of error finding I came to know that it was because of the UPPERCASE and LOWERCASE letters. The query I wrote was:

$query = “Select * FROM USER WHERE user_id=$user_id ;”;

but the name of my table was in lower cases. So this was throwing a warning message. I changed the query to :

$query=”Select * FROM user WHERE user_id=$user_id;”;

It was strange thing for me because the same query was working fine on my PC.

You know you are from Lahore When …

This is not my Post, I copied it from somewhere. I think most of these are very true:

The first 15 channels on your cable are dedicated to stage shows mujras

The morning rush hour is from 6am to 12pm. The evening rush hour is from 2pm to 9pm. Saturday’s rush hour starts Friday morning.

You buy anything and everything from Al-Fatah

Your Massi and Driver have taught you fluent punjabi

Your broke ass next door neighbour just bought a BMW cuz he deals in property

A really souped up civic from tokyo drift stops next to you and instead of something groovy, the woofers blare out himesh rishamya

One of your friends is a butt

The people in your local Gourmet Bakery know you by face

Attended a shaadi that had to have a mujra

The only solution to boredom is eating out

All directions start with, “Go down to Main boulevard”

You think its okay to wait 5 hours in line for Basheer’s Fish in Mazang, cuz dude! he only opens 6 months a year

You go to Shahjamal every thursday to smoke weed with pappu sain

Its okay to run a red light if the traffic police dude doesnt have a bike to chase you

When someone asks you ”bhai yeh fortress kahan hai”, you have an evil grin on your face and send him to johar town

If your hungry at 3am, you go to CTC in your PJ’s instead of walking to your kitchen

Your cousins from karachi ask you about food street and your like “yeah i went there back in 2003″

Your winning argument about how lahore is better than karachi is ‘Lahore laa hour aaye’

Your childhood dream of attaining higher education was from Aitchison or Kinnard.

You always count the change before you leave shop, beacuse all shop keepers rip you off.

You always thank the rude shop owner because he actually “let you buy something from his shop”

You know that its in evitable that you’ll be “chalaned” on mall road.

Your cousins from america ask you about malls and your like “Yea we have Pace, but i never go there”

You go to the daewoo more than the airport

Turbo C on Windows Vista

 

 

Some of my students were having problem using Turbo C on Windows Vista. One of the major problems was vista didn’t support the Full Screen mode. I was on leave for couple of days, so had enough free time. I decided to have a go at this problem. I got hold of my Dad’s laptop with pre-installed Windows Vista and tried different things. Finally, I was able to solve this, here are the steps for it:

 

  1. Copy the “DOSBox0.72-win32-installer.exe” from http://www.download3k.com/Install-DOSBox.html

 

  1. Install it with default settings.
  2. Create a folder “Turboc” in your C:\> directory.
  3. Copy your turbo c folder such as “TC” in the folder “Turboc”. This is shown in the following diagram.

fifth.jpg

  1. Run the software you installed. Its icon is present on the your desktop.
  2. This will run the software, as shown in the fig:

 

first.jpg

 

  1. Write these lines in the screen:

mount c c:\>Turboc

Press Enter

Following message will appear on the screen

Drive c is mounted as local directory c:\Turboc\

Now write:

C:

Press Enter

Now write:

cd TC

Press Enter,

Now write

cd bin

Press Enter,

Now write

Tc.exe

All these steps are shown in the following figure:

2nd.jpg

8.

Now following screen will appear:


 

fourth.jpg

10. Press Alt + Enter. Full screen mode of Turbo C will appear.

Happy Coding