|
Code Listing by Ben Hoyt |
---|
|
Simple program to print the full name of all occurrences of the given filename in your PATH. Kind of like the Unix "which" utility, but works for DLLs and other files as well.
Usage: findinpath.py filename
The pluralize() function returns the plural form of the given lowercase singular word (English only). Based on ActiveState recipe http://code.activestate.com/recipes/413172/
NamedMutex is a class for using Windows (Win32) named mutexes for system-wide locks. For example, we use these to lock system-wide log files that multiple processes can write to.
This function rounds num to the specified number of significant digits (rather than decimal places). See doctests for more examples.
Function to get the user's IP address in a web app or CGI script, even when they're behind a web proxy.
We use web.py as our web framework, but change web.ctx.env and web.ctx.get('ip') to whatever the equivalents are for the CGI... |
|
|
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.