Archive for April 09, 2008

import sexy

09.04.2008 22:03

posted by: Benjamin Smith

Posted Under: , ,

So I was looking at some of the python source for Compiz Fusions' CCM and was quite amused to find this near the tip top of the code:

    try:
        import sexy
        has_sexy = True
    except ImportError:
        print "Info: No sexy-python package found, don't worry it's optional."
        has_sexy = False
Now, I know about libsexy, but it just cracked me up to see that in code after having a few high ABV beers.

0 comments | 0 pingbacks

Again with the site cleanup..

09.04.2008 19:24

posted by: Benjamin Smith

Posted Under: ,

So I got bored again, go figure. I wrote some code that converts my titles into 'slugs' much like wordpress. I then altered my blog table to include it as an index, wrote a quick script to parse my titles and insert them and changed my templates to link via them. Throw in some rewrite magic and wala; hot sauce.

I'm glad I wrote this code base to be simple to manage and extend :). I'm kinda curious how it would fair from a security standpoint, however. Maybe I should just write it off and go ahead with something already baked; but it's fun to muck around like this.

Also, I'd like to appologize for anyone subscribing via a reader. It'll mark all my posts as unread due to the changes.

Sorry!

0 comments | 0 pingbacks
Previous day Next day