Tuesday, July 31, 2012

Ubuntu 10.04 LTS AppArmor - Pesky little creature

Just wasted about 7 hours trying to fix a stupid issue. It seems that the latest Ubuntu Server edition 10.04 LTS comes with AppArmor pre installed.

While I was trying to load a file from /var/tmp uploaded by php into the mysql database by the LOAD DATA INFILE command, it just refused to work.

A day long search of various forums let me to an interesting post viz:-
http://stackoverflow.com/questions/2783313/how-can-i-get-around-mysql-errcode-13-with-select-into-outfile

So it was AppArmor which was blocking the read for the mysqld into any directory not explicitly listed in the /etc/apparmour.d/usr.sbin.mysqld file.

What a mess :(

Saturday, October 22, 2011

Initialization

Had promised someone that we would start a combined blog, but it seems now that I have to do this alone.
Just back from office and the daily grind.

This blog, I hope will serve as an outlet for most of the stupid things I think and then forget, because I need to remember them as well as a window into my mundane boring life.

So without further delay, I was working on C# today and needed to draw a line graph, a few minutes of searching brought me to the conclusion that there is no really good charting software available for the .NET framework. Basically I was looking for something like JFreeChart, but the closest that I could find, for free was NPlot.

I would say its pretty good (though not even close to JFree but still). Took me about an hour to make what I needed, rudimentary yes. What I need to remember, is to write some tutorials for it in another blog, would help me and perhaps a few others.

Another point about the system I designed, the QuickFIX library, has a huge latency (a few hundred milliseconds) and I dont think it should behave the way it is behaving. So next week I'll be looking into the QuickFix sourcecode to find the lacuna. Wish me luck!

Cheers for now and enjoy your weekend.