Programming Methods - Algorithms



Query whether an interface is up on UNIX Download

Wednesday, June 11th, 2008

This code shows how to call the low-level POSIX interface of Python, and handle the return values with the struct module.

MD5 module example Download

Tuesday, June 10th, 2008

This script uses the md5 module included with python to compute md5 hashes of files passed to it on the command line.

Flexible enumerate() Download

Tuesday, June 10th, 2008

Flexible enumerate() script adds an additional start argument to the built-in enumerate function. Download from:

Encrypting A String Download

Monday, June 9th, 2008

The main purpose of these functions are to encrypt and decrypt a string (or change the string from one "language" into another). The code is simple, but it provides a

Get request counts from Apache logs Download

Sunday, June 8th, 2008

Get request (get/post) counts from Apache logs script gives files and counts for certain file extensions, unsorted.

SQL-like ORDER BY function for lists Download

Saturday, June 7th, 2008

This script contains a function that allows you to easily sort a list by multiple columns in ascending and descending order similar in function to the ORDER BY clause

WebCleaner Download

Saturday, June 7th, 2008

WebCleaner is a filtering HTTP proxy.

Features:

remove unwanted HTML (adverts, flash, etc.)

popup blo

X Python Newsreader Download

Wednesday, June 4th, 2008

XPN (X Python Newsreader) is a graphical newsreader written in Python with the GTK+ toolkit. With XPN you can read/write articles on the Usenet with a good MIME support (better

Import modules from a remote server Download

Tuesday, June 3rd, 2008

Storing modules in a central location, which are used by remote, seperate clients has obvious benefits. This script describes a method by which modules can be fetched from a re

InverseExtendGenerators Download

Friday, May 30th, 2008

This script is the same as InverseExtend, except it uses a yield for non-local flow of control.It iterates downward through a hierarchy calling a method at each step.Each