© Copyright 2000-2015 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Denis Barmenkov|
A simple replacement of the os.path.samefile() function not existing on the Windows platform.
MAC/Unix supported in standard way :).
After several attempts to use third-party modules I wrote my own console progress meter.
calculation of ETA based on last update points. More accuracy when comparing with calculation ETA based on process...
Sometimes tail -f launched for log file miss the point when program recreates log file.
Script in this recipe monitors inode changes for specified file and restarts tail if needed.
Python 2.3 module textwrap can justify text in three modes: left/right/center.
Sometimes 'align' mode become more useful.
Function becomes useful when we need hex value of crc32() result, even if it is negative.
Rename JPEG files according to EXIF-date using PIL [library].
If global variable CREATE_HARDLINK is set, script creates Windows (XP) batch file
for creating hardlink version of source files.
PIL available here:...
Every Python logging manual have this code:
format='%(asctime)s %(levelname)s: %(message)s',
It is helpful to download and install precompiled binaries of Python modules especially for Windows. Second way is longer: get module sources, build the C compiler environment, compile binaries, beware of compiler warnings, install module.
Sometimes it is important to save data in the file but the file with the specified name already exists. This function creates a file name that is similar to the original by adding a unique numeric suffix. This avoids the renaming of existing files.
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.