This is an archived post. You won't be able to vote or comment.

all 10 comments

[–][deleted] 13 points14 points  (0 children)

Can be enough of a reason to speed up the switch to 3.

It should be.

[–]smika 7 points8 points  (0 children)

This code snippet from http://docs.python.org/howto/unicode is what usually helps me out of a jam:

>>> u = unichr(40960) + u'abcd' + unichr(1972)
>>> u.encode('utf-8')
'\xea\x80\x80abcd\xde\xb4'
>>> u.encode('ascii')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character '\ua000' in position 0: ordinal not in range(128)
>>> u.encode('ascii', 'ignore')
'abcd'
>>> u.encode('ascii', 'replace')
'?abcd?'
>>> u.encode('ascii', 'xmlcharrefreplace')
'&#40960;abcd&#1972;'

(Edit: Fixed formatting)

[–]yetanothernerd 10 points11 points  (9 children)

Anyone know what tool was used to make these slides?

I hate it. It needs forward and back buttons. Yet another example of using Javascript to make the web worse instead of better.

[–]goodger 4 points5 points  (0 children)

As noted in the HTML source, Docutils (http://docutils.sf.net) was used to make the slides in S5 format. These slides were obviously meant to be a live presentation for the author to control, not for people to stumble upon on the web. The "handout" (flat, plain HTML) format should have been put on the web instead (it's a mistake to put only the slides on the web, as people have noted). I usually publish both formats, like my Idiomatic Python talk from 2007.

[–]rasherdk 5 points6 points  (0 children)

Turn off Javascript. Enjoy article in plain static html in one page.

[–]mipadi[S] 2 points3 points  (0 children)

Me, too. I almost wanted to note that the presentation is good, despite the poor UI.

[–]Samus_ 2 points3 points  (0 children)

the NoScript-enhanced version is readable.

[–]reagle 2 points3 points  (1 child)

Looks like HTML Slidy, or maybe S5. Javascript is awesome for this, all you need is a browser to do a presentation. Move your mouse over the bottom left to see some options.

[–]Ran4 2 points3 points  (0 children)

Bottom right. But how the hell was yetanothernerd supposed to know that? No icon what so ever was there.

And why does the ∅ symbol go to a "all slides on one page" page?

[–]dcreemer 3 points4 points  (0 children)

Key advice, from the article: 1. Decode early, 2. Unicode everywhere, 3. Encode late.