Never go to a doctor with dead office plants

Mike showed me two sweet websites that help with RSS feeds.

The first is Feed Rinse. Feed Rinse is a free website that will allow you to setup an RSS feed that filters another RSS feed. This means if you subscribe to an RSS feed that has a bunch of subjects that you don’t care about you can filter them out.

The second is Feed 43. Feed 43 (or Feed For Free) is a free website that allows you to convert any website that doesn’t have an RSS feed into an RSS feed. I haven’t had a chance to play with this yet but it looks like you need to write some sort of script to determine what on the site should be considered an article etc. I’ll post about it again after I play with it for a while.

Filesystem Photo Gallery

I’ve been looking for a good filesystem-based Gallery system for a while. I haven’t been able to come up with one that has the features and is as lightweight as I’d like it. Therefor I decided I’d write my own. I implemented the first version in .NET but have since ceased development and decided to move away from IIS/windows and begin using linux/apache and an external host (powweb). I also want the Gallery system to work seamlessly with WordPress and any other PHP based content management system (or blog engine). Therefor I decided to scratch the .NET version and start on a PHP based version.

I started working on my new PHP filesystem based Gallery system last night. It’s intended to be extremely lightweight with no database interaction. It will assume the first image in a directory should be the ‘thumbnail’ for that directory. It will dynamically generate thumbnails for images which do not yet have a thumbnails. This is so that they are only created once.

I’m very surprised at how fast the The system is coming together. I suspect that in a few days I’ll have a working version with most if not all of the features I’m looking for.

The only problem is I have no Idea what to call it. If anyone has any suggestions I’d love to hear them.

As soon as I come up with the name I’ll publish a google code site with all the documentation and downloading goodness.

Mets 1 Yankees 0

Friday I drove down to Poughkeepsie to see Charles for his birthday. After arriving we went straight to the city to meet some friends of his and goto the Mets game. The Mets won. The game had nothing to do with the Yankees I just like to taunt Yankee fans. After the game we met up with Sanjay for a lesson in expensive drinking and a place to stay.

Saturday Charles headed back to Poughkeepsie while I headed to the International Car Show with Sanjay. Check out the 2008 Ferrari for a sample. I’ll post a link to the whole gallery once the photo gallery comes back up. After the car show we met my Brother for sushi at Lan and had probably the best sushi I’ve ever had. After dinner my brother and I went to one of NYC’s oldest pubs McSorley’s for some Beers. They only give you two options, Light or Dark McSorley’s and when you order a drink they always give you 2 instead of 1. After that it was time to catch the train back to Poughkeepsie so we said our good byes and headed out.

That’s my trip in a nutshell.

Widget Trouble

I had some trouble finding examples on how to Widgetize your WordPress Theme. I found plenty of links but all were dead. I figured I’d mirror a how-to guide here to make it easier for people to find out how to make their Theme work with WordPress widgets.

First of all you’ll want to put some code in your sidebar.php file to have a default sidebar as well as a dynamic sidebar when available. to do this use something like the following:

<ul id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar')|| !dynamic_sidebar() ) : ?>
    <li id="about">
        <h2>About</h2>
        <p>This is my blog.</p>
    </li>
    <li id="links">
        <h2>Links</h2>
        <ul>
            <li><a href="http://example.com">Example</a></li>
        </ul>
    </li>
    <?php endif; ?>
</ul>

This will enable your site to use a dynamically generated sidebar. Next we need the ability to implement a dynamic sidebar. To do this simply add the following to your functions.php file:

<?php
if ( function_exists('register_sidebar') )
    register_sidebar();
?>

Provided you have the Widgets plug-in installed and activated, you should now see a ‘Sidebar Widgets’ section under Presentation in the Admin section of your site.

I am not the original author of this tutorial nor am I a contributor in any way to the Widgets plug-in. If you have questions about the plug-in itself, or this method is not working please contact the author or see the plugin website.