Just for fun, I added a rather small feature to the Feed2JS script/service; Curt Whittaker had emailed requesting:
It would be nice if the script could have alternate text if there are no items in the current feed. For example, we are looking to use this for our Calendar of Events – see http://test.sou.edu. Some days there are no events, and I want to say so rather than have just a blank box.
It is actually quite easy thing to toss in the mix (just spit out “no items for this feed” if the Magpie parser returns a zero count item array), so it is now there- you can verify by tossing in the URL for the an empty item feed I made.
Also, since we do get a handful of “how do I make it do X?” type requests that are too specialized to make it into the final, I created a list of “mods” small script changes that have been requested.
How much is Feed2JS being used since released May 24, 2004? Well the examples page lists 19 sites that have bothered to share their use of this free service. We know there is more out there… so step up and sign up, eh?
To show, I added code to the examples page that counts the number of cached feeds sitting on our server- as of today, there are 15990! which at least suggests parsing and spitting back that many feeds. That was much more than I expected.
Note that some time down the road when I am house cleaning, I’ll likely dump the cache directory to reset it.
Wow. That is a lot of action. We’ll have some more data soon when we finish setting up AWstats to analyse the web server log.
The post "Tiny Improvement for Feed2JS and New Site Features" was originally rescued from the bottom of a stangant pond at CogDogBlog (http://cogdogblog.com/2004/07/tiny-improvement/) on July 7, 2004.