Wednesday, May 23, 2012

System Restore settings in Vista

To set yourself up:
1. Click on 'start'-> All programs -> Accessories
2. Right click on "Command Prompt" and "Run as Administrator"

To view current storage settings, type
vssadmin list shadowstorage /for=c: /on=c:

To change current storage settings, type
vssadmin resize shadowstorage /for=c: /on=c: /maxsize=4gb

Friday, April 2, 2010

Size of a unix folder

If folder name is , run ths following command to find out the size of the folder on disk -

du -sh

use "man du" to see help on the "du" command.

Friday, February 13, 2009

Outlook EULA continues to popup

The problem in most probability is because Office was not installed in administrator mode. You do not need to reinstall office in admin mode to fix this problem.

  • Just open explorer, and browse to the Office folder which contains the Outlook executable (outlook.exe).
  • Right click on the Outlook executable, and select 'run as administrator'
  • Now accept the EULA and close Outlook.

You should not see EULA now for any user who runs Outlook on this computer!

Thursday, February 12, 2009

Vista & Cisco VPN

I purchased a new laptop which had Vista on it, and the VPN settings that worked perfectly on my old laptop (XP SP3) stopped working on the Vista.

  • Well now exactly, I was able to connect the VPN, but when I tried RDC to any server on the VPN, it threw an error.
  • I could not even ping any of the servers
Solution - turned off IPv6 on my wireless network card and on the network connection created by Cisco.

Hurray it works now!

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