]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index 76e3ef5a99a4ef2cae7c5362da0debc28ecd7753..5be2cbecbb7950697be4713b20228923736e9aba 100644 (file)
@@ -6,6 +6,141 @@
                 <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>UsingQR - &quot;Electronic&quot; paper invoices using JSON and QR codes</title>
+               <link>http://people.skolelinux.org/pere/blog/UsingQR____Electronic__paper_invoices_using_JSON_and_QR_codes.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/UsingQR____Electronic__paper_invoices_using_JSON_and_QR_codes.html</guid>
+                <pubDate>Sat, 19 Mar 2016 09:40:00 +0100</pubDate>
+               <description>&lt;p&gt;Back in 2013 I proposed
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/_Electronic__paper_invoices___using_vCard_in_a_QR_code.html&quot;&gt;a
+way to make paper and PDF invoices easier to process electronically by
+adding a QR code with the key information about the invoice&lt;/a&gt;.  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.&lt;/p&gt;
+
+&lt;p&gt;This was the background when I came across a proposal and
+specification from the web based accounting and invoicing supplier
+&lt;a href=&quot;http://www.visma.com/&quot;&gt;Visma&lt;/a&gt; in Sweden called
+&lt;a href=&quot;http://usingqr.com/&quot;&gt;UsingQR&lt;/a&gt;.  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&#39;ve reformatted the JSON to make it easier
+to read.  Normally this is all on one long line:&lt;/p&gt;
+
+&lt;p&gt;&lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2016-03-19-qr-invoice.png&quot; align=&quot;right&quot;&gt;&lt;pre&gt;
+{
+ &quot;vh&quot;:500.00,
+ &quot;vm&quot;:0,
+ &quot;vl&quot;:0,
+ &quot;uqr&quot;:1,
+ &quot;tp&quot;:1,
+ &quot;nme&quot;:&quot;Din Leverandør&quot;,
+ &quot;cc&quot;:&quot;NO&quot;,
+ &quot;cid&quot;:&quot;997912345 MVA&quot;,
+ &quot;iref&quot;:&quot;12300001&quot;,
+ &quot;idt&quot;:&quot;20151022&quot;,
+ &quot;ddt&quot;:&quot;20151105&quot;,
+ &quot;due&quot;:2500.0000,
+ &quot;cur&quot;:&quot;NOK&quot;,
+ &quot;pt&quot;:&quot;BBAN&quot;,
+ &quot;acc&quot;:&quot;17202612345&quot;,
+ &quot;bc&quot;:&quot;BIENNOK1&quot;,
+ &quot;adr&quot;:&quot;0313 OSLO&quot;
+}
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;/p&gt;The interpretation of the fields can be found in the
+&lt;a href=&quot;http://usingqr.com/wp-content/uploads/2014/06/UsingQR_specification1.pdf&quot;&gt;format
+specification&lt;/a&gt; (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.&lt;/p&gt;
+
+&lt;p&gt;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
+&lt;a href=&quot;http://www.paperspecs.com/paper-news/beware-the-qr-code-patent-trap/&quot;&gt;a
+chance of getting sued...&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;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
+&lt;a href=&quot;http://www.ietf.org/&quot;&gt;IETF&lt;/a&gt; is the correct place to
+maintain such specification.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Making battery measurements a little easier in Debian</title>
+               <link>http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html</guid>
+                <pubDate>Tue, 15 Mar 2016 15:00:00 +0100</pubDate>
+               <description>&lt;p&gt;Back in September, I blogged about
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html&quot;&gt;the
+system I wrote to collect statistics about my laptop battery&lt;/a&gt;, 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
+&lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;a battery-stats
+package in Debian&lt;/a&gt; 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.&lt;/p&gt;
+
+&lt;p&gt;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 (&lt;a href=&quot;https://github.com/petterreinholdtsen/battery-stats&quot;&gt;available from github&lt;/a&gt;) 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 &lt;tt&gt;/sys/class/power_supply/&lt;/tt&gt;
+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:&lt;/p&gt;
+
+&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2016-03-15-battery-stats-graph-example.png&quot; width=&quot;70%&quot; align=&quot;center&quot;&gt;&lt;/p&gt;
+
+&lt;p&gt;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.&lt;/p&gt;
+
+&lt;p&gt;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.&lt;/p&gt;
+
+&lt;p&gt;If you would like I would like to keep an close eye on your laptop
+battery, check out the battery-stats package in
+&lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;Debian&lt;/a&gt; and
+on
+&lt;a href=&quot;https://github.com/petterreinholdtsen/battery-stats&quot;&gt;github&lt;/a&gt;.
+I would love some help to improve the system further.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Creating, updating and checking debian/copyright semi-automatically</title>
                <link>http://people.skolelinux.org/pere/blog/Creating__updating_and_checking_debian_copyright_semi_automatically.html</link>
@@ -57,7 +192,7 @@ blog post from 2015&lt;/a&gt;.  To generate using cme, use the &#39;update
 dpkg-copyright&#39; option:
 
 &lt;p&gt;&lt;pre&gt;
-cme update dpkg-copyright -quiet
+cme update dpkg-copyright
 &lt;/pre&gt;&lt;/p&gt;
 
 &lt;p&gt;This will create or update debian/copyright.  The cme tool seem to
@@ -86,6 +221,23 @@ planet.debian.org.&lt;/p&gt;
 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
 activities, please send Bitcoin donations to my address
 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2016-02-20&lt;/strong&gt;: I got a tip from Mike Gabriel
+on how to use licensecheck and cdbs to create a draft copyright file
+
+&lt;p&gt;&lt;pre&gt;
+licensecheck --copyright -r `find * -type f` | \
+  /usr/lib/cdbs/licensecheck2dep5 &gt; debian/copyright.auto
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;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.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2016-02-21&lt;/strong&gt;: The cme author recommended
+against using -quiet for new users, so I removed it from the proposed
+command line.&lt;/p&gt;
 </description>
        </item>
        
@@ -289,7 +441,7 @@ done in /etc/.&lt;/p&gt;
 
 &lt;blockquote&gt;&lt;pre&gt;
 apt install apt-transport-tor
-sed -i &#39;s% http://ftp.debian.org/%tor+http://vwakviie2ienjx6t.onion/%&#39; /etc/apt/sources.list
+sed -i &#39;s% http://ftp.debian.org/% tor+http://vwakviie2ienjx6t.onion/%&#39; /etc/apt/sources.list
 sed -i &#39;s% http% tor+http%&#39; /etc/apt/sources.list
 &lt;/pre&gt;&lt;/blockquote&gt;
 
@@ -596,151 +748,5 @@ hva slags problemer vi ser med dagens opphavsrettsregime.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>The GNU General Public License is not magic pixie dust</title>
-               <link>http://people.skolelinux.org/pere/blog/The_GNU_General_Public_License_is_not_magic_pixie_dust.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/The_GNU_General_Public_License_is_not_magic_pixie_dust.html</guid>
-                <pubDate>Mon, 30 Nov 2015 09:55:00 +0100</pubDate>
-               <description>&lt;p&gt;A blog post from my fellow Debian developer Paul Wise titled
-&quot;&lt;a href=&quot;http://bonedaddy.net/pabs3/log/2015/11/27/sfc-supporter/&quot;&gt;The
-GPL is not magic pixie dust&lt;/a&gt;&quot; explain the importance of making sure
-the &lt;a href=&quot;http://www.gnu.org/copyleft/gpl.html&quot;&gt;GPL&lt;/a&gt; is enforced.
-I quote the blog post from Paul in full here with his permission:&lt;p&gt;
-
-&lt;blockquote&gt;
-
-&lt;p&gt;&lt;a href=&quot;https://sfconservancy.org/supporter/&quot;&gt;&lt;img src=&quot;https://sfconservancy.org/img/supporter-badge.png&quot; width=&quot;194&quot; height=&quot;90&quot; alt=&quot;Become a Software Freedom Conservancy Supporter!&quot; align=&quot;right&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
-
-&lt;blockquote&gt;
-The GPL is not magic pixie dust. It does not work by itself.&lt;br/&gt;
-
-The first step is to choose a
-&lt;a href=&quot;https://copyleft.org/&quot;&gt;copyleft&lt;/a&gt; license for your
-code.&lt;br/&gt;
-
-The next step is, when someone fails to follow that copyleft license,
-&lt;b&gt;it must be enforced&lt;/b&gt;&lt;br/&gt;
-
-and its a simple fact of our modern society that such type of
-work&lt;br/&gt;
-
-is incredibly expensive to do and incredibly difficult to do.
-&lt;/blockquote&gt;
-
-&lt;p&gt;&lt;small&gt;-- &lt;a href=&quot;http://ebb.org/bkuhn/&quot;&gt;Bradley Kuhn&lt;/a&gt;, in
-&lt;a href=&quot;http://faif.us/&quot; title=&quot;Free as in Freedom&quot;&gt;FaiF&lt;/a&gt;
-&lt;a href=&quot;http://faif.us/cast/2015/nov/24/0x57/&quot;&gt;episode
-0x57&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
-
-&lt;p&gt;As the Debian Website
-&lt;a href=&quot;https://bugs.debian.org/794116&quot;&gt;used&lt;/a&gt;
-&lt;a href=&quot;https://anonscm.debian.org/viewvc/webwml/webwml/english/intro/free.wml?r1=1.24&amp;amp;r2=1.25&quot;&gt;to&lt;/a&gt;
-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&#39;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 &lt;a href=&quot;http://faif.us/&quot; title=&quot;Free as in
-Freedom&quot;&gt;FaiF&lt;/a&gt;
-&lt;a href=&quot;http://faif.us/cast/2015/nov/24/0x57/&quot;&gt;episode 0x57&lt;/a&gt;,
-copyleft is nothing if no-one is willing and able to stand up in court
-to protect it.  The reality of today&#39;s world is that legal
-representation is expensive, difficult and time consuming.  With
-&lt;a href=&quot;http://gpl-violations.org/&quot;&gt;gpl-violations.org&lt;/a&gt; in hiatus
-&lt;a href=&quot;http://gpl-violations.org/news/20151027-homepage-recovers/&quot;&gt;until&lt;/a&gt;
-some time in 2016, the &lt;a href=&quot;https://sfconservancy.org/&quot;&gt;Software
-Freedom Conservancy&lt;/a&gt; (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
-&lt;a href=&quot;https://sfconservancy.org/news/2015/mar/05/vmware-lawsuit/&quot;&gt;lawsuit
-by Christoph Hellwig&lt;/a&gt; against VMware for refusing to
-&lt;a href=&quot;https://sfconservancy.org/linux-compliance/vmware-lawsuit-faq.html&quot;&gt;comply
-with the GPL&lt;/a&gt; in relation to their use of parts of the Linux
-kernel.  Since then two of their sponsors pulled corporate funding and
-conferences
-&lt;a href=&quot;https://sfconservancy.org/blog/2015/nov/24/faif-carols-fundraiser/&quot;&gt;blocked
-or cancelled their talks&lt;/a&gt;.  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
-&lt;a href=&quot;https://sfconservancy.org/news/2015/nov/23/2015fundraiser/&quot;&gt;launched&lt;/a&gt;
-a &lt;a href=&quot;https://sfconservancy.org/supporter/&quot;&gt;campaign&lt;/a&gt; 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.&lt;/p&gt;
-
-&lt;p&gt;If you support Free Software,
-&lt;a href=&quot;https://sfconservancy.org/blog/2015/nov/26/like-what-I-do/&quot;&gt;like&lt;/a&gt;
-what the SFC do, agree with their
-&lt;a href=&quot;https://sfconservancy.org/linux-compliance/principles.html&quot;&gt;compliance
-principles&lt;/a&gt;, are happy about their
-&lt;a href=&quot;https://sfconservancy.org/supporter/&quot;&gt;successes&lt;/a&gt; in 2015,
-work on a project that is an SFC
-&lt;a href=&quot;https://sfconservancy.org/members/current/&quot;&gt;member&lt;/a&gt; and or
-just want to stand up for copyleft, please join
-&lt;a href=&quot;https://identi.ca/cwebber/image/JQGPA4qbTyyp3-MY8QpvuA&quot;&gt;Christopher
-Allan Webber&lt;/a&gt;,
-&lt;a href=&quot;https://sfconservancy.org/blog/2015/nov/24/faif-carols-fundraiser/&quot;&gt;Carol
-Smith&lt;/a&gt;,
-&lt;a href=&quot;http://www.jonobacon.org/2015/11/25/supporting-software-freedom-conservancy/&quot;&gt;Jono
-Bacon&lt;/a&gt;, myself and
-&lt;a href=&quot;https://sfconservancy.org/sponsors/#supporters&quot;&gt;others&lt;/a&gt; in
-becoming a
-&lt;a href=&quot;https://sfconservancy.org/supporter/&quot;&gt;supporter&lt;/a&gt;.  For the
-next week your donation will be
-&lt;a href=&quot;https://sfconservancy.org/news/2015/nov/27/black-friday/&quot;&gt;matched&lt;/a&gt;
-by an anonymous donor.  Please also consider asking your employer to
-match your donation or become a sponsor of SFC.  Don&#39;t forget to
-spread the word about your support for SFC via email, your blog and or
-social media accounts.&lt;/p&gt;
-
-&lt;/blockquote&gt;
-
-&lt;p&gt;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?&lt;/p&gt;
-</description>
-       </item>
-       
-       <item>
-               <title>PGP key transition statement for key EE4E02F9</title>
-               <link>http://people.skolelinux.org/pere/blog/PGP_key_transition_statement_for_key_EE4E02F9.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/PGP_key_transition_statement_for_key_EE4E02F9.html</guid>
-                <pubDate>Tue, 17 Nov 2015 10:50:00 +0100</pubDate>
-               <description>&lt;p&gt;I&#39;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 &lt;a href=&quot;http://shop.kernelconcepts.de/#openpgp&quot;&gt;a OpenPGP
-smart card&lt;/a&gt; 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&#39;ve been able to complete the process, and have now moved
-from my old GPG key to a new GPG key.  See
-&lt;a href=&quot;http://people.skolelinux.org/pere/blog/images/2015-11-17-new-gpg-key-transition.txt&quot;&gt;the
-full transition statement, signed with both my old and new key&lt;/a&gt; for
-the details.  This is my new key:&lt;/p&gt;
-
-&lt;pre&gt;
-pub   3936R/&lt;a href=&quot;http://pgp.cs.uu.nl/stats/111D6B29EE4E02F9.html&quot;&gt;111D6B29EE4E02F9&lt;/a&gt; 2015-11-03 [expires: 2019-11-14]
-      Key fingerprint = 3AC7 B2E3 ACA5 DF87 78F1  D827 111D 6B29 EE4E 02F9
-uid                  Petter Reinholdtsen &amp;lt;pere@hungry.com&amp;gt;
-uid                  Petter Reinholdtsen &amp;lt;pere@debian.org&amp;gt;
-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]
-&lt;/pre&gt;
-
-&lt;p&gt;The key can be downloaded from the OpenPGP key servers, signed by
-my old key.&lt;/p&gt;
-
-&lt;p&gt;If you signed my old key
-(&lt;a href=&quot;http://pgp.cs.uu.nl/stats/DB4CCC4B2A30D729.html&quot;&gt;DB4CCC4B2A30D729&lt;/a&gt;),
-I&#39;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.&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>