This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

Installing XML::Parser on Mac OS X

Paul Westbrook | 20 September, 2006 01:40

I was having a problem installing the XML::Parser perl module on Mac OS X.  The problem is because fink installs the expat library in /sw/lib, where the configuration script is not expecting it.  Also, if the configure script doesn't find it, the user is not promted for the correct location.

This page describes the fix.

# perl -MCPAN -e'look XML::Parser'
# perl Makefile.PL EXPATLIBPATH=/sw/lib EXPATINCPATH=/sw/include
# make; make test; make install
# exit

The first command downloads and expands the package and opens a shell in the expanded directory.

Technorati Tags: , , ,

Caltrain news rss feed

Paul Westbrook | 20 September, 2006 00:24

RSS seems to be a mechanism that is enabling many types of device to have access to structured data.  This is especially good for mobile phone, where the browser can render the information in a form that is readable on a small screen.

One example of this is the Caltrain news updates.  When I am waiting at the train station, I want an easy way to check the status of the trains.  Caltrain has a web page that displays this information, but they don't have an rss feed.

I wrote a script that parses the html an creates an rss feed.  This is based on the example given on this page.  Here is the resulting rss feed.  (This will be up as long as Caltrain doesn't ask me to take it down.)  There are two things that I want to fix with script:

  1. Not cause the post to be seen as unread when the it runs again.
  2. Add a summary of the body to the rss feed.

 (More)

Powered by LifeType
Design by Book of Styles