This program parses the logfile given by the execution of the keylogger command 'script -c "xinput test ID_CODE" | cat LOG_FILE' and it is based on a Finite State Machine (FSM) to manage all the possible combinations of...
Advertisement
A Clock Out Of a Form as the name suggests can be used to implement a clock display in your web pages, which is not in a form and is totally independent. This runs fine on both the Internet Explorer and Netscape. This freeware JavaScript can add...
This recipe demonstrates DS of RRS (Discreet Simulation of Round Robin Scheduling). The purpose of this exercise is twofold.
It demonstrates discreet simulation in a practical way. It demonstrates how different factors...
Web version of a popular dice game. Collect emails and generate banner ad revenue while users play. There are two configurable prizes: one is given away weekly to the user with the highest score and the other is a progressive jackpot that grows...
Get the title of a page is an easy tutorial through which the users can collect information about the method of accessing the title of particular page. The author gives details about the method of utilizing various functionalities to retrieve the...
Show The Size Of A Directory Using ASP is an online article explaining ASP beginners and programmers to use FileSystemObject function of ASP in finding the file sizes. The author has also given some notes on the above topic along with the code...
SMS: Case study of a Web services deployment is a case study intended to give a brief introduction on web services for all webmasters. Here in this case study the author has taken the procedures involved in implementing SMS service on a web...
Prints the breadth first Levels of a graph (Or) Tree, by performing Breadth First Search
This function allows you to calculate the Method Resolution Order (MRO, or sometimes linearization) of a class or base classes. This is the so-called "C3" algorithm, as used by Python (new-style classes, from version 2.3 and higher). The...
Please note that the present is a fork of the recipe 577283 "Decorator to expose local variables of a function after execution" of Pietro Berkes, available at...
Sometimes you need to perform an operation on the oldest of a set of files. Using get_oldest_file you could implement an age-based priority queue that processes files from oldest to newest. The list of files you pass in may be from a glob of a...
making a program that will write a program to find all the combinaison of a string
While I have seen many permutation recipes on this site, there seems to be no recipe yet which shows how to generate the permutations of a "bag". A bag is like a set but can contain elements more than once.
A methode to traverse a tree (or the rest of a tree starting from a node with unkown position) depth-first without recursion and without mandatorily keeping track of the position of the current node; requires each node to have reference acess to...
This recipe shows a way to generate a list of all strings (in this case, string=list of symbols) of a given alphabet having a specified length; by using list comprehensions.
UPDATE: The case for alphabet length = 1 is fixed.
The following program displays the directory structure of a specified path using ASCII characters. The program can optionally display files in addition to directories. This program functions similar to the windows 'tree' command.
I decided not to customize the xml-parser to fit the structure of a xml-document, but to make a parser that adapts the structure of the document. By converting the xml-document in this way, the access to the elements is simple and...
This script shows how to resume downloading of a file that has been partially downloaded from a web server. It's been tested with Apache 1.3.x, but should work with any web server that understands the "range" header.
This simple code calculates the convex hull of a set of 2D points and generates EPS files to visualise them. The algorithm was taken from a textbook on Computional Geometry.
You want to replace that portion of a string at a given position. |