code samples


Pythonic, but not prophetic

Posted on 09 September 2006 by jose

I was asked to present sample Python code recently. I figured since it was close to hand, digitally speaking, I might as well put it here as part of my code samples. The code below stems from my attempts to keep my dynamic IP address updated with my DNS provider (Zoneedit, if you're keeping score). That can be tricky sometimes; I've had instances when the Zoneedit DNS servers seem completely unresponsive, so no matter how clever the script, it can't really update anything. This is fairly rare, but extremely frustrating when it occurs.

Addendum to dynamic plugins

Posted on 08 August 2006 by jose

I ran my page through the W3C's validator and discovered that it was not XHTML 1.0 strict. It had several errors, and tracking these down led me to discover that my hack to get Democracy to play nicely with WP-Cache still had a bug: I was getting a MySQL error in the code for the poll form, where the form action would appear. This didn't interfere with the page rendering (as far as I can tell), so it was invisible until I looked at the source or, better yet, had a validator do it.

Dynamic Plugins and Caching

Posted on 03 August 2006 by jose

How I got the Democracy poll plugin to work with WP-Cache

WP-Cache is a useful plugin. Although I've never been Slashdotted, other people who have and are using Wordpress swear by it. It does have a minor flaw. I have a poll plugin, Democracy, that is obviously supposed to be dynamic. It's rather lame to go to a page, vote on a poll, and not see any results because the page is cached. It turns out that WP-Cache has a mechanism for getting around this, allowing dynamic plugins on static cached pages.

RPG Navigation

This is an early site navigation I wrote in PHP and HTML for one of my sites. It is NOT the navigation that I currently use on these pages, although it is the basis for the dev.hackwater.net navigation. I suppose it would be the evolutionary parent of the later design. It isn't particularly dynamic, other than the fact that each individual page in the site has exactly the same navigation, and the server takes care of hiding and displaying subsections.

Latest poll

Which do you favor?

Choices

Twitter