How to Get mod_rewrite to Work With Forms
| November 6, 2010 | Posted by Stephen Coursen under Web |
I’ve been developing a new Web site that uses Apache‘s mod_rewrite to make “pretty” URLs instead of exposing both the script name and parameters to the end user. For example, instead of seeing a URL like http://blahblahblah.com/somepage.php?page_id=details, the end user sees http://blahblahblah.com/details.
Quick and Easy Image Zoom Using JQuery
| October 24, 2010 | Posted by Stephen Coursen under Programming, Web |
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.
How to Make WordPress Run Faster
| October 16, 2010 | Posted by Stephen Coursen under Web |
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.
Perspective Broker Authentication for Stackless Python
| October 9, 2010 | Posted by Stephen Coursen under Programming |
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.
Multi-Threaded Twisted / Stackless Integration
| October 7, 2010 | Posted by Stephen Coursen under Programming |
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.

