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. :-(