4 ms·
Dual-Link QR Code Generator
- fastfingertips 2y agoit works!
- bryankaplan 2y agoI've long wished hyperlinks would permit multiple hrefs. Hypertext could be more sophisticated. Multi-link QR codes could be practically useful, provided an interstice appears with the URLs and allows a person to follow any of them or all of them.
- weinzierl 2y agoThey did. I think the idea with XML based hypertext was to have links that are star-shaped with potentially multiple sources and potentially multiple targets and the location where the link is defined completely independent from any sources or targets. One application would have been that people publish link collections and you could e.g read HN with the links I created. There was a proposed standard for this but its name escapes me for the moment. Of course all of this never went farther than XHTML where it took a sharp turn into a different direction.
- sidpatil 2y ago> There was a proposed standard for this but its name escapes me for the moment. XLink? It supports a feature known as extended links, which seems similar to what you're describing. https://en.wikipedia.org/wiki/XLink https://en.wikipedia.org/wiki/XLink
- redbell 2y agoReddit discussion: https://www.reddit.com/r/webdev/s/dwHDKv2s7v https://www.reddit.com/r/webdev/s/dwHDKv2s7v
- a2800276 2y agoThis is interesting and sets off a bunch of ideas. It might be fun to generate a printed version that can differently depending on how it's lit, either red/green or tricks with pwm'ing LEDs...
- martylamb 2y agoSounds like a fun item for an escape room.
- KenSF 2y agoas asked repeatedly and never answered on reddit, what is the use case for this?
- nadermx 2y agoTake a menu in a tourist spot, could have it go to both languages
- x13 2y agook, so you're going to explain to people to scan it at different angles? absurd. this is like having a hyperlink go to a random destination.
- rblatz 2y agoSo just keep scanning repeatedly until it gets you to the right menu? Wouldn’t it be easier to just have the link the QR code points to show a language picker?
- axelthegerman 2y agoOr use the available language information from the device to guess the best language (and have a picker to change)
- jdoe1337halo 2y agoDoes a proof of concept need a use case? :)
- solidr53 2y agoreal-world AB testing is the only thing I can think of
- esperent 2y agoNot all questions have an answer that will satisfy you. In this case, it probably exists because it's technically interesting, and for no other reason. Although I can totally image a roulette style game played by people who like that kind of thing: one link leads to something nice like puppy photos, the other leads to something disgusting.
- omoikane 2y agoSee also: https://news.ycombinator.com/item?id=42809268 https://news.ycombinator.com/item?id=42809268 - A QR code that sends you to a different destination – lenticular and adversarial (2025-01-23, 76 comments)
- jdoe1337halo 2y agoHey I made this! Thanks for posting! I answered most questions in the r/webdev reddit thread but I will happily answer more questions here.
- mikevin 2y agoDo you have a writeup of the technical details? How does this exploit (without reading the code and reverse engineering it)?
- pmxi 2y agoI'm not the author, but there's a brief explanation on the GitHub README: (https://github.com/zacharyreese/DualQRCode https://github.com/zacharyreese/DualQRCode) The generator creates two separate QR codes with high error correction (Level H) and combines them into a single image using pixel splicing. Each cell that differs between the two QR codes is split in two, creating a pattern that can be interpreted differently based on the scanning angle.