[CentralOH] 2016-03-28 會議 Scribbles 落書/惡文?: islice naked except: clauses are bad pi3 leap day challenge jason green sh samuel rivera baby learning ethan dicks python on rpi mike rehner ubuntu make eric floehr comprehensions built-in functions brian costlow pyohio 2016 linking wizard
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Thu May 26 16:37:31 EDT 2016
Thanks to Pillar for hosting us.
PyOhio is July 30, 31 2016.
32 folks
Pi3 is announced
ARMv8, quad core, 1.2 GHz, 1GB RAM, wifi b/g/n, bluetooth, $35
http://linuxgizmos.com/quad-core-64-bit-pi-3-is-official-with-wifi-bt-and-35-price/
http://news.softpedia.com/news/raspberry-pi-3-officially-released-ten-time-more-powerful-than-original-model-501125.shtml
http://fossforce.com/2016/02/official-raspberry-pi-3/
http://lxer.com/module/newswire/view/226426/
The Simple Truth About What Xamarin Was All Along to Microsoft,
Just Like Ximian and Novell (Post-Patent Deal)
http://techrights.org/2016/02/28/xamarin-ximian-and-novell/
SCO vs. IBM looks like it's over for good
http://www.theregister.co.uk/2016/02/29/sco_vs_ibm_over/
Confirmed: IBM slurps up Bruce Schneier with Resilient purchase
http://www.theregister.co.uk/2016/02/29/confirmed_ibm_slurps_up_bruce_schneier_with_resilient_purchase/
Old Boy
Play Misty For Me
The Producers
http://www.breitbart.com/big-hollywood/2016/02/29/watch-nathan-lane-matthew-broderick-mock-trump-supporters-jimmy-kimmel-live/
subbed, not dubbed
(read subtitles instead of dubbing in English)
wp:The Way of the Gun
wp:Brotherhood of the Wolf
bar.foo
google owns .foo domain?
google foobar recruiting
google cardboard
Michael
Quantopia
pays coders a cut of
http://www.quantopia.net/
wp:Quantopian
test on their system
Bourne shell's pipe beats Python all to heck
toolz.pipe
wp:Freaknik
GitHubber wants to revive the first Unix in a PDP-7 emulator
http://www.theregister.co.uk/2016/02/29/githubber_wants_to_revive_the_first_unix_in_a_pdp7_emulator/
Does Disney have openings for Python talent?
http://www.breitbart.com/immigration/2016/02/29/disney-worker-american-father-forced-to-retrain-foreign-hires-it-was-torture/
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Leap Day Challenge
write Python code to figure out when next COhPy meeting is on a leap day
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Jason Green 10 minute lightning talk on sh module
See github.com/gjigsaw for ipynb file of this presentation.
Ask him for it if you don't see it.
module: sh
author: Andrew Moffat
source: https://github.com/amoffat/sh
docs: https://amoffat.github.io/sh
# pip install sh
import sh
sh.ls()
sh.ls('-l')
sh.pip('install', 'pytest')
!py.test --help
sy.py.test # This does not work, so:
sh.Command('py.test')('--help') # This works.
sh.Command('/bin/ls')('-alh')
lscmd = sh.Command('/bin/ls') # Compare to functools.partial().
lscmd('-alh')
sh.df('-T', '--block-size', '1G') # Last two arguments are associated.
sh.df('-T', blocksize='1G') # This shows meaning of '1G' better.
sh.sleep(3) # this blocks.
print('delayed')
sh.sleep(3, bg=True) # This does not block.
print('immediate')
sh.sort(sh.du(sh.glob('*'), '-sb'), '-rn') # pipe (ugly syntax)
import toolz
sh.wc(sh.ls('/etc', '-l'), '-l')
sh.git.init('foo') # Access sub-commands via dot notation.
output = sh.ls('/')
output.exit_code # See exit codes.
sh.ls('*.ipynb') # Fails, because ls does not grok globs.
sh.ls(sh.glob('*.ipynb')) # This works.
lslah = sh.ls.bake('-lah') # Bake (ala partial) an argument into command.
lslah('/')
# See https://amoffat.github.io/sh
# Works on Linux and OSX only. (No MS Windows)
ipython notebook with reveal.js and rise
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Samuel Rivera
post-doc reasearcher for a few more weeks
Sam presented about tracking babies' eyes to infer when they learn.
learn categories: three months old
first speech: 12 months old
vocabulary spurt: 18 months
how do labels or words affect category learning?
babies are too young to say what they are thinking, so track eyes
Modeling category learning dynamics with Self Organizing Maps (with Python)
categories and words
e.g., cats and living things
Plunkett: labels could override what categories you learn
Plunkett, Hu, & Cohen, 2008
Gliozzi labels as features
unsupervised feature-based learning of the categories using
SOM: self organizing maps
github.com/JustGlowing/minisom
https://github.com/sriveravi/som
does not follow PEP8
http://samuelrivera.co/
sriveravi at gmail.com
sriveravi.github.io
exemplar
likes Python
sexy language
can keep using after school because it's free
sharing culture (like academia)
wp:The Cathedral and the Bazaar
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Ethan Dicks
next month will show Raspberry Pi stuff that uses Python
Pi Zero with Sense Hat
Pi 3 released today: has wifi & bluetooth for $35
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Mike Rehner
Easy way to install whole bunch of Python stuff in Ubuntu.
Ubuntu Make will install fat Python
install personal package archive (ppa)
https://wiki.ubuntu.com/ubuntu-make
https://github.com/ubuntu/ubuntu-make
do:
Ubuntu == 16.04:
sudo apt-get install ubuntu-make
Ubuntu < 16.04:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
java was not installed on his machine
umake --h
umake ide phcharm
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Eric Floehr
show comprehensions and some built-in functions
min(), max(), any(), all(), sum()
mkvirtualenv 201502cohpy
workon 201502cohpy
jupyter notebook
weatherunderground api
wunderground.com/weather/api/?MR=1
When catching exceptions, mention specific exceptions whenever possible
instead of using a bare except: clause.
yes:
try:
# Python2
import urllib2
except ImportError: # That ImportError is important.
# Python2
import urllib.request as urllib2
no:
try:
# Python2
import urllib2
except: # That ImportError is important.
# Python2
import urllib.request as urllib2
comprehensions
list
set
dictionary
generator expression (not really a comprehension)
To get n'th item of a generator, use islice from itertools.
Please post the jupyter notebook on github.com/cohpy.
(redact api keys or passwords)
What year is the next Leap Day COhPy meeting?
Solve with Python.
Mail your code to eric at intellovations.com.
Someone has been slack in getting PyOhio web site up for 2016.
Still says August 1-2, 2015.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Brian Costlow
PyOhio 2016
main days are July 30 and 31, 2016.
CFP will go out in March
Want beginners to fill about 1/3 of slots.
Social gathering on Monday at Linking Wizard.
Linking Wizard is at Fifth Ave and Grandview Ave.
More information about the CentralOH
mailing list