[CentralOH] 2016-07-25 會議 Scribbles 落書/惡文?: pyohio.org Cristina Videira Lopes' "Exercises in Programming Style" travis risner regex automate the boring stuff al sweigart niel ludban numpy scipy ufuncs sinc stem plot convolution
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Tue Jul 26 11:32:30 EDT 2016
Thanks again to Pillar and Chris Baker for hosting us at The Forge
with plenty of food and beverages.
Chris bought a 12' HDMI cable from Microcenter. It was the longest they had.
PyOhio is this weekend.
Go to pyohio.org to register.
Jan is T-shirt chair
PyOhio has some extra tee-shirts that they will sell off
###############################################################################
Chris Baker talked a bit about the most interesting recent Python thing to him.
Cristina Videira Lopes' "Exercises in Programming Style"
book and Curry on presentation.
The code is on github.
Exercises in Programming Style
http://www.ebooks.com/1520809/exercises-in-programming-style/lopes-cristina-videira/
ebook is PDF
http://www.curry-on.org/
https://www.youtube.com/watch?v=JlPMOszyjjo
word counting https://www.ics.uci.edu/~lopes/
https://www.ics.uci.edu/~lopes/https://github.com/christa
https://github.com/crista/programming-conference.github.io
https://github.com/crista/exercises-in-programming-style
https://gist.github.com/folkengine/ce0eeb843c2791db44af46877a2bdc6f
###############################################################################
18:43-~19:30 travis risner presentation on regexes
use regex objects as keys in a dictionary
play_firewall_config.txt
PlayParse.py
presentation based on examples from
Automate the Boring Stuff by Al Sweigart
dojo has a copy of this
https://automatetheboringstuff.com/
http://inventwithpython.com/
http://pyvideo.org/video/3692/automating-your-browser-and-desktop-apps
Al gave the keynote at last year's PyOhio.
https://github.com/deeppunster/RegEx101
None did not show up in Jupyter notebook
Travis worked around that indirectly with
print(mo3 == None)
in cell #8 from
http://nbviewer.jupyter.org/github/deeppunster/RegEx101/blob/master/RegEx 101 with answers.ipynb
https://github.com/james-prior/RegEx101/commit/b8154371a155c8d7812e5e54daa1ddcd36a77f78
I need to:
Need to make a little notebook about how to show None
Also compare to Python prompt and standalone program.
>>> repr('\n')
versus
repr('\n') in Jupyter Notebook
versus
standalone program
.findall() is interesting
regex = r'.at' matches 'at This that and the other.' starting at 10, not 0
to serve man
wp:To Serve Man
Nesting in monster verbose regex was hard to follow,
so use indentation to indicate nesting (like Python does).
https://github.com/james-prior/RegEx101/commit/33a457050636bdf1423aa0c04973f89deef87773
Show pictures of recommended book covers with links.
Automate the Boring Stuff
Mastering Regular Expressions by Jeffrey Friedl
premature optimization is the root of all evil
emacs versus vi
https://www.xkcd.com/378/ Real Programmers
###############################################################################
19:37 Niel Ludban
1999-2000 first Python
https://bitbucket.org/nludban/
https://bitbucket.org/nludban/cohpy-20160725-sigproc
Pretty rendering.
will show up in a couple of days
need to distinguish input from output
Jupyter Notebook makes that easy
Forgot to ask what he thinks of bitbucket.org versus github
this presentation is to show off numpy and scipy
numpy and scipy are based on MATLAB
smells like fortran in some places
ufuncs
http://docs.scipy.org/doc/numpy/reference/ufuncs.html
stem plot to show emphasize (under)sampling
http://matplotlib.org/examples/pylab_examples/stem_plot.html
sinc function
wp:Sinc function
only multiple of π that yields non-zero output is 0.
sinc versus delta
wp:Euler's identity
j=sqrt(-1)
eighth roots of i?
Python ses "j" instead of "i" for square root of -1
to reduce accidents with the common variable name
That's common in electrical engineering.
https://en.wikipedia.org/wiki/Complex_numbers#Notation
wp:Convolution
used for pattern matching
man on bicycle with fish shroud pictures
standard
hard to find image on internet
http://www.phrases.org.uk/images/fish-bicycle.jpg
https://fishandbicylces.files.wordpress.com/2012/06/bicycles-7.jpg
More information about the CentralOH
mailing list