[CentralOH] 2016-10-07 道場 Scribbles 落書/惡文? grep epiphany; cooking science; extended sequence unpacking; generator; unix philosophy; git rebase; git diff meld; melinda french; hp printers to protect you; cluetrain joe born lily kangaroo; I think I am; grep sed awk yacc bourne sh calendar regular expressions pipeline; neal stephenson; diff; xenix microsoft

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sun Oct 9 16:27:19 EDT 2016


wp:On Food and Cooking

open(filename).readlines()
    2: reads whole file into a list
    3: generator

header, *body, footer = open('foo.txt')

fallingwater

    www.centraldinerandgrille.com
    mediterrabakehouse.com

Did Python's generator stuff come from Icon?
wp:Icon (programming language)
wp:Icon_programming_language#Generators

Compare:

    How to Crash Systemd in One Tweet
    https://www.agwa.name/blog/post/how_to_crash_systemd_in_one_tweet

    wp:Unix_philosophy#Do_One_Thing_and_Do_It_Well

Have Your Git Rebase and Patch Versioning, Too, With git-series
https://www.linux.com/news/have-your-git-rebase-and-patch-versioning-too-git-series
https://github.com/git-series/git-series

Why Oracle will win its Java copyright case – and why you'll be glad when it does
http://www.theregister.co.uk/2016/06/02/google_oracle_comment/

cool stuff or reinventing the wheel badly?
Moreutils For Your Linux Shell Tool Set
https://www.linux.com/learn/moreutils-your-linux-shell-tool-set

Yahoo's secret email scans helped the FBI probe terrorists
http://www.computerworld.com/article/3128249/security/yahoos-secret-email-scans-helped-the-fbi-probe-terrorists.html

Prominent Pro-Patent Judge Issues Opinion Declaring All Software Patents Bad
https://www.techdirt.com/articles/20161005/15280135720/prominent-pro-patent-judge-issues-opinion-declaring-all-software-patents-bad.shtml

OSTree
OSTree is a tool that combines a "git-like" model for committing and
downloading bootable filesystem trees, along with a layer for deploying them
and managing the bootloader configuration.
https://ostree.readthedocs.io/en/latest/
dead link to https://github.com/alexlarsson/xdg-app
http://flatpak.org/
https://github.com/flatpak/flatpak

wp:siri
wp:Cortana (software)
    can not turn off

wp:Clippy
wp:Microsoft Bob
    wp:Melinda French

Pat and Gracie's aka Fat and Greasy's
http://www.patandgracies.com/OurStory
http://610wtvn.iheart.com/onair/big-bass-brothers-4244/october-7-review-pat-and-gracies-15183167/

last week:

> 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/

we did this to protect you:
http://www8.hp.com/us/en/hp-news/blog/Small-Business-Printing/best-possible-printing-experience.html
wp:The Cluetrain Manifesto
wp:David Weinberger
wp:Doc Searls
Aiwa Exos-9
    flop, then success
    wp:Joe Born
    wp:Bourne shell
Lily Born
Kangaroo Cup

wp:Cogito ergo sum
wp:In the Beginning (The Moody Blues song)

great experience using grep from Cygwin on Windows to find stuff in many files.
needs to know grep's friends, such as sed and awk

    sed & awk
    http://shop.oreilly.com/product/9781565922259.do

    Mastering Regular Expressions
    By Jeffrey E.F. Friedl
    http://shop.oreilly.com/product/9780596002893.do

    wp:List of Unix commands
    https://linux.die.net/man/1/man
    https://linux.die.net/man/

    study how grep was used near bottom
    https://mail.python.org/pipermail/centraloh/2016-July/002900.html

wp:The Unix Programming Environment
wp:Unix philosophy

    This is the Unix philosophy: Write programs that do one thing and do it
    well. Write programs to work together. Write programs to handle text
    streams, because that is a universal interface.

    The notion of "intricate and beautiful complexities" is almost an oxymoron.
    Unix programmers vie with each other for "simple and beautiful" honors — a
    point that's implicit in these rules, but is well worth making overt.

wp:Pipeline (Unix)

wp:Unix_philosophy#Mike_Gancarz:_The_UNIX_Philosophy

    Small is beautiful.
    Make each program do one thing well.
    Build a prototype as soon as possible.
    Choose portability over efficiency.
    Store data in flat text files.
    Use software leverage to your advantage.
    Use shell scripts to increase leverage and portability.
    Avoid captive user interfaces.
    Make every program a filter.

wp:Douglas McIlroy

    Those types are not "abstract"; they are as real as int and float.
    As a programmer, it is your job to put yourself out of business.
        What you do today can be automated tomorrow.
    Keep it simple, make it general, and make it intelligible.
    The real hero of programming is the one who writes negative code.

wp:Multics
wp:Ken Thompson
    wp:UTF-8
        Unicode HOWTO
        https://docs.python.org/3/howto/unicode.html
        τέλειος ἀριθμός
        https://oeis.org/A000396
        wp:OEIS
wp:Stephen C. Johnson
    wp:yacc
wp:Alfred Aho
    wp:Principles of Compiler Design
wp:Brian Kernighan
    wp:The C Programming Language
    wp:The Unix Programming Environment
    wp:The Practice of Programming
wp:Dennis Ritchie
    wp:C (programming language)
    wp:The C Programming Language
wp:Rob Pike
    wp:The Practice of Programming
    wp:The Unix Programming Environment
        (redundancy can be a good thing)
    wp:UTF-8
        Unicode HOWTO
        https://docs.python.org/3/howto/unicode.html

In the Beginning was
the Command Line
http://www.cryptonomicon.com/beginning.html

For some tasks, Unix shell is superb and Python is painful.
For some tasks, Python is superb and Unix shell is painful.

wp:git
man git-diff
git diff
git diff --word-diff

wp:diff utility
    wp:Meld (software)

    dojo at 2519_n_high:~$ cat ~/bin/gdm
    #!/bin/sh

    # Does git diff with external diff program,
    #     even if diff=whatever is not specified in .gitattributes
    #     even if [diff "whatever"] is not specified in ~/.gitconfig.

    GIT_EXTERNAL_DIFF=git-ext-diff-wrapper git diff "$@"
    dojo at 2519_n_high:~$ cat ~/bin/git-ext-diff-wrapper
    #!/bin/sh

    # showargs "$@"
    meld "$2" "$5"
    dojo at 2519_n_high:~$

wp:Comparison_of_file_comparison_tools

.calendar/calendar
https://linux.die.net/man/1/calendar
https://linux.die.net/man/1/cal

wp:Xenix
    microsoft
    sco
wp:TRS-80_Model_16#Model_16
https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/UNIX-Licence-Plate.JPG/220px-UNIX-Licence-Plate.JPG
Similar plates seen near Stauf's

wp:yacc
    wp:Yakety Yak
        wp:Ubuntu_version_history#Ubuntu_16.10_.28Yakkety_Yak.29
    wp:Yakety Axe
        wp:Neck and Neck
        wp:More of That Guitar Country
        wp:Chet Atkins
            wp:Me & Jerry
                wp:Jerry Reed
                    wp:Another Puff
        wp:Yakety Sax

http://www.meffie.org/2009/09/
https://www.linux.com/blog/regional-show-highlights-community-strength
http://www.developerfusion.com/event/50984/ohio-linuxfest-2009-sept-25-27/

wp:Hyperledger

Why Implanted Medical Devices Should Have Open Source Code
http://www.openhealthnews.com/story/2016-10-04/why-implanted-medical-devices-should-have-open-source-code


More information about the CentralOH mailing list