links for 2006-11-25
-
A comprehensive list of AJAX tutorials from around the web
Just a quick note:
Feed Rinse just made their premium service free.
I haven’t tried it yet, because you had to pay for the advanced features. I’ll maybe give it a go now
In this post I’ll briefly describe the steps I took to implement hAtom into my Wordpress template.
hAtom is a draft specification for a Microformat to incorporate the common Atom format into HTML. Marking up your blog with those desciptive elements gives you several advantages but more on this later.
To make Wordpress hAtom ready you have to edit the file named ‘Main Index Template’. The easiest way to do this is to go into the Wordpress Admin and then to ‘Presentation’ -> ‘Theme Editor’.
This file includes the main ‘Wordpress Loop’ that displays all of your posts. To add the hAtom Microformat here the only thing you have to do, is to set some HTML class attributes.
(Note: All examples taken from the “WordPress Default” template, edits are in bold)
<div id="content" class="narrowcolumn hfeed"><div class="post hentry" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="entry-title"><?php the_time('Y-m-d H:i') ?>;<abbr class="published" title="<?php the_time(’Y-m-d\TH:i:s\Z’) ?>"><?php the_time(’Y-m-d H:i’) ?></abbr><div class="entry entry-content">
<?php the_content(’Read the rest of the entry.’); ?>
</div>That’s basically it. You could of course add several more tags and classes for categories for instance. The good thing is that Microformats are nice to each other, so if you already have some Technorati tags in your blog that feature the ‘rel=”tag”‘ attribute, they will be incorporated in the hAtom format automatically.
So the question is now, how can you take advantage of your new semantic additions to your blog?
Well, as mentioned in my previous post about Microformats there is tails for Firefox but you can do all sorts of crazy stuff like converting your hAtom posts to a real Atom feed using the awesome webapp Luke Arno made: hatom2atom.
And that brings us to a whole new level. I’m asking myself why do I need a seperate feed that features the very same content that’s already displayed on my HTML pages? That’s where the magic of Microformats sets in. Their nature being that they are humans first and machines second I can now have both served just from one source.
Having Atom feeds for all of my blog posts also enables them to be used more widely for instance I can think of a few situations where an Atom feed of my archived posts could come in very handy. I’m sure you can think of several more ways to use this.
Today I took the time to ‘microformatize‘ my blog a little bit. Each post is now fitted with an hCard for my person and the About page got a little bit of extra markup as well.
I now also try and use Microformats whenever I refer to other people, organisations or if I ever post about events and such.
So this is an ongoing process. Expect to find more and more Microformats here in the future!
One way to take advantage of the Microformats on this page and others which are using Microformats, is to install the great Tails Firefox extension.
Inspired by a blog post from Adrian Sutton and the comments beneath it I am now documenting how I train Spamassassin from within Apple Mail.
The setup is fairly straight forward but implies that you at least have a working Spamassassin instance running somewhere and know your way around UNIX a little bit. So I’m just going to explain the rough details to get you going.
echo "----learn spam----"
sa-learn --spam /var/opt/vmail/no-panic.at/flo/Maildir/.Junk/*
echo "----learn ham----"
sa-learn --ham /var/opt/vmail/no-panic.at/flo/Maildir/*Actually my setup involves learning from 4 different user accounts, who all use Apple Mail just to get more Ham- & Spam-volume faster.
I hope this is helpfull to you. It works perfectly on my server for over a month now.