Category: Blog

Creative Commons Metadata

This site is licensed under a Creative Commons Attribution License, and I wanted to mark each page to somehow indicate that fact. recommends that we mark our pages using RDF data embedded in our HTML (commented out). However, embedding the RDF in each page has a few downsides:
  1. It increases the size of each page by a several hundred bytes.
  2. In xhtml pages, it potentially hides the copyright information from xml parsers.
As an alternative (which I didn't invent, I'm just describing), I link to the copyright information with metadata attributes to indicate its role. The pages on this site use 2 methods of specifying the copyright. In the <head> section, I included a <link> to the copyright URL with a rel="copyright" attribute. The copyright link type is defined in HTML4. For example:

<link rel="copyright" href="" />

The second method can be used within the body of the document. My footer section includes a link to the CC license. I added a rel="license" attribute to that link. The license relation is a common microformat.

To guarantee that search engines understand the licensing of my site, I ran a few of my URLs through Creative Commons License Validator tool. Everything checks out!

Finally, I also wanted my RSS feed to be covered by the CC license. There is a Creative Commons RSS Module defined for this purpose: you insert a


line into the <channel> section of your feed. I use XML::RSS to generate my feeds (this is a mod_perl/HTML::Mason site) to generate my feed, so I added code like this (new code is bolded):

my $rss = new XML::RSS (version => '1.0'); 

# add the creative commons namespace
$rss->add_module(prefix=>'cc', uri=>'');

       title        => "littleredbat/mk: blog",
       link         => "",
       description  => "Matt Keller's Blog",
       dc           => { language => 'en-us', },
       cc           => { license => '', },

There you have it - my site has been CreativeCommonsIfied.

Technorati tags for this post:


It's looking rather fresh around here, isn't it? Perhaps it was the spring weather that brought it on, but I've reworked the xhtml and css underlying this site.

Here's what's new:

  • Fresh new colors!: blue, green and red. The header graphic is always going to be in black and white to allow maximum flexibility in color choice.
  • New header graphics: black and white images that tickle me.
  • Site menu: Where are you? You're either Home, in the Blog, in the Articles, in the Photos, or at the About page. The site menu will let you know.
  • Variable sidebar: the sidebar's contents now change with the section.
  • Search w/ Google: as much as I like coding, it's hard to beat google at the text indexing game.
  • A Fluid layout: go ahead and resize your browser window or increase the text size! The site should be pretty accomodating.
  • Better source ordering: the "contents" of a page now show up before the sidebar in the html source. This is nice for text-based browsers or folks who don't have CSS.

The design was partialy inspired by Tim Bray's site. I liked his clean look.


Technorati tags for this post:

I started using and I'm loving it! Beelerspace has a pretty nice delicious HOWTO going.

I want to write more about his phenom, but I need some time to really dit into it.

Link to story

Technorati tags for this post:

Google's solution to comment spam

Here google announces its plan to stop comment spam. Their indexing spider won't follow links that have a rel="nofollow" attribute. So blog software authors are encouraged to add that attribute to any links in comments or trackbacks.

Cool! Maybe I'll enable html in comments now.

Link to story

Technorati tags for this post:

Photo Album Software

I rather liked to looks of However, it wasn't generating medium-sized images consitently.

So I rolled my own. Turns out a scant 250 lines of perl is enough to build a static photo album that meets my needs. See my album for an example.

Thanks for the inspiration Dave!

Technorati tags for this post:

Photo Galleries Suck

I've been using that PHP gallery program to do web-based photo galleries. But now I've got a sweet mod_perl server with a unified authentication system. And gallery has its own auth system. What a waste to install PHP just to get a bunch of stuff I don't need.

After some research, I think I'll just use good old album, a perl script which creates static html photo albums. All I need to do is write a simple upload script and I'll have everthing I need!

Link to story

Technorati tags for this post:

< Future 10 | Past 10 >