From jep200404 at columbus.rr.com Thu Sep 4 00:56:48 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Wed, 3 Sep 2014 18:56:48 -0400 Subject: [CentralOH] =?utf-8?q?2014-08-25_=E6=9C=83=E8=AD=B0_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140903185648.27dced07.jep200404@columbus.rr.com> wp:shea butter Thanks to Pillar and Ben Rogers for their hospitality. It was fun to watch the astonishment and disbelief of an early newcomer to the Forge, to what pair programming and test-driven development is, and the amenities for employees. That astonishment and disbelief was hard to dispel even after Ben confirmed things. It was interesting to watch pair programming from 10 meters. One could see that both screens had the same content. Thanks to Brian Costlow to providing the food from City Barbecue. I had not had their stuff before PyOhio, and am thoroughly impressed. I did not know one could assign to slices. >>> a = range(5) >>> a [0, 1, 2, 3, 4] >>> a[::2] = 'bar' >>> a ['b', 1, 'a', 3, 'r'] >>> more on that later. Brian Costlow: CohPy needs help Young Coders, Museum of Art, learning how kids learn Click PyTn, how to teach, early 2015 Click Conference here pyohio web site doacracy SDN networking ansible short talks $10k video outreach CMA COSI Cisco telnet (yes, telnet, really, in 2014!) Norman Bird presented Django. Eric Floehr presented on several rather simple things that many of us did not know. His notebook can be viewed at http://nbviewer.ipython.org/urls/dl.dropbox.com/s/i19j3gk1yrahna1/arrays-etc.ipynb?dl=0. For each cell, predict what the output will be before you look at the output. a=range(5) a[1::1]=['some', 'thing'] # insert a[-1:]=a[-1] collections deque (pronounced "deck") O(1) performance files = glob.glob('/long/path/*.foo') files.sort() column = column + 1 can be simplified as column += 1, which is easier on my brain Canon A510 - protect oneself from hoarders Datsun B510 - poor man's BMW Ericsson C510 Dell Latitude D510 Nikon D510 LG E510 Dell Dimension E510 John Deere F510 Huawei Ascend G510 Hubsan H510 Video goggles Jim Prior gave a minor presentation on using divmod() to convert many minutes to hours and minutes and to convert centimeters to feet and inches. His presentation is in the last two non-empty cells of Eric's notebook above. Shareef Dabdoub gave a presentation on ipython (and notebook) magic commands. That can be found at http://nbviewer.ipython.org/urls/dl.dropbox.com/s/vv3uqonkvq5qo3p/ipynotebook-stuff.ipynb?dl=0. Computational biology %lsmagic line magic big magic %edit foo Jan Milosh d3 javascript visualization library d3-tip vega is like a config file (does 80% stuff normal everyday stuff) vincent python to vega (Pulp Fiction homage) vincent.core.initialize_notebook() make json without curly braces keystroke showers: key-mon screenkey playitagainsam: https://github.com/rfk/playitagainsam http://xkcd.com/1319/ Ugh, what an unmitigated mess: def dms2deg(d_mmss): degrees, mmss = divmod(d_mmss, 1.0) minutes, seconds = divmod(100 * mmss, 1.0) seconds *= 100. # print degrees, minutes, seconds return degrees + minutes/60. + seconds/3600. def deg2dms(d): degrees, frac = divmod(d, 1.0) minutes, seconds = divmod(60 * frac, 1.0) seconds *= 60. # print degrees, minutes, seconds return degrees + minutes/100. + seconds/10000. def dms2deg(d_mmss): dmm, seconds = divmod(10000 * d_mmss, 100) print dmm, seconds degrees, minutes = divmod(dmm, 100) print degrees, minutes return degrees + minutes/60. + seconds/3600. def dms2deg(d_mmss): degrees, mmss = divmod(d_mmss, 1.0) print degrees, mmss minutes, seconds = divmod(10000 * mmss, 100) print degrees, minutes, seconds return degrees + minutes/60. + seconds/3600. def dms2deg(d_mmss): degrees = int(d_mmss) print degrees mm_ss = 100. * (d_mmss - degrees) print mm_ss minutes = int(mm_ss) print minutes if minutes >= 60: degrees += 1 minutes -= 100 if minutes < 0: minutes = 0 seconds = 0 else: seconds = 100. * (mm_ss - minutes) print seconds if seconds >= 60: minutes += 1 if minutes >= 60: degrees += 1 minutes -= 60 seconds -= 100 if seconds < 0: seconds = 0 return degrees + minutes/60. + seconds/3600. #----------------------------------------------------------- def dms2deg(d_mmss): degrees, mmss = divmod(d_mmss, 1.0) print degrees, mmss minutes, seconds = divmod(100 * mmss, 1.0) print minutes, seconds seconds *= 100. print degrees, minutes, seconds return degrees + minutes/60. + seconds/3600. def deg2dms(d): degrees, frac = divmod(d, 1.0) minutes, seconds = divmod(60 * frac, 1.0) seconds *= 60. print degrees, minutes, seconds return degrees + minutes/100. + seconds/10000. def dms2deg(d_mmss): dmm, seconds = divmod(d_mmss * 10000., 100.) degrees, minutes = divmod(dmm, 100.) return degrees + minutes/60. + seconds/3600. def deg2dms(d): degrees, frac = divmod(d, 1.0) minutes, seconds = divmod(60 * frac, 1.0) seconds *= 60. return degrees + minutes/100. + seconds/10000. dms2deg(1.3) dms2deg(1.15) dms2deg(1.0030) dms2deg(10.0015)-dms2deg(9.5945) deg2dms(_) import angles I don't see anything in angles that does what I'm to do above. Having the input and output in floats is part of the definition of the problem. angles solves different problems. From jep200404 at columbus.rr.com Fri Sep 5 12:55:46 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Fri, 5 Sep 2014 06:55:46 -0400 Subject: [CentralOH] =?utf-8?q?2014-08-29_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140905065546.6e15c587.jep200404@columbus.rr.com> DC to DC converters for Raspberry Pi for monitoring sump pump Einstein's Clocks and Poincar? Maps http://books.wwnorton.com/books/Einsteins-Clocks-and-Poincares-Maps/ wp:Regularity rally http://corc-rally.org/ Canon A510 wp:Datsun 510 http://omz-software.com/pythonista/ http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html http://shop.oreilly.com/product/0636920030249.do wp:HDF5 great great fun http://www.ted.com/talks/arthur_benjamin_the_magic_of_fibonacci_numbers Python for Kids A Playful Introduction to Programming By Jason R. Briggs http://shop.oreilly.com/product/9781593274078.do set -o vi http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html for f in *.JPG; do echo mv -i $f ${f%%.JPG}.jpeg;done https://xkcd.com/327/ for f in *.JPG; do echo mv -i "$f" "${f%%.JPG}".jpeg;done http://lists.colug.net/pipermail/colug-432/2014-July/003223.html # fading phosphor http://pyvideo.org/video/522/pyohio-2011--sunday-lightning-talks https://bitbucket.org/brandon/adventure/overview ls | grep -o '[0-9]' | wc -l ls | tr -d -c '[0-9]' | wc -c From jep200404 at columbus.rr.com Tue Sep 9 11:57:14 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 9 Sep 2014 05:57:14 -0400 Subject: [CentralOH] =?utf-8?q?2014-09-05_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140909055714.45466478.jep200404@columbus.rr.com> Please fill in the gaps. Someone asked about best practices for the following. python http://legacy.python.org/dev/peps/pep-0008/ django http://twoscoopspress.com/products/two-scoops-of-django-1-6 http://twoscoopspress.org/products/two-scoops-of-django-1-5 https://github.com/twoscoops/django-twoscoops-project postgresql postgis south git ipython notebook openvms dir /sin dir /since more less gis wp:Generic_Mapping_Tools alison alvarez http://pyvideo.org/speaker/1086/alison-alvarez http://pyvideo.org/video/2288/better-mapping-with-shapely Where's the video for her PyOhio 2014 presentation? shapely http://nbviewer.ipython.org/github/nosila/Shapely_PyOhio/blob/master/Shapely_PyOhio_2014.ipynb ipython notebook is very cool watch videos http://ipython.org/videos.html IDEs for Python wp:Comparison_of_integrated_development_environments#Python Eclipse with PyDev wp:Wing IDE Komodo IDE must learn vi for *nix optionally use EMACS hmmm http://twoscoopspress.com/pages/django-tutorials Linus talks about git http://www.youtube.com/watch?v=4XpnKHJAok8 letmegooglethatforyou.com as usual wp: means wikipedia; d: means duckduckgo From gjigsaw at gmail.com Tue Sep 9 20:29:00 2014 From: gjigsaw at gmail.com (Jason Green) Date: Tue, 9 Sep 2014 14:29:00 -0400 Subject: [CentralOH] =?utf-8?q?2014-05-16_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= In-Reply-To: <20140814031508.4c6abfe0.jep200404@columbus.rr.com> References: <20140814031508.4c6abfe0.jep200404@columbus.rr.com> Message-ID: Jim's scribbles included PyTools but not (the one I like), Rocklin's https://github.com/pytoolz. On Thu, Aug 14, 2014 at 3:15 AM, wrote: > cython > http://en.wikipedia.org/wiki/ISO_metric_screw_thread > theano > pytools > https://pypi.python.org/pypi/pytools > http://en.wikipedia.org/wiki/Pyrex_(programming_language) > http://en.wikipedia.org/wiki/Pyrex > http://en.wikipedia.org/wiki/Borosilicate_glass > functional programming > map(), reduce(), zip() > lambda functions > zip(x, y) > zip(*zip(x, y)) > https://docs.python.org/2.7/library/itertools.html > https://docs.python.org/2.7/library/functools.html > > Wes McKinney > CTO and founder of Lambda Foundry > CEO/Founder DataPad > DataPad http://www.datapad.io/ > Pydata 2 weeks ago in silicon valley > http://pydata.org/sv2014/ > pandas does not scale well > badger > http://thiagomarzagao.com/2013/11/11/pandas-shortcomings/ > http://www.linkedin.com/pub/wes-mckinney/0/b27/b96 > > dabeaz > http://lanyrd.com/2014/pycon/scxqgw/#link-xtzz > http://pyvideo.org/video/2575/generators-the-final-frontier > > http://pyvideo.org/video/2286/the-ipython-notebook-revolution > > http://tox.readthedocs.org/en/latest/ > http://en.wikipedia.org/wiki/Jenkins_(software) > > wp:BW3 > wp:Schlotzsky's > > weed snipping robot > > Chateau Blanche on Rome-Hilliard Rd first traffic light north of Renner Rd > Panera > > http://www.thecoli.com/threads/the-robots-have-won-panera-bread-replaces-cashiers-with-kiosks.213137/page-4 > http://www.freerepublic.com/focus/f-chat/3152445/posts > > frozen sets > make hashable things that are not normally hashable > convert dictionary into tuple of tuples > sort keys > > eat at joes:~$ python3 > Python 3.2.3 (default, Sep 25 2013, 19:30:56) > [GCC 4.7.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > eat at joes:~$ python > Python 2.7.3 (default, Sep 26 2013, 16:38:10) > [GCC 4.7.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > > todo > > bring some screws for laptop hinge > M3 M3.5 M4 > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.costlow at gmail.com Tue Sep 9 20:33:36 2014 From: brian.costlow at gmail.com (Brian Costlow) Date: Tue, 9 Sep 2014 14:33:36 -0400 Subject: [CentralOH] =?utf-8?q?2014-05-16_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= In-Reply-To: References: <20140814031508.4c6abfe0.jep200404@columbus.rr.com> Message-ID: Hey Jason, How about a COhPy talk on pytoolz? On Sep 9, 2014 2:29 PM, "Jason Green" wrote: > Jim's scribbles included PyTools but not (the one I like), Rocklin's > https://github.com/pytoolz. > > > On Thu, Aug 14, 2014 at 3:15 AM, wrote: > >> cython >> http://en.wikipedia.org/wiki/ISO_metric_screw_thread >> theano >> pytools >> https://pypi.python.org/pypi/pytools >> http://en.wikipedia.org/wiki/Pyrex_(programming_language) >> http://en.wikipedia.org/wiki/Pyrex >> http://en.wikipedia.org/wiki/Borosilicate_glass >> functional programming >> map(), reduce(), zip() >> lambda functions >> zip(x, y) >> zip(*zip(x, y)) >> https://docs.python.org/2.7/library/itertools.html >> https://docs.python.org/2.7/library/functools.html >> >> Wes McKinney >> CTO and founder of Lambda Foundry >> CEO/Founder DataPad >> DataPad http://www.datapad.io/ >> Pydata 2 weeks ago in silicon valley >> http://pydata.org/sv2014/ >> pandas does not scale well >> badger >> http://thiagomarzagao.com/2013/11/11/pandas-shortcomings/ >> http://www.linkedin.com/pub/wes-mckinney/0/b27/b96 >> >> dabeaz >> http://lanyrd.com/2014/pycon/scxqgw/#link-xtzz >> http://pyvideo.org/video/2575/generators-the-final-frontier >> >> http://pyvideo.org/video/2286/the-ipython-notebook-revolution >> >> http://tox.readthedocs.org/en/latest/ >> http://en.wikipedia.org/wiki/Jenkins_(software) >> >> wp:BW3 >> wp:Schlotzsky's >> >> weed snipping robot >> >> Chateau Blanche on Rome-Hilliard Rd first traffic light north of Renner Rd >> Panera >> >> http://www.thecoli.com/threads/the-robots-have-won-panera-bread-replaces-cashiers-with-kiosks.213137/page-4 >> http://www.freerepublic.com/focus/f-chat/3152445/posts >> >> frozen sets >> make hashable things that are not normally hashable >> convert dictionary into tuple of tuples >> sort keys >> >> eat at joes:~$ python3 >> Python 3.2.3 (default, Sep 25 2013, 19:30:56) >> [GCC 4.7.2] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> >> eat at joes:~$ python >> Python 2.7.3 (default, Sep 26 2013, 16:38:10) >> [GCC 4.7.2] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> >> >> todo >> >> bring some screws for laptop hinge >> M3 M3.5 M4 >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> https://mail.python.org/mailman/listinfo/centraloh >> > > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gjigsaw at gmail.com Tue Sep 9 21:17:47 2014 From: gjigsaw at gmail.com (Jason Green) Date: Tue, 9 Sep 2014 15:17:47 -0400 Subject: [CentralOH] =?utf-8?q?2014-05-16_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= In-Reply-To: References: <20140814031508.4c6abfe0.jep200404@columbus.rr.com> Message-ID: I considered it, but Matthew has already done such a good job already: https://www.youtube.com/watch?v=PpBK4zIaFLE On Tue, Sep 9, 2014 at 2:33 PM, Brian Costlow wrote: > Hey Jason, > > How about a COhPy talk on pytoolz? > On Sep 9, 2014 2:29 PM, "Jason Green" wrote: > >> Jim's scribbles included PyTools but not (the one I like), Rocklin's >> https://github.com/pytoolz. >> >> >> On Thu, Aug 14, 2014 at 3:15 AM, wrote: >> >>> cython >>> http://en.wikipedia.org/wiki/ISO_metric_screw_thread >>> theano >>> pytools >>> https://pypi.python.org/pypi/pytools >>> http://en.wikipedia.org/wiki/Pyrex_(programming_language) >>> http://en.wikipedia.org/wiki/Pyrex >>> http://en.wikipedia.org/wiki/Borosilicate_glass >>> functional programming >>> map(), reduce(), zip() >>> lambda functions >>> zip(x, y) >>> zip(*zip(x, y)) >>> https://docs.python.org/2.7/library/itertools.html >>> https://docs.python.org/2.7/library/functools.html >>> >>> Wes McKinney >>> CTO and founder of Lambda Foundry >>> CEO/Founder DataPad >>> DataPad http://www.datapad.io/ >>> Pydata 2 weeks ago in silicon valley >>> http://pydata.org/sv2014/ >>> pandas does not scale well >>> badger >>> http://thiagomarzagao.com/2013/11/11/pandas-shortcomings/ >>> http://www.linkedin.com/pub/wes-mckinney/0/b27/b96 >>> >>> dabeaz >>> http://lanyrd.com/2014/pycon/scxqgw/#link-xtzz >>> http://pyvideo.org/video/2575/generators-the-final-frontier >>> >>> http://pyvideo.org/video/2286/the-ipython-notebook-revolution >>> >>> http://tox.readthedocs.org/en/latest/ >>> http://en.wikipedia.org/wiki/Jenkins_(software) >>> >>> wp:BW3 >>> wp:Schlotzsky's >>> >>> weed snipping robot >>> >>> Chateau Blanche on Rome-Hilliard Rd first traffic light north of Renner >>> Rd >>> Panera >>> >>> http://www.thecoli.com/threads/the-robots-have-won-panera-bread-replaces-cashiers-with-kiosks.213137/page-4 >>> http://www.freerepublic.com/focus/f-chat/3152445/posts >>> >>> frozen sets >>> make hashable things that are not normally hashable >>> convert dictionary into tuple of tuples >>> sort keys >>> >>> eat at joes:~$ python3 >>> Python 3.2.3 (default, Sep 25 2013, 19:30:56) >>> [GCC 4.7.2] on linux2 >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> eat at joes:~$ python >>> Python 2.7.3 (default, Sep 26 2013, 16:38:10) >>> [GCC 4.7.2] on linux2 >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> >>> todo >>> >>> bring some screws for laptop hinge >>> M3 M3.5 M4 >>> _______________________________________________ >>> CentralOH mailing list >>> CentralOH at python.org >>> https://mail.python.org/mailman/listinfo/centraloh >>> >> >> >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> https://mail.python.org/mailman/listinfo/centraloh >> >> > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Thu Sep 11 02:07:06 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Wed, 10 Sep 2014 20:07:06 -0400 Subject: [CentralOH] How Do You Learn Python? Message-ID: <20140910200706.6f2a3959.jep200404@columbus.rr.com> How do you learn Python? Sugata Mitra's video[1] reminded me of how Ben Roger was impressed with how pair programming was a really fast way to come up to speed on a project that other's have been working on. It'll be interesting to see what comments Ben has comparing pair programming with Mitra's SOLE. To answer my question, I usually go through a book[2], and do many many little experimental programs as I go along to reinforce what is in the book and explore the edges. What I can not figure out by myself, I ask for help on mailing lists or at dojos. With the informal gatherings like the dojos, often the most interesting stuff is stuff volunteered by someone else; stuff that I was not looking for. [1] http://www.ted.com/talks/sugata_mitra_build_a_school_in_the_cloud [2] I used Mark Lutz' "Learning Python", 4th edition. There's now a 5th edition. http://shop.oreilly.com/product/0636920028154.do Folks who went to PyOhio could get the ebook version for free. Thanks O'Reilly! From jep200404 at columbus.rr.com Thu Sep 11 02:16:30 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Wed, 10 Sep 2014 20:16:30 -0400 Subject: [CentralOH] Show Me What's Cool About Pytoolz In-Reply-To: References: <20140814031508.4c6abfe0.jep200404@columbus.rr.com> Message-ID: <20140910201630.79b00026.jep200404@columbus.rr.com> On Tue, 9 Sep 2014 14:33:36 -0400, Brian Costlow wrote: > Hey Jason, > > How about a COhPy talk on pytoolz? I'd like to see it. From Hewitsd at edgehill.ac.uk Fri Sep 12 08:48:27 2014 From: Hewitsd at edgehill.ac.uk (Dawn Hewitson) Date: Fri, 12 Sep 2014 06:48:27 +0000 Subject: [CentralOH] CentralOH Digest, Vol 89, Issue 5 In-Reply-To: References: Message-ID: <1410504507896.64365@edgehill.ac.uk> Would be really interested in the tools discussion. Going to Pycon UK next week really excited. Dawn Hewitson MBCS, MA, PGCM, PGCE Senior Lecturer and Course Leader PGCE Computer Science and IT Edge Hill University Tel: 01695 650979 ________________________________________ From: CentralOH on behalf of centraloh-request at python.org Sent: 11 September 2014 10:00 To: centraloh at python.org Subject: CentralOH Digest, Vol 89, Issue 5 Send CentralOH mailing list submissions to centraloh at python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/centraloh or, via email, send a message with subject or body 'help' to centraloh-request at python.org You can reach the person managing the list at centraloh-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of CentralOH digest..." Today's Topics: 1. How Do You Learn Python? (jep200404 at columbus.rr.com) 2. Show Me What's Cool About Pytoolz (jep200404 at columbus.rr.com) ---------------------------------------------------------------------- Message: 1 Date: Wed, 10 Sep 2014 20:07:06 -0400 From: jep200404 at columbus.rr.com To: centraloh at python.org Subject: [CentralOH] How Do You Learn Python? Message-ID: <20140910200706.6f2a3959.jep200404 at columbus.rr.com> Content-Type: text/plain; charset=US-ASCII How do you learn Python? Sugata Mitra's video[1] reminded me of how Ben Roger was impressed with how pair programming was a really fast way to come up to speed on a project that other's have been working on. It'll be interesting to see what comments Ben has comparing pair programming with Mitra's SOLE. To answer my question, I usually go through a book[2], and do many many little experimental programs as I go along to reinforce what is in the book and explore the edges. What I can not figure out by myself, I ask for help on mailing lists or at dojos. With the informal gatherings like the dojos, often the most interesting stuff is stuff volunteered by someone else; stuff that I was not looking for. [1] http://www.ted.com/talks/sugata_mitra_build_a_school_in_the_cloud [2] I used Mark Lutz' "Learning Python", 4th edition. There's now a 5th edition. http://shop.oreilly.com/product/0636920028154.do Folks who went to PyOhio could get the ebook version for free. Thanks O'Reilly! ------------------------------ Message: 2 Date: Wed, 10 Sep 2014 20:16:30 -0400 From: jep200404 at columbus.rr.com To: "Mailing list for Central Ohio Python User Group \(COhPy\)" Subject: [CentralOH] Show Me What's Cool About Pytoolz Message-ID: <20140910201630.79b00026.jep200404 at columbus.rr.com> Content-Type: text/plain; charset=US-ASCII On Tue, 9 Sep 2014 14:33:36 -0400, Brian Costlow wrote: > Hey Jason, > > How about a COhPy talk on pytoolz? I'd like to see it. ------------------------------ Subject: Digest Footer _______________________________________________ CentralOH mailing list CentralOH at python.org https://mail.python.org/mailman/listinfo/centraloh ------------------------------ End of CentralOH Digest, Vol 89, Issue 5 **************************************** ________________________________ Edge Hill University Shortlisted for Times Higher Education University of the Year ________________________________ This message is private and confidential. If you have received this message in error, please notify the sender and remove it from your system. Any views or opinions presented are solely those of the author and do not necessarily represent those of Edge Hill or associated companies. Edge Hill University may monitor email traffic data and also the content of email for the purposes of security and business communications during staff absence. From jcfolsom at pureperfect.com Wed Sep 17 01:15:51 2014 From: jcfolsom at pureperfect.com (Chris Folsom) Date: Tue, 16 Sep 2014 16:15:51 -0700 Subject: [CentralOH] =?utf-8?b?MjAxNC0wOC0yNV/mnIPorbBfU2NyaWJibGVzXyA=?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140916161551.7098ff60d8000ac98b0356cd27c73871.273815b410.wbe@email04.secureserver.net> An HTML attachment was scrubbed... URL: From eric at intellovations.com Wed Sep 17 01:33:37 2014 From: eric at intellovations.com (Eric Floehr) Date: Tue, 16 Sep 2014 19:33:37 -0400 Subject: [CentralOH] =?utf-8?b?MjAxNC0wOC0yNV/mnIPorbBfU2NyaWJibGVzXyA=?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= In-Reply-To: <20140916161551.7098ff60d8000ac98b0356cd27c73871.273815b410.wbe@email04.secureserver.net> References: <20140916161551.7098ff60d8000ac98b0356cd27c73871.273815b410.wbe@email04.secureserver.net> Message-ID: > Is there any way to unsubscribe from this and still stay on the Cohpy > list? These scribbles emails are worse than spam. They're basically just > gibberish. > One person's spam is another person's ham. These are the notes from the meetings and dojos. If you think you could make a better secretary, please come to the meetings and take notes. This is a do-ocracy, not a complain-ocracy. If these messages are so annoying to you, I would have thought someone of your self-reported intelligence should find it easy to create a filter that that auto-deletes messages from the COhPy list with the word "Scribbles" in the title fairly easily without having to spam the list. Hopefully that's enough of a hint to you on how you might answer your own question. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Mon Sep 22 22:31:20 2014 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Mon, 22 Sep 2014 16:31:20 -0400 Subject: [CentralOH] Columbus Code Jam 2014-09-24 - 6:30 Message-ID: A brief reminder that Code Jam is happening on Wednesday evening. It's a language-, platform-, and skill-level- agnostic hack night. Len. Columbus Code Jam - September 24, 2014 Columbus Code Jam Wednesday, September 24, 2014 6:30PM - ~9PM TechColumbus, 1275 Kinnear Rd, Columbus, OH Columbus Code Jam is a casual meetup to pair on cool projects, to get one-on-one guidance from experienced developers & sys admins, to network, learn, and eat pizza. Info and RSVP at our meetup page . -- Len Jaffe - Information Technology Smoke Jumper - lenjaffe at jaffesystems.com 614-404-4214 @LenJaffe www.lenjaffe.com Host of Columbus Code Jam - @CodeJamCMH Advent Planet - An Aggregation of Online Advent Calendars. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jep200404 at columbus.rr.com Tue Sep 23 13:46:49 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 23 Sep 2014 07:46:49 -0400 Subject: [CentralOH] =?utf-8?q?2014-09-19_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140923074649.6f8c8083.jep200404@columbus.rr.com> wp:spam wp:Spamalot wp:Monty Python and the Holy Grail wp:Monty Python wp:Python wp:ruthenium speed of edge of platter of 15000 RPM drive (e.g. Cheetah) >>> (3*math.pi) * 15000 /12 /5280 * 60 133.87468694274688 #!/usr/bin/env python rows = 61 columns = 10 for speed in xrange(10, 65+1): print '\n' for row in xrange(rows): for column in xrange(columns): distance = float(row * columns + column) / 100. if column == 0: print '%2d | %4.2f' % (speed, distance), time = (60. / speed) * distance # print distance, # print '%.2f:%5.2f' % (distance, time), if column % 5 == 0: print '|', print '%5.2f' % (time,), print wp:TSD rally wp is prefix for wikipedia From jep200404 at columbus.rr.com Wed Sep 24 00:34:20 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 23 Sep 2014 18:34:20 -0400 Subject: [CentralOH] =?utf-8?b?MjAxNC0wOS0xOSDpgZPloLQgU2NyaWJibGVzITog?= =?utf-8?q?Erratum=3A_Computer_Stuff=2C_Not_Reptile?= In-Reply-To: <20140923074649.6f8c8083.jep200404@columbus.rr.com> References: <20140923074649.6f8c8083.jep200404@columbus.rr.com> Message-ID: <20140923183420.6f11d4c7.jep200404@columbus.rr.com> On Tue, 23 Sep 2014 07:46:49 -0400, jep200404 at columbus.rr.com wrote: > wp:Python Oops, of course I meant "wp:Python (programming language)". From jep200404 at columbus.rr.com Wed Sep 24 00:49:47 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Tue, 23 Sep 2014 18:49:47 -0400 Subject: [CentralOH] 2014-09-19 Refactored Derivation of Python From Spam In-Reply-To: <20140923074649.6f8c8083.jep200404@columbus.rr.com> References: <20140923074649.6f8c8083.jep200404@columbus.rr.com> Message-ID: <20140923184947.3bcb1f5a.jep200404@columbus.rr.com> On Tue, 23 Sep 2014 07:46:49 -0400, jep200404 at columbus.rr.com wrote: > wp:spam > wp:Spamalot > wp:Monty Python and the Holy Grail > wp:Monty Python On Tue, 23 Sep 2014 18:34:20 -0400, jep200404 at columbus.rr.com wrote: > wp:Python (programming language) I don't know why I didn't think of the following refactored links. I had forgotten the spam had originated with Monty Python in the skit. Duh! wp:spam wp:Spam (Monty Python) wp:Monty Python wp:Python (programming language) From jep200404 at columbus.rr.com Sat Sep 27 14:16:09 2014 From: jep200404 at columbus.rr.com (jep200404 at columbus.rr.com) Date: Sat, 27 Sep 2014 08:16:09 -0400 Subject: [CentralOH] =?utf-8?q?2014-09-26_=E9=81=93=E5=A0=B4_Scribbles_?= =?utf-8?b?76SY5pu4L+aDoeaWhz8=?= Message-ID: <20140927081609.3b97f615.jep200404@columbus.rr.com> wp: prefix means wikipedia 1 Tishrei 5775 begins soon (when this was written, not as when posted) wp:Rosh Hashanah ifconfig | grep 'inet ' ;python -m SimpleHTTPServer 8000 Anything over iron is heavy. Did colaborative[1] Ipython Notebook over local Wifi. http://172.17.153.135:8888/tree http://172.17.153.135:8889/tree Failed to retrieve MathJax from 'https://cdn.mathjax.org/mathjax/latest/MathJax.js' One of the colaborators did things, like !ls then !ls / then !ls -l / That success was scary, creepy. Hmmm, how does one share Ipython Notebook without such huge security concerns? Also, we found out that Ipython Notebook is not so colaborative. When multiple people were editing the same notebook, it seemed that the last one to save, is the one that wins. Then we found "The IPython Notebook is currently a single user web application." from the following link. https://github.com/ipython/ipython/wiki/IPEP-3:-Multiuser-support-in-the-notebook https://github.com/nosila/Shapely_PyOhio/blob/master/Shapely_PyOhio_2014.ipynb http://nbviewer.ipython.org/github/nosila/Shapely_PyOhio/blob/master/Shapely_PyOhio_2014.ipynb Are you a strange loop? http://python3wos.appspot.com/ SQL Server can administer it from its GUI tool pymsql 19:38 It's dark. 2 ** 32 One person was trying to use SQL Server from Python on a MS Windows computer using the adodbapi library. That person is new to Python, and was trying to do everything in Python 3. https://pypi.python.org/pypi/adodbapi/2.4.0.1 http://adodbapi.sourceforge.net/ says in part Python 2.5 or higher (with no mention of Python 3) so try Python 2 (not Python 3) Unfortunately, much Python in the real world has to be done in Python 2, because some library that one needs has not been ported to Python 3. Of course, after this person gets their program working under Python 2, they could port the library to Python 3 and be a superhero. adodbapi is not even on the http://python3wos.appspot.com/ list. That person was doing raw SQL, which led to the following comment by several: ORMs are way cool SQLAlchemy DjangoORM Oracle cx oracle postgresql sqlite folks like postgresql Santiago Chile has very good seafood 113.5 of 114 miles Yellow Springs and back on $250 seat. Butt not sore. One person had Escher's House of Stairs on their computer, which led to GEB[2], which that person has, but maybe has not finished. Uranium nuclei are oblong gold and lead nuclei are round Is there a correlation between nuclei oblongness and fissionability? UltraEdit is the supreme ultimate editor for MS Windows. has full Perl library for regex now available for Mac and Linux Microsoft had Xenix Zombies are popular. They like fish sticks. http://dilbert.com/strips/comic/2014-09-27/ [1] The spelling of collaborative has been changed to accomodate an unnamed beverage sponsor. [2] wp:G?del, Escher, Bach This book just keeps coming up, recursively. From joskra42.list at gmail.com Mon Sep 29 16:46:32 2014 From: joskra42.list at gmail.com (Joshua Kramer) Date: Mon, 29 Sep 2014 10:46:32 -0400 Subject: [CentralOH] Regex Question Message-ID: Hello All, I have an interesting challenge with a regex. I need to match any line that: Does not contain a ! or a # as the first non-whitespace character Contains the word 'if', but not the string "-if" or the string "ifdef" So this should match: " if a=1 then" These should not match: "!* If this code runs..." "#ifdef something" " !If this code runs..." Here's the regex I have so far: ^\s*[^!#].*[^-]if[^a-zA-Z0-9_].* This works for the most part, except it is matching lines that begin with any number of whitespaces and an exclamation point. So it incorrectly matches this, for example: " ! if you have a comment..." This is undesired behavior. What am I missing here? Thanks! -JK -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Mon Sep 29 17:35:37 2014 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Mon, 29 Sep 2014 11:35:37 -0400 Subject: [CentralOH] Regex Question In-Reply-To: References: Message-ID: [^!#] will match whitespace, as will .*. You're probably going to need to delve into zero-width look-aheads and look-behinds. On Mon, Sep 29, 2014 at 10:46 AM, Joshua Kramer wrote: > Hello All, > > I have an interesting challenge with a regex. I need to match any line > that: > Does not contain a ! or a # as the first non-whitespace character > Contains the word 'if', but not the string "-if" or the string "ifdef" > > So this should match: > > " if a=1 then" > > These should not match: > > "!* If this code runs..." > "#ifdef something" > " !If this code runs..." > > Here's the regex I have so far: > > ^\s*[^!#].*[^-]if[^a-zA-Z0-9_].* > > This works for the most part, except it is matching lines that begin with > any number of whitespaces and an exclamation point. So it incorrectly > matches this, for example: > > " ! if you have a comment..." > > > This is undesired behavior. > > What am I missing here? > > Thanks! > -JK > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > > -- Len Jaffe - Information Technology Smoke Jumper - lenjaffe at jaffesystems.com 614-404-4214 @LenJaffe www.lenjaffe.com Host of Columbus Code Jam - @CodeJamCMH Advent Planet - An Aggregation of Online Advent Calendars. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jocassid at gmail.com Tue Sep 30 07:36:17 2014 From: jocassid at gmail.com (John Cassidy) Date: Tue, 30 Sep 2014 01:36:17 -0400 Subject: [CentralOH] Regex Question In-Reply-To: References: Message-ID: based on what you're looking for processing the data (i assume it's in a file) line by line might be easier to code than coming up with a regex On Sep 29, 2014 10:46 AM, "Joshua Kramer" wrote: > Hello All, > > I have an interesting challenge with a regex. I need to match any line > that: > Does not contain a ! or a # as the first non-whitespace character > Contains the word 'if', but not the string "-if" or the string "ifdef" > > So this should match: > > " if a=1 then" > > These should not match: > > "!* If this code runs..." > "#ifdef something" > " !If this code runs..." > > Here's the regex I have so far: > > ^\s*[^!#].*[^-]if[^a-zA-Z0-9_].* > > This works for the most part, except it is matching lines that begin with > any number of whitespaces and an exclamation point. So it incorrectly > matches this, for example: > > " ! if you have a comment..." > > > This is undesired behavior. > > What am I missing here? > > Thanks! > -JK > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.albright at gmail.com Tue Sep 30 14:44:17 2014 From: nick.albright at gmail.com (Nick Albright) Date: Tue, 30 Sep 2014 08:44:17 -0400 Subject: [CentralOH] Regex Question In-Reply-To: References: Message-ID: Along those lines, you might try changing the first [^!#] to [^!#\s] so it won't match a whitespace character. On Mon, Sep 29, 2014 at 11:35 AM, Len Jaffe wrote: > [^!#] will match whitespace, as will .*. > > You're probably going to need to delve into zero-width look-aheads and > look-behinds. > > On Mon, Sep 29, 2014 at 10:46 AM, Joshua Kramer > wrote: > >> Hello All, >> >> I have an interesting challenge with a regex. I need to match any line >> that: >> Does not contain a ! or a # as the first non-whitespace character >> Contains the word 'if', but not the string "-if" or the string "ifdef" >> >> So this should match: >> >> " if a=1 then" >> >> These should not match: >> >> "!* If this code runs..." >> "#ifdef something" >> " !If this code runs..." >> >> Here's the regex I have so far: >> >> ^\s*[^!#].*[^-]if[^a-zA-Z0-9_].* >> >> This works for the most part, except it is matching lines that begin with >> any number of whitespaces and an exclamation point. So it incorrectly >> matches this, for example: >> >> " ! if you have a comment..." >> >> >> This is undesired behavior. >> >> What am I missing here? >> >> Thanks! >> -JK >> >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> https://mail.python.org/mailman/listinfo/centraloh >> >> > > > -- > Len Jaffe - Information Technology Smoke Jumper - > lenjaffe at jaffesystems.com > 614-404-4214 @LenJaffe > www.lenjaffe.com > Host of Columbus Code Jam - > @CodeJamCMH > Advent Planet - An Aggregation of > Online Advent Calendars. > > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Tue Sep 30 15:34:45 2014 From: eric at intellovations.com (Eric Floehr) Date: Tue, 30 Sep 2014 09:34:45 -0400 Subject: [CentralOH] Regex Question In-Reply-To: References: Message-ID: On Mon, Sep 29, 2014 at 10:46 AM, Joshua Kramer wrote: > Hello All, > > I have an interesting challenge with a regex. I need to match any line > that: > Does not contain a ! or a # as the first non-whitespace character > Contains the word 'if', but not the string "-if" or the string "ifdef" > I'm not a regex master, and maybe the goal is to do this in a single line. If that's the case, I don't know how to do that. But if I were solving the problem, I would do it in two steps: 1. Is this a comment line (a line whose first non-whitespace character is ! or #)? 2. If so, stop 3. If not, does it contain the word "if"? found_if_statement = false if not re.match("^\s*[!#]", string): found_if_statement = re.match("[^-]if\w", string) if found_if_statement: ...do stuff... A couple of other notes... ^\s*[^!#].*[^-]if[^a-zA-Z0-9_].* > [^a-zA-Z0-9_] can be simplified to \w Also, that "match anything except" means you still require something after the if, which might be ok for your purposes. So a line the end with "if" won't be matched. You could use \b if you want that. But both your original, \w, and \b all will match "if.", "if)", "if]", etc. which again may be ok. -------------- next part -------------- An HTML attachment was scrubbed... URL: