[CentralOH] 2016-01-26 會議 Scribbles 落書/惡文?: vim block modes regex screenkey grep sed awk perl pcre SimpleHTTPServer ftplib antigravity cProfile pyvmmonitor snakeviz tqdm json.tool squealing-octo-meow lilypond music21 BWV GEB mcribadamus pdf miner mocks airploy has md5 sha3

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Tue Jan 26 10:57:58 EST 2016


Thanks to Pillar Technology, Chris Baker, and Paul Schwendenman
for hosting the meeting at The Forge.
I think we had more pizza than we could eat.

###############################################################################

Jim Prior presented on three visual block modes in vim.

V   whole lines (classic vi)
v   start and stop at arbitrary chars (within lines)
^V  column mode (rectagular)

        insert
        cut
        copy
        paste
        <
        >
        ~
        change

https://github.com/james-prior/reduce/
who at cohpy:~/20160125$ tr '\r' '\n' <123-13_7TEN_37insec_SLAB.txt | column -t -s "      " >123
who at cohpy:~/20160125$ vi 123
who at cohpy:~/20160125$ tr '[0-9]' '[a-z]' <123 >abc

Used screenkey program to show what keys were being pressed.
Screenkey has several bad thing,
but is the least worst program for showing key presses.
Improving is on my todo list.

Regular expressions (regexes) were used which led to discussion about them.
They are very useful. You should learn them.
Start with the simple, progress to the complex.
It is easy to overwhelm yourself. Be gentle.
Learn a little bit, then use it until it is boring.
Then learn a little more.

wp: prefix means Wikipedia
To get good answers, consider following the advice in the links below.
http://catb.org/~esr/faqs/smart-questions.html
http://web.archive.org/web/20090627155454/www.greenend.org.uk/rjk/2000/06/14/quoting.html

wp:regular expression
study tutorial/howto
https://docs.python.org/2/howto/regex.html#regex-howto
https://docs.python.org/2/library/re.html

later:
Mastering Regular Expressions, 3rd Edition 
Understand Your Data and Be More Productive
By Jeffrey E.F. Friedl
Publisher: O'Reilly Media
Final Release Date: August 2006 
http://shop.oreilly.com/product/9780596528126.do

There are a number of classic programs that use regexes.
You should learn how to use them.

grep awk sed

Perl has fancier regexes than classic tools.
pcre
wp:Perl Compatible Regular Expressions
Python's regexes and Ruby's regexes are similar to Perl's regular expressions.

should do lightning talk on SimpleHTTPServer

https://en.wikibooks.org/wiki/Learning_the_vi_Editor/Vim/Modes
http://media.vimcasts.org/videos/22/visual_block.ogv

###############################################################################

Eric Floehr talked about using various Python modules from the command line

python -m ftplib ftp.ncdc.noaa.gov -l
python -m antigravity
python -m cProfile
mkvirtualenv cohpy-20160125 -p /opt/python3.5/bin/python3

import glob
from tqdm import tqdm
https://pypi.python.org/pypi/tqdm

python -m cProfile -o profile.prof progress-1.py

pip install snakeviz

snakeviz profile.prof
generates spiffy web page (javascript??)

pyvmmonitor

pyvmmonitor/pyvmmonitor-ui

python -m json.tool

python -m calendar
cal

Maximum resolution of central display (projector) seems to be 1024x768.
Beyond that it behaves poorly.

###############################################################################

Chris Baker 
https://github.com/folkengine
https://github.com/folkengine/squealing-octo-meow

lilypond open source music notation
wp:LilyPond

beautiful
    python
    clojure

music21
    MIT
    interfaces with lilypond & jupyter
    http://mit.edu/music21/

docker

ironpython runs multiple langauges
wp:IronPython
    (Microsoft Windows stuff)

dockerhub free hosting

oceanmeow
    https://twitter.com/OceanMeow?
    https://instagram.com/ocean.meow/?
    https://www.facebook.com/OceanLeng?

digital ocean

wp:Bach-Werke-Verzeichnis#BWV
Godel Escher Bach
wp:Hofstadter's butterfly

python rocks

folkengine
https://github.com/folkengine/
pyohio

wp:Nostradamus
https://github.com/ColumbusCodeClub/mcribadamus
wp:McRib

tutum
    is also docker

###############################################################################

Travis Risner
    PDF miner
        http://www.unixuser.org/~euske/python/pdfminer/index.html
        https://pypi.python.org/pypi/pdfminer/
        https://github.com/euske/pdfminer/
    extraction

airploy connect to "experience'

###############################################################################

andrew kubera

skip the docs with mocks
SkipTheDocksWithMocks (jupyter)
https://github.com/akubera/COhPy-Presentations/blob/master/2016-01/SkipTheDocsWithMocks.ipynb

    Uses mocks for reverse engineering APIs.

https://github.com/akubera

__truediv__
__rtruediv__
__floordiv__
round(.153, 2)
__iadd__

###############################################################################

dave from dojo

Hormel Mary Kitchen Corned Beef Hash
America's No. 1 selling hash
http://www.hormel.com/Brands/Hormel-Mary-Kitchen-Hash/Mk-Hash-Varieties/HORMEL-sup-reg;-sup-MARY-KITCHEN-sup-reg;-sup-Corn.aspx

hashlib
hormel hash

sha3
md5 broken
    $0.25 for clash for MD5
hash clash

###############################################################################

OSU Open Source Club seems morose.
Will that affect PyOhio?
A student will check it out.
5TeV

Yikes! No more pyvideo.org???
http://bluesock.org/~willkg/blog/pyvideo/status_20160115.html
Fortunately, the data is available.
https://github.com/pyvideo/pyvideo-data/
https://github.com/pyvideo/steve
We must do something.

hummus at Brazenhead tastes good. a bit too salty
tater tots disappear quickly


More information about the CentralOH mailing list