Using Bottle as a miniature demo server

Let's talk small. When writing API's, it sometimes helps to have a small demo web site to show the API in a context that's easy to visualize. API's are sometimes abstract, and without an application to provide some context, it can be unclear why the path looks like that or …

more ...


PyCrypto Experience

Let me start with a wow. PyCrypto is very nice. Let me emphasize the add-ons that go with PyCrypto. These are as valuable as the package itself. Here's the story. I was working with a Java-based AES encrypter that used the "PBKDF2WithHmacSHA1" key generator algorithm. This was part of a …

more ...


Some Basic Statistics

I've always been fascinated by the essential statistical algorithms. While there are numerous statistical libraries, the simple measures of central tendency (mean, media, mode, standard deviation) have some interesting features.
Well. Interesting to me.
First, some basics.
def s0( samples ):
    return len(samples) # sum(x**0 for x in samples …
more ...



Package Deal for Learning Python

If you're very new to programming in general, Python's a great place to start.
There are many, many tutorials. I won't even try to summarize them. They're generally good. And the more you read, the more you learn.
Moving past the n00bz needs, there are some more advanced books. Here's …
more ...