Category Archives: Blog-Related

Blog related posts – probably the most boring.

2011 Round-Up

It’s been another year, I’ve procrastinated, explored, learned, worked, dossed about and more.  But mostly procrastinated and dossed about.

I did the Imagine Cup ,that was probably the highlight of my year really, travelling to the states was incredible and I can’t wait to go back some day.  I still haven’t done most of the things I posted in the list back at the start of this blog.

I’m quitting drinking alcohol for new years, and as a sort of side-resolution I’ll be making a serious effort to improve my physical fitness from now on too.  (I don’t really have any problem specifically, I just feel I’d be happier without alcohol and with a bit more muscle!).

Well, I hope everyone has a prosperous and happy new year!

- Damo

Lest We Forget

~       11 / 11 / 2011      ~

Head in the cloud

I just moved this site to The Rackspace Cloud owing to the fact that it was taking just over 8 seconds to render index.php on occasion.  I couldn’t believe that WordPress could be struggling so much on the machine I had it on, but that box is somewhat limited on memory and I was seeing the occasional  PHP memory allocation error in the back office.

To be fair, the box that this was installed on is pretty damn terrible.  I get the feeling the hosting company it’s with is massively overselling their VPS nodes – sometimes it’s crawling and I’m barely using any clock cycles at all.  Another story for another time (again).

Earlier on, the situation looked something like this:

We're waiting...

Rather annoyingly, even on the cloud, the homepage still took a dismal 5 seconds to load (we’re talking just index.php here – none of the files or anything – even with wget there was a considerable latency in the file being generated).  Upon pulling the whole lot down and having a good profile in Zend Studio, I was surprised to find that no particular part was really increasing the generation time significantly – the whole bunch of modules, includes and procedures was contributing to the deathly load time equally.  The solution? Layer on some optimisations.

I started with some of my usual tricks, eAccelerator, for one is a nice idea to trim off a few hundred milliseconds by caching PHP in its compiled (opcode) state.  While this improves the performance of pretty much any PHP application compared to the same execution under “vanilla” PHP.  I looked in to some more optimisation techniques specific to WordPress installations.  WP Super Cache looked promising.  It’s clearly a very well featured plugin and has quite a few nice ideas in there.  One idea that I particularly liked was the ability to upload your media library straight to a CDN of your choosing.  I immediately uploaded everything I could to Cloud Files and that made a few improvements by reducing the number of simultaneous requests being made to the box – but still the main problem was WordPress itself, combined of course with the various plugins and themes that I’m using.

I thought I’d also give WP Super Cache a go – and I’m glad I did.  I was very impressed with the performance improvements it produced (so much so that it’s still installed now).  It does have CDN support still, but not the ability to upload straight to the CDN from your wp-admin.  For that they suggest CDN Sync Tool – which is also quite well made.

Much better

In any case – the performance issues seem to have subsided.  Let’s just hope things don’t go horribly wrong when I post this entry and that the images in it aren’t immediately assumed to be on the cloud.  I can feel that coming on right now.

Long time no see

So it’s been a while since I last published any thing on Damow.net. In fact the domain has been out of my control for quite some time, it was squatted by the usual what you want when you need it gang shortly after I did my usual trick of failing to renew it a year or so ago. In any case I suppose I felt like writing down some of my thoughts and ideas and I’m interested to see if anybody will actually read them at all.

Lots has changed since I last used to write posts on this blog. I’m now at the university of Manchester, studying Internet Computing. I’ve learned lots of things. Gained interests and lost interests. Oh and my hair is a bit longer. I still don’t have a girlfriend or a really big house or lots of money, and I suppose in that respect things have not really changed much at all.

In terms of the blog, it’s pretty standard to be honest, can’t be arsed messing about with clever wordpressy things – I think the whole idea is born of hipsters anyway. Only fancy thing I did do was to make a little script to crop down a load of photos to fit the header area and then upload them and pick one randomly at each page load. Pleased with the result, but there’s a few duffers in there – way too many steam plant ones for a start – at least they look cool. Hopefully I’ll be posting pretty regularly, geeky stuff, news, rants and the like. There must be so many blogs like this already – kinda makes me feel hopeless.