01.31.08

.htaccess redirects

Posted in blog, technology at 12:13 am by coldclimate

Looking though the logs for this place tonight I noticed how many people are going to old URLs which haven’t been active for months, years in some cases. 500 people a month were accessing www.coldclimate.co.uk/blog, which I retired about a year ago. Another 500 people were munching down on 2 of my homebrewed feeds www.coldclimate.co.uk/1.xml and /blog/feed.xml, neither of which have been around for about a year minmum. Throw in another few links and suddenly 1000 more pages are actually being served each month.

So I’ve added a couple of lines to my htacess file to redirect people. It’s dead simple really, add a line like “Redirect oldplace http://wwww.newplace.com/new” and any traffic that comes to /oldplace gets redirected. You have to fully qualify the new place however. Also, you htaccess file is parsed top down, you redirect /oldplace http://www.newplace.com and then in the line below redirect oldplace/really_old http://www.someotherplace.com then any traffic for oldplace/really_old will actually end up at http://www.newplace.com, not www.someotherplace.com.

As that explaination probably made as much sense as Northern Rock shares, I’d recommend this comprehencive yet easy to understand guide to htaccess. Also rememeber that htaccess can really bugger you up too

Lord knows who was visiting these long dead pages, and I suspect most of it is feed readers blindly grabbing my 404 page and not realising it, but hey, if I’ve suddenly reappeared on your radar, I’ve not been gone, honest. You may thank .htaccess’s wonderful Redirect command.

12.07.07

The miniblog

Posted in blog at 6:11 pm by coldclimate

A little while ago I started running a mini-blog.  The idea was to stop me posting single liners and make me concentrate on writing bigger and better through through posts (yeah, right), and also to let me continue to have somewhere to throw things for reading later (something I used to use the blog for a bit)

Anyway, I’ve no idea who actually reads it, especially as posts to it the miniblog don’t appear on this rss feed, so you could be missing lots of goodness.  Luckily you can point your RSS feed to… http://del.icio.us/rss/coldclimate/miniblog and enjoy.

10.15.07

Funny how the internet digs up old memories

Posted in blog at 6:30 pm by coldclimate

I received a comment on a post nearly four years old, and it stirred up such strong feelings its increadible. At the time I wrote it I could have been sick I was so upset, my heart torn out, and now I read it and realise I’ve not made some the mistakes again, so maybe it was a good thing to write it down at the time.

09.06.07

Ten pieces of advice for old media

Posted in blog, interweb at 1:07 pm by coldclimate

I loved this article called “Ten pieces of advice for old media” which interestingly enough was on badscience.net. I agree with every one of them, even the total ban on Flash on sites. It also makes a very good point about miniblogs and repeating content. Numerous times I’ve basically just re-written somebodies article to make the point that I’ve read it and enojyed it (etc etc). maybe it’s time for a miniblog on the site of here and ditch some other things?

09.04.07

Ditching Word makes you more productive and allows you to produce better documents

Posted in blog, technology at 5:21 pm by coldclimate

There are times when I have ideas, and I discharge them onto the page, without really thinking them through and making them readable. One such case is where just lately I splurged rant about open standards for documents. I’ve just finished reading this brilliant article by Steve Poole about why he stopped using Word (on a Mac no less - it’s never occurred to me to install any Microshite on my Macs), and how this has not only made him more productive, but also allowed him to enjoy working more and (and here’s the kicker) to make sure his documents are future proofed!

That’s what I should have been trying to explain when I was ranting and raving about OOXML being a bag of shite, I should have been explaining that proprietary document formats (which OOXML is ironically trying to remove and as a result of poor design enforcing), are the major problem. They lock you into a company and a product (and lets not forget how easily both can be lost). By using open standards, such as .txt (and in some ways rft and LaTex), you free yourself from the shackles of having to work how somebody else wants you to.

I with I were more eloquent at times, but then again, Mr Poole is a professional writer, and I am a professional geek.

07.26.07

Festival

Posted in blog at 10:06 am by coldclimate

Off to Secret Garden Party - no bloggage for a week. I think.

06.18.07

About me

Posted in blog at 1:28 pm by coldclimate

Little bit of time to kill, and was reading About Tom Reynolds, noticing how many things we seem to agree on. As a result I’m lifting it wholesale, and rewording it for me.

>I’ve lived in London my whole life, mainly in the North and East.
# I briefly lived in London and didn’t like it. I enjoy visiting.

I use to live in Dagenham, then I lived in Enfield, now I’m living in Barking.
# I once lived in Tooting, but moved back up North where the world is clean and green and the air isn’t dirty.

Currently I live in a terrible block of flats.
#I currently live in quite a nice block of flats

But it is cheap and the flat itself is quite nice, once the door is shut.
#Once you shut the door, ours is a little pokey.

I live on my own, have no pets and no plants. (unless you count the silverfish in the bathroom).
#I live with somebody I work with.

I have a mum (1) and a brother (1).
#Ditto, though I also have dad(1) and grans(2)

I have no idea where my father is, or even if he is still alive.
#This is very sad. My dad is my best friend.

I was born in 1971, and am a Sagittarius and a cockney.
#I was born in 1981, a cancer and a Northerner

I don’t believe in astrology.
#Neither do I, its all shit designed to confuse and excite morons.

But I do believe in dowsing.
#Seen it work - was very surprised. The scientist in me wants to know why.

After school I trained to be a Primary school teacher, but left just before I qualified when I realised that I loathed children.
# I have great respect for educators, but a quiet hatered of teachers whinging. Yes, you work hard, but…surprise surpise, lots of people do and they don’t get 13 weeks holiday.

My brother however ignored my advice, became a teacher and now earns much more than I do.
#My bro is ace.

I have a diploma, he has a degree. But I’m not jealous - I have more hair than him.
#We both have degrees. I imagine he has more hair is you weighed it.

I taught myself Z80 machine code when I was 13, now I have trouble installing Linux or getting Windows to work.
#I started out on a ZX81, and currenly run Windows, two flavours of Linux, OS X and Solaris.

I did Maths, Electronics, Computing and Physics ‘A’ Levels - A good grounding for a career in the health service.
#I did physics, chemist and maths. They stand me well.

I’ve worked for the N.H.S. since I was 23.
#I’ve never worked for the NHS, but I have been employed for ever year since I was 14.

First I was a nurse, specialising in A&E. I’ve worked in four hospitals, but my favourite had “zero stars” for two years running.
# Initally as a kitchien porter, then a barman, a graphic layout monkey, a market stall trader and now an IT consultant.

…And a Sister who just got sent to prison for stealing opioid drugs.
#Nowhere I have worked has yet closed, or been busted for drugs.

I lived in Enfield for several years at four different addresses - each time sharing a house with other nurses.
# I lived in 15 different place sint eh last 8 years.

I left A&E because all I wanted to do was torture the patients - this is not healthy.
#I’m an IT consultant by default. Eventaully I’ve do something else, maybe.

I then joined the London Ambulance Service. Now I have stopped torturing all but the congenitally obnoxious and drunks. (and drug addicts… and rude people)
# I have functional It people (those concerned with the functionality of the software with no appreciation of the technical strucure or back end).

No-one knows I blog at work, and they likely won’t find out.
#Most people know I blog, very few know where, and I try to keep it this way.

Reasons why I love my job? Fresh air, you are your own boss, you get to drive on the wrong side of the road and you only have to look after patients for 20 minutes.
# Money, technical exposure, working with some amazingly talented people.

Amongst other jobs I’ve cleaned for Sainsbury’s, gutted fish (for one day), and walked the streets sticking those annoying leaflets through letterboxes.
# I’ve done a lot of things. Listing them here would make me highly identifiable.

I love London, and can’t ever see myself leaving.
#I like visiting, but I lvoe several other cities.

When younger I represented my country in swimming competitions.
#I wish I could claim this.

I’m now incredibly unfit - and am quite happy at this state.
#I am extreamly unhappy about my shape, but not motivated to change it.

I used to be able to drink a bottle of vodka in a night.
#I doubt I ever could. I am a ilghtweight.

Now I get drunk after two strong beers - something I try to avoid.
#I think I might make three, but it would be pushing it.

…I’m a very cheap date.
#As am I, but then, i tend to pick up the bill.

I don’t “do” drugs, the last time I tried cannabis I was rather ill.
#I can’t be bothered, though I miss the ceremony and frippery.

I don’t smoke, have unprotected sex or drink to excess - I’ll be dead before I’m 50.
#I occationally drink to excess, but as noted about, thats not that much.

If I’m not wearing a medical uniform I’m actually very shy.
#I used to be very shy, but I have grown bolder as I got older.

I blog because I find it amusing. And I get to meet new and interesting people from across the world.
#I started a blog because I loved Zannah’s. Now its habit and sort of comforting.

I never used to have a pension because I was convinced I would be dead before I reached 50. Now I’m not so sure. Given my current pension plans it might be better if I do.
#I have a pension, but I naturally dont trust my money to some shit in an office trying to earn his commision.

I like most forms of music, except R’n'B, Pop pap, Drum ‘n’ Bass and Improvisational Jazz.
#I hate modern R’n'B crack-smoking gun toting gansta-wannabe’s. If they met a real hardman, they’d shit it.

Favourite music includes Alabama 3, Moby, any “Happy Hardcore”, Sisters of Mercy, most female singer/songwriters and Marillion (Fish era).
#I love Moby with a passion.I also love Nick Drake. You can see from my lastfm feed on your right.

I don’t think you can beat live music as a form of entertainment.
#I would agree completely.

I have a habit of loving a band mere months before they hit the big time - I never feel “cheated” by their success.
#Only once or twice, through I did pay 50p to see maximo park years before they were famous.

If I’m still breathing then I realise that things can’t be that bad.
#Things can be totally shit, but, on balance, my life kicks arse compared to starving to death in Africa with AIDS.

I find the idea of vampires interesting - but I don’t think they are real.
#I like the idea, but it’s mostly the attraction of goth girls. There are people who thing they are really vampires, and they scare me a little, but only becaus ethey are dillusional.

…especially those who claim to be “psychic vampires”.
#Fruitcakes.

I read comics - but only the ones I enjoy.
# I read many graphic novels, because I’m not organised enough, or patient enough, to buys comics each week. I like Preacher. Lots. And Batman.

I also read books, when I have the time.
#I read what I consider to be huge amounts. Certainly more than a book a week, and normally have 3 on the go at once.

I can juggle three balls, and I used to be able to solve a Rubiks cube.
#I can happily juggle three balls, but was quickly annoyed by Rubiks cubes. I did have a crazy math teacher who wrote abook about how to always solve the rubiks cube however.

I have a very poor memory
#Mine is not great.

I can juggle three balls, and I used to be able to solve a Rubiks cube.
#very funny.

I’m also a bit hard of hearing.
# I went stone deaf in highschool due to an ear infection, and was completely deaf for a good 2 weeks. I have tititus in my left ear, but I only reallly hear it when i changes note.

I can’t touch my toes, I can’t touch my nose with my tongue, I can’t see without glasses/contacts.
#No. Yes. No. None of the above affect me, though the toes thing annoys me.

I can still stand on my head - but it makes me dizzy.
#I could before I had a back operation. I imagine I can now, but I’m not about to try.

The thing that I hate the most is that humanity has so much potential for good, but so often disappoints.
#I hate people who are just useless. People who are all the physical ability but who “can’t be arse”. I can’t be arsed to talk to them.

Why “Random Acts Of Reality”? Because life can change dramatically because of them.
#Why [frantic][busy][south]? It was oroginally [cold][wet][durham], which was an accurate description of where I was. the brackets cane form geeky layouts at the time.

I prefer being awake at night, and asleep during the day - this is nothing to do with my interest in vampires.
#I’m very bad at going to sleep and worse at getting up int he morning.

I automatically admire anyone who can speak another language or play a musical instrument - two things I have tried many times before and have failed miserably in.
# I agree completely.

I can swear in Tagalong, Afrikaans and Mandarin.
#I can swear in French, and in English extreamly well.

I’ve had the same email address for 12 years. It gets a lot of spam.
# I think I’ve had this one for about 7 years now. It’s as long as I’ve had a blog.

I’ve never been engaged, rarely think having children would be a good idea and do not chase after lurve.
# I’m not engaged, and consider children to be small, pink, wiggly and scary. I don’t chase love, but I do try to maintain a healthy relationship.

I’m single, and quite happy being so.
#I’m highly adapt at being single, but get lonely. Currently I’m not.

I can’t stand watching football - but I am heterosexual.
#Football is gash, and I get no enjoyment form watching it. Im not gay either. I think this is a highly unfair assuption relating to gay men who like football.

I don’t have political leanings - I think all politicians are by nature crooked liars and as bad as one another.
# I’ve a soft spot for the conversatives because labour were so rude to them when I was a child and listening to radio4. It was nice when labour got in and fucked a lot of people off. Last time i voted LibDem, but it was a matter of the local conservative and labour boys standing being twerps.

I think “Anarchists” and “Socialists” need to grow up and realise just how stupid most of humanity is.
# It takes one good capitalist to ruin a socialist society. It takes a society of socalists to ruin a good capitalist society.

I think “Capitalists” know how stupid most of humanity is.
# And the thrive from it.

I plan on giving the Lib Dems a chance come the next election - it’s about time they had a chance to disappoint me as well.
# I’ve no idea who I will vote for. I suspect it will be an under educated, ill-informend, spontanious decision based on their faces on posters.

I still play Role-playing games occasionally - it’s good for stress relief. (That’s my story and I’m sticking to it).
# I don’t and never have (making the destinction between role-play and table-top gaming)

I could sleep 14 hours a day if I was allowed.
#I doubt I could, but I’ll give it a good go.

Happiness is a comfy bed, and no alarm clock.
#Happyness is tea.

I wonder how people can do 100 of these things.
#Bored people.

I’ll never be as insightful as Cory Doctorow, as handsome as Brad Pitt, as famous as a Big Brother contestant, as successful as Bill Gates, or as well hung as John Holmes. It isn’t something that bothers me much.
#Niether am I, but it bothers me a little.

I used to drink 2 ½ litres of Diet Coke a night. I ended up in hospital when I went “cold turkey”. Now I manage something a little more sensible.
# I’m not a huge fan of coke to be honest. I’ve tkae the ginger beer.

I know my grammar skills are appalling, I use hyphens and commas too much and have trouble constructing a sentence.
# Bah and humbug - you can read this can’t you?

I will never carry a National ID card.
# If they come in, I probably will, just in the same way I carry my driving licence even when not in the car. I hope they don’t come in though.

I’ve walked ten miles through North London barefoot in the rain.
# I once walked 7 miles home with a raging hangover and only a tshirt. It was crap.

I used to want to be a hippy - this is not connected with the previous point.
# I like the idea, but am too scared by pensions and houses and children and all the other things that require serious money.

I only own socks that are coloured black.
# I mostly own socks that are black, though there are two pairs (one with penguins on!)

I think rats, pigeons, foxes and cockroaches are the coolest animals around because they show humanity that despite our best efforts we can’t make everything we want extinct.
# I don’t mind rats. I’m not keen on cockroaches. I rather like foxes, but I’m not against hunting, just the tossers who they always interview on TV.

I hate doing laundry, and loathe ironing.
#I hate laundry but find ironing quite theraputic.

No matter how carefully I shave, I always look like I have a five o’clock shadow.
#No matter how carefully I shave I always miss the same patch under my right jaw joint.

I have an avatar in There - imaginatively called “Reynolds”.
#I don’t and don’t have any 3d persona online.

If someone tried mugging me, I wouldn’t be heartbroken if I accidentally killed them.
#I think would actually quite enjoy hurting them. I’m not sure if this is a good thing. At least mugging is an “honest” crime (threattening behavior to get money), unlike things that some people get away with (like willfull neglegence).

I can’t sing, I can’t dance and I can’t flirt - I have never “picked up” a woman in a nightclub.
#I used to be able to sing. I was bullied about being in a choir until I quit. I thought I could dance, but I probably couldn’t. I think I’m probably not a bad flirt, but I suspect I’m a little sleazy.

I think Anton LaVey had the right idea.
# I have no idea who he is (scuttles off to wikipedia).

05.03.07

NYC here we come

Posted in blog, nyc at 11:53 pm by coldclimate

Right - now at the end of this month I and theGirl will be heading to New York for nearly two weeks. I’m hoping to make use of my new found interweb project TrustedPlaces (have I told you to go join, review and enjoy? No? Then go! Now! Review! Enjoy! More!). The plan is that hopefully TP memebers will recommend places in NYC (TP is very Londoncentric at the moment, but it will happily handle most other cities as far as I can tell), and then I and theGirl will visit places. I’m hoping to blog most of it onto here too, hence the new catagory of this post - NYC. In theory this means going to http://www.coldclimate.co.uk/category/nyc/ will then show up all NYC related posts.

There should hopefully be some Flickr goodness, and possibly some GPS mashup stuff too (if I get my DG100 working with the Mac)

03.28.07

Radio Silence

Posted in blog at 7:10 am by coldclimate

Broken home intenet may result in patchy transmissions on coldclimate.co.uk for a while.  Too busy to fix it at present.

03.16.07

Robert Mugabe is a fucking nutter

Posted in blog at 7:07 pm by coldclimate

Yes, it’s so obvious I can’t make it any clearer, the man is a raving psychopath.  Total nut job.  And ugly too.  Can somebody not shoot him and get it over with please before he totally distroys the country. 

03.11.07

Who feeds me? RSS isn’t friendly!

Posted in blog at 11:37 pm by coldclimate

I’ve seen a huge increase in the amount of traffic which gets identified as “rss feeder” rather than Ie, firefox etc.  Lovely as it is to be read, I wonder, who are you?  Why not leave me a comment and say hi?

02.20.07

The dangers of htaccess, wordpress, and rss feeds (or How To DOS attack your own site for shame and humiliation)

Posted in blog, interweb at 6:48 pm by coldclimate

On friday night I decided to do a bit of a clean up, and removed some old code which was knocking about from the previous incarnation of coldclimate.  In doing so I set myself up for a big fall, and caused a few headaches (and I lot of ear ache for my very wonderful hosts demandtechnologies).  How you might ask - surely just deleting things means people get errors and not eat all your bandwidth?  Surely it should go down if anything because you’re serving up (or rather not) the thing you deleted?

All very well put, but to get the fnky URLs that Wordpress is so handy for (I’d mujch rather have http://www.coldclimate.co.uk/2007/02/18/site-buggered/ than http://www.coldclimate.co.uk/?id=34567 ) you need to put a little file called htaccess into your directory.  What this does is sets up rules for redirecting, so people going to http://www.coldclimate.co.uk/2007/02/18/site-buggered/ actually see a page which is served up by http://www.coldclimate.co.uk/index.php  using the information that was passed as “2007/02/18/site-buggered/” in the url.  Clever huh?

All goes well until it turned out I’d deleted the code which pulled in my posts from LibraryThing.com and last.fm via rss and displayed them.  each and every page opened on coldclimate sent the page off looking for a file which is couldn’t file, and because it wasn’t there it redirected to index.php, which was then pulled, causing it to go looking for the rss feed, and on and on and on.  Basically each page somebody tied to view caused 8megs of pages to be pulled form coldclimate, and fed back to itself. 

Grand result - site ate up all the bandwidth going from the hosting, making it look like the entire site (as in building, not website) was being attacked, and it was all being directed at my site.  Also, because it was repeatedly trying to pull other peoples stuff, they probably got upset too, thinging I was trying to get hold of their stuff 80million times an hour. 

So - lessons learned.  Watch your logs like a hawk!  Code carefully, with error trapping.  Include “RewriteOptions MaxRedirects=X" where X is the maximum number of times you don’t mind it having.

Be prepared to pull your whole site down at no notice to fix it, because you are screwing other people too.

02.19.07

Site un-buggered

Posted in blog, interweb at 11:45 pm by coldclimate

OK, so I managed to DOS attack my own site.  I’ll write up a bit about it later when I’m not tired and tireder, but basically a combination of htaccess, deleting files and some jiggery pokery, I managed to create an infinate loop within my own site.  *head V’s desk moment*

02.18.07

Site buggered

Posted in blog at 5:36 pm by coldclimate

Well, it looks like something has hidiously wrong with the site and it was eatting all the bandwidth for everybody.  In fact, I got barred, because I ate 76GB in a couple of days.

Possibly it is now fixed.  Maybe.

02.08.07

3 column joy

Posted in blog, ideas, interweb at 9:43 am by coldclimate

Everybody eants 3 eqal height columns, with three different coloured backgrounds, because it is the halcyon of web layouts.  A List Apart shows you the way forward.  Old coldclimate.co.uk used to use three columns, and it was a pain and rendered buggily on some browsers, but aparently this will work better.

02.04.07

Masonic Clothing?

Posted in blog at 11:22 pm by coldclimate

Obviously there must be some sort of uniform.  Odd.

01.24.07

Custom wordpress importer from Blogger

Posted in blog at 4:49 pm by coldclimate

I’ve spent most of the day coding a custom importer from blogger to Wordpress. I’ve ended up hacking it together by

  • exporting blogger with an easily parsable structure - no comments, +++’s at the start of each artice and |||’s between items.  Monthly archiving set on, and a full republish.
  • custom php script to read each xml archive, create a date stamp from the file name, pulling all the content, and squirting it into the db again.
  • redoing it many many times.

Satisfying way to spend a day where I was feeling fucking terrible.