Sunday 28 December 2008
Perl Hacking
In my spare time today, I decided to conclusively get to the bottom of why the Blog Cloner plugin, that comes with Movable Type, always fails to load and fills my activity log with hundreds of errors. I never just sat down and tried to figure it out from scratch so I'd just disable or delete it, and clean out the errors from the log. I needed to think about it logically, and this is what I did.
I noticed that it didn't happen if I had a clean install of MT, so I figured that it must be one of the extra plugins that I use.
So I started adding them one by one to a clean install.
It didn't take long for the error to appear... and it was caused by AdminLinks.pl. This is a really old plugin I've used since 2004 to add links to my entries that point directly to the edit entry page in the admin interface.
Now I'm not a programmer, I just know bits and pieces of a few languages, the absolute basics. So to work out exactly what the heck this plugin was doing took me a while!
The original usage would be something like this:
I only ever used it to add Edit Entry links, so I decided I'd strip out all the additional options, and reduce it to just one tag which I called <$mt:AdminEditEntry$>
After a few hours trying to follow through the existing code, update some of it to the new MT4 techniques and fix what was broken, I managed to get it working!
I also decided to make the plugin use the existing Movable Type admin cookie, instead of having to keep setting an additional one just for this purpose. To do this, I had to add CookiePath / to my mt-config.cgi, as suggested by Jay Allen in 2006.
I noticed that it didn't happen if I had a clean install of MT, so I figured that it must be one of the extra plugins that I use.
So I started adding them one by one to a clean install.
It didn't take long for the error to appear... and it was caused by AdminLinks.pl. This is a really old plugin I've used since 2004 to add links to my entries that point directly to the edit entry page in the admin interface.
Now I'm not a programmer, I just know bits and pieces of a few languages, the absolute basics. So to work out exactly what the heck this plugin was doing took me a while!
The original usage would be something like this:
<MTAdminOnly>I noticed in my testing that for some reason it wasn't even working correctly any more. Instead of putting the AdminEdit tag inside the AdminOnly, it was closing AdminOnly and then putting the edit link. Not particularly helpful!
<a href="<$MTAdminLink type="editentry"$>">Edit Entry</a>
</MTAdminOnly>
I only ever used it to add Edit Entry links, so I decided I'd strip out all the additional options, and reduce it to just one tag which I called <$mt:AdminEditEntry$>
After a few hours trying to follow through the existing code, update some of it to the new MT4 techniques and fix what was broken, I managed to get it working!
I also decided to make the plugin use the existing Movable Type admin cookie, instead of having to keep setting an additional one just for this purpose. To do this, I had to add CookiePath / to my mt-config.cgi, as suggested by Jay Allen in 2006.
Posted in Movable Type at 18:42 |
Permalink
Friday 21 November 2008
Leeds United
I appear in the video around the 3:30 mark, hugging a girl in a pink top and a top hat.
Posted in Music at 16:19 |
Permalink
Wednesday 19 November 2008
iTunes 8.0.1
Now that Requiem 1.8.2 is out, I can finally upgrade to iTunes 8.0.1!
Upgrading my iPhone should be fun. I have a few Cydia apps, and I understand there is a special way to deal with those in upgrades.
Upgrading my iPhone should be fun. I have a few Cydia apps, and I understand there is a special way to deal with those in upgrades.
Posted in Computers at 11:54 |
Permalink
Thursday 30 October 2008
RIP Bonita
06/06/1971 - 28/10/2008
One of the most amazing people I have ever met, and will always be glad I was able to call her a friend. We shared some fantastic memories, and I will forever be grateful that we got to spend time together.I love you Bonita, I will miss you dearly.
"Dude... I totally just ripped that." - An in-joke that Bonita and I shared back in July 2005.
Posted in Life at 17:29 |
Permalink
Thursday 23 October 2008
Movable Type 4.21
I am attempting to upgrade my blog to MTOS 4.21, but I am have real trouble with the comments so I have had to disable them for now.
Hopefully I will be able to work out exactly what's going wrong and I can re-enable them.
Hopefully I will be able to work out exactly what's going wrong and I can re-enable them.
Posted in Blog at 16:31 |
Permalink
Thursday 16 October 2008
Flash 10 (And sIFR 2)
Adobe have just released Flash Player 10.
Update your Flash Player now to get all the fancy new features!
At the time of writing the version number of Flash is 10.0.12.36, and Shockwave is 11.0r465.
You can check what versions you have here.
I discovered after upgrading my Flash to 10 that the sIFR I use on this site (to style my dates), and on a few others was no longer working. This was because older version of sIFR I was using only detected single digit versions of Flash, so I had to upgrade to 2.0.6 to get it to work again.
Update your Flash Player now to get all the fancy new features!
At the time of writing the version number of Flash is 10.0.12.36, and Shockwave is 11.0r465.
You can check what versions you have here.
I discovered after upgrading my Flash to 10 that the sIFR I use on this site (to style my dates), and on a few others was no longer working. This was because older version of sIFR I was using only detected single digit versions of Flash, so I had to upgrade to 2.0.6 to get it to work again.
Posted in Computers at 11:09 |
Permalink
Saturday 11 October 2008
Amanda Palmer @ KOKO
Amanda Palmer with Jason Webley, Zoe Keating and The Danger Ensemble played KOKO in Camden last night. I've seen her so many times this year I feel like a stalker... first at the ICA, then at the football game in Shepherd's Bush, then at the Leeds United video shoot, then at Brighton, then London and in November I'll be in Toronto.
I had managed to leave my ticket at home so I had to leave work early and drive home to get it, instead of going straight from work to the station, which would've gotten me to Camden a lot earlier. I was a bit stressed most of the day, until I actually got to Camden and through the doors.
So as I posted on The ShadowBox:
I had managed to leave my ticket at home so I had to leave work early and drive home to get it, instead of going straight from work to the station, which would've gotten me to Camden a lot earlier. I was a bit stressed most of the day, until I actually got to Camden and through the doors.
So as I posted on The ShadowBox:
After a hurried drive all the way home from work, then changed quicker than Superman, and back out to grab a train, I managed to get to the gig about 7:15. Not exactly when I wanted to arrive in Camden but at least I made it!I'll upload some photos from KOKO to my Flickr later.
About the show itself? What can I possibly say?
NEIL FUCKING GAIMAN! ON TAMBOURINE! SINGING BACKING VOCALS WITH JASON FUCKING WEBLEY! ON OASIS!!
Although I was quite a way back from the stage, I still managed to be in the middle of the show, as Amanda brushed past me on her way to the stage with her veil, and Mark from the Danger Ensemble was stood right next to me holding a laptop all the way through Blake Says. Pretty cool!
So apart from the stress of forgetting my ticket and the rush home, it was one of the best gigs I have ever been to. And to finish... BRING ON TORONTO IN NOVEMBER! So cannot wait to do it all again, with my girlfriend by my side.
Posted in Music at 14:16 |
Permalink

