Date: Wed, 30 Mar 2016 18:52:03 -0700
From: Toby Schachman
Subject: Barcode memex presentation
I did a quick prototype of the presentation part of my memex idea using barcodes.



I added small barcodes to a printout,

Inline image 1

and I'm scanning them using this gumstick-sized bluetooth barcode scanner (it acts as a bluetooth keyboard),

Inline image 3

The barcodes themselves measure about 1/2" by 1/4". They are EAN8 codes generated using this javascript library (github) and this script:

<html>
<head><title>Barcode Generator</title></head>
<body>

<script src="JsBarcode.all.min.js"></script>
<script>

function appendBarcode(id) {
  // Ensure 7 characters, left pad with 0s.
  id = ("00000000"+id).slice(-7);
  console.log(id);

  var img = document.createElement("img");
  document.body.appendChild(img);
  JsBarcode(img, id, {
    width: 1,
    height: 25,
    format: "EAN8",
    fontSize: 12,
    textMargin: 0,
    margin: 4
  });
}

for (var i = 0; i < 30; i++) {
  appendBarcode(i);
};

</script>

</body>
</html>