Big Smell, Micro Waves

Tuesday 1157hrs

It never occurred to me before now, but something tipped me off somewhere out there on the big wide web to the fact that you can sterilise things in a microwave. Why this blatantly obvious fact had until this point eluded me makes me feel somewhat ignorant, but I digress. Kitchen cloths and sponges are microbe hotels. They LOVE it in there with the old food, old fat, moisture… Quite delightful really. It doesn’t take long for a sponge or blue cloth to start to smell a “little off” and this delightful scent will gladly spread itself around on dishes and surfaces washed with it.

The solution? Whack it in the microwave for 2-3 minutes on full. Cloths might take a little less but the sponges (If wet) 2-3 minutes. Needless to say after a quick (And somewhat steamy) blast my previously significantly stinky sponge is reduced to a slightly worn-out but sterile state.

Joy.

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.

Passion, the lack thereof.

Wednesday 0305hrs

I sincerely wish I had enough passion or interest in anything that would motivate me to attain a greater-than-mediocre level in said subject. I also wish that I’d know how appalling mediocrity is when I was a kid, so I could have taken the approach of this fellow… I give you, Canon in D, Rock Style.

Why Me?

Sunday 1056hrs

I just suffered a hard-drive failure on my photo backup drive. Dead. No detecty. Stone cold. Fortunately I only move files to that drive after I’ve copied them to a DVD… usually. I think. As I’ve got no way to read the drive at all now I’ve similarly got no way of knowing what I’ve just lost. Joy .

It also means I’ll have lost every photo I’ve processed for the last 12 months or so, which is bad. See my backup strategy doesn’t really pan out for RAW files that I’ve extracted and played around with ready for printing, something that I have been meaning to sort out for a while now and this even has catalysed.

Dontations for a replacement SATA backup drive gratefully accepted.

Bring back the Stocks

Friday 1110hrs

I poke my head above the parapet of my own distractions to bring you this little chestnut of warm, fuzzy news: Girl slashed in classroom attack

Ok, so I was being sarcastic about the warm fuzzies. I left highschool maybe 10 years ago (Bloody hell. I feel old now.) I can pretty much state that the worst that ever happened was a fist fight,a couple of broken bones and a knockout. There were grudges and hard feelings but nothing that would have hospitalised anyone.

Now we’ve got girls knifing each other up in class?

Maybe this is how Rome self destructed, the populus turning in on itself and decending into anarchy. Or maybe the senate was hit by a 15-year old female knife gang…

Does anywhere in the world seem “nice” anymore? Please send me details of real estate prices and the cost of milk. Of course, it could be that the modern media is just getting better and better at bringing us the bad news? It would be silly to dismiss out of hand the possibility that there is no more wrongdoing in the world now than there was 50 years ago, except now we’re kept abreast of every single peice of it and can no longer live in blissful ignorance. I’m not old enough to say and to harp on about how “Things didn’t seem so bad when I was 10″ seems a little trite as I’d never watch the news or a read a paper and there was no available internet to tell me of the latest stabbing in Scotland, or shooting in California.

Can anyone tell me, definatively, if things really are getting worse?

…and get kicked out of shopping centres. El Reg has a peice on some sane people being kicked out of a shopping centre. Why? They were distributing a harmless, correct and informative flyer at the same time as some Pro-ID henchmen were touring the self same shopping centre. So the henchmen had a word with staff, who had a word with the police who had more than words with the 4 calm “Protestors”. I’d take that as an indicator that we don’t need ID cards to propel us into a police state… Read the full article on The Register.

Because I like them and think they’re dead right, click right away to view a copy of the No2ID flyer.

Also, have a link over to the No2ID website.

Photoshop CS2 Bug?

Thursday 1847hrs

I don’t know if anyone else has noticed this but in CS2 if you zoom in to 1600% and then try and use the SHIFT key to constrain the movement of a guide to the grid (1 pixel increments) it deletes the guide instead. Zoom out to just 1 stop less (1200%) and shift+move works as expected, locking the position of the guide to the pixel grid.

Funny that.

I also find that sub-pixel guide positioning in a raster editing program is a bit weird, but maybe thats just me.

Win some fake baps…?

Monday 1030hrs

The BBC has a peice up called Plastic surgery prizes condemned, covering Zoo Magazine’s offering of breast implants as a competition prize.

Not too fussed about the article either way, but I did happen to notice that the British Association of Aesthetic Plastic Surgeons abbreviate themselves to BAAPS.

Oh how I laughed. They even have a website.