« December 2006 | Main | February 2007 »

January 29, 2007

Microsummaries - the new RSS?

If you're using Firefox 2 then you can join the three of us using its great new Microsummaries feature. A website can provide a microsummary, in which case you can think of it as a short, single-item RSS feed. Indeed, some bloggers have already set them up to provide notification of new posts. However, what's more interesting is that you can get Firefox to parse a page to produce a microsummary itself. Thus, if a website has a snippet of information that you want constantly-updated access to, then you can have it.

I became interested in this topic because I found that the current temperature provided by the ForecastFox extension did not match the official current temperature for my area provided by the Bureau of Meteorology, and I thought about creating a bookmarklet that could screenscrape the temperature from the BOM site. Well, it turns out that microsummaries do exactly that, but with much less effort.

Although the production of a microsummary generator is relatively straightforward, there is some coding involved. Fortunately, there is an even easier way:

  • install the Microsummary Generator Builder Firefox extension
  • visit the BOM web page
  • right-mouse-click and choose Microsummary generator
  • move the mouse around to make a box surround the snippet of interest, then left-mouse-click
  • choose Install Generator
  • bookmark the page, but in the Add Bookmark dialog box, notice that the Name field is now a drop-down list (yes, it's subtle, but it's the only way you can tell if there's a microsummary for that page). From that list you can choose either the normal page title, or the snippet you just chose
  • you'll probably want to put that bookmark on your bookmarks toolbar so that it's easily visible

Installing the generator actually just creates an XML file in your profile's new microsummary-generators folder which describes how to parse the web page in question. If you manually edit that XML file then you have to go to that bookmark's properties, and change from the microsummary to the static title, then back to the microsummary, to get the changes to be noticed. Also, you can happily uninstall the Microsummary Generator Builder once it's done its job of creating that XML file, not that it'll cause much harm where it is.

Note that the Microsummary Generator Builder does not ask you to set the microsummary's update frequency. To configure this, add an update field with an interval in minutes to the xml, such as:

...
</transform>
</template>
<update interval="15" />
</generator>

Finally, note that microsummaries can't be created from pages on FTP sites. Despite every step of the process working, when you go to bookmark the page the microsummary drop-down won't appear.

January 27, 2007

Free off-site backups

Although I always keep a backup of every version of my website, it can be difficult to view previous versions of single pages. For example, to view a stored PHP page I'd need to install it on a web server to view the output, otherwise I'd just see the source code. I'd have to ensure that any external style sheets were in place where expected, and background images restored. All in all, it's quite a complicated process.

Luckily, there's a much simpler alternative. The Wayback Machine, from the Internet Archive has been busily copying websites into their archives for many years. Just enter a URL to see what archives they have for that site. For example, you can see the evolution of my fractals page (note that some images from the early years were not archived, so the page backgrounds were not quite as hideous as they now appear)

Although I built my first web site in 1994, the earliest of my work in the Wayback Machine is the aforementioned 1999 reference.

January 22, 2007

Playstation 2 chugs along

Despite being seven years old and constantly overshadowed in the media by its newer, shinier competitors, the Playstation 2 has such a large user base that it reigns supreme in game sales. Here are the statistics from The Age on final quarter 2006 game sales in Australia.

January 14, 2007

Are basketballers good CEOs?

According to Malcolm Gladwell in his book "Blink", there is a much greater percentage of tall men amongst CEOs of US Fortune 500 companies than in the general US population. I think he's excluding the effects of really thick soles.

January 8, 2007

Explore the internet safely

The Washington Post took a look at how long web browser vendors took to fix security flaws in 2006, with the result being another good reason to switch from Internet Explorer to Mozilla Firefox.