<?xml version="1.0"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd" >  
<rss version="0.91">

  <channel>
    <title>Recipes from the Python Cookbook</title>
    <language>en-us</language>
    <link>http://www.ActiveState.com/ASPN</link>
    <copyright>Copyright 2001, ActiveState SRL.</copyright>
    <webMaster>aspn-feedback@ActiveState.com</webMaster>

  <image>
    <title>ASPN: ActiveState Programmers Network</title>
    <url>http://www.activestate.com/img/logo_115x35.gif</url>
    <link>http://www.ActiveState.com/ASPN</link>
    <width>115</width>
    <height>35</height>
  </image>

  
  

    <item><title>TV-Series Current Episode Info</title>
<description>The getEps function in this module returns a text string containing the original air date for the last aired and next upcoming episodes of a TV series title&#46; It also provides the plot for the next upcoming episode&#44; if available&#46; The information returned is limited to what is available at IMDb&#44; and so it may not be up to date&#46; IMDbPY &#40;http&#58;&#47;&#47;imdbpy&#46;sourceforge&#46;net&#47;&#41; is used&#46; See code for usage information and examples&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572193</link>
</item>
<item><title>Lightweight Unittester</title>
<description>Inspired by py&#46;test&#44; the unittester is a single&#44; simple function that is easily customized&#46;  The main virtue is that tests are much clearer than with the unittest&#46;py&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572194</link>
</item>
<item><title>Play a PLS audio stream in Windows Media Player</title>
<description>I don&#39;t want to bother installing a better media player&#44; but I want to listen to PLS stations &#40;Shoutcast&#41;&#46;  So here is a script you can use to play them in Windows Media Player which for some reason doesn&#39;t support them&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572191</link>
</item>
<item><title>Date &amp; time RFC822 formatted for RSS2, etc (straw man)</title>
<description>I live in a geographical area whose daylight savings time provisions seem to fool software&#46; I would therefore like to avoid mentioning time zone when I create a timestamp in RFC822 format&#46; I have looked for but could not find an elegant way of expressing what I want&#46; In hopes that someone will see this and be aghast at my ignorance&#44; then provide something nice&#44; I humbly offer the following&#46;

It takes a datetime and gives back an RFC822 timestamp &#40;I think&#41;&#46; </description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572190</link>
</item>
<item><title>Run function in separate process</title>
<description>This is a simple function that runs another function in a different process by forking a new process which runs the function and waiting for the result in the parent&#46; This can be useful for releasing resources used by the function such as memory&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/511474</link>
</item>
<item><title>JavaScript code compression</title>
<description>A regex&#45;based JavaScript compression kludge&#46;

The current version has been tested against mochikit and json&#46;js&#44; which indeed tripped up the previous version &#40;see comments&#41;&#46; 
</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496882</link>
</item>
<item><title>how to implement kbhit() on Linux</title>
<description>kbhit on linux&#44; the sample just prints dots until you press any key&#46; I updated the sample to show how to implement unbuffered getch and getche safely&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572182</link>
</item>
<item><title>Unicode String Hex Dump</title>
<description>Simple routine for dumping any kind of string&#44; ascii&#44; encoded&#44; or unicode&#44; to a standard hex dump&#46; Plus read&#47;write of unicode and encoded strings&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572181</link>
</item>
<item><title>PyChecker postprocessor </title>
<description>This recipe can separate the output of PyChecker into OK&#39;d and regular messages&#46;  An example is included below&#46;

This is an enhanced version of the pychok recipe posted previously&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/546532</link>
</item>
<item><title>Quickly calculate folder or volume size</title>
<description>This recipe uses the win32file&#46;FindFilesW&#40;&#41; function to efficiently calculate total size of a folder or volume&#44; and additionally handles cases where a cutoff size is desired or errors are encountered along the path&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572179</link>
</item>
<item><title>Recreate MS Access table in SQLite</title>
<description>A function to create and load a table in SQLite from a Microsoft Jet table&#44; using DAO&#46;  Also recreates indexes&#46;  Fetches and loads records in blocks with a default size of 1000 rows&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572165</link>
</item>
<item><title>Print Tkinter canvas without a postscript printer</title>
<description>My printer will not accept postscript and all i needed to print was canvas rectangles&#46; So here is something i put together&#46;&#46;&#46; hope it helps someone else&#46;
&#45;works for polys&#44; recs&#44; and lines&#45;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572175</link>
</item>
<item><title>Google Hits</title>
<description>The getHits function in this file takes as input a search term string&#44; and returns as output a dict containing the number of web hits returned for that search term&#46; The Google search engine and a SQLite database are used&#46; See code for usage information&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572173</link>
</item>
<item><title>Prime sieve generators</title>
<description>Two simple generators for generating prime numbers using a prime sieve&#46; gen_sieve&#40;n&#41; will produce all prime numbers &#60;n&#44; and gen_infsieve&#40;&#41; will infinitely produce prime numbers&#46; 

isprime is an example of how one could use gen_sieve&#58; a quick function for testing primality by attempting modulo division with each potential prime factor of a number&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/535154</link>
</item>
<item><title>MultiThread support for SQLite access.</title>
<description>Workaround for the SQLite limitation that prevents multiple threads from sharing a Connection object&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/526618</link>
</item>
<item><title>Attribute-based Interface</title>
<description>I am converting Prof&#46; David Cheriton&#39;s OO software methodology to Python&#46; It&#39;s an approach for building industrial&#45;strength code with a disciplined architecture&#44; consistent naming conventions&#44; and a rigorous division of interface from implementation&#46; I&#39;ll be adding more of his techniques in further recipes&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572162</link>
</item>
<item><title>Method signature type checking decorator for Python 3000</title>
<description>This recipe allows nice and clean validation for method parameters&#47;return values&#46; It uses function annotations available in Python 3000 for the actual signature specification&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572161</link>
</item>
<item><title>HTML/CSS to PDF converter</title>
<description>Most people know how to write a page with HTML and CSS&#46; Why not using these skills to dynamically generate PDF documents using it&#63; The open source project &#34;pisa&#34; http&#58;&#47;&#47;www&#46;htmltopdf&#46;org enables you to to this quite simple in a pythonic way&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572160</link>
</item>
<item><title>SPICE</title>
<description>This module provides access to a standardized implementation
of SPICE &#40;Stephen&#39;s Power&#45;Inspired&#44; Computerized Encryption&#41;&#46;

This code has just been revised and rewritten&#46; As such it may
still contain bugs that were not found after testing the code&#46;</description>
<link>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572159</link>
</item>

  
</channel>
</rss>