Pythagoras was a spammer?
I don’t remember blogging about this before so here goes. There’s times when you’ll algorithmically be processing lines and a certain length of line should make your application carry out a certain function on it. Think digg’s captcha
.
Now the issue is you can’t just measure the horizontal distance and the vertical distance because the line might be at an arbitrary angle. So we use pythagoras’ theorem. Yes it’s simple but sometimes you can miss this obvious stuff when you’re coding. I did for ages
, which is why I’m blogging about it.
Simply take the horizontal distance and the vertical distance, square them both, add them together, find the square root and you have the length of your line. Easy. Incidentally you need this in digg because a couple of short lines come off of F’s and so on.




June 12th, 2008 at 12:04 pm
Your blog post made me smile. Which is more than can be said for the mirror in my hall. Well done. I may smash the mirror and replace it with this blog post.
June 12th, 2008 at 12:10 pm
duh!
June 12th, 2008 at 2:08 pm
Nice one
.
June 13th, 2008 at 3:47 am
There’s a reason why I flunked a lot of my match classes in college - because I hate numbers which means I hated math in general. In short, I have no idea what you’re talking about in your post. I still read your other non-math related posts though.
June 14th, 2008 at 12:28 pm
On my maths coursework I printed a naked chick, handed it in for a joke and still aced it - good old pythagoras, its surprising how some school actually helps in later life eh?
June 21st, 2008 at 12:58 am
last couple of days a go I suffer with some spammer.
June 21st, 2008 at 1:26 am
Was the concept of spamming available in the time of Pythagoras?I don’t think so.
June 21st, 2008 at 8:58 pm
LOL, I didn’t thought about it before.
June 22nd, 2008 at 10:09 am
Pythagorus a spammer, quite possible but…
He surely was a cross-dresser and could often be found lounging while wearing stockings and night gowns.
What does math have to do with it?
-Nick de Vere
June 22nd, 2008 at 3:10 pm
nice, very nice!
June 24th, 2008 at 8:15 am
I think,Pythagoras was a great mathematician.I am a biggest fan of his formula.So,I think he was not a spammer.
July 1st, 2008 at 4:06 pm
If we calculate him by our recent rules then you can call him a spammer. But it doesn’t matter what we call him. He will be as he was all the way.:P
July 26th, 2008 at 11:41 pm
Interesting and funny post
Keep up the good work!