Archive for June, 2009

Redesign of Beauty of Code

Wednesday, June 24th, 2009

In the last weeks I completely changed the design of this site. It became much lighter and I removed some plugins which I didn’t want to use anymore. In particular, I removed the simile timeline on the left.

In the previous design, I used the WP Simile Timeline plugin to show the timeline of the blog entries. This was a vertical timeline located in the left sidebar. The problem was that vertical timelines are pretty complicated to design and the simile timeline doesn’t really support a vertical layout. Therefore I chose to change to a horizontal blog timeline as part of the redesign. At the same time I realized that the timeline doesn’t fit to the overall design.

Hence I wrote my own timeline implementation using jQuery and embedded it in the new layout. Each small vertical tick in the header corresponds to a blog entry. If you hover over it, the link to the blog entry is shown.

Currently there are only few features:

  1. RSS feed: the timeline implementation reads the RSS feed of the site an creates the div elements for the timeline.
  2. Custom creation of events:  create a div and call a simple javascript method to add an event.
  3. Design completely using CSS: it is very difficult to change the theme of the simile timeline. The timeline above can be adjusted using very simple CSS.

But of course, it still can (and needs) to be enhanced.

Cumulus plugin for Wordpress

Thursday, June 18th, 2009

In the context of my Hypergraph project, I have been asked whether Hypergraph can be used to show the tags of Wordpress blogs.

To be honest, I don’t think that this would be a good idea. On this page I use the Cumulus plugin by Roy Tanck. This plugin does a good job in visualizing the tags in your blog by distributing the tags on a 3D sphere. It’s easy to use, easy to understand – so if you are looking for some appealing visualisation of your tags, use this plugin and you’re done.

But why don’t I write a wordpress plugin for Hypergraph? First of all I currently don’t have the time ;-) . But apart of that, I don’t think it’s fit for purpose. Hypergraph, like other tools that show trees/graphs using hyperbolic geometry, is strong when there is some exponentially growing graph structure in the background. For example the organisational structure of a company or a class hierarchy are suitable.

However,  this is not the case for blogs: tags are used to loosely group blog entries which are somehow related, but even if we enforce a graph structure based on tags (which I don’t really propose), it won’t work. Of course one could link all entries with the same tag(s). Of course I haven’t conducted something like a field study to analyse a significant amount of blogs in the wild, but I assume that this will just create a lot of clutter, but won’t give additional meaning. Plugins like the mentioned Cumulus plugin circumvent this problem: they show the tags and not the articles, hence reducing the number of entities to show. They also don’t link the tags – even thought this would be some interesting challenge.

This leaves us with two open questions: Is it possible to cluster tags such that some similarity of tags can be established? If this can be done, would this give benefit to the visitor of a blog or another site?

Ideas and comments are of course most welcome.

Event tracking available in Google Analytics

Tuesday, June 16th, 2009

In a recent entry on the Google Analytics blog, Nick Mihailovski published that GA now offers event tracking. After doing some setup like adding categories to your GA account, this works by simply calling the Javascript function _trackEvent:

trackEvent(category, action, optional_label, optional_value)

Since this can be called in any context, it allows you track something standard as downloads, but for example also whether your fancy drop down menu is actually used.

For details about this, see the documentation on google code or a tutorial. Actually the mentioned tutorial is from 2007 – at this time the functionality wasn’t available to all accounts. It should still be valid though.