python tutorial video

138 views
Skip to first unread message

Massimo Di Pierro

unread,
Mar 7, 2011, 8:02:02 PM3/7/11
to web2py-users

Stefaan Himpe

unread,
Mar 8, 2011, 7:33:45 AM3/8/11
to web...@googlegroups.com
> http://vimeo.com/20743963

I'm a bit intrigued by how the screencasts are made.
Given that they show no typos and constant typing speed, I assume you
made (or found) a system that takes a text file as input and renders it
to a screencast automatically?


Massimo Di Pierro

unread,
Mar 8, 2011, 9:32:44 AM3/8/11
to web2py-users
Something like that. Actually the typing speed is random.

It is a tool I am working out, trying to automate my teaching job.

It is inspired by this:
http://code.google.com/p/playerpiano/
but not related and does more stuff.

Once I am done I will release it.

Massimo

DenesL

unread,
Mar 8, 2011, 9:37:13 AM3/8/11
to web2py-users

Sorry for the nit picking on a good overview of Python showing
important concepts, but I caught a few typos:

Line 156 (around 13:30)
Python programmers prefer using 'self' instead of 'self'
should obviously be
Python programmers prefer using 'self' instead of 'this'

around 18:00
190> print D(sin,x)
x is never initialized to the value of 1 mentioned in the comments
print D(sin,1)

194> print D(lambda y: f(7,y),1)
should be
print D(lambda y: g(7,y),1)
g being the function previously defined.

and at the very end:
233> # you can redistrubute this video freely
233> # you can redistribute this video freely

Note: I did not check the statistical functions defined around 23:00.

And, Massimo please don't use that short looped background music.

mart

unread,
Mar 8, 2011, 10:38:45 AM3/8/11
to web2py-users
That is so cool! something like text-to-speech, but with purpose! If I
can guess, you take a script, comments get read and typed out
(displayed differently, different color maybe) while code gets
exec'ed? Or what ever you are using, its Ingenious! I was just
thinking "now that guy has to be the best typer ever!" or "how'd he
get Say to do that?" ;) Kind to have to wonder how great and so much
less painful it would be to do code reviews this way ;)

Then the next step, speech-to-text? Can almost see plugin_wiki getting
in the game! Something like Dictate or DNS, but versions that
understand and use Markmin & keywords and color codes (to mark the
difference between code & text, etc) ;)

like:

'RECORD' GREEN_USE_HEADER1 # My Title | BLUE_USE_TEXT blablablabla |
PINK_USE_CODE_PYTHON OPEN_CRAZY_QUOTE `` OPEN_WEB2PY_BRACKETS {{say
some code... CLOSE_WEB2PY_BRACKETS }} CLOSE_CRAZY_QUOTES `` |
GREEN_USE_HEADER2 ## another title | PURPLE_USE_WIDGET_SELECT, etc

I'd like to see those 2 products try to do something like that ;) LOL

Music: I agree with DenesL (i think the twins were still humming the
tune this morning) My suggestion -> Konstantin Scherbakov, maybe
Liszt's transcriptions of Beethoven symphonies for the Piano (He did
all 9, does not miss a thing and are on all fronts, perfect.) - its
the analogy: not well known, yet a master's opus! ;)

On Mar 8, 9:32 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:

DenesL

unread,
Mar 8, 2011, 3:46:47 PM3/8/11
to web2py-users


On Mar 8, 10:38 am, mart <msenecal...@gmail.com> wrote:
>
> Music: I agree with DenesL (i think the twins were still humming the
> tune this morning) My suggestion -> Konstantin Scherbakov, maybe
> Liszt's transcriptions of Beethoven symphonies for the Piano (He did
> all 9, does not miss a thing and are on all fronts, perfect.) - its
> the analogy: not well known, yet a master's opus! ;)

Excellent choices.

Stefaan Himpe

unread,
Mar 8, 2011, 5:10:10 PM3/8/11
to web...@googlegroups.com
My suggestion -> Konstantin Scherbakov, maybe
>> Liszt's transcriptions of Beethoven symphonies for the Piano
>

His Lyapunov etudes are well worth listening to as well :)

mart

unread,
Mar 8, 2011, 8:25:41 PM3/8/11
to web2py-users
dah . dah . dadah..dadadah...!!! yes please!! A definite must,
agreed!!! :) Alright, now I know I should have IM'ed in sick (although
I work remotely from home, but still), cranked up the volume, and just
floated away... Now, I love my ipod touch again :)

Massimo Di Pierro

unread,
Mar 9, 2011, 7:43:39 AM3/9/11
to web2py-users
will fix typos, change music and redo it.

Vinicius Assef

unread,
Mar 9, 2011, 11:42:04 AM3/9/11
to web...@googlegroups.com
Let us know when new version will be available, ok?

David J.

unread,
Mar 9, 2011, 11:46:37 AM3/9/11
to web...@googlegroups.com
No it not ok: I dont think that will be Massimo's intention; When he
releases the update it will kept a BIG secret and he will not notify
anyone; as he usually does!

Only kidding; you will be the first to know!

stefaan

unread,
Mar 9, 2011, 11:49:59 AM3/9/11
to web2py-users

> It is a tool I am working out, trying to automate my teaching job.

I seem to remember you mentioned using some mac os program "Say" to
generate the speech.
If it could be replaced with e.g. the text-to-speech as offered by
google on their translate.google.com page,
it 'd become cross-platform and multi-lingual... (apparently someone
even made a python module for that: gtexttospeech - disclaimer: I
haven't tried it out.)

I think declaratively generating screencasts is a seriously cool idea,
a bit like the screencast equivalent of
"slide generation via LaTeX".
Reply all
Reply to author
Forward
0 new messages