Friday, April 27, 2007

Another Story

It was my Intermediate days, and results are out for first year. Everyone were very eager to know whether we are passed or failed. I was not that much because I had a firm belief that I don't fail at least. OK. We were looking in the news paper to see whether we are passed or failed. We looked thoroughly and found my number is not there. Our lecturer was there around, when one person said "Hey Girl, your number is not there. So, you are failed". Sir said, "How is that possible? She is one of toppers in our college". OK, finally, from the paper, it is clear that my number is not there. So, I am failed. I used to cry day and night and was wondering how can this happen. Only possibility that I thought is "May be, I haven't tied papers tightly with thread. So, they might have dispersed and lost. So, they might have evaluated for one paper where the marks are less than passing marks".

One of our college person went to Hyderabad to get marks from the board (His position was like head for conducting exams at district level, so was able to). He called me up and said "I will be announcing your marks. Don't get afraid" and finally, he said "You got 3 marks in Maths and so you are in failed category where as I got more than distinction in all other subjects". I started laughing. Now, my theory failed here. If the thread is not tied properly, there will be one paper, where It is impossible to have 3 marks for that. Then, If they give one mark for each paper, I had taken 3 additionals, then I should get 4 marks at least.

I told my father that I want to fight with the state board in court as I don't see any way that I can fail with 3 marks in Maths at least. But, He was little reluctant and said "See, you got very good marks in other subjects and if you anyway have to write for this Maths paper where you can easily score very good marks and you will be easily like reaching more than 400 out of 470.Then, why should we worry much" I said "I don't want to get asked by many people like "Oh, I heard that you are failed" I just can't tolerate ".

My father and another sir from our college went to Hyderabad and initially talked to one of the person in State Board to see like, whether it is possible to review my paper. He asked a bribe of 4k just to show the paper. So, my father decided to file a case against them in court. And it was a petition to allow me for betterment exams. Because, If a person fails in one subject, she/he can't go for a betterment exams. She/He can write only those ones in which they are failed.

Finally, I got the good news just two days before to my betterment exams that I got 72 out of 75 in Maths-1 paper and Court allowed me to appear for betterment. I was too happy for the reason that I didn't fail and another bonus is that I was topper in my town.

Moral of the story: Just be brave and have self-confidence when situations are against you. Who knows, may be something better is coming in your path.

Monday, April 16, 2007

Lesson -1

Simple tips to follow for bug-free, easy maintainable code:

1. Never copy a single line in your code. Better use a method even it is just one line. (prone to bugs, if you don't follow)
For Example:
int value1 = obj.getValue1() > 10 ? 10 : obj.getValue1();
int value2 = obj.getValue2() > 10 ? 10 : obj.getValue2();

Better way of writing above code is:
int value1 = getActualValue(obj.getValue1());
int value2 = getActualValue(obj.getValue2());

int getActualValue(int value)
{
return value > 10 ? 10 : value;
}


2. Never hardcode anything. Always assign values to constants and use that in the place where you want to use those values. This makes life simpler, when you want to change that value in all locations wherever it is used. This is very simple to say. But many people don't follow it.


more to come soon.

Thursday, April 12, 2007

Not a good day or different day?

Today seems like, things are not going to be in smooth way.
1. Vehicle gave trouble in the middle and had to wait for a long time to get another one.
2. Most of my todo list, which I was able to finish yesterday created more issues and have to look into them again.
Good day or different day??
Wait and see..

Tuesday, April 03, 2007

Error While logging in to gmail

I got below error when I tried to login to gmail. Does any one face the same issue?

Undefined variable. Variable: opt_initialName. Node: {name opt_initialName} at ./cs/caribouroot/java/com/google/caribou/ui/pinto/modules/navpane/label.js line 313:

// Ask user for label name
var label = prompt(pinto.navpane.Label.LABEL_NEW_LABEL_PROMPT,
opt_initialName ? opt_initialName : '');
while (label != null) {
Undefined variable. Variable: opt_initialName. Node: {name opt_initialName} at ./cs/caribouroot/java/com/google/caribou/ui/pinto/modules/navpane/label.js line 313:

// Ask user for label name
var label = prompt(pinto.navpane.Label.LABEL_NEW_LABEL_PROMPT,
opt_initialName ? opt_initialName : '');
while (label != null) {


Surprisingly, it happened only with one account. Why so?? How is that possible?
Did they deploy different builds on different servers? So, my another account has correct build, so it didn't give any error where as my other account has wrong build, so giving this error?


Updates:
Some issue at google end. It works fine with non-JS link, http://mail.google.com/gmail/h/