Popular recipes by Vinay Sajip http://code.activestate.com/recipes/users/4034162/2009-07-06T10:03:28-07:00ActiveState Code RecipesImproved ReportLab recipe for "page x of y" (Python) 2009-07-06T10:03:28-07:00Vinay Sajiphttp://code.activestate.com/recipes/users/4034162/http://code.activestate.com/recipes/576832-improved-reportlab-recipe-for-page-x-of-y/ <p style="color: grey"> Python recipe 576832 by <a href="/recipes/users/4034162/">Vinay Sajip</a> (<a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/reportlab/">reportlab</a>). Revision 2. </p> <p>This recipe is based on <a href="http://code.activestate.com/recipes/546511/"><a href="http://code.activestate.com/recipes/546511/">Recipe 546511</a></a> which does not work reliably if there are images in the content.</p> Simple file-based mutex for very basic IPC (Python) 2007-05-09T03:03:48-07:00Vinay Sajiphttp://code.activestate.com/recipes/users/4034162/http://code.activestate.com/recipes/519626-simple-file-based-mutex-for-very-basic-ipc/ <p style="color: grey"> Python recipe 519626 by <a href="/recipes/users/4034162/">Vinay Sajip</a> . </p> <p>Since the year dot, file locking has been used as a very simple synchronizing primitive between processes. Here's my take on the approach. To try it, simply start two command windows/terminal windows and run the script in each.</p> <p>Tested on WinXP and Ubuntu (Dapper and Feisty).</p>