Quick and Easy Image Zoom Using JQuery

I maintain/manage some Websites that are developed by outsiders. Some of them are stuck (for one reason or another) using older tools and software packages … namely Microsoft FrontPage. In one of the websites, in particular, the previous method of showing a larger/zoomed-in version of an image was to open a new tab or browser window using the image’s URL.

After some discussions with the site’s creator and it’s owner, we decided to bring the design up to current practices, and use a modal dialog to display the images. So, I turned to the handy-dandy search engines and, after some searching, settled on ThickBox as the JQuery plugin to use.

Continue reading “Quick and Easy Image Zoom Using JQuery”

How to Make WordPress Run Faster

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”

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.

Continue reading “Multi-Threaded Twisted / Stackless Integration”

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”