March 2009
5 posts
Initialising Cocoa NSValueTransformers
Just a quicky, I created my first custom Value Transformer this evening. Normally to register your transformer you have to do something like the following + (void)initialize { [super initialize]; [self initialiseValueTransformers]; } + (void)initialiseValueTransformers { LoginStatusTransformer *loginStatusTransformer = [[[LoginStatusTransformer alloc] init] autorelease]; ...
Mar 25th
Tweaking RDiscount
As I mentioned in my previous post I’d had some issues with Pygments and RDiscount. I have been using Pygments to highlight my code blocks in my blog. Unfortunately right after using a code block with linenos none of the markdown was being parsed anymore. The Discount library upon which RDiscount is based has the ability to output a debug tree which shows the different blocks within the...
Mar 15th
Changing the blogging gear
I’ve recently been working on merging my two blogs together into one. One of them I host myself, the other is with Tumblr. One has stagnated quite severely with the last update April 1st, 2008, the other only seems to get periodic and occasionally small updates. Twitter has played a large part in the lack of updates to both of these sites. Through Twitter I can post short thoughts, URLs to...
Mar 15th
Setting up MySQL Replication
Today I was asked to set up a MySQL Replication server to allow for failover on one of the services we operate. A friend of mine also asked me to document the procedure as its been a while since he’d done it and couldn’t remember. So here goes…. The Setup I’ll be doing all of this on FreeBSD 7.1 servers and I’ll be installing things from ports and then setting up...
Mar 10th
So what happened to me on Friday the 6th of March?
As so many of these tales unravel it all started with alcohol. I’d been invited out by Claire for her brother Neils fiancĂ© Alices birthday drinks do. This is only the second time I’ve met Alice, the first time at their engagement party. I’ve known Neil for a while as he used to work at the same company I’m at now. At any rate over the course of the night quite a few...
Mar 9th