Saturday, June 27, 2009

Microsoft Charting component bug

chart.ChartAreas["2DChartArea"].Axes = chart.ChartAreas["3DChartArea"].Axes.Clone() as Axis[];

throws a stack overflow exception. Pre_Paint is called infinite times.

Removing humming sound from speakers connected to computer

Humming comes in audio systems because of 1) improper earthing 2) bad circuit. In case of (2), you have no choice but to go and get a better  system or plugin some higher capacity capacitors in your circuit. (1) was my problem and I got this really awesome solution to it. Its called the perfect JUGAAD (click here for wiki's definition :D).
The place I put up in has no earthing. Whenever I connect my laptop, I feel minor shocks at times and there's a lot of humming in the speakers when I connect the audio cable to it. I confirmed the earthing problem by running the laptop on batteries. When I did that, I got no humming sound when there was no audio playing.
Today, I thought of connecting the analog cable to my lappy and check out its TV tuner card. Amazingly, I got no humming disturbance when I connected the cable TV wire! That means all the extra current was flowing out from the cable down into the earth. :D Talk about getting cheap and perfect solutions ;)

Sunday, June 07, 2009

The Google game

I am looking to buy a PSP now-a-days and before I took the plunge, I needed to know of its 'hacked' status. Of course I started with google. And there's when I noticed magic.
At office I access net thru servers kept in US. I was disappointed when results to my numerous queries pointed in only one direction - it cant be hacked or it was still under process. At home I access internet thru servers kept here in Hyderabad. This was the first hit - for the query 'psp 3000 hacks'.

Need I say more?

Saturday, June 06, 2009

Making Google Earth look better on Kubuntu

Guess google went the windows way and preferred giving standard library files bundled with the software. A fall out of this was that fonts in the application went to pre-antialiased era and looked pretty horrid. On my distribution - Kubuntu 8.10 - I had already done everything necessary to make the QT and GTK applications look decent. But google supplying its own libs just nullified those efforts.

djgera in a post on this page helped me reached this conclusion, and also provided a solution.

"It a better idea removing some libs that are already in the Arch Linux
For example if you remove the libQt*, and use the QT from ArchLinux, fonts are better rendering using antialiased
Also is need to remove the because it fails.

Symlinks are not necessary, it works without symlinks, libs are located in the ld-linux paths.

In the package i removed these files (removing this creates some aditional depends, but i prefer to use the libs provided by Arch Linux packages)
opt/google-earth/ (core/openssl)
opt/google-earth/libQt* (extra/qt)
opt/google-earth/ (extra/mesa)
opt/google-earth/ (extra/curl)
opt/google-earth/ (core/gcc-libs)
opt/google-earth/ (core/gcc-libs)
opt/google-earth/ (core/zlib)

Because I already have these libs installed, the above solution worked for me too :)