Live data from Hacker News

Creating a QR Code step by step

nayuki.io

31–40 of 49 posts

Re: Creating a QR Code step by step

#33
post #28
post #14

Earlier quoted context omitted.

The commentary mocking people for their poor English, followed by disparaging remarks about an entire country as if the email senders represent a typical sample from that nation, says more about the blog owner than about the email senders themselves. The blog owner exudes elitist vibes in the commentary. A quick skim of the blog reveals a request for Bitcoin donations, suggesting $3 as the amount, without considering…

Dude really doesn’t like Indians huh. I can see why these racists come to the conclusion that all Indians speak a certain way. If they see something written with a few quirks common to Indian English they confirm their bias that all Indians speak and write that way. If they see text without that tell, their bias is still confirmed because they conclude this person must have grown up elsewhere. For the racists at the…

"it’s easier for us to make the effort to understand than it is for someone to change how they speak"

Not just change how they speak, but learn entirely new concepts that do not exist in their language, and that they have no intuition for. I'm currently teaching German to somebody whose native language has no tenses, no cases, mostly no plurals, essentially no genders, different phonemes, and is written in a different script.

Having to not just learn these concepts, but be familiar enough with them to form an intuitive understanding and use them correctly in most instances, at a near-native level, is something that takes a decade or more for an adult. To be dismissive of somebody who makes that effort is pathetic.

Re: Creating a QR Code step by step

#34

it's nice to have an explanation. for me, I just wanted to quickly make them. Googling led to ad covered sites and "register to use" site. Found a few on GitHub but they had other issues so threw together my own using a well designed library I'd used before. took about 15 minutes https://greggman.github.io/qr-code/ might add more options but in truth I don't think most users need the options

happy you found it to be useful. I also wanted to write an implementation for sometime. The only things I could find were ready-made packages (python/Golang...etc).

The part I'd also like to know about is error correction, if you have anything useful related to QR codes for that.

Re: Creating a QR Code step by step

#35
post #17

Unfortunately it seems that every online explanation of QR codes always leaves out the Reed-Solomon error code calculation. The author here describes it as “long, tedious, and not very interesting”, but since everyone seems to think that, it is now very hard to find.

https://www.quaxio.com/an_artisanal_qr_code.html and PagedOut! Issue #2 have a qrcode from scratch including the error code calculation using long division. Enjoy!

Re: Creating a QR Code step by step

#36
post #17

Unfortunately it seems that every online explanation of QR codes always leaves out the Reed-Solomon error code calculation. The author here describes it as “long, tedious, and not very interesting”, but since everyone seems to think that, it is now very hard to find.

it is long, tedious, and the absolute most interesting part of it all.

Re: Creating a QR Code step by step

#37
post #6

This is pretty awesome. I would like to see the same thing for the decoder.

Yeah, I've been looking for a guide to implementing qr readers from 0. Explicitly not 'oh just plug in this CV library in, feed it the image and it spits out the result' like all the stuff I find in Google on the topic.

I am looking for a guide that walks you through implementing all the algorithms necessary after you have the decoded raw image data.

Re: Creating a QR Code step by step

#38
post #28

Earlier quoted context omitted.

Dude really doesn’t like Indians huh. I can see why these racists come to the conclusion that all Indians speak a certain way. If they see something written with a few quirks common to Indian English they confirm their bias that all Indians speak and write that way. If they see text without that tell, their bias is still confirmed because they conclude this person must have grown up elsewhere. For the racists at the…

"it’s easier for us to make the effort to understand than it is for someone to change how they speak" Not just change how they speak, but learn entirely new concepts that do not exist in their language, and that they have no intuition for. I'm currently teaching German to somebody whose native language has no tenses, no cases, mostly no plurals, essentially no genders, different phonemes, and is written in a differen…

Yeah I thought we have a universal consensus that we never make fun of the way people speak English because they’re trying their best in a second or third language. And they’re doing that despite the challenges you point out.

If someone does it, it means they’re racist. The act itself isn’t racist, but I’d bet dollars to doughnuts that they’d have other racist opinions and do racist things.

Re: Creating a QR Code step by step

#39
post #14
post #2

The feedback he receives is quite fun: https://www.nayuki.io/page/poor-feedback-from-readers

The commentary mocking people for their poor English, followed by disparaging remarks about an entire country as if the email senders represent a typical sample from that nation, says more about the blog owner than about the email senders themselves. The blog owner exudes elitist vibes in the commentary. A quick skim of the blog reveals a request for Bitcoin donations, suggesting $3 as the amount, without considering…

There are many genuinely talented and accomplished computer scientists from and in India; however, if you are an internet personality and you are constantly bombarded with blatant requests, or even demands, which are indeed poorly written and come off as just trying to get something from you, it points to a possible culture difference. A lot of these requests come from students who are looking for shortcuts, or think that because you have code on GitHub, they are entitled to your personal support. India is a huge country, so even if a very small part of the population acts this way, it can be overwhelming and form some strong opinions on the receiving end - and this is not limited to India.

Re: Creating a QR Code step by step

#40
post #11

This resource is awesome. I wanted to have the smallest readable QR code for my printables pages footer [1], and I discovered there that it's possible to encode URLs in "Alphanumeric mode", version 1, using only uppercase characters, e.g., HTTPS://FOO.CC/ABCDEFGHIJ, so I got a three letter domain name and built the simplest URL shortener hosted on a CF worker. [1]: https://pdf.ahaprintables.com/pdf/preview/aha/zebra-…

Would you please share more information about it? Thanks.

The URL shortener only use uppercase letters for the path of the URL, the domain and protocol are not case sensitive. Modern phones can read such QR code easily and identify them as URL.
Post reply on HN