16 ms·
Text QR
- sovietcattle 7y agoIs there a command line tool to generate QR codes out there?
- cosarara 7y agohttps://fukuchi.org/works/qrencode/ https://fukuchi.org/works/qrencode/
- fimdomeio 7y agoAlso https://github.com/gtanner/qrcode-terminal https://github.com/gtanner/qrcode-terminal (nodejs) Generates code with ascii block characters. Can be use as a library or a a terminal command
- cuspycode 7y agoBoth libqrencode and qrcode-terminal are capable of using ANSI escape codes for colored text to produce black and whites squares. Two space characters make about the right aspect ratio in an xterm window. I reinvented the same method myself a while ago, so it's funny how different people come up with the same idea. Haven't tried it on a VT100 terminal yet, but it should probably work there too.
- tomcooks 7y agocurl qrenco.de/yessir
- jolmg 7y agoSpecifically for text QR, there's `qr` from: https://github.com/lincolnloop/python-qrcode https://github.com/lincolnloop/python-qrcode In Archlinux, it's in the python-qrcode package. There're other command line utilities to make PNG QRs, like `qrencode`.
- fphilipe 7y agoqrencode also has a -t argument which accepts a utf8 value. Great way for quickly opening URLs you have in your clipboard on mobile devices during development as you can pipe in your clipboard to qrencode.
- pvinis 7y agoI think that's kinda the same as what expo-cli is using to display a QR code on a terminal. Right?
- trestletech 7y agoI love this. I can't get the newline breaks to work in my QR scanner, but I got excited about the idea of generating recursive QR codes. i.e. QR codes that embed another unicode QR code inside of them.
- jedimastert 7y agoI want to give some kind of award for the first quine QR code, but I have nothing to give...
- Assossa 7y agohttps://www.quaxio.com/qrquine/ https://www.quaxio.com/qrquine/
- hvdijk 7y agoIf the author already knows this is not ASCII, maybe don't name it ASCII QR?
- kube-system 7y agoSEO? Many people still call ANSI and Unicode art "ASCII art".
- umvi 7y agoThis is exactly it. It would be like if I made a website called "veggiebot" and the logo were a tomato, and everyone were getting up in arms about tomatoes technically being a fruit (berry). Yes. In theory tomatoes are not vegetables. But in practice they are treated as vegetables and searching for images of "vegetables" in google will almost certainly yield pictures of tomatoes. In theory ASCII is not Unicode. But in practice, 99% of people don't care about the under-the-hood esoteric intricacies of all the different character encodings. They see a picture made from printable characters instead of pixels and think "ASCII art"
- teach 7y agoI agree with you! But while we're being pedantic, I should complain that I don't like "tomato/fruit" analogy since the categories "fruits" and "vegetables" are not mutually exclusive. There's no botanical definition of "vegetable" like there is with "fruit". So it's sort of disingenuous to complain about edible plant categorization while using the social/cultural sense of the first word but not the other. > In theory tomatoes are not vegetables. I don't think I agree with that sentence. "Did you know that a tomato is technically a fruit?" is true and interesting if you've never heard it before. On the other hand "Did you know that a tomato isn't a vegetable; it's technically a fruit!" <- This is false. Fruits are only not vegetables if you use the social/cultural sense of both words.
- umvi 7y agoI was struggling with coming up with a perfect analogy, but this phenomenon basically happens when a word becomes ubiquitous to mean an entire class of something, like how "Kleenix" means "tissue" or "Coke" means "carbonated beverage" (depending on your location in the US). Author: "Coke QR" HN: "That's not Coke, that's Sprite!" dang: changes title to "Carbonated Beverage QR"
- glitch 7y ago(1) I acknowledge that the author already states that "[they are] quite well aware that this uses Unicode not ASCII." (2) Having said that, as a request to everybody for future text-based creations, could we please stop referring to non-ASCII text as "ASCII". Using characters that aren't in ASCII really shouldn't be referred to as ASCII. Pretty please. (3) The more generic label of "text QR" or "text-based QR" would be better, in my opinion. In this particular situation, saying "Unicode text QR" or "Unicode QR" would also be appropriate.
- LoSboccacc 7y agoi wonder why they call for Unicode usage when the extended ascii 219 - 223 could do the same e: lol why downvoting the inquisitive reader? this community sheeesh. hacker news seems a misnomer more than anything.
- ygra 7y agoDepending on the codepage ... extended ASCII is just as much a misnomer here as ASCII in the original post.
- echeese 7y agoOkay how about codepage 437 then
- tomcooks 7y agoBecause ASCII is an American-centric standard that needs to die, in favor of more inclusive standards? Unicode is already not common enough, last thing that IMHO is needed are _more_ programs that don't implement well accepted, well tested standards.
- frosted-flakes 7y agoIt seems like "ASCII QR" is a play on "ASCII art", which is an existing compound word with a specific history and meaning that the term "text art" simply does not have. When I think of ASCII art, it reminds me of old plain-text video game FAQs, which often included elaborate ASCII art throughout. "Text QR" or "Unicode QR" does not have that association.
- nephrite 7y agoJust replace black boxes with '#' and voila you have real ASCII.
- jwilk 7y agoIt's not that simple. You have also half blocks (U+2580 UPPER HALF BLOCK, U+2584 LOWER HALF BLOCK) to deal with.
- whatshisface 7y agoFull: # @ % O Z Upper half: * ' " ` ^ Lower half: o _ z Source: have played nethack.
- bowmessage 7y agoWhy? I've had my phone read QR codes made of entirely the '#' character, albeit with a small fixed-width font.
- LockAndLol 7y agoHTTPS 404s
- rsync 7y agoI prefer "Oh By"[1] codes which are actually ascii and easier to remember, pass around, and chalk up on walls/trails/streets/signs ... [1] 0x.co
- chias 7y agoAm I missing something? 0x.co looks basically like a simple bit.ly clone but that accepts non-urls too. You need to be online to perform a lookup, and can only look it up on 0x.co. If the website goes down, if the database gets lost, if you don't also include a "go look this up on 0x.co" note, etc. etc. the codes have no utility. These are problems that QR codes solve.
- rsync 7y ago"These are problems that QR codes solve." Agreed. In fact, I don't know what people use Oh By codes for ... but they do, in fact, create them and even purchase them. I will point out that it is difficult to "tell" someone a QR code over the phone ... or shout it to them ... or chalk one of them up on a wall, etc. Oh By codes solve this problem (to whatever degree this is a problem to someone).
- vesinisa 7y agoThat's just a service for hosting up to four kilobytes of text combined with an URL shortener. If the service provider ever decides to discontinue it, and they eventually will, all your codes will become meaningless. As are they when you don't have internet access for whatever reason. QR on the other hand can embed a similar amount of text and is always readable and independent of any single service provider.
- rsync 7y ago"If the service provider ever decides to discontinue it, and they eventually will, all your codes will become meaningless." Oh By will continue to be maintained into the indefinite future. Come see in twenty years. I have a very good track record in this regard.
- tsukurimashou 7y ago> *I am quite well aware that this uses Unicode not ASCII... interesting naming choices you made there
- marban 7y agoYour take on the future of QR codes? (Other than payments in Asia)
- anderspitman 7y agoNot op but I think QR codes are great and here to stay. They might not be the most efficient or ideal on a technical level, but they are very intuitive with basically universal mindshare. People understand the concept of scanning barcodes.
- jedberg 7y agoEver since Apple added automatic detection of QR codes to the camera app, I think they're pretty well cemented as a good way to transmit small amounts of data.
- lozf 7y agoSuper convenient for getting guests connected to the Wifi; I have a shell alias that runs: qrencode -t utf8 "WIFI:T:WPA2;S:<GuestVLAN-SSID>;P:<SecurePassw0rd>;;"
- filleokus 7y agoI know this is beating a dead horse but: https://picturesofpeoplescanningqrcodes.tumblr.com https://picturesofpeoplescanningqrcodes.tumblr.com I don't think I've honestly ever seen someone use QR codes due to their own initiative. I.e, I've seen people use it to pair stuff (≈ Apple watch) and for 2FA etc. But I think the whole concept of QR codes on posters etc will never take off. It's probably quicker to type in a URL or search for it, the codes are also often time to small or cumbersome to actually scan successfully. I think the idea of augmenting meatspace content with some kind of hyperlink will finally be implemented on phones with NFC tags, especially since iPhones are starting to support background scanning. However, when/if AR glasses become mainstream, we will probably use visual markers, and perhaps they will be QR but I'm betting a more visual pleasing standard will come, that can be embedded in the physical space without being as jarring [0]. [0]: Consider the impressive tracking already implemented in ARKit 2 (https://www.youtube.com/watch?v=ZhHExAxyVow https://www.youtube.com/watch?v=ZhHExAxyVow). The image is however only recognised as being part of a pre-defined, hardcoded, set of images, but it's not hard to imagine Apple suggesting some "iQR"-standard which is less intrusive but much much much more computationally expensive to detect. I have implemented a silly POC conference app which recognises badges using ARKit 2 simply by using different enough images as background on the badges (wouldn't probably scale to a large conference however...).
- paulpauper 7y agoyou can put a hex encrypted bitcoin key and make a qr code of it like this and paste it everywhere as an alternative to cloud hosting. very nice
- k__ 7y agoExpo does this in its CLI. Pretty handy if you need to connect a mobile device with a dev server or such.
- KiDD 7y agoiOS built in QR code reader doesn't recognize it...