All Change

Hot piss. Has it really been that long? Yes, it has. Governments have risen and fallen; sea­sons have changed out­side the win­dow; pop­u­lar kids refer to my pre­vi­ous post when in need of a clichéd example of some­thing unfash­ion­able from history.

The last 12 months in sum­mary: I gradu­ated 2.1 with hon­ours from Warwick and imme­di­ately star­ted a prom­ising job as IT Manager for my old employer which degen­er­ated at ter­ri­fy­ing speed into a micro-managed cluster­fuck from which I extrac­ted myself six weeks ago, turn­ing to my long-time side-passion of web design.

Continued →

Posted June 25th, 2009

Xbox 360 UK Repair Timeline: A Gamer’s Renaissance Tale of Woe

When I was still at school I had a big thing for PC and video games. I used to run a Counterstrike clan, played a lot of ran­dom FPS/RTS/wtf titles and had a great time doing so. On the con­sole side I’ve always been a bit behind the times — had a SNES quite some time after they came out, an N64 (with GoldenEye, of course) the Christmas after they were released, and more recently a GameCube and some bor­rowed time on my brother’s PS2. I didn’t even get a Game Boy until the Color ver­sion came out. But I was usu­ally reas­on­ably up to speed with PC gam­ing, from the days of Doom onwards.

Continued →

Posted May 16th, 2008

Sanity, Solitude And The Death Rattle of Productivity

These are strange times. Someone once tried to apply Einstein’s Theory of Relativity to pro­duce some­thing to the effect of “work to be done expands to fill the time avail­able to do it.” Conversely, I’m exper­i­en­cing some­thing of the oppos­ite, a sad fail­ure of self-discipline where amount of free time and apathy toward work and study are set up in a tra­gic correlation.

Continued →

Posted February 6th, 2008

Fix Debian Exim4 Broken By Upgrade

Thought I’d just post this since I didn’t find an author­it­at­ive answer on the web. Those using exim4 on a Debian test­ing or unstable sys­tem might recently have found their sys­tem broken after doing a dist-upgrade to ver­sion 4.67−7, with exim4-config fail­ing to con­fig­ure with a mes­sage sim­ilar to the following:

Exim con­fig­ur­a­tion error in line 28 of /var/lib/exim4/config.autogenerated.tmp: mal­formed macro definition.

Continued →

3

Solving Slow Apache/PHP; Culprit = ClamAV

I’ve been hav­ing a lot of prob­lems recently with my home Debian server lock­ing up, with Apache pro­cesses swell­ing up until all RAM is eaten up and CPU 100% util­ised. The box stops respond­ing until I can get local access and restart Apache. This used to hap­pen sev­eral times a week, des­pite actual load on the server being very low with hardly any web requests.

I put this down to the age of the install and some dodgy Apache set­tings and didn’t look too much into fix­ing it; I turned the child pro­cess set­tings down a lot which didn’t improve things, so I just set a cron job up to restart apache every so often. It was only when I came to install Debian on a brand-new server at work that I real­ised some­thing was afoot — the Apache/PHP install on this new server was doing the same thing — lock­ing up sev­eral times a day for no appar­ent reason and in the exact same way. Both serv­ers would sud­denly exper­i­ence massive CPU and RAM util­isa­tion; addi­tion­ally Apache would take sev­eral minutes to get from star­tup to actu­ally accept­ing requests, with huge CPU use in that time. Incidentally, my home box is testing/unstable and this new server is Etch (stable).

I spent a few minutes going through the con­fig files for Apache, PHP and MySQL (also installed on my home box) in an effort to optim­ise the install, and examined the exten­sions list in php.ini to see if there were any I could remove. I unfor­tu­nately suf­fer from over-enthusiasm when installing things like PHP, XMMS and so on, whereby I read the list of related pack­ages and install everything that I might pos­sibly need someday or that could be use­ful at some point. In this case this included php4-clamavlib, which I installed think­ing it might be good to play with on a rainy day.

A quick apt-get remove php4-clamavlib and I restar­ted Apache; to my sur­prise it came up in about two seconds as opposed to the three minutes it was tak­ing before to stop using 100% CPU after being star­ted. I watched the box care­fully for the rest of the day and it had no prob­lems. Upon get­ting home I did the same thing on my own server and it too appears to be cured. So if you’re hav­ing prob­lems with Apache sud­denly chok­ing, check to see if you’ve got the ClamAV lib­rary for PHP installed. If you don’t need it, lose it!

Posted August 2nd, 2007

Also: Portable Fear and Loathing

More on Twitter →

You can find a complete history of older posts in the Archive.