Method Statements
This small module builds an urllib2 opener that can be used to make a connection through a proxy using the http CONNECT method (that can be used to proxy SSLconnections). The current urrlib2 seems to not support this method.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): urrlib2 opener for SSL proxy Download |
This script is an output stream wrapper; possibly useful for debugging code with print statements. When write() is called, it makes a note of the calling frame. The indentation level is equal to the number of frames in the call stack which have been previously noted.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Automatic indentation of output Download |
This script allows a user to place debug messages, error messages and standard messages throughout a program. The function name and line number will be added to each debug and error message before it is printed out. In addition, each of these messages can be passed to multiple handler objects...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Debug statements include function name Download |
Special method __copy__ is the easiest way for an object to cooperate with the copy.copy function. This script allows you to bypass the object's __init__, even if it's slow, to get an 'empty' object of this class.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Fast copy of an object having a slow __init__ Download |
This script presents an ideom for simplified accessors, that combines typical getter and setter functionality of an attribute into a single overloaded method, that instead of getATTRIBUTE and setATTRIBUTE can now just be called ATTRIBUTE. When called without arguments it acts as a getter and...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Simplified attribute accessors using overloading Download |
InitReplacement script shows you how to replace an __init__ method in ascript sht;/p>
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): InitReplacement Download |
This script is an alternative way to call superclass method code. Mix this class in to your classes, and you can now use the following form to call superclass methods: retval = cls.doDefault([args]) instead of the usual: retval = super(cls, self).methodName([args])
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): DoDefaultMixin Download |
This script can be good to avoid some limitations of multiple inheritance, when in need to expand functionalities of superclasses in the hierarchy or controlling the classes cooperation.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Observer pattern for method calls Download |
This simple generator function is used to call a function X times per second.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Call a function/method X times per second Download |
This script is a convenient way to deeply nest try/finally statements. It is appropriate for complicated resource initialization and destruction. For instance, if you have a list of 50 things that need to get intialized and later destructed via using try/finally (especially if you need to create...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): TryFinally Download |
This script is a general method to figuren out all solutions of eight queens. Certainly, it can also solve any number of queens. Each solution is a list, and each value of the list represents the column number, at the same time the index of this value represents it's row number. For instance,...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): A general solution of Eight Queens Download |
Some of Python's powerful meta-programming features are used to enable writing Python functions which include Prolog-like statements. Such functions load a Prolog-like database. When coupled with a suitable inference engine for logic databases, this is a way to add logical programming -- the last...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Pythologic -- Prolog syntax in Python Download |
Whenever a superclass implements a __init__ method to initialize its attributes, subclasses derived from it have to invoke the __init__ method of the superclass. This script is a different mechanism of initializing the attributes of a superclass with default values, achieved by overriding the...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Overriding __new__ for attribute initialization Download |
IDMOS is a CMS (Content Management System) that fill all requirements in IDM Method. It provides dynamic front-end and administrative tools.Multilanguage, template-based, component-base, it is written in PHP and uses MySQL as DB.
Platforms: PHP
License: Freeware | Size: 1.44 MB | Download (60): IDMOS Download |
SOAP-SQL generates a web service WSDL based on user-defined SQL statements with only a few lines of code. It relies on NuSOAP and PEAR MDB2 (DB abstraction layer), so it works with most any database. No PHP extensions required.
Platforms: Windows, Mac, *nix, PHP, BSD Solaris
License: Freeware | Download (58): SOAP-SQL Download |
This is a small project aiming to prove a theory that grids can be solved using only the "possible value" method, whereby the numbers are filled in according the condition that that position has only one possible value, in filling this in, possible values matching this number on the same x and y...
Platforms: C and C plus plus
License: Freeware | Size: 10 KB | Download (43): Sudoku Easy/Medium Solver Script Download |
The method connects to SMTP servers and retrieves email account information.Email address syntax checking does not conform to RFC2822, however, it will work fine on normal email address' format.
Platforms: CGI and Perl
License: Freeware | Size: 10 KB | Download (50): Mail::VRFY Download |
Class w/examples to provide a method to easily extract data from XML files
Platforms: Flash
License: Freeware | Size: 10 KB | Download (48): xmlParser for XML Tools Download |
This script solicits a table privilege and grantee user name at the SQL*Plus prompt, then builds and executes a file of GRANT statements to grant the privilege on all user tables to the grantee user.
Platforms: JavaScript
License: Freeware | Size: 10 KB | Download (54): Grant a privilege on all user tables to another user Download |
This is a simple method for silence removal and segmentation of audio streams that contain speech. The method is based in two simple audio features (signal energy and spectral centroid). As long as the feature sequences are extracted, as thresholding approach is applied on those sequence, in...
Platforms: Matlab
License: Freeware | Size: 983.04 KB | Download (42): Silence removal in speech signals Download |