<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I found another video of coding by voice. This one is with VB, but still pretty neat. He is also using the Dragon software from Nuance.<br><br><div>> From: centraloh-request@python.org<br>> Subject: CentralOH Digest, Vol 96, Issue 5<br>> To: centraloh@python.org<br>> Date: Tue, 7 Apr 2015 12:00:02 +0200<br>> <br>> Send CentralOH mailing list submissions to<br>>       centraloh@python.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>       https://mail.python.org/mailman/listinfo/centraloh<br>> or, via email, send a message with subject or body 'help' to<br>>     centraloh-request@python.org<br>> <br>> You can reach the person managing the list at<br>>   centraloh-owner@python.org<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of CentralOH digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>>    1. Re: not as sexy as efloehr's cloud graphing.... (Eric Miller)<br>>    2. Nuitka vs Cython (James Bonanno)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Mon, 6 Apr 2015 09:35:38 -0400<br>> From: Eric Miller <miller.eric.t@gmail.com><br>> To: "Mailing list for Central Ohio Python User Group (COhPy)"<br>>      <centraloh@python.org><br>> Subject: Re: [CentralOH] not as sexy as efloehr's cloud graphing....<br>> Message-ID:<br>>         <CAN67YM5tB+j+79wtRL-W6tsW_F+x1naB1irPg3nfgTuLKzBnYA@mail.gmail.com><br>> Content-Type: text/plain; charset="utf-8"<br>> <br>> here's a better version.  Switched to statsd/grafana<br>> <br>> https://www.hostedgraphite.com/7cc81a60/grafana/#dashboard/temp/e6c6a737196e70ca561009cf6bc6abd7b41a4402<br>> <br>> On Sun, Apr 5, 2015 at 8:26 PM, Eric Floehr <eric@intellovations.com> wrote:<br>> <br>> > Oh that's awesome! And I never would have thought to use something like<br>> > Librato for this, so double awesome.<br>> ><br>> > But why didn't you tell me I was supposed to wait to press the button?<br>> > That you could only press it once! :-)<br>> ><br>> > Thanks for sharing that!<br>> ><br>> > On Sun, Apr 5, 2015 at 12:02 AM, Eric Miller <miller.eric.t@gmail.com><br>> > wrote:<br>> ><br>> >> ...but, still chuckleworthy I hope.<br>> >><br>> >><br>> >> http://www.reddit.com/r/thebutton/comments/31hk2g/realtime_graph_to_predict_the_ultimate_heat_death/<br>> >><br>> >> Please excuse the lazy error handling, lack of comments, and the obvious<br>> >> need to make functions in at least two places.  I was just screwing<br>> >> around...<br>> >><br>> >> from lxml import htmlimport requestsimport timeimport librato<br>> >><br>> >> user = 'yourLibratoEmail@gmail.com'<br>> >> token = 'your_____API____________key'<br>> >> api = librato.connect(user, token)<br>> >> while True:<br>> >>         try:<br>> >>                 page = requests.get('http://www.reddit.com/r/thebutton')<br>> >>                 tree = html.fromstring(page.text)<br>> >>                 participants = tree.xpath('//span[@class="thebutton-participants"]/text()')<br>> >>                 numbers = tree.xpath('//span[@class="number"]/text()')<br>> >><br>> >>                 page = requests.get('http://www.reddit.com/about')<br>> >>                 tree = html.fromstring(page.text)<br>> >>                 dailyStats = tree.xpath('//div[@class="value"]/text()')<br>> >><br>> >>                 pressers = participants[0]<br>> >>                 subcribers = numbers[0]<br>> >>                 activeViewers = numbers[1]<br>> >>                 dailyRedditUsers = dailyStats[4]<br>> >><br>> >>                 pressers = pressers.replace(',', '')<br>> >>                 subcribers = subcribers.replace(',', '')<br>> >>                 activeViewers = activeViewers.replace(',', '')<br>> >>                 dailyRedditUsers = dailyRedditUsers.replace(',', '')<br>> >><br>> >>                 api.submit("pressers", pressers)<br>> >>                 api.submit("subcribers", subcribers)<br>> >>                 api.submit("activeViewers", activeViewers)<br>> >>                 api.submit("dailyRedditUsers", dailyRedditUsers)<br>> >><br>> >>                 print pressers<br>> >>                 print subcribers<br>> >>                 print activeViewers<br>> >>                 print dailyRedditUsers<br>> >><br>> >>                 time.sleep(5)<br>> >>         except:<br>> >>                 continue<br>> >><br>> >><br>> >> _______________________________________________<br>> >> CentralOH mailing list<br>> >> CentralOH@python.org<br>> >> https://mail.python.org/mailman/listinfo/centraloh<br>> >><br>> >><br>> ><br>> > _______________________________________________<br>> > CentralOH mailing list<br>> > CentralOH@python.org<br>> > https://mail.python.org/mailman/listinfo/centraloh<br>> ><br>> ><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <http://mail.python.org/pipermail/centraloh/attachments/20150406/12a54b63/attachment-0001.html><br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Mon, 06 Apr 2015 10:05:35 -0400<br>> From: James Bonanno <james@atlantixeng.com><br>> To: centraloh@python.org<br>> Subject: [CentralOH] Nuitka vs Cython<br>> Message-ID: <552292AF.6020409@atlantixeng.com><br>> Content-Type: text/plain; charset=utf-8; format=flowed<br>> <br>> In another follow up from last week, I compiled some basic programs with <br>> Nuitka. It's actually somewhat impressive that you can compile a static <br>> python program to a standalone C++ executable. For the various reasons <br>> that I talked about last week, I still prefer Cython. However, Nuitka is <br>> promising ...<br>> <br>> Below I show a python file, math.py, that is compile to an executable in <br>> one command line statement.<br>> <br>> %% file math.py<br>> <br>> def fib(n):<br>>      """Print the Fibonacci series up to n."""<br>>      a, b  = 0, 1<br>>      index = 0<br>>      while b < n:<br>>          print ("%d, %d, \n" % (index, b) )<br>>          a, b   = b, a + b<br>>          index += 1<br>> <br>> <br>> if __name__=="__main__":<br>>      fib(1000)<br>> <br>> Here I compile with Nuitka and execute, in standalone mode:<br>> <br>> james@saturn9 ~/crc $ nuitka --execute --standalone math.py<br>> 0, 1,<br>> <br>> 1, 1,<br>> <br>> 2, 2,<br>> <br>> 3, 3,<br>> <br>> 4, 5,<br>> <br>> 5, 8,<br>> <br>> 6, 13,<br>> <br>> 7, 21,<br>> <br>> 8, 34,<br>> <br>> 9, 55,<br>> <br>> 10, 89,<br>> <br>> 11, 144,<br>> <br>> 12, 233,<br>> <br>> 13, 377,<br>> <br>> 14, 610,<br>> <br>> 15, 987,<br>> <br>> <br>> <br>> ------------------------------<br>> <br>> Subject: Digest Footer<br>> <br>> _______________________________________________<br>> CentralOH mailing list<br>> CentralOH@python.org<br>> https://mail.python.org/mailman/listinfo/centraloh<br>> <br>> <br>> ------------------------------<br>> <br>> End of CentralOH Digest, Vol 96, Issue 5<br>> ****************************************<br></div>                                       </div></body>
</html>