Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tzs
on Dec 30, 2019
|
parent
|
context
|
favorite
| on:
Encoding your WiFi access point password into a QR...
1.2 kilobytes = 9.6 kilobits. If you need 61 bits per line, you’ve got enough bits for 157 lines. 393 lines if we go with 3 kilobytes. I think you may have used 61 bytes per line in your calculation rather than 61 bits.
colejohnson66
on Dec 31, 2019
[–]
I (not OP) would say bytes would be closer. The product name could be 20 characters long (20 bytes minimum)
tzs
on Dec 31, 2019
|
parent
[–]
OP was assuming the receipt would list the product UPC code rather than product name. A UPC code is 12 digits, which can be encoded in 40 bits.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: