Popular recipes tagged "verse"http://code.activestate.com/recipes/tags/verse/popular/2010-02-12T09:51:09-08:00ActiveState Code RecipesBible Verse Quiz - VerseMatch.py (Python)
2010-02-12T09:51:09-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577043-bible-verse-quiz-versematchpy/
<p style="color: grey">
Python
recipe 577043
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 3.
</p>
<p>Run a Bible-verse-matching servlet on the network.</p>
<p>This program is a port of the VerseMatch program written
in CPS 110 at BJU during the Autumn Semester of 2003.</p>
Bible Verse Quiz - compare.py (Python)
2010-02-12T04:23:14-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577053-bible-verse-quiz-comparepy/
<p style="color: grey">
Python
recipe 577053
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Give a string-oriented API to the generic "diff" module.</p>
<p>The "diff" module is very powerful but practically useless on its own.
The "search" and "empty_master" functions below resolve this problem.</p>
Bible Verse Quiz - timeout.py (Python)
2010-02-12T04:19:59-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577045-bible-verse-quiz-timeoutpy/
<p style="color: grey">
Python
recipe 577045
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Provide way to add timeout specifications to arbitrary functions.</p>
<p>There are many ways to add a timeout to a function, but no solution
is both cross-platform and capable of terminating the procedure. This
module use the multiprocessing module to solve both of those problems.</p>
Bible Verse Quiz - servlet.py (Python)
2010-02-12T04:21:49-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577047-bible-verse-quiz-servletpy/
<p style="color: grey">
Python
recipe 577047
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Provide simple support for Java-style servlets.</p>
<p>The code in this module provides an incomplete port of Java's API for
servlets. Only essential classes and methods are implemented here.</p>
Bible Verse Quiz - diff.py (Python)
2010-02-12T04:22:40-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577051-bible-verse-quiz-diffpy/
<p style="color: grey">
Python
recipe 577051
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Compute differences and similarities between a pair of sequences.</p>
<p>After finding the "difflib.SequenceMatcher" class unsuitable, this module
was written and re-written several times into the polished version below.</p>
Bible Verse Quiz - database.py (Python)
2010-02-12T04:22:59-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577052-bible-verse-quiz-databasepy/
<p style="color: grey">
Python
recipe 577052
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Serve verses from the Bible in response to SQL queries.</p>
<p>Pulling Bible verses out of a database allows query details to be
abstracted away and powerful Verse objects returned to the caller.</p>
Bible Verse Quiz - html.py (Python)
2010-02-12T04:22:31-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577050-bible-verse-quiz-htmlpy/
<p style="color: grey">
Python
recipe 577050
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Define several XHTML document strings to be used in VerseMatch.</p>
<p>Unlike the original program written in Java, a large portion of the
XHTML code is defined separately here to be used as format strings.</p>
Bible Verse Quiz - state.py (Python)
2010-02-12T04:20:20-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577046-bible-verse-quiz-statepy/
<p style="color: grey">
Python
recipe 577046
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Manage the state of a VerseMatch session.</p>
<p>If VerseMatch is the heart of the program, then state is the brain.
All user interactions are processed by the State class listed below.</p>
Bible Verse Quiz - library.py (Python)
2010-02-12T04:22:19-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577049-bible-verse-quiz-librarypy/
<p style="color: grey">
Python
recipe 577049
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Automate the indexing and processing of the verse library.</p>
<p>These three classes allow a library directory to automatically be
parsed and prepared for use in a categorized reference database.</p>
Bible Verse Quiz - manager.py (Python)
2010-02-12T04:22:07-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577048-bible-verse-quiz-managerpy/
<p style="color: grey">
Python
recipe 577048
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 2.
</p>
<p>Oversee the timely destruction of unused sessions.</p>
<p>The two classes in this module allow automated memory cleanup to be regularly
performed and timed actions to be executed within reasonable time periods.</p>
Bible Verse Quiz - verse.py (Python)
2010-02-12T04:19:44-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577044-bible-verse-quiz-versepy/
<p style="color: grey">
Python
recipe 577044
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>).
Revision 3.
</p>
<p>Encapsulate verses from the Bible and support quizzing over them.</p>
<p>The Verse class in this module is far superior to the one implemented in
Java. All quizzing/testing capabilities are imported from another module.</p>