Ounces In A Cup
The str() function in the standard library behaves in a slightly weird way when applied against lists: on each element of the list, the repr() is appended. In contrast, this module provides a deep_str() that deeply applies str() across lists. This module also provides utilities to develop custom...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Deeply applying str() across a data structure Download |
In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets. This Python class reads such a file.
Platforms: Windows, Python,
License: Freeware | Download (56): Read configuration from a text file Download |
This simple notebook class allows you to organize single-toplevel Tkinter apps in a notebook-like fashion, associating each tab to an app, in a way which requires minimal changes in your original apps. This class also supporting different tab orientations (TOP, BOTTOM, LEFT & RIGHT).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): A simple Tkinter notebook-like widget Download |
This script is an example SAX application and can be used as the basis for any SAX application. It is somewhat useful in and of itself when you want to get a sense of the frequency of occurance of particular elements in XML.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): Count tags in a document Download |
This script provides a class called LineIterator that iterates over every line in a list of files, performing the basic functionality as fileinput module in the standard library (which mimics Perl's operator). Basically acts as a simple and methodical way to iterate over every line in a list of...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (61): Fileinput as a generator Download |
This script provides the ability to write your own Python shell, which you can use to filter out input or output, and embed it in another application.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Embed a Python shell in a user interface Download |
This simple contribution is meant to show the main categories (top level only) in a box in the front page of the shop with pictures and title text.Here I positioned it immedialy after the title and before the Text_Main.It is simple and you will have a sophisticated first page to look at...As this...
Platforms: Windows, *nix, PHP, BSD
License: Freeware | Download (50): Main categories in front page 2.3d Download |
Displays products with pictures and their full description in a printable format.
Platforms: Windows, *nix, PHP, BSD
License: Freeware | Download (49): Add a Printable Catalog Download |
Rather useful if you want to add a vertical banner add onto your site. Uses the same logic for the normal banner ad, where an ad will only be displayed for a certain amount of days or impressions or whatever.Easy installation. extract, copy, add language lines, add require line for box, add banners.
Platforms: Windows, *nix, PHP, BSD
License: Freeware | Download (51): Banner ad in a box Download |
Once in a while it becomes necessary to globally change the behaviour of classes in a third party library. This code demonstrates the ability to modify the __init__ method of an arbitrary class in-place. It's also good for making functional programmers wince, which can be entertaining.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Modify class method in-place Download |
The questions can be be stored in a central location and then attached to any post, or they can be set on each post individually. InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress 2.5 or...
Platforms: Windows, Mac, *nix, PHP, BSD Solaris
License: Freeware | Download (60): Fun with in-context comments Download |
It's a simple GUI that calculates a random position of the end-effector, calculates the inverse kinematic and plot the joints' trajectory in a figure. You can send the positions to the arm's controller with the 'Send' button. For a correct execution, it must select the motors following this...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (40): Simple simulator for a 3DOF anthropomorphic arm Download |
This code identifies an ARX model of a system using Genetic Algorithms method in a GUI interfcae and compares the identified model with the model generated using the Least Error method.The real system O/P, GA model generated O/p and Least Error model O/P are all compared in a single plot, while...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (40): System Identification using GA with a GUI interface Download |
The adiabatic catalyst problem arises in the field of chemical engineering. If chemical reaction kinetics within a solid catalyst body are influenced by mass transfer multiple steady states are possible for a certain range of the governing parameters: arrhenius number, prater number and thiele...
Platforms: Matlab
License: Freeware | Size: 225.28 KB | Download (45): Multiple steady states in a catalyst Download |
The purpose of this program is to simulate the permeation time lag in a polymer hollow fiber membrane with a dual mode sorption isotherm and the partially immobilized diffusion model.The program plot the 3D time lag with two models:1) concentration gradient as the driving force for diffusion2)...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Permeation timelag in polymer hollow fiber membrane Download |
The method uses finite differences to solve Laplace equation and matrix inversion to solve the resulting system of linear algebraic equations. The rectangular plate has both dimensions set equal to unity. Each dimension is discretized and the total number of nodal points is equal to 29*29. To...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): Temperature Profile in a Rectangular Plate Download |
The package contains a simulink model of a mechanism which verify the angle of the road and adjust the torques by giving a angle to a plate located under the load session.this model is not a very complicated one and would be useful to whom want to:1.get familiar with control designs specially PID...
Platforms: Matlab
License: Freeware | Size: 215.04 KB | Download (48): Heavy Trucks Balancing In A Steep Road PID controller "Kamiunyaar":A USEFUL NONLINEAR SAMPLE Download |
write_matrix_bin(f,m) saves the matrix "m" in a binaryfile "f". write_matrix_bin is a lot faster than the built in function save(), andtakes up much less diskspace than the old "save -v6" which doesn't use compression.write_matrix_bin also includes an option for compression with...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Fast function to save a matrix Download |
The velocity and shear stress versus radial position are obtained for the laminar flow of a power-law fluid in a pipe. Pipe radius and applied pressure gradients can be set by the user. If you choose a power-law exponent, n, equal to 1 then a Newtonian fluid is recovered. Dilatant and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): GUI application for pipe flow of a power-law fluid Download |
TDFig is an interactive matlab GUI. It displays a 3D objects in the traditional 4-view window (top, front, right and camera).It also allows users to grasp these objects and move them anywhere in the 3D space.Just run: TDFigand it will generate 4 spheres for demo.Grasp and move the spheres in...
Platforms: Matlab
License: Freeware | Size: 81.92 KB | Download (44): Move a 3D object with mouse in a traditional 4-view window Download |