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.

Pythagoras Theorem

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.

13 Responses to “Pythagoras was a spammer?”

  1. Mark Says:

    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.

  2. anty Says:

    duh! :)

  3. Jernej Says:

    Nice one :) .

  4. Patrick Everett Says:

    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.

  5. underworld Says:

    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?

  6. Jonny Music Says:

    last couple of days a go I suffer with some spammer.

  7. Escorts In London Says:

    Was the concept of spamming available in the time of Pythagoras?I don’t think so.

  8. מיתוג אישי Says:

    LOL, I didn’t thought about it before.

  9. Bel Air Real Estate Says:

    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

  10. italy30 Says:

    nice, very nice!

  11. real estate directory Says:

    I think,Pythagoras was a great mathematician.I am a biggest fan of his formula.So,I think he was not a spammer.

  12. make online money Says:

    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

  13. Hunder Says:

    Interesting and funny post :-)
    Keep up the good work!

Leave a Reply

Enter this code