Tuesday, March 21st, 2006
After many months since my last upgrade where I planned to re-structure my network, I’ve finally configured the last machine. The rest were done pretty quickly, especially the gateway server (Linux RedHat 9) as there was no way we were going to go without net access. But I had to remove a little memory from this server to beef up another. The other old 450MHz AMD has since been upgraded to a win2k domain server running SQL server 2000 to compete with MySQL on the Linux server, also hoping to try exchange server but like, ewww. Now finally I have my previous 1.33GHz machine dual booting Win98, for all the old games like Quake, Carmageddon, MechWarrior 2, etc. and Linux RedHat 9 as a desktop. I’ve got another drive free on this machine on which I intend to try some different distributions of Linux, probably SuSe, Slackware, Debian, Gentoo, etc. But now I have a good place to develop some stuff on Linux without fear of taking the internet gateway down.
Well, that’s it. I’ve over excited myself with all this talk of servers, I need to go lie down.
Posted in Bits N Bytes |
1 Comment »
Saturday, March 18th, 2006
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.
Posted in Bits N Bytes, Programming |
No Comments »