Thursday, January 31, 2008

PitHole: softgrid - WORKINGDIR

Never put the directory under Quotations as it will always return an error message "Invalid directory".

Softgrid FAQs : When it is safe to remove the WORKINGDIR Tag

It might be safe to remove the workingdir tag only if


  1. When launching the app you are getting Invalid dir error.


Wednesday, January 30, 2008

Softgrid FAQs : Blank Icons on published Applicataions.

I have seen this due to two reasons.


  1. While capture the icons were not captured properly:



    1. Resolution: Extract the icons from the executable and then use it.





  2. The icons does not have proper icons size 16x16




    1. Resolution: Extract the icons from the executable and then use it






Note: One can use iconsucker, IconSnatcher or similar tool. Always remember to save the icon in 16x16 size and do not forget to update the OSD files to point to the new icons.

Sunday, January 27, 2008

Get Processes along with parameters

Click Start, Run and type CMD

Type the command given below:

WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid


or


WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline

Saturday, January 19, 2008

Adding TextNode in XML using python

OSElements = document.getElementsByTagName("ABSTRACT")
for element in OSElements:
print element.nodeValue
new = doc.createTextNode("TESTING")
element.appendChild(new)

Saturday, January 12, 2008

Setting ColumnWidth of wx.ListView control in python

# Get the size of listView Control
w = self.lvMountPoint.GetSize()
# Set the ColumnWidth
self.lvMountPoint.SetColumnWidth(0,w[0] * 0.81)
self.lvMountPoint.SetColumnWidth(1,w[0] * 0.19)