Windows XP Memory Problem

Tuesday 1309hrs

I had some out of memory errors recently, which is naturally absurd for a machine with 4gb RAM (Yes I know XP doesn’t support it, but it’s future proofing in case Vista ever works out or Adobe release their products on Linux…(And yes I know Vista can’t boot with 4gb of RAM either properly without hacking yet, but by the time I get around to it I’m lazily hoping they’ll have fixed the issue…)) Anyway, back on track, I came across a post regarding a potential fix to some common out of memory errors over at Kevin Dente’s blog. I’ve implemented it, the world has yet to implode and I haven’t come across an error message yet. Fingers crossed.

Micro Waves, Big Fires

Wednesday 1851hrs

As was kindly pointed out to me it turns out microwaving things to make them clean could be a bad idea. A bad idea, that is, if you’re stupid enough to microwave anything with no water or fat in, for half an hour, unattended.

If you’re foolish enough to set things on fire like that, perhaps you shouldn’t have been left to live on your own in the first place…

I legally indemnify myself from anyone burning down their house etc and take no responsibility for anything at all. Anything.

Typo3 is an amazing creation. It’s a fantastically powerful CMS, based on PHP and available for free. However, it’s so powerful that when things go wrong there are many places to look…

I have no idea if this has been resolved in the latest codebase for Typo3, but in the version I was using for a recent project I was being driven crazy by google claiming it couldn’t see my site due to a 503 server response.

Turns out wGet on Ubuntu couldn’t either.

Turns out, that if you have a dynamic content extension like tt_news set to not cache, and happen to insert that via TypoScript into your page, Typo3 will constantly issue temporary 503 headers as it believes the page isn’t cached and is busily being cached, which of course it isn’t because you told it not to.

This causes some irritation when your main page is issuing invisible 503’s (As hey, your site loads in the browser…) but oddly doesn’t feature on Google because their poor robot brain doesn’t know what’s happening.

The fix? Well I trawled the net and found a few bug reports on the issue but the resolution wasn’t visible in the code I had on-server, so I applied a few of them manually. One worked, and he is as follows:

Look for the file class.tslib_fe.php in path-to-source/typo3/sysext/cms/tslib/ and open her up. Somewhere around line 2574 (Whoever thought 4000 lines in a PHP class was a good thing was clearly smoking something very interesting…) you should see the following code:

// Storing for cache: if (!$this->nocache) { $this->realPageCacheContent(); } elseif ($this->tempContent) { // If there happens to be temporary content in the cache and the cache was not cleared due to new content put in it… ($this->nocache=0) $this->clearPageCacheContent(); }

Simply add a line in the 2nd clause, to make it look like so:

// Storing for cache: if (!$this->nocache) { $this->realPageCacheContent(); } elseif ($this->tempContent) { // If there happens to be temporary content in the cache and the cache was not cleared due to new content put in it… ($this->nocache=0) $this->clearPageCacheContent(); $this->tempContent = false; }

And you’re all set. No more mysterious 503’s on genuinely dynamic content.

Compliment Tool

Tuesday 1639hrs

Quick one today, linking through to a cute cartoon with a pertinent message to anyone who’s ever weilded a camera in anger. What the Duck on Photography.

Can I Have My Month Back?

Friday 1308hrs

I did say “month”, I’m not actually missing a moth. Though I did discover that hawkmoths are actually the size of small birds, which is alarming. Especially when you consider that they’ve been trying to take over the world since the Sydney olympics. Moths in general, that is, not just hawkmoths.

Did anyone actually see October happen? Does anyone have any evidence? I seem to recall promising myself I’d take a month off to work on some personal projects to further my coding and photography (Yeah, that Gallery nemesis is still happening, whoda thunkit?) but nooooo, someone had to go and get sick, then ill, then loaded up with work contracts.

Goshdarnit.

To top it off, Fuji are tempting me with a new camera they’re not really saying anything about, Tokina still haven’t released the 16-50 f2.8 they’re teasing the world with and I’m still not yet a millionaire. Though that’s not to rule out the fact that Fuji and Tokina are conspiring against me on this issue.

Yes, I’ve got lots and lots of new photos. Plenty of old ones too.

No, you’re not going to see them unless I pull a finger out, restore my decrepit backup HDD to my new shiney 200gb SATA drive and recatalog everything prior to sending the old HDD to Holland (Don’t ask) and finally start processing some of the 2,000 odd photos I’ve taken over the last month or so. And THAT isn’t gonna happen if people don’t get off my back about stupid print jobs that aren’t worth the money they’re paying for them. Saving that for another day.

Explore. Opus.

Friday 1452hrs

For anyone who uses a computer with any amount of seriousness and, also (perhaps oxymorinically, you be the judge) uses Windows, you’ll know that the default file explorer is atrociously bad. Having added nothing new to the mix since the invetion of copy and paste, despite better ideas and featuresets being available since the very first versions of Windows Commander.

Quite why MS feel the need to stifle the way we interact with our precious 1’s and 0’s is beyond me, but there are alternatives.

This one costs £35 which people may or may not view as a reasnoble investment of monetary tokens. It’s called Directory Opus and although I’ve yet to give it a full runaround I’m very keen to. There’s a good guide to the features avialable in this extensive Guide to Opus. Interesting to note that virtual folders and collections are here in full force, even though Micro$oft still haven’t managed to get that going proprly in Vista…

Incidentally I discovered this gem after someone pointed me to a picture portraying perfectly why children and expensive household interiors are generally a very bad idea.

Headfirst Data Storage

Monday 1616hrs

If I can some how sum up the willpower to motivate myself to actual physical action, I’ll be making myself one of these cute little suckers… Data Bear is the solution to your data storage needs, a bold critter who isn’t afraid to dive headfirst into a problem. Or USB port.

There’s a handy service called DynDNS that lets you give a static name to a dynamic IP. Handy for have-a-go heroes hosting websites from home. Anyhow, to auto-update the IP stored by DynDNS regularly, the use of some client software is advised. Enter DDClient, which happens to run on Ubuntu.

Now, for anyone who’s having trouble getting ddclient to run on Ubuntu in that it’s not picking up their external IP properly, the fix is simple. All you have to do is replace the following line in your /etc/ddclient.conf file :

use=if , if=web

With the following:

use=web , web=dyndns

You can also obtain some information running ddclient -query from your console.

What this does it tell ddclient not to use a network interface (if) but to use the web, and then tells it which web service to use (dyndns). If you leave it to the defaults it’ll just pull the IP from whichever network interface it’s bound to, typically eth0 by default.