4 ms·
So technically this could fit in 5 QR codes. I say technically because neither by building or downloading with wget I can get a local html version working, so
by tcsenpai 2y ago
So technically this could fit in 5 QR codes.
I say technically because neither by building or downloading with wget I can get a local html version working, so I guess it would be useful to waste time creating 5 QR codes.
- alexjplant 2y agoNintendo kind of did this back in the day with the e-Reader accessory for the Game Boy Advance. It used dot-based "barcodes" to encode NES games onto cards that you scanned and subsequently played from RAM. I imagine that some deft compression and the ARM Thumb instruction set came especially in handy here.
- tcsenpai 2y agoI once again reinvented the wheel, I see Jokes apart, didn't know that! Extremely cool!
- cmdr2 2y agoIt runs locally if you download the "m" and "l" files alongside it (for maps and models), and run it on a localhost server (to fix the CORS errors). curl "https://phoboslab.org/q1k3/index.html https://phoboslab.org/q1k3/index.html" > index.html curl "https://phoboslab.org/q1k3/l https://phoboslab.org/q1k3/l" > l curl "https://phoboslab.org/q1k3/m https://phoboslab.org/q1k3/m" > m python -m http.server -- I then zipped it up, and converted that zip file to 7 QR codes, so technically yes, we can fit Quake on a few QR codes.
- tcsenpai 2y agoSo bad is not a full html self runnable, I guess it is doable with some quick trickery. In that case, one could build a QR code html interpreter (aka read > output to file > open the file with firefox ) and it would be so cool
- mr_mitm 2y agoI did that trickery and it works: https://github.com/AdrianVollmer/Zundler https://github.com/AdrianVollmer/Zundler (I had to fix the mime type detection and I'll have to push that fix to PyPI, so use the main branch if you want to try it yourself.) Unfortunately, since we have to ship it with the gzip lib pako.js, the size more than quadruples to 77kb, so no QR code with this approach. Maybe I should look into making compression optional.
- tcsenpai 2y agoUh uh thats very interesting. I am gonna play with it a lot. > the size more than quadruples to 77kb, so no QR code with this approach. OR we can use 25 QR codes haha. Joking, but what about huge QR codes?
- lifthrasiir 2y agoYou can use DecompressionStream instead of pako.js for all modern browsers. FetchCrunch [1] uses it to generate self-extracting HTML files, which were not portable at that time but now fully portable across browsers. [1] https://github.com/subzey/fetchcrunch https://github.com/subzey/fetchcrunch
- mr_mitm 2y agoVery cool. Thanks for letting me know!
- andrehacker 2y agoThis is cool. I found that the first line didn't work but: curl "https://phoboslab.org/q1k3/ https://phoboslab.org/q1k3/" > index.html did the trick...