]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index ffbee1b231110206cb6da96615c794000c7cb263..ecede651ec1ff1772528ac0d8a8765b63472e860 100644 (file)
@@ -6,6 +6,83 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>&quot;Electronic&quot; paper invoices - using vCard in a QR code</title>
+               <link>http://people.skolelinux.org/pere/blog/_Electronic__paper_invoices___using_vCard_in_a_QR_code.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/_Electronic__paper_invoices___using_vCard_in_a_QR_code.html</guid>
+                <pubDate>Tue, 12 Feb 2013 10:30:00 +0100</pubDate>
+               <description>Here in Norway, electronic invoices are spreading, and the
+&lt;a href=&quot;http://www.anskaffelser.no/e-handel/faktura&quot;&gt;solution promoted
+by the Norwegian government&lt;/a&gt; require that invoices are sent through
+one of the approved facilitators, and it is not possible to send
+electronic invoices without an agreement with one of these
+facilitators.  This seem like a needless limitation to be able to
+transfer invoice information between buyers and sellers.  My preferred
+solution would be to just transfer the invoice information directly
+between seller and buyer, for example using SMTP, or some HTTP based
+protocol like REST or SOAP.  But this might also be overkill, as the
+&quot;electronic&quot; information can be transferred using paper invoices too,
+using a simple bar code.  My bar code encoding of choice would be QR
+codes, as this encoding can be read by any smart phone out there.  The
+content of the code could be anything, but I would go with
+&lt;a href=&quot;http://en.wikipedia.org/wiki/VCard&quot;&gt;the vCard format&lt;/a&gt;, as
+it too is supported by a lot of computer equipment these days.&lt;/p&gt;
+
+&lt;p&gt;The vCard format support extentions, and the invoice specific
+information can be included using such extentions.  For example an
+invoice from SLX Debian Labs (picked because we
+&lt;a href=&quot;http://www.linuxiskolen.no/slxdebianlabs/donations.html&quot;&gt;ask
+for donations to the Debian Edu project&lt;/a&gt; and thus have bank account
+information publicly available) for NOK 1000.00 could have these extra
+fields:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+X-INVOICE-NUMBER:1
+X-INVOICE-AMOUNT:NOK1000.00
+X-BANK-ACCOUNT-NUMBER:16040884339
+X-BANK-IBAN-NUMBER:NO8516040884339
+X-BANK-SWIFT-NUMBER:DNBANOKKXXX
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;The X-BANK-ACCOUNT-NUMBER field was proposed in a stackoverflow
+answer regarding
+&lt;a href=&quot;http://stackoverflow.com/questions/10045664/storing-bank-account-in-vcard-file&quot;&gt;how
+to put bank account information into a vCard&lt;/a&gt;.&lt;/p&gt;
+
+The complete vCard could look like this:
+
+&lt;p&gt;&lt;pre&gt;
+BEGIN:VCARD
+VERSION:2.1
+ORG:SLX Debian Labs Foundation
+ADR;WORK:;;Gunnar Schjelderups vei 29D;OSLO;;0485;Norway
+URL;WORK:http://www.linuxiskolen.no/slxdebianlabs/
+EMAIL;PREF;INTERNET:sdl-styret@rt.nuug.no
+REV:20130212T095000Z
+X-INVOICE-NUMBER:1
+X-INVOICE-AMOUNT:NOK1000.00
+X-BANK-ACCOUNT-NUMBER:16040884339
+X-BANK-IBAN-NUMBER:NO8516040884339
+X-BANK-SWIFT-NUMBER:DNBANOKKXXX
+END:VCARD
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;The resulting QR code created using
+&lt;a href=&quot;http://fukuchi.org/works/qrencode/&quot;&gt;qrencode&lt;/a&gt; would look
+like this, and should be readable (and thus checkable) by any smart
+phone, or for example the &lt;a href=&quot;http://zbar.sourceforge.net/&quot;&gt;zbar
+bar code reader&lt;/a&gt; and feed right into the approval and accounting
+system.&lt;/p&gt;
+
+&lt;p&gt;&lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2013-02-12-qr-invoice.png&quot;&gt;&lt;/p&gt;
+
+&lt;p&gt;The extension fields will most likely not show up in any normal
+vCard reader, so those parts would have to go directly into a system
+handling invoices.  I am a bit unsure how vCards without name parts
+are handled, but a simple test indicate that this work just fine.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Litt statistikk over offentlige anbud annonsert via Doffin siden 2008</title>
                <link>http://people.skolelinux.org/pere/blog/Litt_statistikk_over_offentlige_anbud_annonsert_via_Doffin_siden_2008.html</link>
@@ -95,7 +172,7 @@ per år&lt;/a&gt;, som viser en liten nedgang i antall anbud:&lt;/p&gt;
 &lt;tr&gt; &lt;td&gt;2008&lt;/td&gt; &lt;td&gt;7356&lt;/td&gt; &lt;/tr&gt;
 &lt;/table&gt;&lt;/p&gt;
 
-&lt;p&gt;Jeg troppet den ufullstendige måneden og året fra tabellen.  Se
+&lt;p&gt;Jeg droppet den ufullstendige måneden og året fra tabellen.  Se
 lenken for oppdaterte tall.&lt;/p&gt;
 </description>
        </item>
@@ -519,120 +596,5 @@ is not yet in iceweasel from Debian.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>What is the most supported MIME type in Debian?</title>
-               <link>http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html</guid>
-                <pubDate>Wed, 16 Jan 2013 10:10:00 +0100</pubDate>
-               <description>&lt;p&gt;The &lt;a href=&quot;http://wiki.debian.org/AppStreamDebianProposal&quot;&gt;DEP-11
-proposal to add AppStream information to the Debian archive&lt;/a&gt;, is a
-proposal to make it possible for a Desktop application to propose to
-the user some package to install to gain support for a given MIME
-type, font, library etc. that is currently missing.  With such
-mechanism in place, it would be possible for the desktop to
-automatically propose and install leocad if some LDraw file is
-downloaded by the browser.&lt;/p&gt;
-
-&lt;p&gt;To get some idea about the current content of the archive, I decided
-to write a simple program to extract all .desktop files from the
-Debian archive and look up the claimed MIME support there.  The result
-can be found on the
-&lt;a href=&quot;http://ftp.skolelinux.org/pub/AppStreamTest&quot;&gt;Skolelinux FTP
-site&lt;/a&gt;.  Using the collected information, it become possible to
-answer the question in the title.  Here are the 20 most supported MIME
-types in Debian stable (Squeeze), testing (Wheezy) and unstable (Sid).
-The complete list is available from the link above.&lt;/p&gt;
-
-&lt;p&gt;&lt;strong&gt;Debian Stable:&lt;/strong&gt;&lt;/p&gt;
-
-&lt;pre&gt;
-  count MIME type
-  ----- -----------------------
-     32 text/plain
-     30 audio/mpeg
-     29 image/png
-     28 image/jpeg
-     27 application/ogg
-     26 audio/x-mp3
-     25 image/tiff
-     25 image/gif
-     22 image/bmp
-     22 audio/x-wav
-     20 audio/x-flac
-     19 audio/x-mpegurl
-     18 video/x-ms-asf
-     18 audio/x-musepack
-     18 audio/x-mpeg
-     18 application/x-ogg
-     17 video/mpeg
-     17 audio/x-scpls
-     17 audio/ogg
-     16 video/x-ms-wmv
-&lt;/pre&gt;
-
-&lt;p&gt;&lt;strong&gt;Debian Testing:&lt;/strong&gt;&lt;/p&gt;
-
-&lt;pre&gt;
-  count MIME type
-  ----- -----------------------
-     33 text/plain
-     32 image/png
-     32 image/jpeg
-     29 audio/mpeg
-     27 image/gif
-     26 image/tiff
-     26 application/ogg
-     25 audio/x-mp3
-     22 image/bmp
-     21 audio/x-wav
-     19 audio/x-mpegurl
-     19 audio/x-mpeg
-     18 video/mpeg
-     18 audio/x-scpls
-     18 audio/x-flac
-     18 application/x-ogg
-     17 video/x-ms-asf
-     17 text/html
-     17 audio/x-musepack
-     16 image/x-xbitmap
-&lt;/pre&gt;
-
-&lt;p&gt;&lt;strong&gt;Debian Unstable:&lt;/strong&gt;&lt;/p&gt;
-
-&lt;pre&gt;
-  count MIME type
-  ----- -----------------------
-     31 text/plain
-     31 image/png
-     31 image/jpeg
-     29 audio/mpeg
-     28 application/ogg
-     27 image/gif
-     26 image/tiff
-     26 audio/x-mp3
-     23 audio/x-wav
-     22 image/bmp
-     21 audio/x-flac
-     20 audio/x-mpegurl
-     19 audio/x-mpeg
-     18 video/x-ms-asf
-     18 video/mpeg
-     18 audio/x-scpls
-     18 application/x-ogg
-     17 audio/x-musepack
-     16 video/x-ms-wmv
-     16 video/x-msvideo
-&lt;/pre&gt;
-
-&lt;p&gt;I am told that PackageKit can provide an API to access the kind of
-information mentioned in DEP-11.  I have not yet had time to look at
-it, but hope the PackageKit people in Debian are on top of these
-issues.&lt;/p&gt;
-
-&lt;p&gt;&lt;strong&gt;Update 2013-01-16 13:35&lt;/strong&gt;: Updated numbers after
-discovering a typo in my script.&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>