Monday, December 20, 2010

Education System - At its worst ( in my opinion )

Recently, my five year old niece went for some entrance exams for getting an admission to two schools. In one school, the time management is so bad that they called kids at 11:30 or 12 and made them to wait for hours and finally my niece came out at 3:30pm!! Come on guys, they are kids. Can't you have some time sense at least for them?

And, there is this another school called New Horizon in Bangalore. And, just see the kind of questions they are asking for Class-I entrance exam. Kids have been asked to copy an English para and also asked to copy a Hindi para (!!!, they are still learning A,B,C s of Hindi and these people are asking for copying Hindi paragraphs). I don't understand what are they going to teach in 1st class now? Also, I heard that they had some questions on English grammar. I don't know. I feel these kind of entrance exams should be banned and the school administration should be punished for it. Come on, it is such an young age for kids. Why the hell you need an entrance exam!!! Wish Govt take these kind of thing seriously. This is not right way of education.

Tuesday, August 24, 2010

My Saga of cooking

Ok. my current work environment has provided(or forced :D) me to sharpen my cooking skill. One day, I fedup with the canteen food (yeah. haven't seen this pathetic food earlier) and feel I can prepare better than this. Sometimes, I succeeds and that gives me motivation and sometimes, I fail (Yeah, it actually happened oneday that I beat my canteen food :(, can't imagine but happened in reality ). Then, I feel, why to torture my husband too with this food and give up cooking. But one day, I again feel that I can prepare better and start cooking and the story continues in infinite loop. :)

Friday, August 13, 2010

My Random dreams these days

Got a dream that I am singing "Janaganamana" and I sang the whole national Anthem in dream.
Got a dream about my work and started designing it
Got a dream that I wrote a class for Steve Balmer with public and private function which he can use for public and personal communication
Got a dream that I started calling a function via a pointer (Run time overriding, you see ) to move left and right while sleeping

Moral of the story: Need a break!!!!

Monday, August 02, 2010

Destiny!

We had a plan to visit Bangalore last weekend and had prepared for it since long. However, God had some other plans for us. We had to cancel our trip for various reasons and after cancelling the trip, I got a call that my uncle is not well and admitted in a hospital in Hyd. We went to meet him on Saturday and by the time we reached, the doctor has informed them to take him to a hospital in their place itself as the same injections can be taken there. My uncle have a kid who just finished his +2. I consoled the kid as well my uncle and aunt saying everything will be ok. Little I knew that would be my last visit to him. They have taken my uncle to a hospital in their place and the journey went fine and he was feeling ok. After I got this information, after few minutes, I got a call saying he is no more.:-(

I guess, I am in the second phase of life.

In the first phase, you are a kid and you don't hear/see the news of the people you have seen while growing up are no more.

Second phase of life, you get to hear the news of elder people you have seen when you are kid are no more.
Third phase of life, you get to hear the news of your age people are no more and ball will be in our court during that time and couting for days

Monday, May 31, 2010

Happy Moments :P

Yesterday, we were shifting home and door bell was rang and I opened the door. A person asked me "Could you call your mom please?". He takes home delivery order for fruits and vegetables and so wanted to talk to some elder people at home. :))

Later in the evening, a lady rang the bell. Again, I opened the door. She said "Could you call madam please?". I said "Yeah, tell me". She stared at me again and started talking. :)
I guess, all the credit goes to my t-shirt. Earlier, the same t-shirt made a security person in Bangalore Metro to inform me that "Under-18 are not allowed". :)

Tuesday, May 25, 2010

DOS equivalent of linux commands

unix Command =>Dos Command
Grep -r => findstr /S
ps aux => tasklist /v
kill -9 => taskkill /f /im imagename
cp => copy
find . -name =>dir filename /S
Currently looking for locate or find . -name available in linux
Got the answer for above one. Thanks to Satish. Updated the list accordingly.

Monday, April 05, 2010

Stop the process of emotionally attacking

One of our relative is not feeling well since recently and the family are going in very bad trauma as recently, two people from the family are passed away during different incidents. Now, one can see how emotionally weak they might be during this situation, given they have kids who are still young and one of the main person of the family is ill. So, one religion have taken this as an advantage and gave some speech that they will do prayers for them and their God (are there different Gods who can do better than other!!!, I was assuming it is only one :-/) will save them. So, the couple converted into different religion and stopped celebrating the festivals of their religion. I am not against any religion and I do believe one should respect other religions and I don't differentiate as their God or my God. But, I didn't like this way of attacking people emotionally and try to convert them into one religion and put a hard and fast rule of not celebrating their own festivals!
My request to those fellows who choose to convert people's religion in this way: Please stop this nonsense advertising/promotion what ever you call. This is not the right way.

Wednesday, March 17, 2010

install chrome in fedora 12

Installing Google Chrome from the rpm file specified in google chrome site didn't work for me. So, below are the steps which worked for me.


Step-1: Create a chromium.repo file in your /etc/yum.repos.d directory
Step-2: add below contents to chromium.repo file
[chromium]
name=Chromium Test Packages
baseurl=http://spot.fedorapeople.org/chromium/F$releasever/
enabled=1
gpgcheck=0
Step-3: yum install chromium

Reference

Monday, March 15, 2010

Taking a backup of a folder in Fedora Linux

Normal "cp" command will exclude files/folders starting with ".". Below steps are needed to make sure everything is copied (essentially a backup) of a given folder.

1. Set shopt dotglob option to enable.
shopt -s dotglob

2. Copy hidden files and folder.
cp -pr sourceDir destDir

3. Set shopt dotglob option to disable.
shopt -u dotglob

Reference

Friday, March 12, 2010

How true but we ignore :(

Wednesday, March 10, 2010

Tomato Pickle

Ingredients:
1KG tomatoes, 1 big spoon tamarind, methi powder, 1 cup salt, 1 cup mirch powder, oil, mustard seeds, cumin seeds

Preparation:
Clean 1 kg of tomatoes and dry it under fan/under Sun so that water will go away. Take it in a pan and cook it properly till the water in tomatoes almost go away. Once done, take the tamarind (after having only pulp, removing all seeds and other small stick type of things) and put it in the pan where tomatoes pulp is there and cook them together till the moist goes away. once done, add mirch powder, salt and methi powder. Take this mixture add lasoon and grind it in mixer. Keep this stuff in fridge.

Take oil in pan and heat it well. Add mustard seeds and cumin seeds and cool it down. Add part of above mixture (upto few weeks of use) and serve it as pickle.

Wednesday, January 27, 2010

Exporting mysql query output to xml

I know there are ways to do this. But wasn't aware that it is very simple.
Exporting mysql query output to xml is:
mysql -u --xml -e''

Simple, isn't it?

Reference:http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.html#xml-5.1-in-and-out

This article also talks about importing data from xml to mysql.

Monday, January 25, 2010

My struggle with Maven plugin for eclipse and mahout building

Somehow, my maven plugin stopped working in my eclipse (again!!!). I have already posted on maven plugin installation and everything earlier. However, this doesn't seem to work now. :-(. no idea though. So, I had to restart my "mission mvn". Finally after a lot of struggle on making the current mvn plugin to work, I looked for a new plugin and got this link
. I installed this plugin and I could see "mvn commands" populated in "Run as.. " section. My happiness couldn't last for long as I couldn't successfully build mahout codebase using this plugin.

mvn install is giving build error however mvn compile is successfully compiling. Should be able to resolve soon. Stay Tuned...

Finally, I figure out a way to avoid build errors in eclipse using maven. Following checks need to be made to see if everything is configured properly

Right click on Project -> select Properties -> Make sure under Java Build Path and libraries tab, whether Maven ClassPath container and maven dependancies are present
Right click on Project -> select Properties ->Make sure under builder, you have maven project builder and maven incremental builder and default Java builder are available

Right click on project - select properties - select maven at left hand side - check include modules.

Once all above are configured properly, right click on project and select build project. This should build without any issues.

Tuesday, January 12, 2010

Sound issue in Mozilla firefox in Fedora

There was a sound issue in Mozilla firefox in Fedora and to fix the same, one need to install libflashsupport. It worked for me.

Reference:http://www.derekhildreth.com/blog/guides-to-help-with-fedora-8-install/

Monday, January 11, 2010

Disabling Work Offline in Firefox

I have been facing this issue in my firefox that when I start it, "Work Offline" box is checked by default and I have to manually uncheck to start browsing internet. And, here is the solution to turn it off permanently.

1. type about:config in address field of browser
This gives a warning saying you are changing advanced settings. Once you press the button that "I'll be careful, I promise!"

2. type "networkmanager" in filter tab and toggle the parameter(toolkit.networkmanager.disable) that you get when you type the above value in filter tab.

Reference is:
http://ubuntuforums.org/showthread.php?t=851542

The reason given in above link is- The network manager is not well informed , especially in dial-up situations and so, lets the firefox assuming that no connection exists and there by forcing "Work Offline". However, in my case, I had some network issues while booting up and so a manual restart of network was needed. However, even after fixing that issue, I was facing the above problem and there is no other option for me other than disabling network manager.

Friday, January 08, 2010

Destiny

I thought of starting this year blog with something different. But couldn't control after seeing such a sad video in news channel and couldn't control expressing my emotions.

Insane People

While watching TV, I came across this news (http://www.dailychilli.com/news/1721-two-ministers-watch-as-cop-bleeds-to-death) where two ministers watch while cop dies.
I am not pressing at ministers but the whole group of people standing there and watching his death. Crows cry when other fellow crow is hurt. How can we being human beings watch other person dying?. The ugliest reasons they give are "We were waiting for Ambulance", "We thought the minister's convoy is attacked. So, we were thinking whether the attacked people still there and might attack if we reach near to the person". All I can say, they are insane. I don't treat them as human beings. Would you do the same thing if your family member is in that position?

Poor police office, who got double promotions for doing bravery tasks. He was part of "Operation Veerappan". Even, if he is not, he deserves help from the people around. And the way people were pouring drinking water over him, it looked like he is untouchable and they can't touch him. I felt sad and I couldn't do anything. :-(

Thursday, December 31, 2009

Issues while starting mysql server

I have installed mysql server again in my local machine and I was trying to start the same using /etc/init.d/mysqld start and I was getting error saying "Timeout" and when I looked into /var/log/mysqld.log, it is giving error as the db is corrupted or not shutdown properly previously. And after doing some other fixes, I was getting "Can't open and lock privilege tables: Table 'mysql.host' doesn't exist" So to resolve this, I have removed the datadir altogether and have executed below commands:

/usr/bin/mysql_install_db --user=mysql --ldata=/new-data-location
and once that is succeeded, I tried to start with
mysqld_safe --datadir=/new-data-location --user=mysql &
and I got below error saying it couldn't create .pid file in /new-data-location/mysqld. So, I had to manually create mysqld directory in new-data-location and change ownership to mysql and re executed above command and everything went fine.

Now, I changed the root password using the secure installation script(mysql_secure_installation) available in bin folder and everything is fine now.

Refreshing all IMAP folders in Thunderbird

Continuing my work towards configuring my desktop for checking mails, I was irritated with thunderbird configuration as it wasn't refreshing all folders and I had to manually click on each folder for new mail. So, I was wondering what to do and then I remembered what my husband said which I effectively use in my day-to-day work. He said below quote.

"Remember, when you are facing a problem, don't think you are the only one and there are many who might have faced this earlier. So, before rushing to solve the problem, try to search over the net if there is a solution already. No need to reinvent the wheel"

There I go again, I searched and got below solution for refreshing all folders in Thunderbird.

Go to Edit ->Preferences -> Advanced -> Config Editor and toggle the following parameter available in the list.
"mail.check_all_imap_folders_for_new" which toggles value from false to true and you are done. Now, I don't need to refresh each folder separately.

Reference for above solution:
http://alexlurthu.wordpress.com/2007/07/22/thunderbird-config-to-refresh-all-imap-folders/

Thursday, December 24, 2009

The only Active President of India so far

None other than great Dr. APJ Abdul Kalam ji. Though, President don't have much power to do, he was not wasting government money for useless travels and was inspiring young generation where ever he went to give a talk/chat with people. I remember the discussions that were happening while electing the next President when Dr APJ Abdul Kalam and other lady (don't remember her name) were contending for it. Now, I feel what would have happened if the lady was selected, we would have missed such a great president.

Just now heard that our current President of India,Prathibha Patil, brought her 3 dozen relatives along with her while travelling to some other place. We, the poor tax payers continue to pay taxes to let the politicians enjoy with our money. :-)

Monday, December 21, 2009

To start mplayer in shuffle and repeat mode

mplayer -shuffle -loop 0

Plugin for reading telugu news paper in mozilla firefox in linux

With changes in my cab routes and so change in my daily scheduled walk to catch cab, I was getting backpain (I rush in the last minute to catch the cab, so you can imagine how fast I need to walk) due to the heavy weight on my back on the name of "Laptop". So, I decided to configure my desktop for everything that I would need laptop for. Only thing that left was to read telugu news paper (yeah. I am addicted to "Eenadu" since my childhood when I was in 2nd or 3rd Std). So, I came across this plug in which would install the dynamic fonts needed for these news papers. Reference: http://www.adminbytes.com/2008/08/reading-malayalam-newspapers-using.html

Friday, December 11, 2009

Installing Maven in fc9 and maven plugin for eclipse

for maven plugin - install the below plugin
http://www.eclipse.org/iam/
and the respective installation instructions are available at http://code.google.com/p/q4e/wiki/Installation
and once it is installed successfully, select maven by right clicking the project and then build is done using maven rather ant.


And, for installing maven in fc9, yum is showing maven2.0.4 which is old and doesn't work with latest maven pom.xml. So, in order to install latest version of maven, get the latest version from apache site http://maven.apache.org/download.html and download it. Once downloaded, specify the bin path in your PATH variable. Reference: http://beans.seartipy.com/page/2/

Tuesday, December 08, 2009

Ilayaraja rocks

We watched "Paa" in Solapur. It was nice as it was unexpected. We reached Solapur early and there was nothing to do as there was a gap of 5 hours for the train which we have to take. So, we planned to go for some movie and we found this theater where there were three options

1. De dana dan
2. Radio
3. Paa

And, we had this impression that Paa would be senti but we thought, that's ok. I don't want to go for Radio for sure.

But, Paa is not senti. And, Amitabh rocks as a child actor and Ilayaraja music rocks like anything. Vidya Balan looked much better than in Parineeta. Overall, I loved this movie and recommend to watch. :)

Thursday, November 26, 2009

Junit testing

After a long break, recently I came across junit testing. This was when I was helping my team member in writing junit tests and suggested where to start from. Then, there was an issue in running a TestSuite.

The code that I used before is something like below:

import junit.framework.Test;
import junit.framework.TestSuite;

public class AllTests {

public static Test suite() {
TestSuite suite = new TestSuite("Test for something");
suite.addTestSuite(SomeClass.class);
return suite;
}
}


But, when i tried to run, I got below error:
java.lang.Exception: No runnable methods

By the way, this is with junit-4. So, here is what we figured out -
In junit-4, they use annotations for TestSuite. So, the old syntax is not working. Here is working syntax

import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses( { SomeClass.class})

public class AllTests {
}

So simple. Isn't it?
Also, download junit coverage plugin for eclipse using this update site http://update.eclemma.org/ . More details are here regarding eclemma

Wednesday, November 18, 2009

Handling "Ctrl+C" in Java

It is very simple. One just need to use addShutdownHook method and pass a thread where you can add code to do what ever you wanted to.
Sample code is here -

public class ShutdownHookDemo {

public static void main(String[] args)
{
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run()
{
System.out.println("Ctrl+C was pressed by some one and I am exiting now");
}
});

int i = 0;
while(true)
{
System.out.println("I value:" + i++);
System.out.println("Going to sleep now for 2 secs");
try{
Thread.currentThread().sleep(2000);
}
catch(InterruptedException ie)
{
System.out.println("Someone woke me up:("+ ie);
ie.printStackTrace();
}
}
}
}

So simple it is.. isn't it? and I just realized that hadoop used it to close files opened when some one press "ctrl+C". Just one sentence to describe it "Simple yet powerful."

Tuesday, November 10, 2009

Lesson-1

While replying to a mail,

taking a pause is MUST and re-read a mail thinking as the person inTO/CC is MUST and ensuring the purpose of the mail meets is MUST.

Monday, November 09, 2009

One year completion of our engagement

Last year, this day Rupesh and I got engaged. Rupesh gave a surprise by preparing a cake in the night (and I was happily sleeping) and we distributed it in our offices. Everyone in my office liked it a lot and were asking for recipe. Seriously, I should confess that it was yummy.

Also, we liked this sharing of our joy by distributing cake in office. :) And, we enjoyed/loved it a lot.

Friday, October 30, 2009

Regex for replacing all non-ascii characters in java

line.replaceAll("[^\\p{ASCII}]", "")

source:http://forums.sun.com/thread.jspa?threadID=5370865

Thursday, October 29, 2009

Fixing issues with "JavaHL not available" in eclipse

It is finally a big relief to me as I was able to fix this issue and thought I should note it down this in my blog. It can be useful for others and also for myself in future.

Here is the issue

I installed eclipse ganymede and installed subclipse using http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA .
I tried both 1.4 and 1.6. However, I could see javaHL not available in preferences ->team ->svn.
And snvkit was not working for me


Fix to the above problem:
1. I used 1.4 version from subclipse.tigirs.org
2. I installed subversion client from collabnet. which is available at
http://www.collab.net/downloads/subversion/redhat1.5.html
(Note: You can use latest versions, how ever, older version worked for me) . I took the first one specified in the list (file name:CollabNetSubversion-client-1.5.7-1.i386.rpm)
3. Once the above is installed, you need to add /opt/CollabNet_Subversion/lib/ to LD_LIBRARY_PATH and /opt/CollabNet_Subversion/bin/ to PATH
and
4. Restart eclipse

Tuesday, October 27, 2009

Books and Opensource softwares

there are lot of things to write and I always think, I should write this in blog and forget.
Few quick updates. probably I will detail later when I get time

1. For the first time in my life, I finished two novels in consecutive months (people can finish in a day), but this is the biggest achievement for me as I always used to love short stories and novels were boring to me. I have read 1. one night at call centre 2. Forrest Gump

Currently reading one Telugu book on Swami Vivekananda.

2. Started learning "R". It is very interesting. though I am still learning A,B,C,D of it. Will update more once I get. :)

Wednesday, September 23, 2009

Kids are amazing!!!!

Funny talks/things by our niece,nephews:

Scene-1: My niece(4+yrs Old) goes to my sister and suddenly says "I want a kid at home". For which, my sister replied "why do we need a kid when you are a kid already at home". For which, my niece replied "I don't know. I want a kid. that's it. if you don't bring, I will leave home by taking clothes". My sister is like "!!!!!!!!". After a while, she said "where will you go. who will take you?" . My niece quickly replies "I will go to tata's (grandpa's) place.

Scene-2: Rupesh's sister asks his nephew(3+yrs old) "Ojas, what do you say about inviting other kid at home? Will you share all your toys with him? You shouldn't quarrel with him". He said "No. No need. Rupesh mama's baby will be there na. I will share toys with him.". And then she asks "what should we name the baby then?". He promptly replies "Engine Number 9". She couldn't control her laugh and questions him "We will name the baby Tejas as your name is Ojas" . He will say "No. The name would be engine number 9".

Scene-3: Rupesh's other nephew who is 1+ yr old observes his parents dipping rusk (aka toast) in Tea and eating. After that, they left kitchen and were talking in hall and after a while, they were wondering how can he sit so calm in kitchen for this long. So, they went back and observed. He took a glass of water and a mobile phone and dipped mobile phone water and licking mobile as eating toast. :-)

Friday, September 18, 2009

Confused in Java

I had a code where I was using writeBytes() method of DataOutput for writing a string to file. And, it created some issues while reading. Then, I replaced the same with write(str.getBytes()). This went fine without causing any issue. Confused now on what is the difference between these two methods. Still exploring...

Tuesday, September 15, 2009

Parody of one Ad w.r.t. Swine Flu

Actual Ad:
A lady walks into the recruitment panel where many other people are waiting and few of her documents fell down. When she picks up everything, every one left.


Parody:
A lady walks into the recruitment panel and when she kept on sneezing. Every one leaves. :D

My future kid name by Rupesh's nephew

It is "Engine Engine 9". :) and Rupesh says "It's so unique. Isn't it?" . :))

Friday, July 03, 2009

Shreya Goshal -Superb singer

Recently, I started liking "Teri ore, Teri ore" song from Singh is King and thought of downloading it and found that this song is sung by Shreya Goshal. She is an amazing singer. Most of the songs I like are sung by her. No one have that sweetness that she has in her tone.

Monday, June 08, 2009

Dryrun in Pig for debugging purposes

It is hard to debug pig scripts as the debug mechanism is not friendly. To see the parameters that we are passing via command line or by executing another script (bash,perl) - we can use dryrun option. but, I always forget whether it is dry-run or dryrun. It is dryrun and the way to use it is

bin/pig -dryrun /scriptName

Friday, May 29, 2009

awesome

I just saw this new facility in blogger where I can write in any language

à°¨ేà°¨ు à°¤ెà°²ుà°—ు à°²ో à°°ాయగలను , ಕನ್ನಡ ಗೊತ್ತಿಲ್ಲ . हिन्दी हमारा जातीय भाषा हैं। :)

Writing complex code

Ok. I came across one such complex code -

Requirement:
Given an output log from a process which contains temporal information. Based on this temporal information, data need to be split and kept it in temporal directory structure. So, essentially, you have the data which contains when each line is generated and the data needs to be split and kept in directory structure like year/month/day/hour/filename.1 for 15 mins filename.2 for 30 mins worth of data and so on.

here is complicated version:

Have three threads - one is main thread , second thread creates a file for every 15 mins in above structure and third closes files created by previous thread. And the main thread reads each line from input and call write method. the stream handler will be modified by second thread for every 15 mins to point to new file. and will move the previous handler to queue and that is taken by third thread and closes it!!!!

here is simpler version:

for each inputline
check out the date
if it is with in minute domain write to same file
else close the previous file if any opened and create a new one
write inputline to output

close finally if there is any opened stream handler

Wednesday, May 27, 2009

Getting lazy day by day-No more

After my parents had come to Bangalore, I am more relaxed and getting lazy. My mom thinks that I am working too hard and so she never let me cook anything when she is here. :) Yesterday my mom went to my brother's place and it became my brother's duty to get food for us. :) I am sure that I am getting lazy and It might take time to get adjusted again once they go back to my hometown. :(

Huh!!I don't know at what time I started writing this blog. I wrote the above lines on 27th. And just after that minute, I got lot of work from here and there and finally, there is no free time. But this time, it is office work!!

Wednesday, May 20, 2009

Two Birthdays in a year

Can it be possible for any one to have two birthdays a year. ok. Don't think too complex. It is possible. I have two. One is my actual birthday which is in January and one is official birthday which is today. :) And I always forget and I get mail from IITK Alumni wishing me then I realize "Oh. Today is my birthday. :)"

There is a long story behind this. In short, my DOB changed twice in my school once for writing some Govt entrance exam in 4th Std and once for writing 10th class exams. I am elder to myself if I compare my official birthday with my actual birthday.

Tuesday, May 19, 2009

Silly interviews

Some of older memories:

During Microsoft interview:

Interviewer: which operating system you like most
Me : Linux
:))

During Yahoo interview:

Interviewer: What is your dream company - this was not part of interview..this was some casual chat I had with a manager
Me: Google!! :)) :))

Define data mining expert

Studying data mining and Machine learning as one of my course in IIT, when some one says they are dataminig experts- I assume them that they are very good in coming up with trends using some of machine learning techniques. They know what Association Rule Mining, Clustering, Classification mean.

But, in some places where they are not exposed to above, they assume data mining expert mean doing ETL operations and database partitioning/sharding etc..etc..!!!
I feel like shouting at them that this is not what it meant!

Monday, March 16, 2009

installing mplayer in fedora 8

yum search mplayer didn't give me mplayer package to install.
Thanks to Vaiju for his help. and here are the instructions:

1. rpm -Uvh http://www.fedorafaq.org/f8/yum http://rpm.livna.org/livna-release-8.rpm
if it asks that yum-priorities are missing install yum-priorities by command
yum -y install yum-priorities
2. yum search mplayer gives you mplayer package

install it. :)

Source:http://www.fedorafaq.org/f8/#yumconf

Monday, February 09, 2009

Distributed copy from remote hdfs to local hdfs

The command DistCp works for copying from one hdfs cluster to other hdfs cluster. But, the problem is that it is not specified any where(As I aware of) what should be the source url and destination url.
Many places, it is specified that specify hdfs://namenode1:50070/path_to_file and many other places some other port number.
So, after a lot of debugging, I figured out that it should be
hadoop distcp hdfs://(fs.default.name)_property_specified_in_hadoop-site.xml/path_to_file

for ex:
hadoop distcp hdfs://remotehost:10000/opt/hadoop-name/foo/bar hdfs://localhost:54310/opt/hadoop-name/foo/bar

The important note here is the url should be picked up exactly how it is in fs.default.name in hadoop-site.xml in hadoop conf directory.

Wednesday, January 21, 2009

Way to get hdfc standard life insurance premium receipt

Important Step: Never ever call the customer care (toll free:1800 209 7777). They give all weird reasons every time.
1. According to their policies, they can't send it to a mail id but can Fax it!!!
2. The system is going for upgradation (day and night for two days!!) so need to call after few hours and when you call go to step(2)
3. send a mail to service@hdfcinsurance.com and they will send a soft copy to u with in 3 days!!!(for sending a soft copy, it takes 3 days!!!!) But, in realty, it never happens.

Working Step:
Call up ur local branch - Again, it may redirect you to some other customer service -so, keep on pressing 9 till u hear a voice from other side (not the automated one :) )
then, tell them that you need a premium receipt.
Also, send a mail to oobangalore@hdfcinsurance.com requesting a premium receipt.

It worked for me. So, if you face similar issues, follow the procedure.

Monday, January 05, 2009

Files starting with -

If you have problem in using files starting with - in command prompt, then the solution is to use ./ in front of it.
Courtesy is this

Tuesday, December 30, 2008

Converting EOLs in dos format to unix

I had a file which contains dos style EOLs in it which I couldn't see except in Vim. Being long time, I forgot how to convert them to unix style EOLs and figured out only after searching in Google. :( My memory power is decreasing day by day I can say.
any ways, the command to use is

dos2unix filename

That's it.

Wednesday, November 12, 2008

Quote-1

After every sad day
comes a glad day

Question is: How will you define which is sad and which is glad. :D

want to be a kid forever

How good is life of a kid.no need to bother about what some one say. What ever we do as a kid, no one gets angry as they think that "leave it. he/she is just a kid".You are free to do what ever you want to do. No restrictions. no tensions.no responsibilities.

Friday, November 07, 2008

Enthusiasm is degrading poorly

I was browsing through my older posts starting from the blog that I first wrote. And, I could see a lot of degradation in all ways-
The fresh ideas I had just after coming out from school.
The frequency of writing
The kind of topics I chose during those days

After all, old is getting old day by day.And you can see younger kids are smarter than old.

Moral of the story: Time is precious. Don't waste it.

Wednesday, October 01, 2008

Finally,

Finally, smoking is going to be banned in public places from tomorrow.Source is this

But, I am not sure how many people actually follows it. :(

Monday, August 25, 2008

Life is boring
Life is exciting
Life is tough

Is it possible to feel all at the same time? I am just wondering.

Monday, July 28, 2008

LLR Questions

I attended LLR Test this weekend.
Below are some of the questions. There are more tricky questions, but I don't remember them.

1. What is the first property a person looses when he consumed alcohol
a. Anticipation b.Patience c. Judgement

My Answer was: a
2. What is the thing that you take extra care when you are taking right turn

a. Parked vehicle b.Vehicle coming in opposite direction c.

My answer was: b

3. When there is a signal of "Overtaking prohibited". Is that info
a. a Notice b. caution c. compelled

My answer was: c

4."You can take U turn as long as you are not obstructing users from other side road"
Is this statement
a. True b. False c. 50:50

My answer was: b
5. is sign like this ---->Hosur
^
| Bangalore
<-------- Mysore

a. Advance destination designation b. Destination designation c. Direction Designation

My answer was: c

6. If there is a sign like "Right turn prohibited". Then sign like "U turn prohibited" is implicit?
a. True b. False c.

My answer was: a

7. Find odd man out in below list
a. Median b. Round about c. Cross roads
b. didn't know what median is
8.If yellow light is flashing, you will slow down and
a. stop b. yield traffic c.


9.When the vehicle infront of you gave a signal to you to over take. then, what will you do.

a. accelerate and increase speed and over take the vehicle and turn left
b. slow down
c.

my answer is: a


NOTE: Needless to say that I failed the exam. :)

Thursday, July 17, 2008

Strange google search error


I got above error when I did simple Google search. I don't know why this happened? Does any one have any clue?

But I found it really weird and annoying.

Wednesday, July 09, 2008

Bored at work?

Here is the solution given by my colleague.

You got bored while working and want a quick relaxation with an entertainment.
No need to open orkut. No need to open youtube or what ever.
Just look at the faces of other people around you. and look at their expressions. It will be so funny. :) and so you will be relaxed. :)

Tuesday, July 01, 2008

Seems like today is all bad news day

Came across this link
and I actually started SIP and ULIP in 2006. :((

The most funniest/embarassing event happened today

I was chatting in parallel with my manager and another friend. During this, I typed a message to my manager thinking it is my friend's window. :((
It was in Telugu.

He couldn't understand even a single bit and he said "That's horrible.".

:(( :(( I don't know why I did this. :((

IITs soon may become other normal Govt colleges

came across this link recently. Really, it is a great job by government. Sooner, IITs become at par with other colleges (may be much less than that) and loose their value for sure.

Monday, June 02, 2008

Hurray!!!

Recently, when I went to metro. The security person at the entrance stopped me and said "Under 18 are not allowed". :))

I was so happy given people during marriage functions assuming me as a married girl with a kid.

No Smoking in public places: will it be strictly followed?

This news says, smoking is completely banned in workplaces. And, if some one violate this, the owner, proprietor, manager will be fined.

Now, coming to the reality, I remember seeing a "No Smoking" board in a BMTC bus where the driver was smoking. :))Now, whom should we report?

Again, when I went to a movie theatre in my home town. It was written at the outside of theater that "Smoking is prohibited inside theater and some other conditions". It was written by the town police and also said, if some one violates, they will be fined.
These people(Police) are very clever. They have written these rules but didn't give any contact number on which we can complain. So, when we went inside the theater, people were happily smoking and we had to bear that. :(

Tuesday, May 20, 2008

Plain Dosa Vs Sada Dosa

Yesterday, I went to a hotel in Bangalore and was giving my order. I said "One Sada Dosa". He promptly replied in Kannada saying "No. we don't have sada dosa. We have plain dosa, masala dosa, set dosa". :))

Tuesday, May 06, 2008

Google Aap ki bhasha mein

Google launched translator for Indian local languages(right now only for Hindi). You can check it out at
http://www.google.com/translate_t
It is simply awesome.

On lighter note, when I tried to use this over my blog, I found it funny. :)

Below was the conversation between my cousins. One has just finished his 2nd std and another finished his 10th std.

10th Std Cousin: ee roju chatrapati movie. but, nuvvu already chusesavu kada? (Today movie "Chatrapati" is showing in one of the channels. But, you watched it already. isn't it?

2nd Std Cousin: aa. Kani, nenu marchipoyintanu kada. (Ya. But, I might have forgotten right.)


Another conversation:
We all thought of going for a movie. So, I want to find out the timings for the show. So, I asked my 2nd std cousin who is a movie addict regarding show timings. So, my father had asked this boy "You frequently watch movies in theater right?". So, for this, this kid replies "Ledu. ippudu manesa. (No. I left it now.)".

Thursday, April 17, 2008

Fruit Salad



Recipe:
Is there any need to tell? ;)

Thursday, April 03, 2008

my photography




Tuesday, March 11, 2008

Few more songs added to my favorite list

Taare Zameen Par title song
Jhoke hawa ka aaj bhi from Hum Dil De Chuke Sanam

Thursday, February 28, 2008

The Mistaken Identity

Scene -1:
There was a book exhibition in my office and my friend and I were browsing thru the books and I had few CDs in my hand. Then, one lady whom I knew came and asked me if there is any discount. I said "Yeah. it is 22% over books and 10% over CDs". There was another girl a little far from us and was listening to this. And now she repeated the same question to me. Though I don't know her, I replied her with the information that I knew about the discounts. Here one thing that should be noted is we were standing in one side of the table where books were displayed and these two girls were standing the other side.

We were still browsing thru the books. And the unknown lady who repeated the question came back to me with a Harry Potter book and asked me "Excuse me, what is the price of this book?".!!!!!!!!!!!!!!!!!

Scene -2: I had gone to my cousin's marriage recently and was talking to one of my relative. There was another lady who was sitting beside her and observing me for a while. There was a kid of 5-6yrs just beside me. During a discussion, that lady who was sitting with my relative asked me whether that kid is my son!!!!!!!!!!!!!!!!

Tuesday, January 29, 2008

Lucky- Our cute little warden of our home

Our cute lucky used to see both my brother and I going together to office and then coming home together. Some times, if one of us gets late and other reaches early, my sweet lucky asks where is other person just after one of us enter into the home. One day, it happened that I got late and my brother had to leave early, she didn't let my brother saying "Pinni also come with you. Don't go".

Today, I was getting ready to catch office shuttle and as usual I was in hurry during last moments. She was playing something and asked me to help for that. I said "Sorry dear. I am getting late to office". The next question she asked me is "Breakfast?". I said "No Dear. I will have it in office". Then she asks "How about Mama(my brother)?". Her question is whether even my brother also takes breakfast at office or what?.
I always tell my sister that we should start a PG for girls and your daughter is a perfect fit for managing it. :)

Moral of the story:
You forget all your sorrows when you speak to a child for a while. Even if you are mood off, you will be alright after looking at them.

Monday, January 28, 2008

Friday was forgetting day and monday?

It happened that, on Friday, when I got into office shuttle, I remembered n number of things which I forgot to take along with me. That too, I started realizing it one by one.

Now, Today, when I entered into the office, my office id card thread got split into two. I thought that is ok. Now, while coming down from stairs, I realized that my sandal too got broken. :( So, what Monday is called?

Tuesday, January 22, 2008

Amway

Just to clarify, I am not talking anything against or favor of Amway. :)

Scene-1:
Location: Bangalore
Few weeks back, one of my friend went to landmark in forum and was searching for some books. He saw another person who was also searching for some books. After a while, the other person started talking to my friend. After a while, the person asked my friend to give his contact number. My friend realized that this guy is from Amway and asked him directly whether he is from Amway. The guy didn't tell the truth but my friend understood that he is from Amway. :)

Scene-2:
Location: A village near my hometown
I met my father's friend who is very talkative. He was so much talkative that he will find some topic or the other and discuss on that. He says "I can't live without talking to others and smile at them when I realize that they are from our place".
He was talking about his visits to US where he figured out that young people try to avoid talking. He says "The foreigners smile at you and wish you but the people whom from their features you can recognize that they are from India, they try to avoid even smile when the other person smiles.". He continues "What is wrong with smiling? It costs nothing. Just because you smiled at me, I won't come to your home right?". He was discussing the same with his daughter-in-law and asked "Why our people in US don't talk nor even smile when we try to talk to them or smile at them?" She said "Uncle, here, if some one initiates the discussion then the other people think they are Amway agents"!!!!
I couldn't control my laugh when he said this and was continuously laughing after that. :)

Thursday, January 10, 2008

Two more songs added to my favorite list

1. "ye ishq hain" from "Jab We Met"- A little fast beat song. Shreya Goshal sung with full enthusiasm and the music is also well composed. After watching movie, you will like it more for sure.
2. "Katrin Mozhiye" from "Mozhi" -a Tamil movie. I don't know about the meaning of this song but it is nice to hear and even for watching. It start slowly and then at some point it goes a little fast at a little high pitch and then comes down. And I love it more at that point and also love those simple steps that they do in the middle of song.
Video is here:

Things to make sure when you are leaving a company

Make sure you get your final settlement and most important is Income tax computation sheet or Form-16 from your previous company. Otherwise, it is slightly painful.

Tuesday, January 08, 2008

I feel my writing skills are becoming worse day by day :(

Monday, January 07, 2008

As per Eliza's order/request :)

It is been long time that I didn't write anything on my blog. So, I thought I should write something to just confirm that I am still alive. :)
Reasons for not writing might be:
1. I am too busy in some other works (preparing a video on my niece, too busy writing so many status updates :) )
2. I am lazy.
3. I was far from internet for a while.
4. Didn't get good topic or interesting topic to write.
5. Routine life made me bore to write same routine stuff.
6. I forgot my intention of starting this blog.

So, just to be back in form. I thought, I will write about "Taare Zameen Par" that every one giving good rating. But I still didn't watch this movie.

I thought I will write about the recent cricket match between Australia and India. I know that it is bad game played by Australian team and the umpires. But then I remember the quote "jo jeeta wahi sikhandar". But isn't it the approach to win the game should be given higher priority? Every one knows that umpires showed favor to Australia and Australian team were very much desperate to have the world record and so went thru all possible (wrong) ways to win the game. If a person found guilty in doping in Olympics, the award will be taken out from the person.So, won't that be applied here and nullify their win?

Thursday, December 06, 2007

Quote of the day

Doing good to a person who does not do good to you is difficult but not impossible. :)

Thursday, November 29, 2007

Tiruvannamalai Temple

Wednesday, November 28, 2007

Random Thoughts - i++

Life is so unpredictable. You think something, something else happens. You think things are going fine. Suddenly you see there is some change. You start satisfying with something then suddenly some big boon come near to you.

There is another reason behind sadness is when you fail to achieve what you have targeted for. Then, in order to avoid it, then we shouldn't have any targets. if there is no such target then we can't reach higher positions?
Thinking whether setting up goals comes when you start comparing yourself with others? I think yes. Then there is only one reason for sadness is that when you start comparing yourself with others. :)

I don't know. Seems I am thinking more. :)

Monday, November 26, 2007

Quote of the day

Sadness comes to one's life only when the person start comparing himself/herself with others.

Though it is the good old one. But it is so true.

Tuesday, November 20, 2007

using tab as field separator while using sort command in bash shell

It was some what strange to me when I experienced that tab as field separator is not supported (not exactly supported. but didn't make it easy to use) in sort command in bash shell. Probably it depends on sort version. But, some how it didn't work in my machine.

The error that I got when I included tab as field separator is:
sort: multi-character tab '\t'

So, after doing search over the above error,here is one of the solutions that worked for me:
TAB=$(printf "\t")
and then using sort -t "$TAB".
For ex:
sort -t "$TAB" -k2,2 -n entries.txt

Friday, November 09, 2007

Tuna Sandwich - A veggie?

I went to attend a conference recently where I asked the serving person whether there is any vegetarian item available there. Here is the conversation that went on.
Serving Person: You have aloo salad to eat.
Me: Is there anything else to eat?
Serving Person: You have Tuna Sandwich which is a vegitarian.
Me: Are you sure? Does it contain meat?
Serving Person: No. It doesn't contain meat.
Me: Does it contain Egg?
Serving Person: Probably it may contain but no meat for sure.
So, I grabbed a Tuna Sandwich to eat and while I was about to eat, I saw a pure vegetarian person sitting beside me. I asked him whether he is not having this sandwich. Then he said it contains fish. So, the other lady who was sitting with us said "here, they don't consider fish as meat"!!!!!!!!!!!!!!

Funny.. :))
Moral of the story: Don't assume that non-veg item means meat. You should explicitly ask the serving people whether it contains fish, meat or what not!!!!

Friday, October 26, 2007

Gmail limits forward filters

I had created some filters in my gmail which forwards mails to different accounts internally. Now, today, while I was creating a filter to forward it to some specific account, I got the below error
"Could not create a filter. Too many forward addresses" :)

The limit that google allowing is only 21. I am wondering about this magic number? why 21??

Wednesday, October 24, 2007

worse politics

When I went to my home town this time, I heard that there were orders came from the government saying that the homes which are on the road have to demolish part of theirs in the plan of expanding roads and it was also said that if the owners of the home/shops demolish then the amount of destruction or loss of property is less than the amount or loss if the government do. Initially, I thought, it is the mistake of the owners who occupied the public property. But I heard that it was not the case but no one has argued over it.

At the same time, politicians have filled their pockets very well with the money from big people who bribed them for not demolishing their buildings. So, all those poor fellows who couldn't give enough money had to demolish their buildings and rich people left happily. How sad it is. Why such kind of differences. Who will bring this issue to the top authority. Media/News Paper?
No. I doubt it. As, I can see a lot of news channels or papers are biased to one or other political party. Every politician or a celebrity started their own channel/paper and started broadcasting about any news favor to them.

Other news that made me feel sad was using cast ism as a weapon in politics to grow faster. Few examples that gave in paper were Morarji Desai and Chiranjeevi.

For all the above information, I don't know whether it is true or not. These are just my thoughts and felt as the reasons for India not growing fast.

Tuesday, October 23, 2007

Random thoughts

Things are so unpredictable in day to day life. You think, things are going fine but at some fine day, it gets drastically changed. some times, you think you try to compromise with the things you have, but some sudden boon come near to you. Life is so unpredictable.

People curse bad people when they are alive but consider them as good and show sympathy when they die.
People don't accept few things when a person who is alive wish for. But, they may accept when they see the person is no more.

This is how a typical human being thoughts goes.

Thursday, October 04, 2007

some how I disagree on this fwded message

Hii.............38% of doctors in USA are INDIANS. 12% scientists in USA are INDIANS. 36% of NASA scientists are INDIANS. 34% of microsoft employees are INDIANS. 17% of INTEL employees are INDIANS. 28% of IBM employees are INDIANS. INDIA is great but indians are not .If all of these brainfull fools had worked for india we would have raced USA in days............. Fwd this to the youth of INDIA. Plz don't think it's waste of time. BE PROUD TO BE AN INDIAN



I got the above forwarded message. I some how couldn't agree with such statement though I am not interested in moving to US.

Wednesday, October 03, 2007

confidence+bicycle riding = two wheeler driving

I am learning two wheeler and found that if we know how to ride bicycle and have self confidence, it is very easy to learn. I was able to drive alone without any support on the first day in few minutes. :)

Friday, September 21, 2007

CMU professor gives his last lesson on life

Found it from here.
Will update more on this soon:
Few words that touched me are:
1. Wait long enough to find good in people:
wait long enough, people will surprise and impress you.. if u r pissed off and get angry, it means u didn't give enough time.
2. When you’re screwing up and nobody’s saying anything to you anymore, that means they’ve given up on you.
3. (If I got correctly)Let give freedom to children to write on their room walls which improves their creativity. Don't worry about resale value.

There are no words coming out of my mouth after listening his talk and reading the blog, except some sad feeling that how much we are loosing in our life.

Thursday, September 20, 2007

Shame politicians and Shame rioters

Some how, I didn't like the statements made by Tamil Nadu Chief Minister M Karunanidh over existence of God Rama. One shouldn't have hurt other religion statements just because you have freedom to speak. Who is he to say about existence of Rama? What the hell happened to him. He just want to say some statement and outrage people to do more riots or what.
Finally, at the end, it is the innocent people who are loosing their lives because of these stupid politicians' nonsense talk.

I don't understand why the hell they brought the issue of existence of Rama just to start a project. If there is any advantage that you are achieving because of building a bridge, you should focus more on that and convince people by letting them know the advantages and the problems that can get rid of because of the bridge. Rather, these useless politicians adding religion color to it(by trying to prove the non-existence of God Rama) and so letting more racism.


Some of his own words:
Condemning the attack on his daughter’s house in Bangalore, Tamil Nadu Chief Minister M Karunanidhi today said this act has proved “Ram devotees’ culture.”

“By this act, Ram's devotees have proved their culture. What is wrong with my comment on Ram?” he said.

-----
Really sick. Irrespective of which ever religion you are, you should never condemn other religion. If some one says something wrong about Christianity, I oppose that too.
It is the shameless rioters who took lives of two people. But, the source is the nonsense statements made by M.Karunanidhi. So, both rioters and M.Karunanidhi (because of his nonsense statements) are responsible for this.

Tuesday, September 11, 2007

King Fisher Airlines

I missed my flight to Bangalore recently due to traffic jam in the other place. I had been informed by the people there that it takes 1/2 hour to reach report but it had happened that it took 1 1/2 hour to reach the airport because of traffic jam and the airlines people refused to give the ticket for the flight which is going to start in 10 minutes. But, they told that if I want, they can book the ticket for the next flight which is going to start after 3 hours. As something is better than nothing, I accepted that one. I liked the way kingfisher airlines care their customers. The person would have just rejected rather saying sorry to me that he can't help in this situation but can book ticket for the next scheduled flight.

Conclusions from the story are:
1. The chant behind success is good customer care.
2. Traffic jam is there in every big cities. Just don't think that it is only in Bangalore. :)

PS: Once, I went to airport 2 hours early, then the flight was delayed by 2 hours. This time, I missed the flight because, I reached late and so had to wait for 3 hours. Coincidence is that, in both cases, it was kingfisher airlines. :)

Tuesday, August 28, 2007

I love this song

Aankhon mein Sapna, Sapnoin mein Aasha.. Aasha hain jindagi.. Aasha hain jindagi.

Wednesday, August 08, 2007

Hats off to SC

Recently, I am hearing a lot of good news from supreme court.
1. Saying no to OBC quota again.
2. Asking all those politicians/ officers to vacate the guest house/quarters if they are using it even after their term expired.

I am really surprised and hats off to all those brave people there in supreme court.

Thursday, July 19, 2007

Aah..Yet Finally : Password less login for SSH

I was trying for a password less login since yesterday. Some how, it didn't workout for me. Finally, it is working now.

Commands to follow to have a password less login from your system to remote host:
At your host:
1.ssh-keygen -t dsa
give empty for all options it asks (just enter enter)
and make sure that your ssh folder is read and writable by only you. chmod -R 700 .ssh
2.now, copy id_dsa.pub file from your machine to remote host.
3.ssh to remote host
check whether .ssh file is existing. If not create one and should have only read and write option.
and copy id_dsa.pub file contents to .ssh/authorized_keys file.
and chmod 600 .ssh/authorized_keys
4. exit from remote host
now, try to ssh to remote host. It should login without asking for any password.

If it is not working,
then edit /etc/ssh/sshd_config file. make sure you uncomment Protocol2,1 options and comment Protocol2 option as shown below:
Protocol 2,1
#Protocol 2

and also make sure the following lines are present:
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

If present, uncomment them.

And restart your ssh daemon in your machine.

It should work now.

Thursday, July 12, 2007

The Best Match that I have ever seen

Recently, every one at home (including my mom) addicted to watching Tennis sports (Thanks to my brother who constantly watch this and made others to get addicted to it). We watched French open and also Wimbledon. I was fan of Federer though I didn't watch much of his matches but thru what ever I read in news. During French Open, I came across Raftal Nadal and found him as a good competitor. But, I didn't find the final of French open that interesting compared to Wimbledon. May be for couple of reasons.

Wimbledon final was the best match. Here, I was expecting Nadal to compete with Federer in the final and then Federer should win as Nadal had already won in French open. But, the final wasn't that easy as the way I was expecting. After the match, I impressed so much at the way Nadal is playing, that I became fan of him too. I felt happy that Federer won but at the same time, I felt bad that Nadal lost. He was covering his court pretty well. At one point, he fell down while hitting the ball but he quickly stood and ran to the other end in seconds. It is simply amazing to watch.

Thursday, July 05, 2007

vote for Tajmahal- Is it authentic?

These days, I am getting many forwarded mails, saying "Vote for taj" thru this site(http://www.new7wonders.com , http://votefortaj.com/ etc) or SMS to this number to include our TajMahal in new seven wonders. Some how, I didn't wish to do. I don't know the exact reason but I am not interested to do. May be, I was thinking that it is not authentic. May be, the way they are saying (Here is the chance you can do something for your dear nation) didn't give any impression that it is authentic. One feeling I had is, there are many other issues on which we can fight (poverty, casteism). But, I had a small doubt some where, whether I am lazy to do so that I am giving all these reasons for not voting. But, seems, I am not. Here is one link that I got which says that it is all marketing strategy that these people came up with.

Tuesday, May 29, 2007

Tips to interviewer

1. Rather giving problem and expecting optimal answer at the first time. Try to analyze how the person is solving the problem.

2. Give enough time to the person while solving a problem rather telling "Oh. I am already running out of time. Can you please do it soon." "Can you please explain this in 2 minutes in detail as I don't have much time".

3. Don't keep something in your mind and expect the person to think in the same way.Remember, it is very rare that a person thinks/understands in the same way as you do.

If none of them are satisfied, I call that the person is not fit for interviewing.

Monday, May 28, 2007

ICICI Pathetic: I am not the only person

I was thinking that I am the only person who is facing issues with ICICI. But, while doing some googling, I got many links. One of it is this. Am I sensing something wrong here? As many of them are recently posted and I am also facing similar issue for the past three months and still I didn't get my courier. :(

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/