X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/9bf1fd25b4c58cb0f6e74f463b00fccf831109c7..e2d9672de210067d8ab05de3b097b7ae3c8d63d0:/blog/index.html?ds=sidebyside diff --git a/blog/index.html b/blog/index.html index b83ec6701d..944b2b1625 100644 --- a/blog/index.html +++ b/blog/index.html @@ -19,6 +19,89 @@ +
+
"Electronic" paper invoices - using vCard in a QR code
+
12th February 2013
+
Here in Norway, electronic invoices are spreading, and the +solution promoted +by the Norwegian government 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 +"electronic" 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 +the vCard format, as +it too is supported by a lot of computer equipment these days.

+ +

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 +ask +for donations to the Debian Edu project and thus have bank account +information publicly available) for NOK 1000.00 could have these extra +fields:

+ +

+X-INVOICE-NUMBER:1
+X-INVOICE-AMOUNT:NOK1000.00
+X-BANK-ACCOUNT-NUMBER:16040884339
+X-BANK-IBAN-NUMBER:NO8516040884339
+X-BANK-SWIFT-NUMBER:DNBANOKKXXX
+

+ +

The X-BANK-ACCOUNT-NUMBER field was proposed in a stackoverflow +answer regarding +how +to put bank account information into a vCard.

+ +The complete vCard could look like this: + +

+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
+

+ +

The resulting QR code created using +qrencode would look +like this, and should be readable (and thus checkable) by any smart +phone, or for example the zbar +bar code reader and feed right into the approval and accounting +system.

+ +

+ +

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.

+
+
+ + + Tags: english, standard. + + +
+
+
+
Litt statistikk over offentlige anbud annonsert via Doffin siden 2008
11th February 2013
@@ -106,7 +189,7 @@ per år, som viser en liten nedgang i antall anbud:

2008 7356

-

Jeg troppet den ufullstendige måneden og året fra tabellen. Se +

Jeg droppet den ufullstendige måneden og året fra tabellen. Se lenken for oppdaterte tall.

@@ -586,127 +669,6 @@ is not yet in iceweasel from Debian.

-
-
What is the most supported MIME type in Debian?
-
16th January 2013
-

The DEP-11 -proposal to add AppStream information to the Debian archive, 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.

- -

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 -Skolelinux FTP -site. 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.

- -

Debian Stable:

- -
-  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
-
- -

Debian Testing:

- -
-  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
-
- -

Debian Unstable:

- -
-  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
-
- -

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.

- -

Update 2013-01-16 13:35: Updated numbers after -discovering a typo in my script.

-
-
- - - Tags: debian, english. - - -
-
-
-

RSS feed