3 ms·
Has someone made a QR code that is a random dot stereogram and which encodes something useful? Like the source code of the program which generates it or somethi
by kazinator 5y ago
Has someone made a QR code that is a random dot stereogram and which encodes something useful? Like the source code of the program which generates it or something. :)
- codebeaker 5y agoSomething like a quine? https://www.quaxio.com/qrquine/ https://www.quaxio.com/qrquine/
- kazinator 5y agoThis is in the same area of exploration, except that my main requirement is that, visually, the QR code is a random-dot stereogram. If you align your eyes the right way while staring at it, a 3D image appears. Other requirements, like that it decodes to something that is meaningful, are secondary. Alok's quine work is interesting. The actual quining is trivial because the program pulls out its own image using Location.href. (The trick seems to be that when JS code is embedded in a literal "data:" URL, then the Location.href can pull out that URL itself. I'm not a JS person, though.) It looks like the hard work in this project was developing the QR code encoder using a verbose OOP approach, and then code golfing it through 25 steps to make it small.
- rebane2001 5y agoimport qrcode with open(__file__) as f: img = qrcode.make(f.read()) img.show() Could be improved upon, but works as an example :)
- Y_Y 5y agoThe obvious best-tool-for-the-job language here is blazon. Here's a rough POC: checky argent and sable 5 square voided in saltire palewise argent 12 square inverted sable in dexter chief a square voided fesswise argent on a plain cross escartelly checky sable and argent 3 square voided fesswise inverted argent in third quarter 3 square voided in bend sinister argent in first quarter 3 square voided in bend argent I used the interpreter at drawshield.net.