If you’re running a site that aims to be more than just a small journal or hub for your close friends to go to, you run into the problem of making sure that the site loads quickly and correctly for any visitor.
By “correctly”, I mean that it looks the same in all browsers. This is the easier of the two problems, since if you a platform such as WordPress, most of the available themes solve that problem for you.
Now, serving pages quickly can be tricky.
Continue reading “How to Make WordPress Run Faster”
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.
Continue reading “Perspective Broker Authentication for Stackless Python”
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.
Continue reading “Multi-Threaded Twisted / Stackless Integration”
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”
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”