{"id":846,"date":"2015-01-13T17:33:09","date_gmt":"2015-01-14T01:33:09","guid":{"rendered":"https:\/\/outflux.net\/blog\/?p=846"},"modified":"2015-07-15T16:21:20","modified_gmt":"2015-07-16T00:21:20","slug":"barcode-consolidation","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2015\/01\/13\/barcode-consolidation\/","title":{"rendered":"barcode consolidation"},"content":{"rendered":"<p>I had a mess of loyalty cards filling my wallet. It kind of looked like this:<\/p>\n<p><img decoding=\"async\" src=\"\/illustrations\/joelogon-2819512729.jpg\" alt=\"Loyalty cards, from Flickr, joelogon\" \/><\/p>\n<p>They took up too much room, and I used them infrequently. The only thing of value on them are the barcodes they carry that identify my account with whatever organization they&#8217;re tied to. Other folks have talked about <a href=\"http:\/\/blog.joelogon.com\/2008\/09\/making-my-wallet-thinner.html\">doing consolidation<\/a> in various ways like just scanning images of the cards and printing them all together. There was a site where you typed in card details and they generated barcodes for you, too. I didn&#8217;t want to hand my identifiers to a third party, and image scanning wasn&#8217;t flexible enough. I wanted to actually have the raw numbers, so I ended up using <a href=\"http:\/\/www.gnu.org\/software\/barcode\/\">barcode<\/a>. I didn&#8217;t use the Debian nor Ubuntu package, though, since it lacked SVG support, which was added in the latest (<em>cough<\/em> March 2013) version.<\/p>\n<p>I used the Android <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.google.zxing.client.android\">Barcode Scanner<\/a> app, and just saved all the barcodes and their encoding details to a text file, noting which was which. For example:<\/p>\n<pre class=\"brush:text\">\r\nAlbertsons \"035576322436\",\"UPC_A\"\r\nMultnomah County Library \"01237035218482\",\"CODABAR\"\r\nSupportland \"!0000005341632030145420\",\"CODE_128\"\r\n...\r\n<\/pre>\n<p>I measured the barcode area, since some scanners can&#8217;t handle their expected barcodes being resized, (that&#8217;s another project: find out which CAN handle it), and then spat out SVG files. I compared the results to my actual cards, since some times encodings have different options (like dropping checksum characters, &#8220;<code>-c<\/code>&#8221; below):<\/p>\n<pre class=\"brush:shell\">\r\nbarcode-svg -S -u in -g 1.5x0.5 -e upc-a      -b '035576322436' &gt; albertsons.svg\r\nbarcode-svg -S -u in -g   2x0.5 -e codabar -c -b '01237035218482' &gt; library.svg\r\nbarcode-svg -S -u cm -g 4.5x1   -e code128    -b '!0000005341632030145420' &gt; supportland.svg\r\n...\r\n<\/pre>\n<p>With <a href=\"https:\/\/inkscape.org\/\">Inkscape<\/a>, I opened them all and organized them onto a wallet-card-sized area, printed it, and laminated it. Now my wallet is 7 cards lighter. More room for <a href=\"https:\/\/en.wikipedia.org\/wiki\/HID_Global\">HID<\/a> cards or <a href=\"http:\/\/toool.us\/equipment.html\">other stuff<\/a>:<\/p>\n<p><img decoding=\"async\" src=\"\/illustrations\/equipment-emergency_card.jpg\" alt=\"Emergency Pick Card\"><\/p>\n<p style='text-align:left'>&copy; 2015, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a mess of loyalty cards filling my wallet. It kind of looked like this: They took up too much room, and I used them infrequently. The only thing of value on them are the barcodes they carry that identify my account with whatever organization they&#8217;re tied to. Other folks have talked about doing [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,1,6,14],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/846"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":11,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/846\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}