Slide 1

Slide 1 text

Shipping secret messages through barcodes Karina Ruzinov Software Engineer @ Transfix

Slide 2

Slide 2 text

Logistics Point A ➡ Point B ✈

Slide 3

Slide 3 text

Lingo • Carrier: does the shipping of The Thing • UPS, USPS, FedEx • Shipper: the creator of The Thing • Warby Parker, Five Guys, Nike

Slide 4

Slide 4 text

So…barcodes?

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

UPC Code39

Slide 7

Slide 7 text

How you too can read a (UPC) barcode Credit: http://barcode-labels.com/you-can-learn-read-barcode/

Slide 8

Slide 8 text

What you’re seeing

Slide 9

Slide 9 text

420112159361289697090020989867 What the carrier is seeing

Slide 10

Slide 10 text

420 11215 9361289697090020989867 The Identifier for Zip Codes My actual zip code What the customer impatiently stalks

Slide 11

Slide 11 text

But how did the scanner know how to do this

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Convert the electrical signal from the LED reading to a digital representation First things first.

Slide 14

Slide 14 text

Image credit: carolinabarcode.com

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

11000101000 11000100010

Slide 17

Slide 17 text

Is the check digit correct? Before we proceed.

Slide 18

Slide 18 text

Convert to ASCII text based on decoder 11000101000 11000100010 = 40 = H = 41 = I

Slide 19

Slide 19 text

Output the final text Allows us to go from To this

Slide 20

Slide 20 text

But how does this relate to Python

Slide 21

Slide 21 text

But before Python, ZPL! (Zebra Programming Language)

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Python! (writing ZPL)

Slide 24

Slide 24 text

These are important

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

X,Y coordinates

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

A “tall” number

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Shipping labels are fun and all, but what else is out there? QR CODES!

Slide 37

Slide 37 text

Quick Aside...

Slide 38

Slide 38 text

Quick Response Code?! • Uses our of alphanumeric representation -> integer -> binary map • Data is encoded in a zig zag fashion • Level of error correction impacts the quantity of data that can be stored within the QR Code • Masking to appease the scanner

Slide 39

Slide 39 text

But thankfully we have ZPL (+ Python)

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Unintuitive ZPL we didn’t have to write Easy QR Code call

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

How about a demo?

Slide 44

Slide 44 text

Takeaway • A lot is hidden in plain sight • Why type something, when you can just scan it? • Barcodes are cool

Slide 45

Slide 45 text

Thanks! Questions? @kruzinov