[CentralOH] 2014-11-07 道場 Scribbles

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sat Nov 8 20:58:31 CET 2014


http://phenomena.nationalgeographic.com/2013/04/26/mind-bending-parasite-permanently-quells-cat-fear-in-mice/
Mice make cats go fast,
but mice make you go slow.
Touch-typing makes you fast
so use software that doesn't require mice
such as:
    editors
        vi(m)
        emacs
    tmux
    window manager or desktop
        ratpoison

What other keyboard friendly software are folks partial to?

Someone from the west side of Dayton (aka Yellow Springs) showed up. 
Dayton area Python resources:
    http://www.meetup.com/Dayton-Dynamic-Languages-User-Group/
    Catherine Devlin
    To get a dojo at a convenient time and place,
    take the initiative and set one up.
    Don't ask permission[1]. 

Lerway i3 Qi Wireless charger
Nifty universal to micro USB charger receiver

DDP: disturbing data point
I kvetch, therefore I am.

wp:James Burke (science historian)
wp:Connections (TV series)

wp:Jazz (Ry Cooder album)

https://www.python.org/about/success/
https://www.python.org/about/success/honeywell/
https://www.python.org/about/success/forecastwatch/

Vegan likes python
http://vegan-recipes.eat4slim.com/wp/2014/10/22/python-2-7-serial-module/
http://www.newyorker.com/magazine/2014/11/03/grain

http://pyvideo.org/speaker/337/brandon-rhodes

Pronounce "__name__" as "dunder name".
https://wiki.python.org/moin/DunderAlias

For a long time Python 3 had not been practical to use for many real world
projects, because some library one would need would not be available in 
Python 3. In recent weeks, several Python folks have mentioned that enough of
the libraries have been ported to Python 3 that Python 3 can be used for most
projects, and encourage everyone to start using Python 3, especially for new
projects.

Python 3 Wall of Superpowers https://python3wos.appspot.com/

http://rhodesmill.org/brandon/
http://pyvideo.org/speaker/337/brandon-rhodes

https://duckduckgo.com/html/?q=is+callable+python

Which of the following do you prefer? Why? How would you do it better?

1: test before calling:

    def foo():
        pass

    def bar(baz=foo):
        if callable(baz):
            goo = baz()
        else
            goo = baz
        return goo

2: oh just try it and fall back

    def foo():
        pass

    def bar(baz=foo):
        try:
            goo = baz()
        except TypeError:
            goo = baz
        return goo

Cygwin gives folks in MS Windows some helpful UNIXy goodness.
wp:Cygwin

Installing a unix or Linux virtual machine in a Windows computer 
is another way of coping with Windows.

    wp:VirtualBox

A new way for people to work together was devised by a student in Finland. It
worked great for his project. Someone else wrote about it. Big businesses, such
as Netscape, IBM, and Sun read those writings and changed how they ran their
businesses because of it. The technique was originally applied to software, but
now people are trying it in other fields of work. 

wp:The Cathedral and the Bazaar
http://catb.org/esr/writings/cathedral-bazaar/

How one makes money while giving stuff away is another very interesting topic.

C and Python parsing input:

    jjj at dojo:~$ cat goo.c
    #include <stdlib.h>
    #include <stdio.h>

    int main(int argc,char *argv[])
    {
        int ip[4];
        char s[]="192.168.0.123";
        sscanf(s,"%d.%d.%d.%d",ip+0,ip+1,ip+2,ip+3);
        printf("%d %d %d %d\n",ip[0],ip[1],ip[2],ip[3]);
    }
    jjj at dojo:~$ ./goo
    192 168 0 123
    jjj at dojo:~$ 

ala http://stackoverflow.com/questions/2175080/sscanf-in-python

    >>> import re
    >>> r = re.compile('[ \t\n\r:.]+')
    >>> ip = r.split('192.168.000.123')
    >>> print ip, map(int, ip) 
    ['192', '168', '000', '123'] [192, 168, 0, 123]
    >>> 

As usual, wp: is prefix for wikipedia.

There will not be a dojo on November 28th (Black Friday).
We do not have the Community Room for November 14th, 
so we will be meeting out in the open area. 

[1] It's easier to ask forgiveness than it is to get permission.
    https://en.wikiquote.org/wiki/Grace_Hopper
    wp:Grace Hopper


More information about the CentralOH mailing list