Posts Tagged by python

Project Euler Problem #1

Euler_main

Problem #1 at Project Euler is, besides being the problem with the most solutions provided to it, happens to also be a pretty good place to start working our way through the process.

(more…)

Beta Test Starting Soon For Email Auto-Responder System

E-mail

Mailing lists … they’re one of the most popular, and easy, methods of using your website to make money.  I’ve used a few different list manager systems over the years, but they all seemed to miss (at least) one thing that I found useful or needed to make the list behave the way I wanted it to.
(more…)

Perspective Broker Authentication for Stackless Python

Twisted Matrix’s Perspective Broker is, to me at least, the main compelling reason to use the entire framework. It’s also an area that is lacking in documentation that is usable to a newbie to the framework.

One of the things provided by the Perspective Broker is an authentication framework, based around the concept of an avatar. We’re going to create a Perspective Broker authenticator that is more complex than what is presented in the Twisted Matrix documentation.

(more…)

Multi-Threaded Twisted / Stackless Integration

Another way to integrate Twisted with Stackless python, is to use multiple threads. One thread handles Twisted’s reactor while Stackless tasklets run in at least one other thread. This lowers the deterministic nature of Stackless, but for certain conditions may be more effective than trying to integrate Twisted and Stackless into a single thread. Communication between the threads is handled through a channel, which according to the documentation for Stackless python is thread-safe.

(more…)

Observer pattern for Python

The Observer pattern is mainly used to implement a distributed event handling system. The primary objective of this pattern is to provide a way to handle run-time one-to-many relationships between objects in a loosely coupled arrangement.

(more…)

« Previous PageNext Page »