~ Mayank Johri’s Tips ~

January 31, 2008

PitHole: softgrid – WORKINGDIR

Filed under: PitHole — mayankjohri @ 4:17 pm

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

Filed under: FAQ's, Microsoft SoftGrid Application Virtualization — mayankjohri @ 4:15 pm

It might be safe to remove the workingdir tag only if

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

January 30, 2008

Softgrid FAQs : Blank Icons on published Applicataions.

Filed under: FAQ's, Microsoft SoftGrid Application Virtualization — mayankjohri @ 1:57 pm

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 16×16
    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 16×16 size and do not forget to update the OSD files to point to the new icons.

January 26, 2008

Get Processes along with parameters

Filed under: Windows — mayankjohri @ 6:48 pm

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

January 19, 2008

Adding TextNode in XML using python

Filed under: Python — mayankjohri @ 5:16 pm

OSElements = document.getElementsByTagName(“ABSTRACT”)
for element in OSElements:

print element.nodeValue
new = doc.createTextNode(“TESTING”)
element.appendChild(new)

January 12, 2008

Setting ColumnWidth of wx.ListView control in python

Filed under: Development, Python — mayankjohri @ 3:10 pm
Tags: ,
# 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)

Blog at WordPress.com.