[CentralOH] 2016-09-30 道場 Scribbles 落書/惡文? filtering characters; MyStringIO; gh-pages branch; DNS; vendor lock-in; riak ts microPython IoT awesome-python psutil ptpython watchdog sched atomicwrites; index variable names; math Æsthetic; TeX python-bookbinding; Ayn self-less methods; iterators; argument-per-line; hyperledge; markdown; org mode; Markov Chain Sine Qua Nons

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sat Oct 1 16:43:38 EDT 2016


five folks tonight

What bugs are there in the following?
What improvements are there to the following?

    http://nbviewer.jupyter.org/github/james-prior/cohpy/blob/master/20160930-dojo-passing-ascii-printable-reinventing-stringio.ipynb

for repo in `git remote`; do echo "$repo":;git fetch "$repo";done

Upgrade your SSH keys!
https://blog.g3rt.nl/upgrade-your-ssh-keys.html
wp:Ed25519#Ed25519

The Democratization of Censorship
https://krebsonsecurity.com/2016/09/the-democratization-of-censorship/

github pages

    Getting Started with Github Pages
    https://24ways.org/2013/get-started-with-github-pages/

    http://www.thinkful.com/learn/a-guide-to-using-github-pages/

EFF calls on HP to disable printer ink self-destruct sequence
http://arstechnica.com/information-technology/2016/09/hp-should-apologize-and-stop-sabotaging-non-hp-ink-cartridges-eff-says/

This is much more expensive than what Neil was using:

    Tiny, open, $18 quad-core SBC has WiFi, BT, eMMC, microSD
    http://hackerboards.com/tiny-open-quad-core-sbc-has-wifi-bt-emmc-microsd/

imagine Sir larry's wrath at his own lawyers

    Oracle's failure to review the ARC++ documents is its own fault.
    http://www.zdnet.com/article/google-beats-back-oracle-again-in-java-android-case/

    Oracle's 'Gamechanger' Evidence Really Just Evidence Of Oracle Lawyers Failing To Read
    https://www.techdirt.com/articles/20160928/06300835647/judge-once-again-rejects-oracles-attempt-yet-another-trial-against-google-notes-oracles-lawyers-misled-court.shtml?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed

time to kill security questions—or answer them with lies
https://www.wired.com/2016/09/time-kill-security-questions-answer-lies/

On Sat, 17 Sep 2016 21:08:55 -0400, jep200404 at columbus.rr.com wrote:

> Dig Into DNS: Part 1
> https://www.linux.com/learn/dig-dns-part-1
>
> Dig Into DNS: Part 2
> https://www.linux.com/learn/dig-dns-part-2
>
> Dig Into DNS: Part 3
> https://www.linux.com/learn/dig-dns-part-3

Dig into DNS: Part 4
https://www.linux.com/learn/dig-dns-part-4

wp:Eucalyptus (software)
Journalist Tom Henderson on Cloud Vendor Lock-In
http://fossforce.com/2016/09/tom-henderson-cloud-vendor-lock-in/

Riak TS for time series analysis at scale
https://opensource.com/life/16/9/time-series-analysis-riak-ts

    I'll introduce Riak TS, a key-value database optimized to
    store and retrieve time series data for massive data sets,
    and demonstrate how to use it in conjunction with three other
    open source tools—Python, Pandas, and Jupyter—to build a
    completely open source time series analysis platform

with microPython on IoT ponder the following:

    The IoT is uranium
    http://www.networkworld.com/article/3124326/internet-of-things/the-iot-is-uranium.html

    How a tea kettle can kill your cloud
    http://www.networkworld.com/article/2995028/cloud-security/tea-kettle-hack-london-iot-internet-of-things.html

    UPDATE: UL responds to blogger's criticism
    http://www.networkworld.com/article/3052186/security/underwhelmed-by-uls-announcement.html

wp:Connections (TV series)

    wp:Python (programming language)
    wp:Monty Python's Flying Circus
    wp:Spam (Monty Python)
    Boiling Eggs for Simpletons: Teach a Dunderhead, Dimwit,
    Nitwit, Numskull, Birdbrain, Blockhead, Bonehead, Idiot,
    Clod, Dolt, Fathead, Imbecile, Ig
    http://opentrolley.co.id/Book_Detail.aspx?EAN=9781492139348
    wp:Green Eggs and Ham
    wp:Private Snafu
    wp:A Lecture on Camouflage
    wp:Pythonidae

wp:Gim (food)
wp:Nori
wp:Laver (seaweed)
wp:Faggot (food)

A curated list of awesome Python frameworks, libraries, software and resources
http://awesome-python.com/
https://github.com/vinta/awesome-python

    psutil
        can limit process resources
    ptpython
        like a repl
    watchdog - Python API and shell utilities to monitor file system events.
        inotify

    sched - standard library

wp:Take This Job and Shove It

computer art
http://www.bsod.us/

azure duck

p586-two-dimensional-lists-and-comprehensions

atomic_write()
atomicwrites
https://pypi.python.org/pypi/atomicwrites/

http://nbviewer.jupyter.org/github/james-prior/cohpy/blob/master/20160930-dojo-passing-ascii-printable-reinventing-stringio.ipynb

"i" versus "index" for name of simple index variable

    strong convention from math to use i, j, k, ...

    look at the indexes in:
    https://en.wikipedia.org/wiki/Summation#Capital-sigma_notation
    https://en.wikipedia.org/wiki/Summation#Identities

    http://programmers.stackexchange.com/questions/86904/why-do-most-of-us-use-i-as-a-loop-counter-variable
    https://en.wikipedia.org/wiki/Variable_(programming)#Naming_conventions

    A Python Æsthetic: Beauty and Why I Python by Brandon Rhodes
    http://pyvideo.org/pycon-ca-2012/a-python-sthetic-beauty-and-why-i-python.html
    http://s3.us.archive.org/nextdayvideo/pyconca/pyconca2012/A_Python_Aesthetic_Beauty_and_Warts_in_Languages_and_in_Code.mp4

        typesetting and math!

        So, why do C++ and Python
        (and C, Pascal, Java, Algol, ...)
        look so much alike?

            math

        Python chooses to follow math

    "index" gets ugly when repeated
    index OK for beginners, use it if you need it
    but expect code from non-beginners to use the i, j, k convention.
    Think of i, j, k ... as pronouns.

for xi in range(xn):
    x = xm * xi + xb
    for yi in range(yn):
        y = ym * yi + yb
        foo(x, y)

the above code begs for an object or iterator for each dimension

wp:TeX

    A computational engine
    for converting backslashes
    into beautiful documents

https://github.com/brandon-rhodes/python-bookbinding

    text -> paragraphs
    paragraphs -> pages
    -> PDF (usign reportlab)

    uses texlib
    textwrap is too simplistic

A Python Æsthetic: Beauty and Why I Python by Brandon Rhodes
http://pyvideo.org/pycon-ca-2012/a-python-sthetic-beauty-and-why-i-python.html
http://s3.us.archive.org/nextdayvideo/pyconca/pyconca2012/A_Python_Aesthetic_Beauty_and_Warts_in_Languages_and_in_Code.mp4

    PEP8: 79 max line length

    This is an exact analogue to
    the standard advice of graphic
    designers about paragraph width:

        45-75 characters

    "Now, some people will
    claim that having 8-character
    indentations makes the code move
    too far to the right and makes it
    hard to read on a 80-character
    terminal screen."

    "The answer to that is that
    if you need more than 3 levels
    of indentation, you're screwed
    anyway, and should fix
    your program."

    - Linus

    apply to entries in https://github.com/cohpy/challenge-201608-refactor

If self is not involved, why make the routine a method?

    If there is no reference to self,
    then it is not a behavior of the object,
    because it does not know anything about the object
    so the routine can be pulled out as a plain function.

Django made mistakes,
but is far more Pythonic
than many competitors!

    It recognizes that a web view
    could just be a plain function!

    (Flask, Bottle followed later)

Factor out the iterator

    factoring out iterators
    to keep code shallow is
    a Python superpower

    apply to entries in https://github.com/cohpy/challenge-201608-refactor

Argument-per-line is AWESOME

wp:Hyperledger
wp:Blockchain (database)

Unsafe at any clock speed: Linux kernel security needs a rethink
http://arstechnica.com/security/2016/09/linux-kernel-security-needs-fixing/

The crazy price of college textbooks is pushing more US universities to adopt an “open-source” solution
http://qz.com/792934/the-crazy-price-of-college-textbooks-is-pushing-more-us-universities-to-adopt-an-open-source-solution-including-seven-in-rhode-island-brown-and-rhode-island-college/

python -m markdown testmarkdown.md >testmarkdown.htm
Why Good Linux Sysadmins Use Markdown
https://www.linux.com/learn/why-good-linux-sysadmins-use-markdown
https://daringfireball.net/projects/markdown/

Org mode for emacs (not vi)
http://orgmode.org/

What could someone interested in Markov chains learn
(if anything)
from Brandon Rhodes' Sine Qua Nons presentation?


More information about the CentralOH mailing list