Archive for April, 2009

My new pet project

I’ve seen a lot of these “viral networking” websites that are designed to get traffic to your web site. I’ve also seen a bunch of websites that help (or at the very least, provide tools) to build your referrals in places like traffic exchanges and other online tools.
Since I’ve run into some difficulties during [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Python Round Up

I really haven’t spent much time looking around at Python blogs/pages/etc lately. But, since I’m procrastinating from the whole NaNoWriMo thing, I spent time today doing that.

Easy Python decorators –some examples of creating Python function decorators using the decorator module.
Python 3 Patterns and Idioms –early development of an open source book to discuss patterns [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Sending HTML Email From Python

I forget where exactly I found this, but the other day I needed a quick Python method to send an HTML email — in my case, it was in response to a Web CGI request, but this example below is usable anywhere. The bits that need to be changed for different situations should be [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Death of a Hard Drive

On Saturday, one of the hard drives in my near ancient Linux server failed. Even though I had back-ups of some of my data, I was lax and hadn’t backed up some of the information for a few of the web sites that reside there.
So, until I can rebuild those web sites, I have [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Singleton Pattern for Python

In software engineering, the singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. Sometimes it is generalized to systems that operate more efficiently when only one or a few objects exist.

class [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace