Popular recipes by Mark Nenadov http://code.activestate.com/recipes/users/114221/2002-05-30T13:46:27-07:00ActiveState Code RecipesBare Bones Password Generator (Python)
2002-05-17T19:49:38-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/126629-bare-bones-password-generator/
<p style="color: grey">
Python
recipe 126629
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 5.
</p>
<p>A password generator that will generate random length alpha-numeric passwords given a range to work with.</p>
Anagram Fetcher (Python)
2002-05-30T13:46:27-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/117237-anagram-fetcher/
<p style="color: grey">
Python
recipe 117237
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
Revision 4.
</p>
<p>Code for fetching Anagrams out of any given file that contains words seperated
by new lines.</p>
Refining an FTP Site List (Python)
2002-02-23T01:22:36-08:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/115947-refining-an-ftp-site-list/
<p style="color: grey">
Python
recipe 115947
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/network/">network</a>).
Revision 3.
</p>
<p>A pair of functions for checking whether FTP sites are up. The refineFTPList() function will take in a list of FTP sites and returns a list of sites that are not down. The isFTPSiteUp() function checks a particular FTP site to see if it is up.</p>
StringValidator (Python)
2001-10-29T17:36:17-08:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/66439-stringvalidator/
<p style="color: grey">
Python
recipe 66439
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/text/">text</a>).
Revision 10.
</p>
<p>A portable class to carry out all sorts of validation on strings. It uses regular expressions to carry out common validation procedures.</p>
E-mail Address Validation (Python)
2001-07-27T13:37:26-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65215-e-mail-address-validation/
<p style="color: grey">
Python
recipe 65215
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/web/">web</a>).
Revision 5.
</p>
<p>This function simply validates an e-mail address. Ignore this recepie and go to my "StringValidator" recepie, which is a much better solution</p>
Using a wxPython "Notebook" with panels (Python)
2001-06-19T22:26:42-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65249-using-a-wxpython-notebook-with-panels/
<p style="color: grey">
Python
recipe 65249
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/ui/">ui</a>).
Revision 3.
</p>
<p>wxPython provides a powerul functionality that allows you to use a "Notebook" user interface with multiple panels - whose interface each is determined by individual Python scripts. Each panel runs in the background (even when it is not selected), and maintains the state it is in as the user switches back and forth.</p>
CookieInfo (Python)
2002-02-23T01:34:25-08:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/66454-cookieinfo/
<p style="color: grey">
Python
recipe 66454
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 3.
</p>
<p>The "CookieInfo" and "Cookie" classes provide developers with an read-only interface to the "cookies.txt" that most browsers store. The CookieInfo class makes Cookie objects from the cookie file. It also provides methods to operate on the whole set of Cookies. The Cookie object provides methods to convert a cookie into both XML and SQL.</p>
Apache Client Cache-rate Calculator (Python)
2001-07-27T06:31:55-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/66440-apache-client-cache-rate-calculator/
<p style="color: grey">
Python
recipe 66440
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>A function to calculate the percent of requests that were "refused" by Apache server due to the clients ability to read the file from their cache instead.</p>
Calculating Apache hits per IP (Python)
2001-06-26T00:48:43-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65251-calculating-apache-hits-per-ip/
<p style="color: grey">
Python
recipe 65251
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 6.
</p>
<p>This function returns a dictionary containing the hit counts for each individual IP that has accessed your Apache web server.</p>
Parsing an XML file with xml.parsers.expat (Python)
2001-07-27T15:31:46-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65248-parsing-an-xml-file-with-xmlparsersexpat/
<p style="color: grey">
Python
recipe 65248
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/xml/">xml</a>).
Revision 4.
</p>
<p>This is a reusable way to use "xml.parsers.expat" to parse an XML file. When re-using the "MyXML" class, all you need to define a new class, with "MyXML" as the parent. Once you have done that, all you have to do is overwrite the inherited XML handlers and you are ready to go.</p>
Using the MySQLdb interface (Python)
2002-05-12T22:36:47-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65235-using-the-mysqldb-interface/
<p style="color: grey">
Python
recipe 65235
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/database/">database</a>).
Revision 5.
</p>
<p>A simple example showing how to use the MySQLdb interface to function with your MySQL database.</p>
Unroll a single-dimension sequence into an HTML unordered list (Python)
2001-06-23T03:44:54-07:00Mark Nenadovhttp://code.activestate.com/recipes/users/114221/http://code.activestate.com/recipes/65233-unroll-a-single-dimension-sequence-into-an-html-un/
<p style="color: grey">
Python
recipe 65233
by <a href="/recipes/users/114221/">Mark Nenadov</a>
(<a href="/recipes/tags/web/">web</a>).
Revision 2.
</p>
<p>This function simply takes a single-dimension sequence and converts into into an HTML unordered list. This function makes it simple to present the contents of a sequence on the web in an neat fashion.</p>