What was I saying about technology and spending more time playing about with setting it up and less time actually using it? Here I am having installed and moved all my previous posts to another piece of blogging software. Well it’s half the fun I suppose, the other half of the fun is inserting a rusty knitting needle through your eye, or something like that.
So, I’m now trying out this WordPress blogging software and I’m pretty impressed, especially with the admin interface. Although the WYSIWYG post editor leaves a lot to be desired and enjoys infuriating me to within an inch of my life. I *need* to display code in my blog and for that I chose Priyadi Iman Nurcahyos ‘Code Auto Escape’, especially since many developers of WordPress code displaying facilities opted to dump their efforts and adopt Priyadi’s plugin instead. But the WYSIWYG editor continued to strip html tags from within the tags of the plugin, so I’m having to use the old style post editor, although there’s nothing to complain about there to be honest.
Considering the popularity and notoriety of Six Apart’s ‘MovableType’ blogging software I was surprised when I saw the features covered by WordPress that MovableType had missed. WordPress covers multiple level categories with a simpe interface, more control over perma links, ability to create static pages as well as posts, extremely simple plugin installation, etc. Well, I am pleased but I guess it is early days yet and if my posting frequency doesn’t pick up I may never realise it’s true power.
Anyway, I’ll finish off my first post on my new blog, with a little bit of code to sort life out…
#include <stdio.h>
#include <string.h>
void swap(char *a, char *b);
int main(int argc, char *argv[])
{
char c[5];
int i,j;
sprintf(c, "LIFE");
printf("Sorting '%s' to ",c);
for (i=0;i<strlen(c)-1;i++)
for (j=strlen(c)-1;j>i;j--)
if (c[j-1] > c[j])
swap(&c[j-1],&c[j]);
printf("'%s'\n", c);
}
void swap(char *a, char *b)
{
char c;
c = *a;
*a = *b;
*b = c;
}
Which should give you: Sorting ‘LIFE’ to ‘EFIL’
From this we can deduce that in order to sort out your life you must be backward.
