[CentralOH] 2016-06-03 道場 Scribbles 落書/惡文? alice fablab robotics camps pattycake; is it safe?; lbyl eafp fat iter sentinel tabs spanning tree lru_cache memoization closures decorators navel squinting functools ifonly ipython magics alembic awesomecation learning linguists peppermint

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sat Jun 4 16:01:38 EDT 2016


Alice looks interesting.
I have no idea how good it is.
It makes me think.
wp:Alice (software)

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

Linux vs. Windows device driver model:
architecture, APIs and build environment comparison
http://hackerboards.com/open-source-microbit-sbc-now-available-for-pre-order/

Battelle fab lab here is cowtown
https://www.fablabs.io/reynoldsburgbattellefablab

Microsoft reminds us that it is still engaging in patent extortion by signing
yet another patent settlement deal which requires surrendering to Microsoft
http://techrights.org/2016/06/01/microsoft-oem-shakedown-xiaomi/

wp:FIRST Robotics Competition

North American Cities Slow to Adopt Open Source Software
http://lxer.com/module/newswire/view/230161/

Tech Core or Tech Corps
http://twenty.techcorps.org/

Secure Desktops with Qubes: Introduction
http://www.linuxjournal.com/content/secure-desktops-qubes-introduction

wp:Jamaican patty
    wp:Pasty
    wp:Salteñas
wp:Ackee
    seeds are poisonous
wp:Ackee and saltfish
wp:plaintain
wp:Coco bread
Ena's Caribbean Kitchen is authentic
http://www.enascaribbean.com/

What containers and unikernels can learn from Arduino and Raspberry Pi
https://opensource.com/business/16/5/containers-unikernels-learn-arduino-raspberry-pi

An intro to Linux commands, the EU's open source mathematics toolbox,
and more news
https://opensource.com/life/16/5/weekly-news-may-28

http://www.techradar.com/how-to/computing/everything-you-need-to-know-about-linux-commands-1321955

Google's Abacus Project: It's All about Trust
http://www.linuxjournal.com/content/googles-abacus-project-its-all-about-trust
Compare with a line from wp:Marathon Man (film).

Ubuntu Touch's Web Browser to Improve the Google Hangouts Experience in OTA-11
http://news.softpedia.com/news/ubuntu-touch-s-web-browser-to-improve-the-google-hangouts-experience-in-ota-11-504658.shtml

Samsung: Don't install Windows 10. REALLY
http://www.theregister.co.uk/2016/05/31/windows_10_samsung_fail/

Please don't use Slack for FOSS projects
https://drewdevault.com/2015/11/01/Please-stop-using-slack.html

Check out "Music to Work to" channel.

LBYL vs EAFP

What's the connection between
    an 11.8 inch length of Bell System 25 wire and
    the "The Fast and the Furious" film?

fat
ípos
crassus
livid lipids

https://mobile.twitter.com/raymondh

wp:Programming Pearls
'Quito, Ecuador'
iter( , sentinel)

study functools.partial
    why does it work with something that is not an iterable?

What's the connection between the 1985 movie Brazil and Python?

A rose by another name?
wp:Köln
wp:Cologne

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

Mixing tabs and spaces for indentation in Python causes no end of grief.

For example, look at https://github.com/cohpy/challenge-201604-words/blob/57706ccaf571491f701600bc93b8d9dd4ae760ac/ezeeetm/lambda_function.py.
Most of function UrlFactory() is indented with spaces, which is good.
But line 24 is indented with a tab character.
On the web page above, that tab is expanded as 8 characters,
making it appear to be part of the except clause.
If so, it would never be executed since it is after the raise statement.
Is that what the author intended?
Or did the author want to print the url just before successfully returning?

Moral of the story:

    Never ever mix tabs and spaces for indentation in Python.

Better yet, don't use tab characters at all in Python source code.
Just use spaces.
If you need a tab character in a string, encode it as \t.

network switch
can hold 130k MAC addresses
but performance goes down above 80k entries

recursion
spanning tree protocol
Radia Perlman
Her network was brought down by folks who connected switches in a circle
with STP disabled.

discovered nifty decorators in functools
especially lru_cache
    default 128 entries
cache
memoization

which leads back to an old presentation that had a gentle and practical
introduction to closures and function decorators in Python.
had an epiphany about closures and decorators when shown
http://colug.net/python/cohpy/20150223/
Their head is hurting.

decorator mess with introspection

which leads back to another great presentation of Brandon's
here in cowtown a few years ago:

watching one's navel
PyOhio 2011: Squinting at Python Objects
http://pyvideo.org/video/524/pyohio-2011-squinting-at-python-objects

https://pymotw.com/3/functools/
https://docs.python.org/3/library/functools.html

What's the etymology of grep?

new python keyword:
    ifonly

blue lights when raining
ifthisthenthat

the piano has been drinking

%timeit
%load
ipython magics
http://ipython.org/ipython-doc/3/interactive/magics.html

http://watersheddistillery.com/
wp:Alembic
sqlalchemy

compare with south and djangoORM

wp:Ada Lovelace
wp:Charles Babbage
wp:Analytical Engine
wp:Grace Hopper
wp:Turing completeness

Microsoft Azure

Invent Your Own Computer Games with Python
http://inventwithpython.com/chapters/

functools wraps

obfuscation
awesomecation

How to search for a regular expression in about 50000 files?

Tom waits for no one.

unstructured learning
    Montessori school of fish
structured learning

hybrid?
    unstructured learning for most
    structured learning to fill in the gaps

How many linguists does it take to solve Peppermint?
    individually?
    together with much talking?
http://mysd300.blogspot.com/2013/07/rundown-of-puzzles-for-ipp33.html

What's the connection between Shapeways and Python?


More information about the CentralOH mailing list