Archive for October, 2007
Computability – Typed Lectures and Tutorials
(Updated Oct. 30th)
I’m typing the lectures of the course 236343 Computability Theory this semester. Attached are my lectures notes in PDF form:
Encrypted my Wi-fi
Reading some backlog on this blog, I found the following gem:
It’s a sad state of affairs that people go ahead and limit access to their wireless network. I keep mine wide open – מי שאוכל לבד, מת לבד.
Yeah… not so anymore. For about four weeks (just a bit before the semester started), my net connection was working excrutiatingly slow. Now, we’re four roommates here, so we started blaming each other. But then I had a guess – I encrypted my connection with WPA/TKIP, and presto; the connection is now once again too fast for my browser to handle (…which sent me back to Epiphany). Guys, if you mooch wi-fi, please… be nice about it
Schedule for Winter 2007
Here is my schedule for this semester.
On Threading vs. Processing
Writing multi-threaded applications in Python is often a headache because of the Global Interpreter Lock – only one Python thread can run at any given moment, which makes multi-threading useful only in the case where all modules but one actually run C code. However, thanks to the impressive new Python Magazine, I’ve stumbled across a package called processing, paraphrasing python’s built-in threading package. Essentially, the package provides an API identical to Python’s threading, but uses processes and pipes (or other mechanisms on non-posix operating systems) instead. What the magazine does not cover is the fact that this can also benefit GUI applications; updating a progressbar in the application doesn’t need to slow down heavy computations being done in a separate thread. To show how easy the integration is, take the following example which shows usage of either threads or processes at the user’s choice:
