[CentralOH] 2016-05-20 道場 Scribbles 落書/惡文? first programming language turtle ken robinson jesse livermore moduler v remainder weasel mesh gui kivy four-step process fluent python carpe

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sat May 21 20:33:36 EDT 2016


first programming language

    What are the goals for first programming language?
    In other words, what do you want to accomplish with that first language?
    After figuring that out, which language best accomplishes that goal?
    Who would be learning?

What do you think about the following?
Does it change your answers to the above about first programming language?
"The Game for Little Programmers!"
Robot Turtle Board Game
http://www.robotturtles.com/
http://makezine.com/2013/12/11/robot-turtles-teach-programming

Watch Ken Robinson's TED videos.
Does it change your answers to the above about first programming language?

"selling down to the sleeping point"
Speculation as a Fine Art by Dickson G. Watts
wp:Extraordinary Popular Delusions and the Madness of Crowds
wp:Jesse Lauriston Livermore

    All through time, people have basically acted and reacted the same way in
    the market as a result of: greed, fear, ignorance, and hope. That is why
    the numerical formations and patterns recur on a constant basis.

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

    “It is the story of people figuring out how the mind works when it’s faced
    with making investment decisions. How it functions in conditions of
    uncertainty.”

Is Michael Lewis working on a screenplay?

Modulus

Haskell has separate mod and rem operators (functions really).
A Haskell afficionado was surprised at Python's % behavior.
Said afficionado expected behavior like C's.

On Sat May 7 14:00:54 EDT 2016 jep200404 at columbus.rr.com scribbled:

> predict the output
> 3.25 % 3.5, 3.25 % 1, 3.25 % -1, -.25 % 3.5, -.25 % -3.5, .25 % -3.5, .25 % 3.5

Python modulus (is not remainder)
http://stackoverflow.com/questions/3883004/negative-numbers-modulo-in-python
http://stackoverflow.com/questions/43775/modulus-operation-with-negatives-values-weird-thing
http://stackoverflow.com/questions/4432208/how-does-work-in-python
http://stackoverflow.com/questions/13683563/whats-the-difference-between-mod-and-remainder
https://docs.python.org/2/reference/expressions.html

    The modulo operator always yields a result with the same sign
    as its second operand (or zero); the absolute value of the
    result is strictly smaller than the absolute value of the
    second operand.[2]

    [2] While abs(x%y) < abs(y) is true mathematically, for
    floats it may not be true numerically due to roundoff. For
    example, and assuming a platform on which a Python float is
    an IEEE 754 double-precision number, in order that -1e-100 %
    1e100 have the same sign as 1e100, the computed result is
    -1e-100 + 1e100, which is numerically exactly equal to 1e100.
    The function math.fmod() returns a result whose sign matches
    the sign of the first argument instead, and so returns
    -1e-100 in this case. Which approach is more appropriate
    depends on the application.

https://docs.python.org/3/reference/expressions.html

    The % (modulo) operator yields the remainder from the
    division of the first argument by the second. The numeric
    arguments are first converted to a common type. A zero right
    argument raises the ZeroDivisionError exception. The
    arguments may be floating point numbers, e.g., 3.14%0.7
    equals 0.34 (since 3.14 equals 4*0.7 + 0.34.) The modulo
    operator always yields a result with the same sign as its
    second operand (or zero); the absolute value of the result is
    strictly smaller than the absolute value of the second
    operand [1].

    [1] While abs(x%y) < abs(y) is true mathematically, for
    floats it may not be true numerically due to roundoff. For
    example, and assuming a platform on which a Python float is
    an IEEE 754 double-precision number, in order that -1e-100 %
    1e100 have the same sign as 1e100, the computed result is
    -1e-100 + 1e100, which is numerically exactly equal to 1e100.
    The function math.fmod() returns a result whose sign matches
    the sign of the first argument instead, and so returns
    -1e-100 in this case. Which approach is more appropriate
    depends on the application.

modulus versus remainder

    As far as I can see, Python is unusual in that it uses % for
    modulus; Fortran, C/C++, and Java use % to mean remainder.

wp:Modulo operation

foo d = 3 + mod (-d) 7
map foo [0..6]

tortoise & hare:
hare: fast and wrong
tortoise: slow and correct
people often forget which got to the finish line first

wp:1944 (song)

Pop goes the weasel
https://www.sciencenews.org/blog/science-ticker/weasel-has-shut-down-large-hadron-collider

5 rules for avoiding burnout
https://opensource.com/business/16/5/5-rules-avoiding-burnout

Patch now: Google and JetBrains warn developers of buggy IDE
http://www.theregister.co.uk/2016/05/18/patch_now_google_and_jetbrains_warn_developers_of_buggy_ide/

Like Uber for Wireless…
https://medium.com/uber-for-x/like-uber-for-wireless-dc59d4bed08c

3 open source Python GUI frameworks
https://opensource.com/life/16/5/open-source-python-gui-frameworks
PyQt
Tkinter
WxPython

Kivy is multi-touch and works on mobile devices?

hteck.ca
four-step process
http://www.hteck.ca/motor/s-motor_wire/stepper-motor.html

likes and recommends
Fluent Python
http://shop.oreilly.com/product/0636920032519.do

A 5-step process for hiring tech talent
https://opensource.com/life/16/5/oscon-bitnami-erica-brescia

wp:Tetris
wp:viral
wp:chiral

Pentacubes: Puzzles & Solutions
http://puzzler.sourceforge.net/docs/pentacubes.html

wp:Pentomino
wp:Solomon W. Golomb
wp:John Horton Conway

It is amazing that Penrose tiling was not discovered long ago,
leaving the hope that there are many simple things like this
waiting to be discovered.
wp:Penrose tiling
wp:Roger Penrose

Biki:ni Pencil
http://moonpaste.net/stmg/cgi-bin/moonwiki/wiki.cgi?bikini
one has to handle and operate this to appreciate it

Raspberry Pis feature Python.
Check out local Raspberry Pi and Arduino group.
Links and mailing list at colug.net/carpe


More information about the CentralOH mailing list