New Code
.Net VCL for Delphi
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Code Listing by Denis Barmenkov

Code 11-19 of 19   Pages: Go to  << Prior  1  2  page  

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.

Bonus list:

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:

logging.basicConfig(level=logging.DEBUG, filename='debug.log',
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.