• Short guides to forum navigation, searching, posting, translation, alerts and notifications viewable by clicking here.
  • Türk dostlarımıza hoş geldiniz Giriş burada.
  • Scammers are running ads on Facebook and Instagram claiming a giveaway. DO NOT OPEN THESE LINKS AND LOG IN. See this thread: here

[Tech note] 1) How to check exact content of a QR-Code 2) How to create a QR-code yourself (linux 1 liner)

Under linux Ubuntu,
Code:
sudo apt install zbar-tools  
sudo apt install qrencode
Doesn't take long. A couple of minutes or something.

Partly inspired by @uchiki showing how to make a business card in the Kinesis Ambassadors series. Online.

I chose to use qrcode-monkey. I am in no way an artist. Had to experiment with the colour silver a little bit.
I came up with this (after a couple of minutes' work):

qr-code-sample-from-qrcodemonkey.png

Wot iz dat you might well ask?

zbarimg is our friend to find out:

'ere we go:
OUT (= decode)
Code:
cat qr-code-sample-from-qrcodemonkey.png | zbarimg -q --raw -
https://youtu.be/WSMiH2k8MNc?t=52
It's actually a URL link cued up to @andrew M performing a workout (well, sort of) at the OZL vault in Liechtenstein.
The logo I nicked from the kinesis website, top-left.

IN (another example of an encode)
Not using that website this time.
The goal here is just to store the basic URL.

Code:
qrencode -o DIY-qrcode-JustADemo.png "https://youtu.be/WSMiH2k8MNc?t=52"

Result:
DIY-qrcode-JustADemo.png
That can be decoded in exactly the same way as in the first example:

Code:
linux> cat DIY-qrcode-JustADemo.png | zbarimg -q --raw -
https://youtu.be/WSMiH2k8MNc?t=52

Say we wanted to do something a bit more ambitious:
Code:
cat >> ABX-ref << EOF
National Australia Bank
Allocated Bullion Exchange Limited
Level 3, 10 Market Street, Brisbane, Queensland, 4000, Australia
500 Bourke Street, Melbourne, Victoria, 3000, Australia
NATAAU3303M
082039
ALLBUUSD02
Don't forget your payment reference!
EOF

Taken from
Kinesis Mint/ ABX

IN
off we go again:

Code:
qrencode -o DIY-qrcode-ABX-Mint-Deposit-details.png -r ABX-ref
DIY-qrcode-ABX-Mint-Deposit-details.png
OUT
Code:
cat DIY-qrcode-ABX-Mint-Deposit-details.png | zbarimg -q --raw -

Output:

Code:
National Australia Bank
Allocated Bullion Exchange Limited
Level 3, 10 Market Street, Brisbane, Queensland, 4000, Australia
500 Bourke Street, Melbourne, Victoria, 3000, Australia
NATAAU3303M
082039
ALLBUUSD02
Don't forget your payment reference!

In real life, that may require a few finance standards markup tags and all that. Yet the principles remain.

In Asia apparently they've been using these codes for decades.

It had never occurred to me before all these are are just pix. I did my first test with my rent bill here (not shown). Used an old webcam. Plugged it into USB. Found this Ubuntu Cheese software already installed on disk. Took the photograph.

Stored it as a digital picture on disk (jpg or png ?). Et voilà. The decode worked first time.


Howzat
 

Translate

Back
Top