Saturday, June 30, 2007
Tuesday, June 26, 2007
GUID can be useful as a primary key for a databases and also for the records or rows of data that needs to be unique. There are a lot of tools that can generate a GUID but in this quickie blog, I am documenting how to generate a GUID using Python in Windows.
To generate a GUID, import the code below:
_guid = pythoncom.CreateGuid()
_guid_str = str(_guid)
print "%s GUID is %d long"%(_guid_str,len(_guid_str))
Wednesday, June 20, 2007
Install Python 2.5 for Microsoft Windows. Make sure that you have administrative rights to be able to install the application properly. After having verified that Python is installed and working, install Python Imaging Library. See below for a sample of screen capture python script.
#--<-start code here->--import ImageGrab;
img = ImageGrab.grab()
#--<-end code here->--
Saturday, June 09, 2007
Friday, June 08, 2007
Thursday, June 07, 2007
netsh interface ip delete arpcache~ts~