Inspiration Strikes!

And it makes kind of a wet schplunch sound. Do you ever get that?

A) I’ve got a nifty little book of handy mathematical formulae that I keep in my bathroom. One of the sections I’ve read several times goes over the different formulae for determining the number of possible combinations or permutations of things.

B) There is a system for cracking passwords called Rainbow Tables. The idea is that instead of taking a password and trying to unencrypt it, you simply (!) calculate all the possible passwords that exist for that encryption scheme and then search for the appropriate one. As they say, “why try to guess the password when you can just know them all?”

C) A few years ago I wrote VisiKnit to translate written knitting instructions into charts.

So, what do you get when you combine all three of these ideas?

For a given stitch width and row repeat, there are a finite number of possible cable patterns. It should be possible to write a script that calculates all of them and save them to a database. Then, when you need a cable pattern to fit a certain space in an afgan or sweater, you can just enter the width and row repeats and get a list of all possible cables.

I didn’t want to do anything this weekend anyway.

No Responses to “Inspiration Strikes!”

  1. denise Says:

    I’m still trying to combine the book of mathematical formulae with the bathroom scenario. . .is some sort of computation required in there? :-)

  2. Aarlene Says:

    Wow…that’s just amazing. Incredible, pure genius.

    ….ewwwww that wasn’t inspiration going ker-plunk that was…..

  3. KatherineOfItAll Says:

    Do you know how much I love this? A great deal. Vair much. My spouse is a professional hacker (I know, sounds lame, but it is what it is and at least he doesn’t work for the NSA–those bastards) and built some Rainbow Tables for his company’s software toolkit. So I know this thing of which you speak. AND I spent last weekend trying to come up with a cable pattern that would work in the space I needed filled (as it were). So let me know what comes of this, sir.