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.

Continue reading “Observer pattern for Python”

Getting and Keeping Web Traffic

I’m always doing research on how to get Web content ranked well in search engines such as Google or Bing.  Part of that research involves figuring out how to get new client Web sites ranked well in a cost-effective manner (since getting the resulting traffic for free beats everything).

Continue reading “Getting and Keeping Web Traffic”

How To Connect Windows 7 to a VPN

When you need to connect into your workplace or home network, you can use a VPN (Virtual Private Network) to do this.  This sort of setup is ideal for frequent travelers who need to connect their laptop into another network while on the road.  This 7 step how-to covers connecting your current machine to a remote network that has already been setup with a VPN.

Continue reading “How To Connect Windows 7 to a VPN”

Event-based Programming for Python

Oftentimes, you need to have objects that communicate with each other via events. This is a very useful setup, for example, in a GUI — where these events represent things like mouse clicks, key strokes, or button presses. That’s not what I developed these classes for, since I was more interested in simulating things and the event system seemed like the most natural fit, but the recipe is still relevant to other event handling needs. Continue reading “Event-based Programming for Python”

Stackless Python meets Twisted Matrix….

Sometimes, you come across two programming toolkits that would go great together. However, in the case of Twisted Matrix and Stackless python, there’s some legwork required to get these two great systems to work together.

Continue reading “Stackless Python meets Twisted Matrix….”