1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"http://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>Discharge rate estimate in new battery statistics collector for Debian
</title>
11 <link>http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</guid>
13 <pubDate>Mon,
23 May
2016 09:
35:
00 +
0200</pubDate>
14 <description><p
>Yesterday I updated the
15 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
16 package in Debian
</a
> with a few patches sent to me by skilled and
17 enterprising users. There were some nice user and visible changes.
18 First of all, both desktop menu entries now work. A design flaw in
19 one of the script made the history graph fail to show up (its PNG was
20 dumped in ~/.xsession-errors) if no controlling TTY was available.
21 The script worked when called from the command line, but not when
22 called from the desktop menu. I changed this to look for a DISPLAY
23 variable or a TTY before deciding where to draw the graph, and now the
24 graph window pop up as expected.
</p
>
26 <p
>The next new feature is a discharge rate estimator in one of the
27 graphs (the one showing the last few hours). New is also the user of
28 colours showing charging in blue and discharge in red. The percentages
29 of this graph is relative to last full charge, not battery design
32 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-rate.png
"/
></p
>
34 <p
>The other graph show the entire history of the collected battery
35 statistics, comparing it to the design capacity of the battery to
36 visualise how the battery life time get shorter over time. The red
37 line in this graph is what the previous graph considers
100 percent:
39 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-history.png
"/
></p
>
41 <p
>In this graph you can see that I only charge the battery to
80
42 percent of last full capacity, and how the capacity of the battery is
43 shrinking. :(
</p
>
45 <p
>The last new feature is in the collector, which now will handle
46 more hardware models. On some hardware, Linux power supply
47 information is stored in /sys/class/power_supply/ACAD/, while the
48 collector previously only looked in /sys/class/power_supply/AC/. Now
49 both are checked to figure if there is power connected to the
52 <p
>If you are interested in how your laptop battery is doing, please
54 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
</a
>
55 in Debian unstable, or rebuild it on Jessie to get it working on
56 Debian stable. :) The upstream source is available from
<a
57 href=
"https://github.com/petterreinholdtsen/battery-stats
">github
</a
>.
58 Patches are very welcome.
</p
>
60 <p
>As usual, if you use Bitcoin and want to show your support of my
61 activities, please send Bitcoin donations to my address
62 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
67 <title>French edition of Lawrence Lessigs book Cultura Libre on Amazon and Barnes
& Noble
</title>
68 <link>http://people.skolelinux.org/pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</link>
69 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</guid>
70 <pubDate>Sat,
21 May
2016 10:
50:
00 +
0200</pubDate>
71 <description><p
>A few weeks ago the French paperback edition of Lawrence Lessigs
72 2004 book Cultura Libre was published. Today I noticed that the book
73 is now available from book stores. You can now buy it from
74 <a href=
"http://www.amazon.com/Culture-Libre-French-Lawrence-Lessig/dp/
8269018260">Amazon
</a
>
76 <a href=
"http://www.barnesandnoble.com/w/culture-libre-lawrence-lessig/
1123776705">Barnes
77 & Noble
</a
> ($?) and as always from
78 <a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">Lulu.com
</a
>
79 ($
19.99). The revenue is donated to the Creative Commons project. If
80 you buy from Lulu.com, they currently get $
10.59, while if you buy
81 from one of the book stores most of the revenue go to the book store
82 and the Creative Commons project get much (not sure how much
85 <p
>I was a bit surprised to discover that there is a kindle edition
86 sold by Amazon Digital Services LLC on Amazon. Not quite sure how
87 that edition was created, but if you want to download a electronic
88 edition (PDF, EPUB, Mobi) generated from the same files used to create
89 the paperback edition, they are
90 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">available
91 from github
</a
>.
</p
>
96 <title>I want the courts to be involved before the police can hijack a news site DNS domain (#domstolkontroll)
</title>
97 <link>http://people.skolelinux.org/pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</link>
98 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</guid>
99 <pubDate>Thu,
19 May
2016 14:
00:
00 +
0200</pubDate>
100 <description><p
>I just donated to the
101 <a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">NUUG defence
102 "fond
"</a
> to fund the effort in Norway to get the seizure of the news
103 site popcorn-time.no tested in court. I hope everyone that agree with
104 me will do the same.
</p
>
106 <p
>Would you be worried if you knew the police in your country could
107 hijack DNS domains of news sites covering free software system without
108 talking to a judge first? I am. What if the free software system
109 combined search engine lookups, bittorrent downloads and video playout
110 and was called Popcorn Time? Would that affect your view? It still
111 make me worried.
</p
>
113 <p
>In March
2016, the Norwegian police seized (as in forced NORID to
114 change the IP address pointed to by it to one controlled by the
115 police) the DNS domain popcorn-time.no, without any supervision from
116 the courts. I did not know about the web site back then, and assumed
117 the courts had been involved, and was very surprised when I discovered
118 that the police had hijacked the DNS domain without asking a judge for
119 permission first. I was even more surprised when I had a look at
120 <a href=
"https://web.archive.org/web/*/http://popcorn-time.no
">the web
121 site content on the Internet Archive
</A
>, and only found news coverage
122 about Popcorn Time, not any material published without the right
123 holders permissions.
</p
>
125 <p
>The seizure was widely covered in the Norwegian press (see for
126 example
<a href=
"http://www.hegnar.no/Nyheter/Naeringsliv/
2016/
03/Popcorn-time.no-beslaglagt-av-OEkokrim
">Hegnar Online
</a
> and
127 <a href=
"http://itavisen.no/
2016/
03/
08/okokrim-har-beslaglagt-popcorn-time-no/
">ITavisen
<a/
>
129 <a href=
"http://www.nrk.no/kultur/okokrim-gar-til-aksjon-mot-popcorn-time-
1.12842452">NRK
</a
>),
130 at first due to the press release sent out by Økokrim, but then based
132 <a href=
"http://blogg.torvund.net/
2016/
03/
09/okokrims-beslag-i-domenet-popcorn-time-no/
">protests
133 from the law professor Olav Torvund
</a
> and
134 <a href=
"http://www.klassekampen.no/article/
20160311/ARTICLE/
160319995">lawyer
135 Jon Wessel-Aas
</a
>. It even got some
136 <a href=
"https://torrentfreak.com/norwegian-authorities-sued-over-popcorn-time-domain-seizure-
160418/
">coverage
137 on TorrentFreak
</a
>.
</p
>
140 <a href=
"http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html
">
141 wrote about the case a month ago
</a
>, when the
142 <a href=
"http://www.nuug.no/
">Norwegian Unix User Group
</a
> (NUUG),
143 where I am an active member, decided to ask the courts to test this seizure.
144 The request was denied, but NUUG and its co-requestor EFN have not
145 given up, and now they are rallying for support to get the seizure
146 legally challenged. They accept both bank and Bitcoin transfer for
147 those that want to support the request.
</p
>
149 <p
>If you as me believe news sites about free software should not be
150 censored, even if the free software have both legal and illegal
151 applications, and that DNS hijacking should be tested by the courts, I
152 suggest you
<a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">show
153 your support by donating to NUUG
</a
>.
</a
>
158 <title>Debian now with ZFS on Linux included
</title>
159 <link>http://people.skolelinux.org/pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</link>
160 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</guid>
161 <pubDate>Thu,
12 May
2016 07:
30:
00 +
0200</pubDate>
162 <description><p
>Today, after many years of hard work from many people,
163 <a href=
"http://zfsonlinux.org/
">ZFS for Linux
</a
> finally entered
164 Debian. The package status can be seen on
165 <a href=
"https://tracker.debian.org/pkg/zfs-linux
">the package tracker
166 for zfs-linux
</a
>. and
167 <a href=
"https://qa.debian.org/developer.php?login=pkg-zfsonlinux-devel@lists.alioth.debian.org
">the
168 team status page
</a
>. If you want to help out, please join us.
169 <a href=
"http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/zfs.git
">The
170 source code
</a
> is available via git on Alioth. It would also be
171 great if you could help out with
172 <a href=
"https://tracker.debian.org/pkg/dkms
">the dkms package
</a
>, as
173 it is an important piece of the puzzle to get ZFS working.
</p
>
178 <title>What is the best multimedia player in Debian?
</title>
179 <link>http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
</link>
180 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
</guid>
181 <pubDate>Sun,
8 May
2016 09:
40:
00 +
0200</pubDate>
182 <description><p
><strong
>Where I set out to figure out which multimedia player in
183 Debian claim support for most file formats.
</strong
></p
>
185 <p
>A few years ago, I had a look at the media support for Browser
186 plugins in Debian, to get an idea which plugins to include in Debian
187 Edu. I created a script to extract the set of supported MIME types
188 for each plugin, and used this to find out which multimedia browser
189 plugin supported most file formats / media types.
190 <a href=
"https://wiki.debian.org/DebianEdu/BrowserMultimedia
">The
191 result
</a
> can still be seen on the Debian wiki, even though it have
192 not been updated for a while. But browser plugins are less relevant
193 these days, so I thought it was time to look at standalone
196 <p
>A few days ago I was tired of VLC not being listed as a viable
197 player when I wanted to play videos from the Norwegian National
198 Broadcasting Company, and decided to investigate why. The cause is a
199 <a href=
"https://bugs.debian.org/
822245">missing MIME type in the VLC
200 desktop file
</a
>. In the process I wrote a script to compare the set
201 of MIME types announced in the desktop file and the browser plugin,
202 only to discover that there is quite a large difference between the
203 two for VLC. This discovery made me dig up the script I used to
204 compare browser plugins, and adjust it to compare desktop files
205 instead, to try to figure out which multimedia player in Debian
206 support most file formats.
</p
>
208 <p
>The result can be seen on the Debian Wiki, as
209 <a href=
"https://wiki.debian.org/DebianMultimedia/PlayerSupport
">a
210 table listing all MIME types supported by one of the packages included
211 in the table
</a
>, with the package supporting most MIME types being
212 listed first in the table.
</p
>
214 </p
>The best multimedia player in Debian? It is totem, followed by
215 parole, kplayer, mpv, vlc, smplayer mplayer-gui gnome-mpv and
216 kmplayer. Time for the other players to update their announced MIME
222 <title>The Pyra - handheld computer with Debian preinstalled
</title>
223 <link>http://people.skolelinux.org/pere/blog/The_Pyra___handheld_computer_with_Debian_preinstalled.html
</link>
224 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_Pyra___handheld_computer_with_Debian_preinstalled.html
</guid>
225 <pubDate>Wed,
4 May
2016 10:
00:
00 +
0200</pubDate>
226 <description>A friend of mine made me aware of
227 <a href=
"https://pyra-handheld.com/boards/pages/pyra/
">The Pyra
</a
>, a
228 handheld computer which will be delivered with Debian preinstalled. I
229 would love to get one of those for my birthday. :)
</p
>
231 <p
>The machine is a complete ARM-based PC with micro HDMI, SATA, USB
232 plugs and many others connectors, and include a full keyboard and a
5"
233 LCD touch screen. The
6000mAh battery is claimed to provide a whole
234 day of battery life time, but I have not seen any independent tests
235 confirming this. The vendor is still collecting preorders, and the
236 last I heard last night was that
22 more orders were needed before
237 production started.
</p
>
239 <p
>As far as I know, this is the first handheld preinstalled with
240 Debian. Please let me know if you know of any others. Is it the
241 first computer being sold with Debian preinstalled?
</p
>
246 <title>NUUG contests Norwegian police DNS seizure of popcorn-time.no
</title>
247 <link>http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html
</link>
248 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html
</guid>
249 <pubDate>Mon,
18 Apr
2016 10:
00:
00 +
0200</pubDate>
250 <description><p
>It is days like today I am really happy to be a member of
251 <a href=
"http://www.nuug.no/
">the Norwegian Unix User group
</a
>, a
252 member association for those of us believing in free software, open
253 standards and unix-like operating systems. NUUG announced today it
255 <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
256 to bring the seizure of the DNS domain popcorn-time.no as
257 unlawful
</a
>, to stand up for the principle that writing about a
258 controversial topic is not infringing copyrights, and censuring web
259 pages by hijacking DNS domain should be decided by the courts, not the
260 police. The DNS domain was seized by the Norwegian National Authority
261 for Investigation and Prosecution of Economic and Environmental Crime
262 a month ago. I hope this bring more paying members to NUUG to give
263 the association the financial muscle needed to bring this case as far
264 as it must go to stop this kind of DNS hijacking.
</p
>
269 <title>Ny utgave (v2.2) av den frie norske stavekontrollen gitt ut
</title>
270 <link>http://people.skolelinux.org/pere/blog/Ny_utgave__v2_2__av_den_frie_norske_stavekontrollen_gitt_ut.html
</link>
271 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Ny_utgave__v2_2__av_den_frie_norske_stavekontrollen_gitt_ut.html
</guid>
272 <pubDate>Fri,
15 Apr
2016 21:
20:
00 +
0200</pubDate>
273 <description><p
>I dag tok jeg mot til meg og pakket sammen en ny versjon av den
274 frie norske stavekontrollen, ca. tre og et halvt år etter forrige
275 gang. Resultatet kan lastes ned fra
276 <a href=
"http://no.speling.org/
">no.speling.org-prosjeksiden
</a
>, både
277 som kildekodepakke og som
"pack
"-fil som kanskje fortsatt kan brukes
278 av OpenOffice.org/LibreOffice. Byggesystemet trenger oppussing, men i
279 denne omgang hadde jeg bare tid til å fikse byggefeil forårsaket av
280 endringer i GNU grep. De øvrige endringene var gjort tidligere i
281 påvente av en ny utgave.
</p
>
283 <p
><strong
>Her er det som er nytt (fra NEWS-fila i
284 kildekodepakken):
</strong
></p
>
286 <p
>Release
2.2 (
2016-
04-
15)
</p
>
290 <li
>Rewrite how scripts/speling2words handle tripple consonants, to
291 avoid importing duplicate words from no.speling.org, and getting
292 rid of the existing duplicates in norsk.words.
</li
>
293 <li
>Remove duplicate entries with tripple consonants from norsk.words.
</li
>
294 <li
>Update frequency for entries in norsk.words based on
295 <URL:http://helmer.aksis.uib.no/nta/ordlistf.zip
> (ran
'make
296 freq-update
').
</li
>
297 <li
>Correct nn ispell build, avoid crash in munchlist causing lots of
298 words to fall out of the database.
</li
>
299 <li
>Use grep -a to convince grep it is working on text files, to work
300 with newer grep versions.
</li
>
302 <li
>Remove some words disputed in the no.speling.org review process:
304 <li
>apparent (nb)
</li
>
305 <li
>likke (nb)
</li
>
306 <li
>ugjest, ugjesten, ugjestens (nb)
</li
>
307 </ul
></li
>
314 <title>I.F. Stone - an inspiration for us all
</title>
315 <link>http://people.skolelinux.org/pere/blog/I_F__Stone___an_inspiration_for_us_all.html
</link>
316 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/I_F__Stone___an_inspiration_for_us_all.html
</guid>
317 <pubDate>Wed,
13 Apr
2016 21:
20:
00 +
0200</pubDate>
318 <description><p
>I first got to know I.F. Stone when I came across an article by Jon
319 Schwarz on The Intercept
320 <a href=
"https://theintercept.com/
2015/
05/
07/new-documentary-legacy-f-stone/
">about
321 his extraordinary contribution to investigative journalism in
322 USA
</a
>. The article is about a new documentary in two parts
323 (
<a href=
"https://vimeo.com/
123974841">part one is
12 minutes
</a
> and
324 <a href=
"https://vimeo.com/
123974842">part two is
30 minutes
</a
>), and
325 I found both truly fascinating. It is amazing what he was able to
326 find by digging up public sources and government papers. He
327 documented lots of government abuse and cover ups, and I find
328 <a href=
"http://www.ifstone.org/weekly.php
">his weekly news letters
</a
>
329 inspiring to read even today.
</p
>
331 <p
><blockquote
>
332 All governments are run by liars and nothing they say should be believed.
333 <br
>- I. F. Stone
334 </blockquote
></p
>
336 <p
>His starting point was that reporters should not assume governments
337 and corporations are telling the truth, but verify all their claims as
338 much as possible. I wonder how many Norwegian reporters can be said
339 to follow the principles of I. F. Stone. They are definitely in short
340 supply. If you, like me half a year ago, have never heard of him,
341 check him out.
</p
>
346 <title>A French paperback edition of the book Free Culture by Lawrence Lessig is now available
</title>
347 <link>http://people.skolelinux.org/pere/blog/A_French_paperback_edition_of_the_book_Free_Culture_by_Lawrence_Lessig_is_now_available.html
</link>
348 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_French_paperback_edition_of_the_book_Free_Culture_by_Lawrence_Lessig_is_now_available.html
</guid>
349 <pubDate>Tue,
12 Apr
2016 10:
40:
00 +
0200</pubDate>
350 <description><p
>I
'm happy to report that
351 <a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">the
352 French paperback edition
</a
> of
353 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">my
354 project to translate
</a
> the
<a href=
"http://free-culture.cc/
">Free
355 Culture
</a
> book by Lawrence Lessig is now available for sale on
356 Lulu.com. Once I have formally verified my proof reading copy, which
357 should be in the mail, the paperback edition should be available in
358 book stores like Amazon and Barnes
& Noble too.
</p
>
360 <p
>This French edition, Culture Libre, is the work of the
361 <a href=
"http://dblatex.sourceforge.net/
">dblatex
</a
> developer Benoît
362 Guillon, who created the PO file from the initial translation
364 <a href=
"http://www.wikilivres.ca/wiki/Culture_libre
">the Wikilivres
365 wiki pages
</a
> and completed and corrected the translation to match
366 the original docbook edition my project is using, as well as
367 coordinated the proof reading of the final result. I believe the end
368 result look great, but I am biased and do not read French. In
369 addition to the paperback edition, the book is available in PDF, EPUB
370 and Mobi format from the github project page linked to above.
</p
>
372 <p
>When enabling book store distribution on Lulu.com, I had to nearly
373 triple the price to allow the book stores some profit. I also had to
374 accept that I will get some revenue when a book is sold via Lulu.com.
375 But because of the non-commercial clause in the book license
376 (CC-BY-NC), this might be a problem. To bypass the problem I
377 discussed how to handle the revenue with the author, and we agreed
378 that the revenue for these editions go to the
379 <a href=
"https://creativecommons.org/
">Creative Commons non-profit
380 Corporation
</a
> who handle donations to the Creative Commons project.
381 So far they have earned around USD
70 on sales of the
382 <a href=
"http://www.lulu.com/shop/lawrence-lessig/free-culture/paperback/product-
22440520.html
">English
</a
>
384 <a href=
"http://www.lulu.com/shop/lawrence-lessig/fri-kultur/paperback/product-
22441576.html
">Norwegian
385 Bokmål
</a
> editions, according to Lulu.com. They will get the revenue
386 for the French edition too. Their revenue is higher if you buy the
387 book directly from Lulu.com instead of via a book store, so I
388 recommend you buy directly from Lulu.com.
</p
>
390 <p
>Perhaps you would like to get the book published in your language?
391 The translation is done using a web based translator service, so the
392 technical bar to enter is fairly low. Get in touch if you would like
393 to make this happen.
</p
>