[Edu-sig] recruiting for delta-calc / lambda-calc among post-algebra students

2014-09-29 Thread kirby urner
Edu-siggers might be interested in a rhetorical move, mainly for PR reasons (recruiting, morale...), to rebrand "differential / integral calculus" (Newton-Leibniz stuff) as also (equivalently) "delta calculus" (picture Greek letter del hyphen calculus). Why? Well for one "calculus" is too generic

[Edu-sig] example code: Descriptors

2014-09-27 Thread kirby urner
""" Demonstrating the descriptor protocol (cl) MIT by K. Urner """ class Property: def __init__(self, start): self.it = start def __set__(self, obj, val): if isinstance(obj, ReadOnly): print("Can't set property from this child") else: obj.i

[Edu-sig] water cooler talk... Python mentors, post DjangoCon / Portland (next year Austin)

2014-09-05 Thread Kirby Urner
ool even got to be a DjangoCon sponsor this year, check it out... https://www.flickr.com/photos/kirbyurner/14963846568/ (OST a player!) ... high five Patrick! Kirby From: Kirby Urner [that's me] Date: Fri, Sep 5, 2014 at 1:41 PM Subject: Re: Interesting Mac-only Python graphics program(?

Re: [Edu-sig] https://www.python.org/success-stories/category/education/

2014-08-31 Thread kirby urner
Well, that was absurdly easy to do. I didn't really expect it to go straight to the website: https://www.python.org/success-stories/kirby-urner/ And guess what, I managed to get the URL wrong so if you click on the link... probably just as well. I'm finding a gazillion success stor

[Edu-sig] Python ecosystem (Blaze, NumPy, PyPy...)

2014-08-30 Thread kirby urner
PyPy or vice versa: http://morepypy.blogspot.com/2011/10/numpy-funding-and-status-update.html Kirby On Sat, Aug 30, 2014 at 6:13 PM, kirby urner wrote: > On Sat, Aug 30, 2014 at 1:38 PM, Laura Creighton wrote: > >> >In sketching out the Python ecosystem in broad brush terms, i

Re: [Edu-sig] Looking back on OSCON XVI

2014-08-30 Thread kirby urner
On Sat, Aug 30, 2014 at 1:38 PM, Laura Creighton wrote: > >In sketching out the Python ecosystem in broad brush terms, is it fair to > >say NumPy gets a lot of US investment whereas PyPy is more an EU pet > >project? Or is that too broad brush? > > Too broad. In investment terms, PyPy gets from

Re: [Edu-sig] Looking back on OSCON XVI

2014-08-30 Thread Kirby Urner
On Sat, Aug 30, 2014 at 12:51 PM, Kirby Urner wrote: > In addition to Matthew, Kelly Hoover, Patrick Barton, myself, and course > authors Steve Holden (Python) and Peter Scott (Perl), our school principal, > Debra, manned the booth. > > And of course Christian joined the conti

[Edu-sig] Looking back on OSCON XVI

2014-08-30 Thread Kirby Urner
In sketching out the Python ecosystem in broad brush terms, is it fair to say NumPy gets a lot of US investment whereas PyPy is more an EU pet project? Or is that too broad brush? I sat at the i18n table at OSCON and mostly met up with other North Americans, which can be plenty alien, and with Ta

[Edu-sig] algebra -> digital math (Python friendly)

2014-07-02 Thread Kirby Urner
I go into quite a bit of detail in this thread at the Math Forum, regarding what I think an Algebra course leading up to a digital math track might look like. http://mathforum.org/kb/thread.jspa?threadID=2637672 This is looking at what we might call "high school math" but I'd also bill it as an a

[Edu-sig] More about Internationalization (i18n) / Unicode

2014-06-29 Thread kirby urner
I've been fostering debate around work about i18n ("internationalization") a tried and true topic in Geek World bar none, and otherwise known, paradoxically, as "localization" as in "make all these Ubuntu menus appear in the Basque language." I remember being in Lithuania and booting up Blogger, t

Re: [Edu-sig] Changes to edu-sig web page...

2014-06-17 Thread kirby urner
On Tue, Jun 17, 2014 at 6:46 AM, Jeff Elkner wrote: Let's use the wiki page (https://wiki.python.org/moin/ > > ) for this, > Jurgis, so that the work of keeping it current can be distributed. > > Interested members of our community should create accounts for > themselves on the wiki, and then we c

Re: [Edu-sig] Changes to edu-sig web page...

2014-06-01 Thread Kirby Urner
Looking good! On Sun, Jun 1, 2014 at 7:14 AM, Jeff Elkner wrote: > OK, I've made Andre's specific changes, and tried to capture the > spirit of Kirby's feedback in the Python 3 vs. 2 section. > > On Sat, May 31, 2014 at 7:21 PM, Andre Roberge > wrote: > > Good work Jeff! > > > > RUR-PLE's new

Re: [Edu-sig] Changes to edu-sig web page...

2014-05-31 Thread kirby urner
On Sat, May 31, 2014 at 3:53 PM, kirby urner wrote: > > Looks good but I'd say this advice is really too strict a criterion: > > "Use Python 3, and more specifically version 3.4, if you only plan to > teach Python as an introductory language (say in a CS-1 course), makin

Re: [Edu-sig] Changes to edu-sig web page...

2014-05-31 Thread kirby urner
Looks good but I'd say this advice is really too strict a criterion: "Use Python 3, and more specifically version 3.4, if you only plan to teach Python as an introductory language (say in a CS-1 course), making use *only* of modules included in the standard distribution. " In fact, Python 3 works

Re: [Edu-sig] some Unicode source: testing 1-2-3

2014-05-29 Thread Kirby Urner
Looks pretty good in the archives, except for the text wrapping, which makes cutting and pasting the code a little tedious. Here's the output, FYI: Amod volume = : 0.04168 Bmod volume = : 0.041595 Emod volume = : 0.04173131692777366 Tmod volume = : 0.04168 Smod

[Edu-sig] some Unicode source: testing 1-2-3

2014-05-29 Thread Kirby Urner
sider this work "on the clock" as we say. Kirby Urner O'Reilly School of Technology == """ Includes: PlaneNets (ПлейнНэт) from Synergetics for A, B, E, T, S Koski breakdowns of some shapes in E and S vols with phi scaling Euler volume, modified by Ger

[Edu-sig] What edu-sig page advice to give re 3.x vs 2.x in 2014?

2014-05-29 Thread Kirby Urner
improvement over 2.x and my bias would be to encourage learning 3.x first and any 2.x version as a dialect later. Enough 3rd party products have made the transition to where I don't think we need to circle 2.x as much in our advice-giving (whereas when this advice was first given, 3.x was

Re: [Edu-sig] Getting more involved with education and the PSF...

2014-05-23 Thread kirby urner
s who step forward determine what gets done. > > On Fri, May 23, 2014 at 4:27 PM, Jessica Nickel > wrote: > > Kirby, > > > > I agree, and think there definitely needs to be a focus on both college > and > > community-based education outreach as well. > > >

Re: [Edu-sig] Getting more involved with education and the PSF...

2014-05-23 Thread kirby urner
Sounds good to me, as long as we're clear that "promoting Python in education" is in no way limited to K-12. I'm a full time teacher of Python to adults and like to think edu-sig is the right venue for my kind of chatter as well. So far, I've felt that way. K-12 is important and welcome, but not

Re: [Edu-sig] Getting more involved with education and the PSF...

2014-05-23 Thread kirby urner
On Thu, May 22, 2014 at 7:02 AM, Jeff Elkner wrote: > Great! So it seems we have two short term goals: > > 1. Get someone to agree to maintain the website (I'm volunteering if > there isn't anyone else chomping at the bit to do it). > Thanks for stepping up Jeff. We've not had an active web wr

Re: [Edu-sig] Getting more involved with education and the PSF...

2014-05-23 Thread kirby urner
On Fri, May 23, 2014 at 7:40 AM, Jeff Elkner wrote: << SNIP >> > At some point soon we should add edu-sig on the SIG page as one of the > currently active SIGs. > > It's not? Weird. In my experience edu-sig has never been inactive. Compare our archives to that of math-thinking-l if you wan

Re: [Edu-sig] snap shot of a geometers doodle-pad, in Python (no pictures, but links to some)

2014-05-03 Thread kirby urner
I should also post what the output is, so scanners / readers might avoid the tedium of running it just to find out: /usr/local/bin/python3.4m /Users/pbarton/Documents/modvolumes.py Amod volume = : 0.04168 Bmod volume = : 0.041595 ---

[Edu-sig] snap shot of a geometers doodle-pad, in Python (no pictures, but links to some)

2014-05-03 Thread kirby urner
Includes: PlaneNets from Synergetics for A, B, E, T, S Koski breakdowns of some shapes in E and S vols with phi scaling Euler volume, modified by Gerald de Jong http://www.grunch.net/synergetics/quadvols.html Kirby Urner (c) MIT License """ from math import sqrt, hypot class PlaneN

Re: [Edu-sig] Processing and Python

2014-04-22 Thread kirby urner
I'm eager to sit in on a Processing talk. Is it open source? I'm surprised it never comes up at OSCON if so. Kirby On Tue, Apr 22, 2014 at 7:08 AM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > Hi, > > I enjoyed Processing for C++/Java teaching, > > and now I stumbled upon Pyth

Re: [Edu-sig] graphical calculator

2014-04-15 Thread kirby urner
On Tue, Apr 15, 2014 at 2:45 AM, Christian Mascher wrote: > Hi, > > >>> Unfortunately, I'd love to do the same in AP Calculus but Graphing >>> Calculators are required on that AP exam. The students need to use the >>> Graphing Calculator all year to be proficient enough by May. >>> >> > in my sta

[Edu-sig] OSCON opens, lets look at the Python track...

2014-04-14 Thread kirby urner
Just topping up at Pycon? Wait, there's more: http://www.oscon.com/oscon2014/public/schedule/topic/1128 However, many more talks than these may mention or use Python as all tracks are partially overlapping in various ways (like a basket of snakes alive!). Sss. I was one of the readers of

Re: [Edu-sig] the idea of "CS-friendly" algebra courses...

2014-04-13 Thread kirby urner
On Sun, Apr 13, 2014 at 11:51 AM, A. Jorge Garcia wrote: > I have a similar problem in AP Computer Science. That course has required > Java since 2003. Frankly, I wish they would have stayed with C++ which we > used from 1999-2002 (a vast improvement over Pascal 1984-1998). I wish > they'd use py

[Edu-sig] the idea of "CS-friendly" algebra courses...

2014-04-13 Thread kirby urner
Re: http://mathforum.org/kb/message.jspa?messageID=9430209 The above-linked thread might garner some forking threads or comment lines here. This branch is mostly dormant on math-teach as of today, but points back to an earlier thread that evoked much discussion (so well may take off again), whic

[Edu-sig] Abducted by Decorators (niche market, esoteric TV allusions)

2014-04-07 Thread kirby urner
""" Learning about Decorators "Just for the fun of it" -- OCN Decorators as Abductors I'm thinking in terms of a specific (aborted) TV series, but the pattern: me = Abduct(me) # @Abduct a callable has generic resonance as a metaphor. Specifically: http://en.wikipedia.org/wiki/Invasion_%28TV_

Re: [Edu-sig] New Python MOOC on Coursera with 100% CC-BY Materials and Book

2014-04-01 Thread kirby urner
On Tue, Apr 1, 2014 at 7:07 PM, Charles Severance wrote: > I think that we make a mistake of having sequences of courses that just > get harder and harder and never loop back and review. > > Hear hear! +1 Kirby ___ Edu-sig mailing list Edu-sig@pyth

Re: [Edu-sig] reviewing the context manager construct

2014-03-28 Thread kirby urner
On Fri, Mar 28, 2014 at 6:04 AM, Vernon D. Cole wrote: > You are working too hard in creating your string literal. > > The *Python Language Reference Manual* says: > >> 2.4.2. String literal concatenation Multiple adjacent string literals >> (delimited by whitespace), possibly using different quo

Re: [Edu-sig] reviewing the context manager construct

2014-03-27 Thread kirby urner
000 00 00 00 000002 On Tue, Mar 4,

[Edu-sig] What's a Callable?

2014-03-27 Thread kirby urner
What's a callable? In making the transition from Algebra to a computer science friendly math class, such as many states have legislatively enabled (Oregon one such state), the distinction between "what's a callable" and "what's not" may feel familiar. Traditional math notation has to disambiguate

[Edu-sig] round trip with unicode (the Latin-1 neighborhood)

2014-03-15 Thread kirby urner
Round Trip in UTF-8: Two Byte Encodings Explanation: Latin-1 includes all of 127 7-bit ASCII and begins the 2-byte encodings in UTF-8. Below, Latin-1 character at code point 200 is represented as bytes then broken down into bits. When utf-8 needs two bytes (it might use up to six), the leading

Re: [Edu-sig] Reeborg news

2014-03-13 Thread kirby urner
This is all great news Andre. Interesting packages that "dissect themselves" in a "what makes me tick" way are doubly valuable, at least doubly. Reeborg's World, which I just visited, looks really friendly / accessible, a great way to learn. I starting move( )-ing immediately. I look forward to

[Edu-sig] A Descriptor (demonstrating the concept)

2014-03-04 Thread Kirby Urner
iptor.html (cc) Kirby Urner, MIT License O'Reilly School of Technology """ class Guardian: """ Takes a field name and a function for screening out banned values for said field name """ def __init__(self, fn, banned): s

[Edu-sig] reviewing the context manager construct

2014-03-04 Thread Kirby Urner
""" Just for Fun A quick sketch of a Context Manager construct. A context manager is a type instance with an __enter__ and __exit__ protocol, and designed to work with a suite indented under a "with statement" (cc) Kirby Urner, MIT License O'Reilly School of T

Re: [Edu-sig] Just for Fun: Another Fractal (ASCII output)

2014-03-04 Thread Kirby Urner
Just to conclude the the code part (from me), I realized while walking this morning that POV-Ray scene description language is such that the ordering of sphere placement would not matter, so just iterate through the keys. The code before tried to construct the keys by duplicating the raster patter

Re: [Edu-sig] Just for Fun: Another Fractal (ASCII output)

2014-03-02 Thread Kirby Urner
Kirby """ Just for Fun: Simple Fractal -> POV-Ray file -- for import into simple_fractal.py or import simple_fractal into this module (cc) Kirby Urner, MIT license 4dsolutions.net Example bash command lines to generate the output file and then render it into a PNG file: mackurner

[Edu-sig] Just for Fun: Another Fractal (ASCII output)

2014-03-01 Thread Kirby Urner
""" Just for Fun: Simple Fractal (ASCII art) (cc) Kirby Urner, MIT license 4dsolutions.net """ class M: """ Plant an M-Seed and call it, in each cell of the Garden """ depth = 7 def __init__(self, x, y):

[Edu-sig] edu-sig web page

2014-02-22 Thread kirby urner
As a former author / maintainer of the edu-sig web page and frequent visitor thereto, I have (a) welcomed the new beta website and (b) sent some feedback to the effect that: (i) opening first link / mention of this edu-sig maillist gets "permission denied" (ii) opening last link /

Re: [Edu-sig] Looking for a course syllabus exemplars for a high school year-long course in Python/Javascript

2014-02-21 Thread kirby urner
ples of functions that are non-numeric in nature. """ http://mathforum.org/kb/message.jspa?messageID=9391791 Related: https://groups.google.com/forum/#!topic/mathfuture/GszzTxcxEoE Kirby On Fri, Feb 21, 2014 at 12:59 AM, kirby urner wrote: > >> >> An excellent tex

Re: [Edu-sig] Looking for a course syllabus exemplars for a high school year-long course in Python/Javascript

2014-02-20 Thread kirby urner
An excellent textbook, mentioned (by me) recently in this ongoing thread: http://mathforum.org/kb/thread.jspa?threadID=2620194 Kirby On Thu, Feb 20, 2014 at 12:54 PM, roberto wrote: > wow, I didn't know that, thanks for sharing > > Roberto > > > On Thu, Feb 20, 2014 at 3:59 PM, Litvin wrote:

Re: [Edu-sig] some Pythonic Math for "code scouts"

2014-02-15 Thread kirby urner
" as ipso facto "paramilitary", though I fully recognize it has gone in that direction a lot already in some parts of the world. Long discussion, maybe on an anthro list. [1] this autobio is partly for the benefit of math-teach readers where we've been talking about my career a

[Edu-sig] some Pythonic Math for "code scouts"

2014-02-14 Thread kirby urner
""" More ActiveMath... by K. Urner (c) MIT License 4dsolutions.net/ocn : Oregon Curriculum Network Merit badge activity: study the Method Resolution Order defined below and make a drawing of the inheritance tree, with object at the top and ScoutManual at the bottom. """ class Cove: def where

Re: [Edu-sig] a segue from discrete math to calculus using Python

2014-02-03 Thread Kirby Urner
In using "bare naked Python" I'm leaving a door open to reviewing calculus, but also to learning about class decorators: __author__ = 'Kirby Urner' """ (c) MIT License, K. Urner, 4D Solutions, 2014 """ from math import log h = delta_

[Edu-sig] a segue from discrete math to calculus using Python

2014-02-03 Thread Kirby Urner
""" Discrete math approach to Calculus This is what I imagine as a segue from discrete math to calc, using Python. We're using a tiny delta_x = h to compute values discretely, and then comparing those computed series with functions "at the limit" such as calculus would give us. It's the same seg

[Edu-sig] OSCON 2014: Call for Participation (proposals due Jan 30).

2013-12-18 Thread Kirby Urner
OSCON, the annual Open Source Convention held in Portland OR, will be held next year from July 20-24. The call for participation has now been published, and there will again be a Python track. Please see the full call at http://www.oscon.com/oscon2014/public/cfp/308. Submissions for 3-hour tutori

[Edu-sig] the Python ecosystem...

2013-12-13 Thread kirby urner
We've been discussing the evolving Raspberry Pi picture on MathFuture somewhat (overlapping contributors), noting Wolfram Language throwing itself in the ring, as another language the Pi supports. My Gchat with Indonesia this evening was about that. I had another Hangout with the eduSummit gang.

Re: [Edu-sig] Fibonacci Numbers and Phi (again)

2013-11-23 Thread kirby urner
Yes, I would consider that an improvement, though I might go back to a generator with: from math import sqrt rt5 = sqrt(5) phi = (1 + rt5)/2 def neat_formula(f0, f1, f2): while True: yield (f0 + f2 + rt5*f1)/2 f0, f1, f2 = f1, f2, f1+f2 power_of_phi = phi**(-6) results = nea

Re: [Edu-sig] Fibonacci Numbers and Phi (again)

2013-11-23 Thread kirby urner
> On Fri, Nov 22, 2013 at 9:49 PM, Litvin wrote: > Kirby, > > I am sorry to spoil all the fun, but this is a not a gem but a > mathematical trick, and I think the way to deal with > mathematical tricks is to explain them, not to verify with code. Having an algebraic verification is more like th

Re: [Edu-sig] Fibonacci Numbers and Phi (again)

2013-11-22 Thread kirby urner
""" Another version, using a generator of Fibonacci "triples"... Encapsulating a discovery -- not a proof. By David Koski (Python by K. Urner) Failure at around 37th power is due to floating point limitations. """ import unittest def fib_triple(a=0, b=1): """ >>> from anyproject import

[Edu-sig] Fibonacci Numbers and Phi (again)

2013-11-22 Thread kirby urner
Here's something mathematical from the Poly list [1], adapting something by David Koski. The code shows how one might use a program to express a cool relationship, without offering a proof. The unit-test shows use raising PHI from the -6 to the 29th power and finding an equivalent expression buil

[Edu-sig] regarding 'iterables versus iterators' (example outbox, for peer review)

2013-10-10 Thread Kirby Urner
t;wow, we have a grown up iterator!") for i in range(4): print(next(theiter)) Output: mary had a little lamb wow, we have a grown up iterator! m a r y === Kirby Urner Senior Python Mentor Python Track / OST ___ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig

Re: [Edu-sig] PyconUK education track

2013-10-03 Thread Kirby Urner
On Thu, Oct 3, 2013 at 8:50 AM, Nicholas H.Tollervey wrote: > > > Were the Bank of America people "STEM ambassadors" or would that be > > more like a parent who wanted to volunteer, and had some > > background in technology? > > > > There are thousands of STEM ambassadors in the UK. Basically, to

Re: [Edu-sig] PyconUK education track

2013-09-29 Thread Kirby Urner
On Sat, Sep 28, 2013 at 12:41 PM, Nicholas H.Tollervey wrote: > > Hi, > > Here's a write-up (one of many, but it's mine) about the PyconUK 2013 > education track for teachers, students and developers that happened > last weekend: > > http://ntoll.org/article/pyconuk2013-roundup > > It was a great

[Edu-sig] bookdemo.py (a Visual Python animation -- reprogrammable)

2013-09-29 Thread kirby urner
""" A Visual Python animation showing a "triangular page" going back and forth between triangular book covers laid flat against the XY plane. The page tip traces a semi-circle (not displayed but certainly computed). As a result of two triangular "flaps" (cover and page) at some dihedral angle, a te

[Edu-sig] stickworks.py (Python 3.2 edition)

2013-09-29 Thread kirby urner
e may have word-wrapped during transport. Perform standard maintenance before first use. Kirby """ Some infrastructure for working with Vectors and Edges, including an xyplotter generator and axes maker. (c) By Kirby Urner, Sept 13, 2006, 2013, MIT License # no warranty, "a

Re: [Edu-sig] Quantities and Units in Python

2013-09-24 Thread Kirby Urner
Interesting resources thank you. Dr. Dobbs gets to write about Python under the heading of JVM Languages. Interesting. Sure, that's right. Jython is a Python. Kirby On Tue, Sep 24, 2013 at 3:43 AM, Vernon D. Cole wrote: > Given that my first useful programs were written to solve physics la

[Edu-sig] Leveraging Python (recap of Djangocon workshop)

2013-09-19 Thread Kirby Urner
Good recap of a lot of my old themes, repackaged for this flagship conference. I was an invited representative of the greater Python community helping Djangonauts (Djangstas <-- my preferred, if we're doing nicks) pick up some vibes from the Great Hall is it were (Vaults of Parnassus or whatever).

Re: [Edu-sig] Looking back on Chicago (Python workshop)

2013-09-09 Thread kirby urner
> My schtick involves a mythical Python5, an add-on to my current courses, > wherein we adopt a Model-View-Controller approach, as start with really > simple views (i.e. ASCII art), knowing in advance the visualizations will > be upgraded, using both render-time and real-time pipelines. The Model

[Edu-sig] Looking back on Chicago (Python workshop)

2013-09-09 Thread kirby urner
I had a good workshop in Chicago. Two of the attenders worked assiduously on developing a native Linux installer for Visual Python (the latest) that wouldn't depend on Wine. The one guy brought his junky laptop (his "other" computer) and it overheated compiling all of wx (the latest Vpython integ

Re: [Edu-sig] the zip( ) function in Algebra 2?

2013-08-30 Thread Kirby Urner
For those of you still scratching your heads, there's a version issue here as well. Since I teach 3.x for a living, these little difference are in my face all the time. More from FaceBook: Steve Holden: Zip() not a function? Where on Earth did you get that strange story from? It may return an

Re: [Edu-sig] the zip( ) function in Algebra 2?

2013-08-30 Thread Kirby Urner
"Actually Dr. DiNucci is right in a subtle way: zip( ) is not a function, it's a type, and primitive types are callables in Python. I should follow-up on that point on edu-sig (too technical for math-teach). Thanks Dave. zip objects, like ranges, enumerations, other sequential things, are objec

[Edu-sig] the zip( ) function in Algebra 2?

2013-08-29 Thread Kirby Urner
I make a big deal out of this Python fragment in a Math Forum essay I recently posted: >>> result = zip({"planet", "comet", "sun"}, {"paramecium", "duck", "aardvark"}, {"banana", "apple", "orange"}) >>> list(result) [('planet', 'aardvark', 'orange'), ('sun', 'paramecium', 'apple'), ('c

Re: [Edu-sig] setting the stage (short essay)

2013-08-27 Thread kirby urner
Here's some literary criticism regarding my little essay above: Today's reading is finding relatively less of a direct Athena-Apollo tension as that's not her Python he killed. She had a twisted "son" (he'd have to be, given her virginity -- at least the story is twisted) who looked like serpent

[Edu-sig] setting the stage (short essay)

2013-08-26 Thread kirby urner
At my upcoming workshop in Chicago I'm planning to stress the relevance of theater as *the* extended metaphor where scripting and browsing is concerned. JavaScript pulls the the strings of our DOM, the scenery or structure of the web page stage, while Servers are even further behind the scenes tha

[Edu-sig] Tetrahedron class with volume computer based on edges only

2013-08-17 Thread kirby urner
""" Euler volume, modified by Gerald de Jong http://www.grunch.net/synergetics/quadvols.html Kirby Urner (c) MIT License """ from math import sqrt, hypot class Tetrahedron: """ Takes six edges of tetrahedron with faces (a,b,d)(b,c,e)(c,a,f

[Edu-sig] illustrating send (used with yield) very simply

2013-08-16 Thread kirby urner
""" Plain vanilla Fibonacci Numbers but with the ability to reset the initial pair mid-course Kirby Urner (c) MIT License """ import unittest def fibs(a, b): while True: d = yield a # send to a, b if d: a, b = d[0], d[1]

[Edu-sig] part time Python teacher: job opening

2013-08-13 Thread Kirby Urner
Here's a job opening at O'Reilly like the one I started in, and which eventually became full time. http://hire.jobvite.com/CompanyJobs/Careers.aspx?c=q319VfwS&jvi=oGQLXfwY,job I'm spreading news of it on lists where I already know we have talented people who might be looking for something part ti

[Edu-sig] Leveraging Python (tutorial) in Chicago (Sept 2)

2013-08-07 Thread kirby urner
I just posted these two things to Chipy, the Chicago Users Group, in hopes of maybe attracting some Pythonistas to my tutorial, Sept 2. http://mail.python.org/pipermail/chicago/2013-August/011323.html http://mail.python.org/pipermail/chicago/2013-August/011324.html One of the goals of the DSF (Dj

Re: [Edu-sig] Group Theory for Girl Scouts (and Boys too)

2013-07-19 Thread Kirby Urner
> There's some playfulness here, with duck typing, in that the parameter > name suggests a set, yet we pass a string, then work with listifications. > This allows more types of input, yet the output should always be: a dict, > a mapping, a permutation. Running it now, I get: > > P1: {'1': '6', '

[Edu-sig] Group Theory for Girl Scouts (and Boys too)

2013-07-18 Thread kirby urner
One of my favorite topics in mathematics which I think is accessible to kids, is that of "permutations" treated as objects, and made to "compose". To this I affix the notion of "substitution code" or "club house code", one of the simplest ciphers imaginable, and we're off, studying Group Theory. Th

Re: [Edu-sig] Use of "badges" to encourage learning

2013-06-27 Thread kirby urner
On Thu, Jun 27, 2013 at 7:17 AM, Andre Roberge wrote: There seems to be a trend on various websites to award users "badges" to keep track of progress. Other than the rationale that "everyone is doing it this days so it must serve a purpose", do any of the edu-sig readers have experience with using

Re: [Edu-sig] FYI: Discrete Math class this year

2013-06-08 Thread kirby urner
This is an amazing resource / web site. I just wandered around in it awhile, blundering about. It's wonderful that you took the time to make so much of your classroom material world readable. Kirby On Sat, Jun 8, 2013 at 7:36 AM, A. Jorge Garcia wrote: > We played around with SAGE, Python,

[Edu-sig] more promoting of Python for STEM curricula

2013-06-06 Thread Kirby Urner
More promulgating of: 'Mathematics for the Digital Age and Programming in Python' on the math-teach / Math Forum list (hosted by Drexel U) where I'm a regular poster: http://mathforum.org/kb/thread.jspa?threadID=2574824 I put it on a "syllabus" of only three books, suggesting a kernel or core s

Re: [Edu-sig] Maintaining the edu-sig page on python.org

2013-04-25 Thread kirby urner
On Thu, Apr 25, 2013 at 4:07 PM, kirby urner wrote: > I see the edu-sig page as being primarily a front page for this email > list, where the subscribers have updated more current information. > > The text of the page should encourage asked questions of our > subscribers versus a

[Edu-sig] latest blog re generators & geometry

2013-04-25 Thread kirby urner
___ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig

Re: [Edu-sig] Maintaining the edu-sig page on python.org

2013-04-25 Thread kirby urner
I see the edu-sig page as being primarily a front page for this email list, where the subscribers have updated more current information. The text of the page should encourage asked questions of our subscribers versus always trying to remain comprehensive about every cool tool, toy, book or educati

Re: [Edu-sig] Maintaining the edu-sig page on python.org

2013-04-25 Thread kirby urner
I'd gladly take it back however I'm also quite happy to see a wider circle of maintainers. I don't need to hog all the fame and glory. ;-D There's a website redesign going on right now, as you know, so the implications of page maintenance will change from what they were (presumably less cumbersom

[Edu-sig] illustrating a class wrapper

2013-04-16 Thread Kirby Urner
def g(x): return x + 2 class Hijack: def __init__(self, f): self.f = g def __call__(self, x): return self.f(x) @Hijack def f(x): return x * x print(f(10)) print(f(100)) The code above shows a decorator, Hijack, that takes a function g from the global namespace and sw

[Edu-sig] explaining about decorators

2013-04-16 Thread Kirby Urner
I'm sure this could be improved upon and/or is discussed more eloquently elsewhere. I'm inviting links, comments. I recall our own discussion here on edu-sig where we played with @D def f(x):... as taking a Derivative of f. Guido didn't think it was such a great idea as I recall. http://arobe

[Edu-sig] another Python generator (Bernoulli numbers)

2013-04-16 Thread kirby urner
from fractions import Fraction as R def choose(n, k): """ chosen / adapted from: http://www.velocityreviews.com/forums/t502438-combination-function-in-python.html """ ntok = 1 for t in range(min(k, n-k)): ntok = ntok*(n-t)//(t+1) return ntok def Bernoulli(): "

[Edu-sig] another Python generator (logarithmic numbers)

2013-04-14 Thread kirby urner
from fractions import Fraction as R def Gregory(): """ Gregory Coefficients ( http://en.wikipedia.org/wiki/Euler-Mascheroni_constant) 1/2, 1/12, 1/24, 19/720, 3/160, 863/60480... using fraction module to keep it rational. """ G = [R(-1,1)] def Sum(n): total = R

Re: [Edu-sig] import turtle ERROR

2013-04-11 Thread kirby urner
> ** ** > > So I copied the file to the desktop and test it from there but that failed > too. *I eventually copied the file to the python directory (c:\python33) > and that worked*. > > > Hi Karine -- This sounds like an issue with sys.path, a list of directories to search when import is used

Re: [Edu-sig] online coding?

2013-03-20 Thread Kirby Urner
On Tue, Mar 19, 2013 at 10:40 PM, Rakesh Barve wrote: > Hi > > I am not an expert but one recent development is dynamic languages such as > Python can now be interpreted and run inside browsers, making it possible > to do the below kind of stuff as well as execution with no need of servers. > > O

Re: [Edu-sig] Python Epistemology

2013-03-19 Thread Kirby Urner
On Sat, Mar 16, 2013 at 10:07 PM, Kirby Urner wrote: << snip >> > We're on the same page as the Mathematica people here, and I don't think > we should worry about any winner-take-all, king-of-the-hill story here. > IPython Notebook has a Mathematica flavor and tha

Re: [Edu-sig] Edu-sig Digest, Vol 116, Issue 4

2013-03-17 Thread kirby urner
On Sun, Mar 17, 2013 at 2:00 PM, Jeff Elkner wrote: > Walter's Turtle Blocks already saves as SVG, and it's written in Python. > Wow, I didn't realize Turtle Blocks already had SVG output implemented! I'm heading towards running Sugar on my Mac OS VirtualBox. Kirby _

Re: [Edu-sig] Edu-sig Digest, Vol 116, Issue 4

2013-03-17 Thread Kirby Urner
On Sun, Mar 17, 2013 at 6:31 AM, Jeff Elkner wrote: > Lee, if you are looking for a classroom teacher to try out pyguin in > the classroom, sign me up! I'll have it installed in my lab on > Thursday, when I return, in any case. It rocks! > > Now a question: how difficult would it be to get pyg

Re: [Edu-sig] Python Epistemology

2013-03-16 Thread Kirby Urner
On Sat, Mar 16, 2013 at 8:14 PM, michel paul wrote: > This was the title of a 5-minute 'lightening talk' by Allen Downey, author > of Think Python , > during > the educational summit here at PyCon. Main points: > > * > >- Nat >ural

[Edu-sig] post Education Summit at Pycon

2013-03-14 Thread kirby urner
Greetings from Pycon 2013 in Santa Clara. We enjoyed a day long Education Summit on Pi Day today (3/14) an pun (py vs pi) that did not go unnoticed. The program featured a keynote by Walter Bender, founder of Sugarlabs, followed by an unconference of three consecutive sessions and seven lightning

Re: [Edu-sig] Python MOOC (massive open online course)

2013-03-06 Thread kirby urner
On Wed, Mar 6, 2013 at 7:56 AM, John Posner wrote: At the nytimes.com site, I came across a reference to this Python course in the comments to Thomas Friedman's latest column: http://blog.topfreeclasses.com/2012/12/an-introduction-to-interactive-python.html Does anyone have any direct knowledge

Re: [Edu-sig] Python testimonial sought...

2013-02-19 Thread kirby urner
was not it. (I did watch the entire video) What I am looking for was > something written by a fourth-year University student about a final year > project. > > André > > > On Mon, Feb 18, 2013 at 10:05 PM, kirby urner wrote: >> >> Hi Andre -- >> >> My

Re: [Edu-sig] Python testimonial sought...

2013-02-18 Thread kirby urner
Hi Andre -- My clearest memory along those lines was it was a "talking head" maybe Jeff Elkner himself in that student-made video about the virtues of Python. You may recall the video: there's an "old hippie" dad, a parody of a student's father. It's a kind of love story, where this girl show t

[Edu-sig] Overview to students re Python & GUIs: open to improvement

2013-02-14 Thread Kirby Urner
ay have an extensive background in GUI stuff for all I know, this is not CS0 or CS1 in that we get people with decades of coding experience, just wanting to pick up Python as another tool in their tool belt). Kirby Urner O'Reilly School of Technology Note that Python-the-language stays rea

Re: [Edu-sig] (no subject)

2013-02-07 Thread Kirby Urner
On Sun, Feb 3, 2013 at 6:31 PM, kirby urner wrote: << SNIP >> > Your idea to do fractions, to build them from the inside out, is a > good idea. You could start with Guido's record-simple GCD function, > for Euclid's Algorithm, then gradually build out with __ad

Re: [Edu-sig] (no subject)

2013-02-03 Thread kirby urner
Hi Dan -- You ask a lot of good questions. I don't think it's required that you know Python cold (i.e. really well) before sharing it with your daughter or others. They see you're tackling something and getting better at it bit by bit, like sailing, playing the guitar, and that's inspiring. If

Re: [Edu-sig] Python's keywords and functions convertor into native language for lowering entrance barrier

2013-02-02 Thread kirby urner
I think Kython is a wonderful idea, and corresponding trainers in any Unicode language. Ideally there'd be a Kython -> Python translator, even at the source code level, that only swapped in the Python keywords, builtins, special names, Standard Library names. This looks like a "round trip" exerci

Re: [Edu-sig] Python's keywords and functions convertor into native language for lowering entrance barrier

2013-01-30 Thread kirby urner
Hi Murat -- I presume you know that Python 3 source code may use any Unicode strings for names, including variables, functions, classes and so on. That leaves 33 keywords in English. >>> import keyword >>> keyword.kwlist You can write a script that simply catalogs synonyms for builtins. >>> ба

Re: [Edu-sig] Teaching Math with Python

2013-01-28 Thread kirby urner
On Sun, Jan 27, 2013 at 9:52 PM, Dan Peirce wrote: > I came across an old story at > http://onlamp.com/pub/a/python/2000/10/04/pythonnews.html > > about Teaching Math with Python. > Unfortunately the links are now broken. Is there more current > information available? > Any online publications?

<    1   2   3   4   5   6   7   8   9   10   >