Wednesday, November 19, 2008

ObjectPlanet HeadlessException solution

I was getting the following exception while using the ChartServer from ObjectPlanet.

[10:32:21.796] {resin-11} java.awt.HeadlessException
[10:32:21.796] {resin-11} at java.applet.Applet.(Unknown Source)
[10:32:21.796] {resin-11} at com.objectplanet.chart.ChartApplet.(Unknown Source)
[10:32:21.796] {resin-11} at com.objectplanet.chart.BarChartApplet.(Unknown Source)
[10:32:21.796] {resin-11} at com.objectplanet.chart.ChartServlet.init(Unknown Source)
[10:32:21.796] {resin-11} at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:830)
[10:32:21.796] {resin-11} at .......
......


On searching the Internet i found fixes related to xFree86.org and PJA in order to create a virtual AWT console for the ChartServer. But here's the simple solution -
add "-Djava.awt.headless=true" as a parameter to java.exe call.

I am using Resin, and "-Djava.awt.headless=true" added to the httpd call does not work. instead i did "httpd -Djava.awt.headless". and the headless exception disappeared.

I recommend trying both...one of these should work!

Tuesday, October 7, 2008

Displaying row number in mysql

Try the following piece of code -
SELECT @rownum:=@rownum+1 AS "Count", m.* FROM member AS m, (SELECT @rownum:=0) AS temp ORDER BY firstname DESC

Obviously, choose the second table ('member' in my example) appropriately

Saturday, September 13, 2008

nokia pc suite not compatible with map upload

It seems that the latest version of the Nokia N-Series PC Suite and the latest Nokia map loader have compatibility issues.

If you have faced this problem with your n-series PC suite, then here's what you need to do -
1. scrap your n-series pc-suite.
2. download and install the generic Nokia PC-Suite 7.0
3. Download and install the latest version of the Nokia Map Uploader

You will now be able to upload maps to your n-series phone

Friday, September 12, 2008

Network ID disabled

If any of the following is true -
1. network ID button is disabled in 'computer name' section
2. you cannot change your workgroup

Then you need to install the 'Client for Microsoft Networks' on your LAN/Wifi.

1. Go to Network Connections
2. Right click on your LAN/Wifi, and then Properties
3. If 'Client for Microsoft Networks' is un-checked, then check it.
4. If it is not there at all, then Install the client
5. Restart, and you should be good to go :-)

Wednesday, May 7, 2008

Cannot compose or write email in Outlook Web Access on Vista

check out these links -

fix for exchange server:
http://www.mydigitallife.info/2006/12/09/cannot-compose-or-reply-to-messages-and-other-errors-in-outlook-web-access-in-windows-vista/

fix for IE7:
http://mustech.net/2007/02/20/windows-vista-webmail-owa-fix-for-internet-explorer-7-five-step-fix

The IE7 fix worked just fine for me. Haven't tried the exchange server fix, since it requires to bring down the server.