May 9 2007

Now with FOAF

Thanks to this entry from Aidan Finn, who incidentally is now working in the SFI funded DERI, I finally got around to putting up a simple FOAF file on my blog.

Adian’s post is pretty clear, but there are a few minor adjustments necessary to get it to work in Typo:

  • The foaf.rdf file should be created in the ~/typo-4.1.1/public/ directory.
  • To create the auto-discover link (point 3 in Aidan’s steps), put the following in the <head> of the default.rhtml file in your theme (e.g. ~/typo-4.1.1/themes/azure/layout/default.rhtml):

<%= stylesheet_link_tag "/foaf.rdf", :media => 'all', :rel => 'meta', :type => 'application/rdf+xml', :title => 'FOAF' %>

  • Don’t forget to empty the fragment cache in Typo’s admin panel to force the new default.rhtml to be used.

Related Posts:


May 9 2007

Typo theme weirdness

Hmmm, it appears that the Ghostpaper theme that I’m using for this blog doesn’t show articles when you select them by their permalink.

I’ll have to investigate. In the meantime, I’m switching back to the default Azure theme.

Related Posts:


May 8 2007

Upgrading typo

As I mentioned in a previous post, a new version of Typo is available. I upgraded this evening, and here’s the steps that I followed.

  • Check out the latest version from the SVN repository:

$ svn co http://svn.typosphere.org/typo/trunk typo-4.1.1

  • Copy over my old .htaccess file:

$ cp ~/typo-4.0.3/public/.htaccess ~/typo-4.1.1/public

  • Copy over my old database.yml:

$ cp ~/typo-4.0.3/config/database.yml ~/typo-4.1.1/config/database.yml

  • Update the database schema
mysql> select * from schema_info;
+---------+
| version |
+---------+
|      50 |
+---------+
1 row in set (0.00 sec)

$ cd ~/typo-4.1.1
$ rake db:migrate

mysql> select * from schema_info;
+---------+
| version |
+---------+
|      63 |
+---------+
1 row in set (0.00 sec)
  • Copy over my theme:
$ cd ~/typo-4.1.1/themes
$ tar zxvf ~/typo-4.0.3/themes/ghostpaper.tgz
  • Copy over my uploaded files:
$ cd ~/typo-4.1.1/public
$ cp -r ~/typo-4.0.3/public/files .

You might notice the absence of a backup step at the start of this process. I n general the db:migrate action appears to be very robust and trustworth. However, I have a scheduled backup of my DB anyway, so I didn’t need to do it explicitly. However, I would certainly recommend it as a first step.

Total time – about 30 minutes. Not too bad.

Thoughts? On first blush, it certainly appears to be snappier than 4.0.3. The other noticeable change is an improved admin interface. So far so good – looks like a worthwhile upgrade. Recommended.

Related Posts:


Apr 18 2007

New version of Typo!

I’ve just noticed that Typo, the Ruby-on-Rails blogging engine that powers this site has become active again, after what appears to be a long hiatus.

The developers have also released a new version – v4.1. As soon as I get a chance, I’ll have to install it, and check it out. They have also started a blog, so hopefully this means a renewed level of development activity.

While I like the idea of my blogging software running on RoR, I must say that sticking with Typo has not been without its frustrations. I have often been tempted to move to the behemoth that it Wordpress. However, the killer app for me, is support for Textile. If you’re not familiar with it, check it out. You’ll never (or at least rarely) have to deal with HTML or a crappy HTML GUI again.

Related Posts:


Mar 20 2006

RSS fixed

It appears that everything is now OK with the RSS feed. The problem was caused by moving between test and production databases. It appeared that the RSS cache was not properly flushed. I’m still not 100% sure what was going on, but at least it’s working OK again.

Related Posts: