Popular recipes by Anand Patil http://code.activestate.com/recipes/users/4168675/2009-01-26T08:11:59-08:00ActiveState Code RecipesStacked graphs using matplotlib (Python)
2009-01-26T08:11:59-08:00Anand Patilhttp://code.activestate.com/recipes/users/4168675/http://code.activestate.com/recipes/576633-stacked-graphs-using-matplotlib/
<p style="color: grey">
Python
recipe 576633
by <a href="/recipes/users/4168675/">Anand Patil</a>
(<a href="/recipes/tags/broadband/">broadband</a>, <a href="/recipes/tags/matplotlib/">matplotlib</a>, <a href="/recipes/tags/mobile/">mobile</a>, <a href="/recipes/tags/stacked_graph/">stacked_graph</a>, <a href="/recipes/tags/stream_graph/">stream_graph</a>).
</p>
<p>Creates stacked graphs (sometimes known as stream graphs, apparently) as recommended by Byron and Wattenberg, <a href="http://www.leebyron.com/else/streamgraph/download.php?file=stackedgraphs_byron_wattenberg.pdf" rel="nofollow">http://www.leebyron.com/else/streamgraph/download.php?file=stackedgraphs_byron_wattenberg.pdf</a></p>
Count up transfer for 3 mobile broadband on a mac (Python)
2009-01-04T03:13:33-08:00Anand Patilhttp://code.activestate.com/recipes/users/4168675/http://code.activestate.com/recipes/576605-count-up-transfer-for-3-mobile-broadband-on-a-mac/
<p style="color: grey">
Python
recipe 576605
by <a href="/recipes/users/4168675/">Anand Patil</a>
(<a href="/recipes/tags/3/">3</a>, <a href="/recipes/tags/mac/">mac</a>, <a href="/recipes/tags/mobile_broadband/">mobile_broadband</a>, <a href="/recipes/tags/three/">three</a>).
</p>
<p>The 3 (a UK mobile carrier) broadband dongle is handy, but its mac support is really awful. In particular, the interface software doesn't provide any straightforward way to see your total data transfer to date. This can lead to nasty surprises if you're using a pay-as-you-go plan.</p>
<p>This executable scans /var/log/ppp.log and totals up your data transfers over your dongle. It can optionally take a date as a command-line argument, in which case it only totals up usage after the given date.</p>