Better HN
topnewbestaskshowjobs
Log inSign up

donkykong

1 karma · joined Sep 13, 2012 (14y ago) · 1 submissions

learned c++ first language

made a shit breakout clone and some other stuff (a failed chip's challenge remake) using SDL and c++

working through the opengl superbible (not recommended. anyone recommend me a better book? "red book" has surprisingly low ratings on amazon and I won't steal it because learning from pdfs is a pain)

learning to "program" in php/mysql as well. lucky there's plenty of free help for that online

Submissions

comment 14y ago · link · parent

1. de-thread the undergarment

2. lay out the threads

3. define distances between them to either be "big" or "small". proportion them better so that all the "big" distances are roughly the same size as each other, and do so for the smaller distances as well so there's no confusion as to which is big, and which is small.

4. assign a "1" to the "big" distances, and a "0" to the "small" distances, similar to how a barcode works.

5. you now have a binary number which contains as many bits as there are spaces between the individual threads (quite large!).

you can generate 2^n-1 random numbers in this fashion, where n is the number of threads in the undergarment.