X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/b2c75b135ddd9dc450e82036ebf37807edef2b67..7cb10bba70a818afdb7f72b97c9a05045722462d:/blog/index.html diff --git a/blog/index.html b/blog/index.html index 641430e9d4..4a6526caf2 100644 --- a/blog/index.html +++ b/blog/index.html @@ -19,6 +19,174 @@ +
+
UsingQR - "Electronic" paper invoices using JSON and QR codes
+
19th March 2016
+

Back in 2013 I proposed +a +way to make paper and PDF invoices easier to process electronically by +adding a QR code with the key information about the invoice. I +suggested using vCard field definition, to get some standard format +for name and address, but any format would work. I did not do +anything about the proposal, but hoped someone one day would make +something like it. It would make it possible to efficiently send +machine readable invoices directly between seller and buyer.

+ +

This was the background when I came across a proposal and +specification from the web based accounting and invoicing supplier +Visma in Sweden called +UsingQR. Their PDF invoices contain +a QR code with the key information of the invoice in JSON format. +This is the typical content of a QR code following the UsingQR +specification (based on a real world example, some numbers replaced to +get a more bogus entry). I've reformatted the JSON to make it easier +to read. Normally this is all on one long line:

+ +

+{
+ "vh":500.00,
+ "vm":0,
+ "vl":0,
+ "uqr":1,
+ "tp":1,
+ "nme":"Din Leverandør",
+ "cc":"NO",
+ "cid":"997912345 MVA",
+ "iref":"12300001",
+ "idt":"20151022",
+ "ddt":"20151105",
+ "due":2500.0000,
+ "cur":"NOK",
+ "pt":"BBAN",
+ "acc":"17202612345",
+ "bc":"BIENNOK1",
+ "adr":"0313 OSLO"
+}
+

+ +

The interpretation of the fields can be found in the +format +specification (revision 2 from june 2014). The format seem to +have most of the information needed to handle accounting and payment +of invoices, at least the fields I have needed so far here in +Norway.

+ +

Unfortunately, the site and document do not mention anything about +the patent, trademark and copyright status of the format and the +specification. Because of this, I asked the people behind it back in +November to clarify. Ann-Christine Savlid (ann-christine.savlid (at) +visma.com) replied that Visma had not applied for patent or trademark +protection for this format, and that there were no copyright based +usage limitations for the format. I urged her to make sure this was +explicitly written on the web pages and in the specification, but +unfortunately this has not happened yet. So I guess if there is +submarine patents, hidden trademarks or a will to sue for copyright +infringements, those starting to use the UsingQR format might be at +risk, but if this happen there is some legal defense in the fact that +the people behind the format claimed it was safe to do so. At least +with patents, there is always +a +chance of getting sued...

+ +

I also asked if they planned to maintain the format in an +independent standard organization to give others more confidence that +they would participate in the standardization process on equal terms +with Visma, but they had no immediate plans for this. Their plan was +to work with banks to try to get more users of the format, and +evaluate the way forward if the format proved to be popular. I hope +they conclude that using an open standard organisation like +IETF is the correct place to +maintain such specification.

+ +

Update 2016-03-20: Via Twitter I became aware of +some comments +about this blog post that had several useful links and references to +similar systems. In the Czech republic, the Czech Banking Association +standard #26, with short name SPAYD, uses QR codes with payment +information. More information is available from the Wikipedia page on +Short +Payment Descriptor. And in Germany, there is a system named +BezahlCode, +(specification +v1.8 2013-12-05 available as PDF), which uses QR codes with +URL-like formatting using "bank:" as the URI schema/protocol to +provide the payment information. There is also the +ZUGFeRD +file format that perhaps could be transfered using QR codes, but I am +not sure if it is done already. Last, in Bolivia there are reports +that tax information since november 2014 need to be printed in QR +format on invoices. I have not been able to track down a +specification for this format, because of my limited language skill +sets.

+
+
+ + + Tags: english, standard. + + +
+
+
+ +
+
Making battery measurements a little easier in Debian
+
15th March 2016
+

Back in September, I blogged about +the +system I wrote to collect statistics about my laptop battery, and +how it showed the decay and death of this battery (now replaced). I +created a simple deb package to handle the collection and graphing, +but did not want to upload it to Debian as there were already +a battery-stats +package in Debian that should do the same thing, and I did not see +a point of uploading a competing package when battery-stats could be +fixed instead. I reported a few bugs about its non-function, and +hoped someone would step in and fix it. But no-one did.

+ +

I got tired of waiting a few days ago, and took matters in my own +hands. The end result is that I am now the new upstream developer of +battery stats (available from github) and part of the team maintaining +battery-stats in Debian, and the package in Debian unstable is finally +able to collect battery status using the /sys/class/power_supply/ +information provided by the Linux kernel. If you install the +battery-stats package from unstable now, you will be able to get a +graph of the current battery fill level, to get some idea about the +status of the battery. The source package build and work just fine in +Debian testing and stable (and probably oldstable too, but I have not +tested). The default graph you get for that system look like this:

+ +

+ +

My plans for the future is to merge my old scripts into the +battery-stats package, as my old scripts collected a lot more details +about the battery. The scripts are merged into the upstream +battery-stats git repository already, but I am not convinced they work +yet, as I changed a lot of paths along the way. Will have to test a +bit more before I make a new release.

+ +

I will also consider changing the file format slightly, as I +suspect the way I combine several values into one field might make it +impossible to know the type of the value when using it for processing +and graphing.

+ +

If you would like I would like to keep an close eye on your laptop +battery, check out the battery-stats package in +Debian and +on +github. +I would love some help to improve the system further.

+
+
+ + + Tags: debian, english. + + +
+
+
+
Creating, updating and checking debian/copyright semi-automatically
19th February 2016
@@ -68,7 +236,7 @@ blog post from 2015. To generate using cme, use the 'update dpkg-copyright' option:

-cme update dpkg-copyright -quiet
+cme update dpkg-copyright
 

This will create or update debian/copyright. The cme tool seem to @@ -97,6 +265,23 @@ planet.debian.org.

As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address 15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

+ +

Update 2016-02-20: I got a tip from Mike Gabriel +on how to use licensecheck and cdbs to create a draft copyright file + +

+licensecheck --copyright -r `find * -type f` | \
+  /usr/lib/cdbs/licensecheck2dep5 > debian/copyright.auto
+

+ +

He mentioned that he normally check the generated file into the +version control system to make it easier to discover license and +copyright changes in the upstream source. I will try to do the same +with my packages in the future.

+ +

Update 2016-02-21: The cme author recommended +against using -quiet for new users, so I removed it from the proposed +command line.

@@ -318,7 +503,7 @@ done in /etc/.

 apt install apt-transport-tor
-sed -i 's% http://ftp.debian.org/%tor+http://vwakviie2ienjx6t.onion/%' /etc/apt/sources.list
+sed -i 's% http://ftp.debian.org/% tor+http://vwakviie2ienjx6t.onion/%' /etc/apt/sources.list
 sed -i 's% http% tor+http%' /etc/apt/sources.list
 
@@ -657,164 +842,6 @@ hva slags problemer vi ser med dagens opphavsrettsregime.

-
-
The GNU General Public License is not magic pixie dust
-
30th November 2015
-

A blog post from my fellow Debian developer Paul Wise titled -"The -GPL is not magic pixie dust" explain the importance of making sure -the GPL is enforced. -I quote the blog post from Paul in full here with his permission:

- -

- -

Become a Software Freedom Conservancy Supporter!

- -
-The GPL is not magic pixie dust. It does not work by itself.
- -The first step is to choose a -copyleft license for your -code.
- -The next step is, when someone fails to follow that copyleft license, -it must be enforced
- -and its a simple fact of our modern society that such type of -work
- -is incredibly expensive to do and incredibly difficult to do. -
- -

-- Bradley Kuhn, in -FaiF -episode -0x57

- -

As the Debian Website -used -to -imply, public domain and permissively licensed software can lead to -the production of more proprietary software as people discover useful -software, extend it and or incorporate it into their hardware or -software products. Copyleft licenses such as the GNU GPL were created -to close off this avenue to the production of proprietary software but -such licenses are not enough. With the ongoing adoption of Free -Software by individuals and groups, inevitably the community's -expectations of license compliance are violated, usually out of -ignorance of the way Free Software works, but not always. As Karen -and Bradley explained in FaiF -episode 0x57, -copyleft is nothing if no-one is willing and able to stand up in court -to protect it. The reality of today's world is that legal -representation is expensive, difficult and time consuming. With -gpl-violations.org in hiatus -until -some time in 2016, the Software -Freedom Conservancy (a tax-exempt charity) is the major defender -of the Linux project, Debian and other groups against GPL violations. -In March the SFC supported a -lawsuit -by Christoph Hellwig against VMware for refusing to -comply -with the GPL in relation to their use of parts of the Linux -kernel. Since then two of their sponsors pulled corporate funding and -conferences -blocked -or cancelled their talks. As a result they have decided to rely -less on corporate funding and more on the broad community of -individuals who support Free Software and copyleft. So the SFC has -launched -a campaign to create -a community of folks who stand up for copyleft and the GPL by -supporting their work on promoting and supporting copyleft and Free -Software.

- -

If you support Free Software, -like -what the SFC do, agree with their -compliance -principles, are happy about their -successes in 2015, -work on a project that is an SFC -member and or -just want to stand up for copyleft, please join -Christopher -Allan Webber, -Carol -Smith, -Jono -Bacon, myself and -others in -becoming a -supporter. For the -next week your donation will be -matched -by an anonymous donor. Please also consider asking your employer to -match your donation or become a sponsor of SFC. Don't forget to -spread the word about your support for SFC via email, your blog and or -social media accounts.

- -
- -

I agree with Paul on this topic and just signed up as a Supporter -of Software Freedom Conservancy myself. Perhaps you should be a -supporter too?

-
-
- - - Tags: debian, debian edu, english, opphavsrett. - - -
-
-
- -
-
PGP key transition statement for key EE4E02F9
-
17th November 2015
-

I've needed a new OpenPGP key for a while, but have not had time to -set it up properly. I wanted to generate it offline and have it -available on a OpenPGP -smart card for daily use, and learning how to do it and finding -time to sit down with an offline machine almost took forever. But -finally I've been able to complete the process, and have now moved -from my old GPG key to a new GPG key. See -the -full transition statement, signed with both my old and new key for -the details. This is my new key:

- -
-pub   3936R/111D6B29EE4E02F9 2015-11-03 [expires: 2019-11-14]
-      Key fingerprint = 3AC7 B2E3 ACA5 DF87 78F1  D827 111D 6B29 EE4E 02F9
-uid                  Petter Reinholdtsen <pere@hungry.com>
-uid                  Petter Reinholdtsen <pere@debian.org>
-sub   4096R/87BAFB0E 2015-11-03 [expires: 2019-11-02]
-sub   4096R/F91E6DE9 2015-11-03 [expires: 2019-11-02]
-sub   4096R/A0439BAB 2015-11-03 [expires: 2019-11-02]
-
- -

The key can be downloaded from the OpenPGP key servers, signed by -my old key.

- -

If you signed my old key -(DB4CCC4B2A30D729), -I'd very much appreciate a signature on my new key, details and -instructions in the transition statement. I m happy to reciprocate if -you have a similarly signed transition statement to present.

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

RSS feed