X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/2303a53e3000b721cc73c3bfe81b6d2911b51a35..ba4e9668864d43e9a34965383fe083b43df65e17:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index 69bfb04d9c..3050a7f90e 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -6,6 +6,106 @@ http://people.skolelinux.org/pere/blog/ + + NUUG contests Norwegian police DNS seizure of popcorn-time.no + http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html + http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html + Mon, 18 Apr 2016 10:00:00 +0200 + <p>It is days like today I am really happy to be a member of +<a href="http://www.nuug.no/">the Norwegian Unix User group</a>, a +member association for those of us believing in free software, open +standards and unix-like operating systems. NUUG announced today it +will +<a href="http://www.nuug.no/news/Pressemelding__NUUG_og_EFN_begj_rer_rettslig_pr_ving_for_DNS_domenebeslag_av_popcorn_time_no.shtml">try +to bring the seizure of the DNS domain popcorn-time.no as +unlawful</a>, to stand up for the principle that writing about a +controversial topic is not infringing copyrights, and censuring web +pages by hijacking DNS domain should be decided by the courts, not the +police. The DNS domain was seized by the Norwegian National Authority +for Investigation and Prosecution of Economic and Environmental Crime +a month ago. I hope this bring more paying members to NUUG to give +the association the financial muscle needed to bring this case as far +as it must go to stop this kind of DNS hijacking.</p> + + + + + Ny utgave (v2.2) av den frie norske stavekontrollen gitt ut + http://people.skolelinux.org/pere/blog/Ny_utgave__v2_2__av_den_frie_norske_stavekontrollen_gitt_ut.html + http://people.skolelinux.org/pere/blog/Ny_utgave__v2_2__av_den_frie_norske_stavekontrollen_gitt_ut.html + Fri, 15 Apr 2016 21:20:00 +0200 + <p>I dag tok jeg mot til meg og pakket sammen en ny versjon av den +frie norske stavekontrollen, ca. tre og et halvt år etter forrige +gang. Resultatet kan lastes ned fra +<a href="http://no.speling.org/">no.speling.org-prosjeksiden</a>, både +som kildekodepakke og som "pack"-fil som kanskje fortsatt kan brukes +av OpenOffice.org/LibreOffice. Byggesystemet trenger oppussing, men i +denne omgang hadde jeg bare tid til å fikse byggefeil forårsaket av +endringer i GNU grep. De øvrige endringene var gjort tidligere i +påvente av en ny utgave.</p> + +<p><strong>Her er det som er nytt (fra NEWS-fila i +kildekodepakken):</strong></p> + +<p>Release 2.2 (2016-04-15)</p> + +<ul> + + <li>Rewrite how scripts/speling2words handle tripple consonants, to + avoid importing duplicate words from no.speling.org, and getting + rid of the existing duplicates in norsk.words.</li> + <li>Remove duplicate entries with tripple consonants from norsk.words.</li> + <li>Update frequency for entries in norsk.words based on + <URL:http://helmer.aksis.uib.no/nta/ordlistf.zip> (ran 'make + freq-update').</li> + <li>Correct nn ispell build, avoid crash in munchlist causing lots of + words to fall out of the database.</li> + <li>Use grep -a to convince grep it is working on text files, to work + with newer grep versions.</li> + + <li>Remove some words disputed in the no.speling.org review process: + <ul> + <li>apparent (nb)</li> + <li>likke (nb)</li> + <li>ugjest, ugjesten, ugjestens (nb)</li> + </ul></li> + +</ul> + + + + + I.F. Stone - an inspiration for us all + http://people.skolelinux.org/pere/blog/I_F__Stone___an_inspiration_for_us_all.html + http://people.skolelinux.org/pere/blog/I_F__Stone___an_inspiration_for_us_all.html + Wed, 13 Apr 2016 21:20:00 +0200 + <p>I first got to know I.F. Stone when I came across an article by Jon +Schwarz on The Intercept +<a href="https://theintercept.com/2015/05/07/new-documentary-legacy-f-stone/">about +his extraordinary contribution to investigative journalism in +USA</a>. The article is about a new documentary in two parts +(<a href="https://vimeo.com/123974841">part one is 12 minutes</a> and +<a href="https://vimeo.com/123974842">part two is 30 minutes</a>), and +I found both truly fascinating. It is amazing what he was able to +find by digging up public sources and government papers. He +documented lots of government abuse and cover ups, and I find +<a href="http://www.ifstone.org/weekly.php">his weekly news letters</a> +inspiring to read even today.</p> + +<p><blockquote> +All governments are run by liars and nothing they say should be believed. +<br>- I. F. Stone +</blockquote></p> + +<p>His starting point was that reporters should not assume governments +and corporations are telling the truth, but verify all their claims as +much as possible. I wonder how many Norwegian reporters can be said +to follow the principles of I. F. Stone. They are definitely in short +supply. If you, like me half a year ago, have never heard of him, +check him out.</p> + + + A French paperback edition of the book Free Culture by Lawrence Lessig is now available http://people.skolelinux.org/pere/blog/A_French_paperback_edition_of_the_book_Free_Culture_by_Lawrence_Lessig_is_now_available.html @@ -878,233 +978,5 @@ sets.</p> - - Making battery measurements a little easier in Debian - http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html - http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html - Tue, 15 Mar 2016 15:00:00 +0100 - <p>Back in September, I blogged about -<a href="http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html">the -system I wrote to collect statistics about my laptop battery</a>, 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 href="https://tracker.debian.org/pkg/battery-stats">a battery-stats -package in Debian</a> 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.</p> - -<p>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 (<a href="https://github.com/petterreinholdtsen/battery-stats">available from github</a>) 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 <tt>/sys/class/power_supply/</tt> -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:</p> - -<p align="center"><img src="http://people.skolelinux.org/pere/blog/images/2016-03-15-battery-stats-graph-example.png" width="70%" align="center"></p> - -<p>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.</p> - -<p>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.</p> - -<p>If you would like I would like to keep an close eye on your laptop -battery, check out the battery-stats package in -<a href="https://tracker.debian.org/pkg/battery-stats">Debian</a> and -on -<a href="https://github.com/petterreinholdtsen/battery-stats">github</a>. -I would love some help to improve the system further.</p> - - - - - Creating, updating and checking debian/copyright semi-automatically - http://people.skolelinux.org/pere/blog/Creating__updating_and_checking_debian_copyright_semi_automatically.html - http://people.skolelinux.org/pere/blog/Creating__updating_and_checking_debian_copyright_semi_automatically.html - Fri, 19 Feb 2016 15:00:00 +0100 - <p>Making packages for Debian requires quite a lot of attention to -details. And one of the details is the content of the -debian/copyright file, which should list all relevant licenses used by -the code in the package in question, preferably in -<a href="https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/">machine -readable DEP5 format</a>.</p> - -<p>For large packages with lots of contributors it is hard to write -and update this file manually, and if you get some detail wrong, the -package is normally rejected by the ftpmasters. So getting it right -the first time around get the package into Debian faster, and save -both you and the ftpmasters some work.. Today, while trying to figure -out what was wrong with -<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686447">the -zfsonlinux copyright file</a>, I decided to spend some time on -figuring out the options for doing this job automatically, or at least -semi-automatically.</p> - -<p>Lucikly, there are at least two tools available for generating the -file based on the code in the source package, -<tt><a href="https://tracker.debian.org/pkg/debmake">debmake</a></tt> -and <tt><a href="https://tracker.debian.org/pkg/cme">cme</a></tt>. I'm -not sure which one of them came first, but both seem to be able to -create a sensible draft file. As far as I can tell, none of them can -be trusted to get the result just right, so the content need to be -polished a bit before the file is OK to upload. I found the debmake -option in -<a href="http://goofying-with-debian.blogspot.com/2014/07/debmake-checking-source-against-dep-5.html">a -blog posts from 2014</a>. - -<p>To generate using debmake, use the -cc option: - -<p><pre> -debmake -cc > debian/copyright -</pre></p> - -<p>Note there are some problems with python and non-ASCII names, so -this might not be the best option.</p> - -<p>The cme option is based on a config parsing library, and I found -this approach in -<a href="https://ddumont.wordpress.com/2015/04/05/improving-creation-of-debian-copyright-file/">a -blog post from 2015</a>. To generate using cme, use the 'update -dpkg-copyright' option: - -<p><pre> -cme update dpkg-copyright -</pre></p> - -<p>This will create or update debian/copyright. The cme tool seem to -handle UTF-8 names better than debmake.</p> - -<p>When the copyright file is created, I would also like some help to -check if the file is correct. For this I found two good options, -<tt>debmake -k</tt> and <tt>license-reconcile</tt>. The former seem -to focus on license types and file matching, and is able to detect -ineffective blocks in the copyright file. The latter reports missing -copyright holders and years, but was confused by inconsistent license -names (like CDDL vs. CDDL-1.0). I suspect it is good to use both and -fix all issues reported by them before uploading. But I do not know -if the tools and the ftpmasters agree on what is important to fix in a -copyright file, so the package might still be rejected.</p> - -<p>The devscripts tool <tt>licensecheck</tt> deserve mentioning. It -will read through the source and try to find all copyright statements. -It is not comparing the result to the content of debian/copyright, but -can be useful when verifying the content of the copyright file.</p> - -<p>Are you aware of better tools in Debian to create and update -debian/copyright file. Please let me know, or blog about it on -planet.debian.org.</p> - -<p>As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> - -<p><strong>Update 2016-02-20</strong>: I got a tip from Mike Gabriel -on how to use licensecheck and cdbs to create a draft copyright file - -<p><pre> -licensecheck --copyright -r `find * -type f` | \ - /usr/lib/cdbs/licensecheck2dep5 > debian/copyright.auto -</pre></p> - -<p>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.</p> - -<p><strong>Update 2016-02-21</strong>: The cme author recommended -against using -quiet for new users, so I removed it from the proposed -command line.</p> - - - - - Using appstream in Debian to locate packages with firmware and mime type support - http://people.skolelinux.org/pere/blog/Using_appstream_in_Debian_to_locate_packages_with_firmware_and_mime_type_support.html - http://people.skolelinux.org/pere/blog/Using_appstream_in_Debian_to_locate_packages_with_firmware_and_mime_type_support.html - Thu, 4 Feb 2016 16:40:00 +0100 - <p>The <a href="https://wiki.debian.org/DEP-11">appstream system</a> -is taking shape in Debian, and one provided feature is a very -convenient way to tell you which package to install to make a given -firmware file available when the kernel is looking for it. This can -be done using apt-file too, but that is for someone else to blog -about. :)</p> - -<p>Here is a small recipe to find the package with a given firmware -file, in this example I am looking for ctfw-3.2.3.0.bin, randomly -picked from the set of firmware announced using appstream in Debian -unstable. In general you would be looking for the firmware requested -by the kernel during kernel module loading. To find the package -providing the example file, do like this:</p> - -<blockquote><pre> -% apt install appstream -[...] -% apt update -[...] -% appstreamcli what-provides firmware:runtime ctfw-3.2.3.0.bin | \ - awk '/Package:/ {print $2}' -firmware-qlogic -% -</pre></blockquote> - -<p>See <a href="https://wiki.debian.org/AppStream/Guidelines">the -appstream wiki</a> page to learn how to embed the package metadata in -a way appstream can use.</p> - -<p>This same approach can be used to find any package supporting a -given MIME type. This is very useful when you get a file you do not -know how to handle. First find the mime type using <tt>file ---mime-type</tt>, and next look up the package providing support for -it. Lets say you got an SVG file. Its MIME type is image/svg+xml, -and you can find all packages handling this type like this:</p> - -<blockquote><pre> -% apt install appstream -[...] -% apt update -[...] -% appstreamcli what-provides mimetype image/svg+xml | \ - awk '/Package:/ {print $2}' -bkchem -phototonic -inkscape -shutter -tetzle -geeqie -xia -pinta -gthumb -karbon -comix -mirage -viewnior -postr -ristretto -kolourpaint4 -eog -eom -gimagereader -midori -% -</pre></blockquote> - -<p>I believe the MIME types are fetched from the desktop file for -packages providing appstream metadata.</p> - - -