<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/html" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Ross Burton</title><link>http://www.burtonini.com/blog</link><description>A potted account of Ross' life</description><language>en</language><ttl>60</ttl><dc:creator>Ross Burton</dc:creator><admin:generatorAgent rdf:resource="http://pyblosxom.sourceforge.net/"/><admin:errorReportsTo rdf:resource="mailto:ross@burtonini.com"/><item><title>Generating Random vCards</title><guid isPermaLink="false">computers/random-vcards-2007-06-06-15-00</guid><link>http://www.burtonini.com/blog/computers/random-vcards-2007-06-06-15-00</link><description>Again I found myself wanting a pile of realistic vCards to test with, and decided to write a decent and ...</description><content:encoded><![CDATA[    <p>
      Again I found myself wanting a pile of realistic vCards to test with, and
      decided to write a decent and extendable solution for once (instead of the
      hilarity of <a
      href="http://burtonini.com/bzr/eds-tests/dummy-ebook/e-book-backend-dummy.c">this</a>).
      A while ago I discovered <a
      href="http://code.google.com/p/barnum/">Barnum</a>, which can generate
      pseudo-realistic data by containing large data sets of names, street
      addresses, zip codes and credit card numbers.  I extended it a little,
      adding support for creating an email address from a given name (it looks
      weird when the contact's name is John Smith but the email is
      john.doe@bar.com) and generating birth dates, then wrote a tiny script to
      write valid vCards.  Et voil&agrave;:
    </p>
    <pre>$ ./gen_vcard.py 
BEGIN:VCARD
VERSION:3.0
UID:barnum-1107705517
FN:Caleb Barone
N:Barone;Caleb;;;
BDAY:1955-05-06
EMAIL;TYPE=WORK:cbarone@blanditvelit.eu
X-JABBER;TYPE=HOME:cbarone@eratdolore.eu
ADR;TYPE=HOME:;;8270 Kahlden Lane;Thompson;CT;06277;USA
END:VCARD</pre>
    <p>
      If this is useful to anyone else, you'll want <a
      href="http://code.google.com/p/barnum/">Barnum</a>, my patched <a
      href="http://burtonini.com/computing/gen_data.py">gen_data.py</a>, and <a
      href="http://burtonini.com/computing/gen_vcard.py">gen_vcard.py</a>.
    </p>
    <p>
      <small>NP: <cite>More Than Music</cite>, Murphin</small>
    </p>
]]></content:encoded><category domain="http://www.burtonini.com">/computers</category><dc:date>2007-06-06T14:00:00Z</dc:date></item></channel></rss>