Popular recipes by Robert McDermott http://code.activestate.com/recipes/users/786815/2005-09-21T20:52:45-07:00ActiveState Code RecipesHuman verification test (captcha) (Python)
2005-09-21T20:52:45-07:00Robert McDermotthttp://code.activestate.com/recipes/users/786815/http://code.activestate.com/recipes/440588-human-verification-test-captcha/
<p style="color: grey">
Python
recipe 440588
by <a href="/recipes/users/786815/">Robert McDermott</a>
(<a href="/recipes/tags/graphics/">graphics</a>).
Revision 3.
</p>
<p>The gen_captcha function generates an image containing text thatÂ’s easy for a human to read, but difficult for a computer. This allows you create a test to tell humans and computers apart. (requires PIL)</p>
Misspell words to avoid detection (Python)
2005-09-06T15:39:26-07:00Robert McDermotthttp://code.activestate.com/recipes/users/786815/http://code.activestate.com/recipes/440526-misspell-words-to-avoid-detection/
<p style="color: grey">
Python
recipe 440526
by <a href="/recipes/users/786815/">Robert McDermott</a>
(<a href="/recipes/tags/text/">text</a>).
Revision 2.
</p>
<p>The misspell class takes a string and slightly mangles it by randomly transposing two adjacent characters while leaving the first and last characters intact. The resulting text is almost completely misspelled but still completely readable. Words less than four characters, numbers, email addresses and URLs are untouched. Each run will produce a message with a different signature (checksum).</p>
Persistently monitored collection class (Python)
2005-09-21T20:45:19-07:00Robert McDermotthttp://code.activestate.com/recipes/users/786815/http://code.activestate.com/recipes/440504-persistently-monitored-collection-class/
<p style="color: grey">
Python
recipe 440504
by <a href="/recipes/users/786815/">Robert McDermott</a>
.
Revision 2.
</p>
<p>The collection class allows you to persistently monitor a collection of items. It reports on which items are new to the collection, which items have left the collection and the age in seconds of each item in the collection.</p>