1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" dir=
"ltr">
5 <meta http-equiv=
"Content-Type" content=
"text/html;charset=utf-8" />
6 <title>Petter Reinholdtsen
</title>
7 <link rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"http://people.skolelinux.org/pere/blog/style.css" />
8 <link rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"http://people.skolelinux.org/pere/blog/vim.css" />
9 <link rel=
"alternate" title=
"RSS Feed" href=
"http://people.skolelinux.org/pere/blog/index.rss" type=
"application/rss+xml" />
14 <a href=
"http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen
</a>
23 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Lawrence_Lessig_interviewed_Edward_Snowden_a_year_ago.html">Lawrence Lessig interviewed Edward Snowden a year ago
</a></div>
24 <div class=
"date">19th October
2015</div>
25 <div class=
"body"><p>Last year,
<a href=
"https://lessig2016.us/">US president candidate
26 in the Democratic Party
</a> Lawrence interviewed Edward Snowden. The
27 one hour interview was
28 <a href=
"https://www.youtube.com/watch?v=o_Sr96TFQQE">published by
29 Harvard Law School
2014-
10-
23 on Youtube
</a>, and the meeting took
32 <p>The questions are very good, and there is lots of useful
33 information to be learned and very interesting issues to think about
34 being raised. Please check it out.
</p>
36 <iframe width=
"560" height=
"315" src=
"https://www.youtube.com/embed/o_Sr96TFQQE" frameborder=
"0" allowfullscreen
></iframe>
38 <p>I find it especially interesting to hear again that Snowden did try
39 to bring up his reservations through the official channels without any
40 luck. It is in sharp contrast to the answers made
2013-
11-
06 by the
41 Norwegian prime minister Erna Solberg to the Norwegian Parliament,
42 <a href=
"https://tale.holderdeord.no/speeches/s131106/68">claiming
43 Snowden is no Whistle-Blower
</a> because he should have taken up his
44 concerns internally and using official channels. It make me sad
45 that this is the political leadership we have here in Norway.
</p>
50 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance
</a>.
55 <div class=
"padding"></div>
58 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/The_Story_of_Aaron_Swartz___Let_us_all_weep_.html">The Story of Aaron Swartz - Let us all weep!
</a></div>
59 <div class=
"date"> 8th October
2015</div>
60 <div class=
"body"><p>The movie "
<a href=
"http://www.takepart.com/internets-own-boy">The
61 Internet's Own Boy: The Story of Aaron Swartz
</a>" is both inspiring
62 and depressing at the same time. The work of Aaron Swartz has
63 inspired me in my work, and I am grateful of all the improvements he
64 was able to initiate or complete. I wish I am able to do as much good
65 in my life as he did in his. Every minute of this 1:45 long movie is
66 inspiring in documenting how much impact a single person can have on
67 improving the society and this world. And it is depressing in
68 documenting how the law enforcement of USA (and other countries) is
69 corrupted to a point where they can push a bright kid to his death for
70 downloading too many scientific articles. Aaron is dead. Let us all
73 <p>The movie is also available on
74 <a href="https://www.youtube.com/watch?v=vXr-
2hwTk58
">Youtube</a>. I
75 wish there were Norwegian subtitles available, so I could show it to
81 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english
">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett
">opphavsrett</a>.
86 <div class="padding
"></div>
89 <div class="title
"><a href="http://people.skolelinux.org/pere/blog/Alle_Stortingets_mobiltelefoner_kontrolleres_fra_USA___.html
">Alle Stortingets mobiltelefoner kontrolleres fra USA...</a></div>
90 <div class="date
"> 7th October 2015</div>
91 <div class="body
"><p>Jeg lot meg fascinere av
92 <a href="http://www.aftenposten.no/nyheter/iriks/politikk/Stortinget-har-tilgang-til-a-fjernstyre-
600-mobiler-
8192692.html
">en
93 artikkel i Aftenposten</a> der det fortelles at «over 600 telefoner som
94 benyttes av stortingsrepresentanter, rådgivere og ansatte på
95 Stortinget, kan «fjernstyres» ved hjelp av
96 <a href="https://play.google.com/store/apps/details?id=com.airwatch.androidagent
">programvaren
97 Airwatch</a>, et såkalte MDM-program (Mobile Device Managment)». Det
98 hele bagatelliseres av Stortingets IT-stab, men det er i hovedsak på
99 grunn av at journalisten ikke stiller de relevante spørsmålene. For
100 meg er det relevante spørsmålet hvem som har lovlig tilgang (i henhold
101 til lokal lovgiving, dvs. i hvert fall i Norge, Sverige, UK og USA)
102 til informasjon om og på telefonene, og hvor enkelt det er å skaffe
103 seg tilgang til hvor mobilene befinner seg og informasjon som befinner
104 seg på telefonene ved hjelp av utro tjenere, trusler, innbrudd og
105 andre ulovlige metoder.</p>
107 <p>Bruken av AirWatch betyr i realiteten at USAs etteretning og
108 politimyndigheter har full tilgang til stortingets mobiltelefoner,
109 inkludert posisjon og innhold, takket være
110 <a href="https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008
">FISAAA-loven</a>
112 "<a href=
"https://en.wikipedia.org/wiki/National_security_letter">National
113 Security Letters
</a>" og det enkle faktum at selskapet
114 <a href="http://www.airwatch.com/
">AirWatch</a> er kontrollert av et
115 selskap i USA. I tillegg er det kjent at flere lands
116 etterretningstjenester kan lytte på trafikken når den passerer
119 <p>Jeg har bedt om mer informasjon
120 <a href="https://www.mimesbronn.no/request/saksnummer_for_saker_anganede_br
">fra
121 Stortinget om bruken av AirWatch</a> via Mimes brønn så får vi se hva
122 de har å fortelle om saken. Fant ingenting om 'airwatch' i
123 postjournalen til Stortinget, så jeg trenger hjelp før jeg kan be om
124 innsyn i konkrete dokumenter.</p>
126 <p>Oppdatering 2015-10-07: Jeg er blitt spurt hvorfor jeg antar at
127 AirWatch-agenten rapporterer til USA og ikke direkte til Stortingets
128 egen infrastruktur. Det stemmer at det er teknisk mulig å sette
129 opp mobiltelefonene til å rapportere til datamaskiner som eies av
130 Stortinget. Jeg antar det rapporteres til AirWatch sine sentrale
131 tjenester basert på det jeg leste fra beskrivelsen av
132 <a href="http://www.airwatch.com/solutions/mobile-device-management/
">Mobile
133 Device Management</A> på AirWatch sine egne nettsider, koblet med at
134 det brukes en standard app som kan hentes fra "app-butikkene" for å få
135 tilgang. Enten må app-en settes opp individuelt hos Stortinget, eller
136 så får den beskjed fra AirWatch i USA om hvor den skal koble seg opp.
137 I det første tilfellet vil den ikke rapportere direkte til USA, men
138 til programvare utviklet av AirWatch som kjører på en maskin under
139 Stortingets kontroll. Det er litt bedre, men fortsatt vil det være
140 umulig for Stortinget å være sikker på hva programvaren som tar imot
141 forbindelser gjør. Jeg ser fra beskrivelsen av
142 <a href=
"http://www.airwatch.com/differentiators/enterprise-integration/">Enterprice
143 Integration
</a> hos AirWatch at det er mulig å ha lokal installasjon,
144 og håper innsynsforespørsler mot Stortinget kan fortelle mer om
145 hvordan ting konkret fungerer der.
</p>
150 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance
</a>.
155 <div class=
"padding"></div>
158 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/French_Docbook_PDF_EPUB_MOBI_edition_of_the_Free_Culture_book.html">French Docbook/PDF/EPUB/MOBI edition of the Free Culture book
</a></div>
159 <div class=
"date"> 1st October
2015</div>
160 <div class=
"body"><p>As I wrap up the Norwegian version of
161 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig">Free
162 Culture
</a> book by Lawrence Lessig (still waiting for my final proof
163 reading copy to arrive in the mail), my great
164 <a href=
"http://dblatex.sourceforge.net/">dblatex
</a> helper and
165 developer of the dblatex docbook processor, Benoît Guillon, decided a
166 to try to create a French version of the book. He started with the
167 French translation available from the
168 <a href=
"http://www.wikilivres.ca/wiki/Culture_libre">Wikilivres wiki
169 pages
</a>, and wrote a program to convert it into a PO file, allowing
170 the translation to be integrated into the po4a based framework I use
171 to create the Norwegian translation from the English edition. We meet
172 on the
<a href=
"irc://irc.freenode.net/%23dblatex">#dblatex IRC
173 channel
</a> to discuss the work. If you want to help create a French
175 <a href=
"https://github.com/marsgui/free-culture-lessig">his git
176 repository
</a> and join us on IRC. If the French edition look good,
177 we might publish it as a paper book on lulu.com. A French version of
178 the drawings and the cover need to be provided for this to happen.
</p>
183 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture
</a>.
188 <div class=
"padding"></div>
191 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html">The life and death of a laptop battery
</a></div>
192 <div class=
"date">24th September
2015</div>
193 <div class=
"body"><p>When I get a new laptop, the battery life time at the start is OK.
194 But this do not last. The last few laptops gave me a feeling that
195 within a year, the life time is just a fraction of what it used to be,
196 and it slowly become painful to use the laptop without power connected
197 all the time. Because of this, when I got a new Thinkpad X230 laptop
198 about two years ago, I decided to monitor its battery state to have
199 more hard facts when the battery started to fail.
</p>
201 <img src=
"http://people.skolelinux.org/pere/blog/images/2015-09-24-laptop-battery-graph.png"/>
203 <p>First I tried to find a sensible Debian package to record the
204 battery status, assuming that this must be a problem already handled
205 by someone else. I found
206 <a href=
"https://tracker.debian.org/pkg/battery-stats">battery-stats
</a>,
207 which collects statistics from the battery, but it was completely
208 broken. I sent a few suggestions to the maintainer, but decided to
209 write my own collector as a shell script while I waited for feedback
211 <a href=
"http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html">a
212 blog post about the battery development on a MacBook Air
</a> I also
214 <a href=
"https://github.com/jradavenport/batlog.git">batlog
</a>, not
215 available in Debian.
</p>
217 <p>I started my collector
2013-
07-
15, and it has been collecting
218 battery stats ever since. Now my
219 /var/log/hjemmenett-battery-status.log file contain around
115,
000
220 measurements, from the time the battery was working great until now,
221 when it is unable to charge above
7% of original capacity. My
222 collector shell script is quite simple and look like this:
</p>
227 # http://www.ifweassume.com/
2013/
08/the-de-evolution-of-my-laptop-battery.html
229 # http://blog.sleeplessbeastie.eu/
2013/
01/
02/debian-how-to-monitor-battery-capacity/
230 logfile=/var/log/hjemmenett-battery-status.log
232 files="manufacturer model_name technology serial_number \
233 energy_full energy_full_design energy_now cycle_count status"
235 if [ ! -e "$logfile" ] ; then
246 # Print complete message in one echo call, to avoid race condition
247 # when several log processes run in parallel.
248 msg=$(printf
"%s," $(date +%s); \
249 for f in $files; do \
250 printf
"%s," $(cat $f); \
255 cd /sys/class/power_supply
258 (cd $bat && log_battery
>> "$logfile")
262 <p>The script is called when the power management system detect a
263 change in the power status (power plug in or out), and when going into
264 and out of hibernation and suspend. In addition, it collect a value
265 every
10 minutes. This make it possible for me know when the battery
266 is discharging, charging and how the maximum charge change over time.
267 The code for the Debian package
268 <a href=
"https://github.com/petterreinholdtsen/battery-status">is now
269 available on github
</a>.
</p>
271 <p>The collected log file look like this:
</p>
274 timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_full_design,energy_now,cycle_count,status,
275 1376591133,LGC,
45N1025,Li-ion,
974,
62800000,
62160000,
39050000,
0,Discharging,
277 1443090528,LGC,
45N1025,Li-ion,
974,
4900000,
62160000,
4900000,
0,Full,
278 1443090601,LGC,
45N1025,Li-ion,
974,
4900000,
62160000,
4900000,
0,Full,
281 <p>I wrote a small script to create a graph of the charge development
282 over time. This graph depicted above show the slow death of my laptop
285 <p>But why is this happening? Why are my laptop batteries always
286 dying in a year or two, while the batteries of space probes and
287 satellites keep working year after year. If we are to believe
288 <a href=
"http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries">Battery
289 University
</a>, the cause is me charging the battery whenever I have a
290 chance, and the fix is to not charge the Lithium-ion batteries to
100%
291 all the time, but to stay below
90% of full charge most of the time.
292 I've been told that the Tesla electric cars
293 <a href=
"http://my.teslamotors.com/de_CH/forum/forums/battery-charge-limit">limit
294 the charge of their batteries to
80%
</a>, with the option to charge to
295 100% when preparing for a longer trip (not that I would want a car
296 like Tesla where rights to privacy is abandoned, but that is another
297 story), which I guess is the option we should have for laptops on
300 <p>Is there a good and generic way with Linux to tell the battery to
301 stop charging at
80%, unless requested to charge to
100% once in
302 preparation for a longer trip? I found
303 <a href=
"http://askubuntu.com/questions/34452/how-can-i-limit-battery-charging-to-80-capacity">one
304 recipe on askubuntu for Ubuntu to limit charging on Thinkpad to
305 80%
</a>, but could not get it to work (kernel module refused to
308 <p>I wonder why the battery capacity was reported to be more than
100%
309 at the start. I also wonder why the "full capacity" increases some
310 times, and if it is possible to repeat the process to get the battery
311 back to design capacity. And I wonder if the discharge and charge
312 speed change over time, or if this stay the same. I did not yet try
313 to write a tool to calculate the derivative values of the battery
314 level, but suspect some interesting insights might be learned from
317 <p>Update
2015-
09-
24: I got a tip to install the packages
318 acpi-call-dkms and tlp (unfortunately missing in Debian stable)
319 packages instead of the tp-smapi-dkms package I had tried to use
320 initially, and use 'tlp setcharge
40 80' to change when charging start
321 and stop. I've done so now, but expect my existing battery is toast
322 and need to be replaced. The proposal is unfortunately Thinkpad
328 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>.
333 <div class=
"padding"></div>
336 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Book_cover_for_the_Free_Culture_book_finally_done.html">Book cover for the Free Culture book finally done
</a></div>
337 <div class=
"date"> 3rd September
2015</div>
338 <div class=
"body"><p>Creating a good looking book cover proved harder than I expected.
339 I wanted to create a cover looking similar to the original cover of
341 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig">Free
342 Culture
</a> book we are translating to Norwegian, and I wanted it in
343 vector format for high resolution printing. But my inkscape knowledge
344 were not nearly good enough to pull that off.
346 <p>But thanks to the great inkscape community, I was able to wrap up
347 the cover yesterday evening. I asked on the
348 <a href=
"irc://irc.freenode.net/%23inkscape">#inkscape IRC channel
</a>
349 on Freenode for help and clues, and Marc Jeanmougin (Mc-) volunteered
350 to try to recreate it based on the PDF of the cover from the HTML
351 version. Not only did he create a
352 <a href=
"https://marc.jeanmougin.fr/share/copy1.svg ">SVG document with
353 the original and his vector version side by side
</a>, he even provided
354 an
<a href=
"https://marc.jeanmougin.fr/share/out-1.ogv">instruction
355 video
</a> explaining how he did it
</a>. But the instruction video is
356 not easy to follow for an untrained inkscape user. The video is a
357 recording on how he did it, and he is obviously very experienced as
358 the menu selections are very quick and he mentioned on IRC that he did
359 use some keyboard shortcuts that can't be seen on the video, but it
360 give a good idea about the inkscape operations to use to create the
361 stripes with the embossed copyright sign in the center.
</p>
363 <p>I took his SVG file, copied the vector image and re-sized it to fit
364 on the cover I was drawing. I am happy with the end result, and the
365 current english version look like this:
</p>
367 <img src=
"http://people.skolelinux.org/pere/blog/images/2015-09-03-free-culture-cover.png" width=
"70%" align=
"center"/>
369 <p>I am not quite sure about the text on the back, but guess it will
370 do. I picked three quotes from the official site for the book, and
371 hope it will work to trigger the interest of potential readers. The
372 Norwegian cover will look the same, but with the texts and bar code
373 replaced with the Norwegian version.
</p>
375 <p>The book is very close to being ready for publication, and I expect
376 to upload the final draft to Lulu in the next few days and order a
377 final proof reading copy to verify that everything look like it should
378 before allowing everyone to order their own copy of Free Culture, in
379 English or Norwegian Bokmål. I'm waiting to give the the productive
380 proof readers a chance to complete their work.
</p>
385 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture
</a>.
390 <div class=
"padding"></div>
393 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/In_my_hand__a_pocket_book_edition_of_the_Norwegian_Free_Culture_book_.html">In my hand, a pocket book edition of the Norwegian Free Culture book!
</a></div>
394 <div class=
"date">19th August
2015</div>
395 <div class=
"body"><p>Today, finally, my first printed draft edition of the Norwegian
396 translation of Free Culture I have been working on for the last few
397 years arrived in the mail. I had to fake a cover to get the interior
398 printed, and the exterior of the book look awful, but that is
399 irrelevant at this point. I asked for a printed pocket book version
400 to get an idea about the font sizes and paper format as well as how
401 good the figures and images look in print, but also to test what the
402 pocket book version would look like. After receiving the
500 page
403 pocket book, it became obvious to me that that pocket book size is too
404 small for this book. I believe the book is too thick, and several
405 tables and figures do not look good in the size they get with that
406 small page sizes. I believe I will go with the
5.5x8.5 inch size
407 instead. A surprise discovery from the paper version was how bad the
408 URLs look in print. They are very hard to read in the colophon page.
409 The URLs are red in the PDF, but light gray on paper. I need to
410 change the color of links somehow to look better. But there is a
411 printed book in my hand, and it feels great. :)
</p>
413 <p>Now I only need to fix the cover, wrap up the postscript with the
414 store behind the book, and collect the last corrections from the proof
415 readers before the book is ready for proper printing. Cover artists
416 willing to work for free and create a Creative Commons licensed vector
417 file looking similar to the original is most welcome, as my skills as
418 a graphics designer are mostly missing.
</p>
423 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture
</a>.
428 <div class=
"padding"></div>
431 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/First_paper_version_of_the_Norwegian_Free_Culture_book_heading_my_way.html">First paper version of the Norwegian Free Culture book heading my way
</a></div>
432 <div class=
"date"> 9th August
2015</div>
433 <div class=
"body"><p>Typesetting a book is harder than I hoped. As the translation is
434 mostly done, and a volunteer proof reader was going to check the text
435 on paper, it was time this summer to focus on formatting my translated
436 <a href=
"http://www.docbook.org/">docbook
</a> based version of the
437 <a href=
"http://free-culture.cc/">Free Culture
</a> book by Lawrence
438 Lessig. I've been trying to get both docboox-xsl+fop and dblatex to
439 give me a good looking PDF, but in the end I went with dblatex, because
440 its Debian maintainer and upstream developer were responsive and very
441 helpful in solving my formatting challenges.
</p>
443 <p>Last night, I finally managed to create a PDF that no longer made
444 <a href=
"http://www.lulu.com/">Lulu.com
</a> complain after uploading,
445 and I ordered a text version of the book on paper. It is lacking a
446 proper book cover and is not tagged with the correct ISBN number, but
447 should give me an idea what the finished book will look like.
</p>
449 <p>Instead of using Lulu, I did consider printing the book using
450 <a href=
"http://www.createspace.com/">CreateSpace
</a>, but ended up
451 using Lulu because it had smaller book size options (CreateSpace seem
452 to lack pocket book with extended distribution). I looked for a
453 similar service in Norway, but have not seen anything so far. Please
454 let me know if I am missing out on something here.
</p>
456 <p>But I still struggle to decide the book size. Should I go for
457 pocket book (
4.25x6.875 inches /
10.8x17.5 cm) with
556 pages, Digest
458 (
5.5x8.5 inches /
14x21.6 cm) with
323 pages or US Trade (
6x8 inches /
459 15.3x22.9 cm) with
280 pages? Fewer pager give a cheaper book, and a
460 smaller book is easier to carry around. The test book I ordered was
461 pocket book sized, to give me an idea how well that fit in my hand,
462 but I suspect I will end up using a digest sized book in the end to
463 bring the prize down further.
</p>
465 <p>My biggest challenge at the moment is making nice cover art. My
466 inkscape skills are not yet up to the task of replicating the original
467 cover in SVG format. I also need to figure out what to write about
468 the book on the back (will most likely use the same text as the
469 description on web based book stores). I would love help with this,
470 if you are willing to license the art source and final version using
471 the same CC license as the book. My artistic skills are not really up
474 <p>I plan to publish the book in both English and Norwegian and on
475 paper, in PDF form as well as EPUB and MOBI format. The current
476 status can as usual be found on
477 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig">github
</a>
478 in the archive/ directory. So far I have spent all time on making the
479 PDF version look good. Someone should probably do the same with the
480 dbtoepub generated e-book. Help is definitely needed here, as I
481 expect to run out of steem before I find time to improve the epub
484 <p>Please let me know via github if you find typos in the book or
485 discover translations that should be improved. The final proof
486 reading is being done right now, and I expect to publish the finished
487 result in a few months.
</p>
492 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture
</a>.
497 <div class=
"padding"></div>
500 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html">Typesetting DocBook footnotes as endnotes with dblatex
</a></div>
501 <div class=
"date">16th July
2015</div>
502 <div class=
"body"><p>I'm still working on the Norwegian version of the
503 <a href=
"http://free-culture.cc/">Free Culture book by Lawrence
504 Lessig
</a>, and is now working on the final typesetting and layout.
505 One of the features I want to get the structure similar to the
506 original book is to typeset the footnotes as endnotes in the notes
507 chapter. Based on the
508 <a href=
"https://bugs.debian.org/685063">feedback from the Debian
509 maintainer and the dblatex developer
</a>, I came up with this recipe I
510 would like to share with you. The proposal was to create a new LaTeX
511 class file and add the LaTeX code there, but this is not always
512 practical, when I want to be able to replace the class using a make
513 file variable. So my proposal misuses the latex.begindocument XSL
514 parameter value, to get a small fragment into the correct location in
515 the generated LaTeX File.
</p>
517 <p>First, decide where in the DocBook document to place the endnotes,
518 and add this text there:
</p>
521 <?latex \theendnotes ?
>
524 <p>Next, create a xsl stylesheet file dblatex-endnotes.xsl to add the
525 code needed to add the endnote instructions in the preamble of the
526 generated LaTeX document, with content like this:
</p>
529 <?xml version='
1.0'?
>
530 <xsl:stylesheet xmlns:
xsl="http://www.w3.org/
1999/XSL/Transform" version='
1.0'
>
531 <xsl:param
name="latex.begindocument"
>
533 \usepackage{endnotes}
534 \let\footnote=\endnote
535 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
539 </xsl:stylesheet
>
542 <p>Finally, load this xsl file when running dblatex, for example like
546 dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
549 <p>The end result can be seen on github, where
550 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig">my
551 book project
</a> is located.
</p>
556 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture
</a>.
561 <div class=
"padding"></div>
564 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html">Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert
</a></div>
565 <div class=
"date"> 9th July
2015</div>
566 <div class=
"body"><p>I går fikk vi endelig lansert en norsk version av mySocietys
567 <a href=
"https://www.whatdotheyknow.com/">WhatDoTheyKnow
</a>.
568 Tjenesten heter Mimes brønn, og ble
569 <a href=
"http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml">annonsert
570 av NUUG
</a> via blogg, epost og twitter til NUUG-assosierte personer.
571 Det har tatt noen år, men de siste dagene fikk vi endelig tid til å få
572 på plass de siste bitene. Vi er to, Gorm og meg selv, som har vært
573 primus motor for det hele, men vi har fått hjelp med oversettelser og
574 oppsett fra mange flere. Jeg vil si tusen takk til hver og en av dem,
575 og er veldig fornøyd med at vi klarte å få tjenesten opp å kjøre før
576 ferietiden slo inn for fullt.
</p>
578 <p>Vi er usikker på hvor mye belastning den virtuelle maskinen der
579 tjenesten kjører klarer, så vi har lansert litt i det stille og ikke
580 til for mange folk for å se hvordan maskinen klarer seg over sommeren,
581 før vi går mer aktivt ut og annonserer til høsten. Ta en titt, og se
582 om du kanskje har et spørsmål til det offentlige som er egnet å sende
583 inn via Mimes brønn.
</p>
585 <p>Hvis du lurer på hva i alle dager en slik tjenestes kan brukes til,
586 anbefaler jeg deg å se
587 <a href=
"http://beta.frikanalen.no/video/625321">TED-foredraget til
588 Heather Brook
</a> om hvordan hun brukte WhatDoTheyKnow til å lære
589 hvordan offentlige midler ble misbrukt. Det er en inspirerende
595 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/nuug">nuug
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn
</a>.
600 <div class=
"padding"></div>
602 <p style=
"text-align: right;"><a href=
"index.rss"><img src=
"http://people.skolelinux.org/pere/blog/xml.gif" alt=
"RSS feed" width=
"36" height=
"14" /></a></p>
613 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/01/">January (
7)
</a></li>
615 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/02/">February (
6)
</a></li>
617 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/03/">March (
1)
</a></li>
619 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/04/">April (
4)
</a></li>
621 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/05/">May (
3)
</a></li>
623 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/06/">June (
4)
</a></li>
625 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/07/">July (
6)
</a></li>
627 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/08/">August (
2)
</a></li>
629 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/09/">September (
2)
</a></li>
631 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2015/10/">October (
4)
</a></li>
638 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/01/">January (
2)
</a></li>
640 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/02/">February (
3)
</a></li>
642 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/03/">March (
8)
</a></li>
644 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/04/">April (
7)
</a></li>
646 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/05/">May (
1)
</a></li>
648 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/06/">June (
2)
</a></li>
650 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/07/">July (
2)
</a></li>
652 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/08/">August (
2)
</a></li>
654 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/09/">September (
5)
</a></li>
656 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/10/">October (
6)
</a></li>
658 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/11/">November (
3)
</a></li>
660 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2014/12/">December (
5)
</a></li>
667 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/01/">January (
11)
</a></li>
669 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/02/">February (
9)
</a></li>
671 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/03/">March (
9)
</a></li>
673 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/04/">April (
6)
</a></li>
675 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/05/">May (
9)
</a></li>
677 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/06/">June (
10)
</a></li>
679 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/07/">July (
7)
</a></li>
681 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/08/">August (
3)
</a></li>
683 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/09/">September (
5)
</a></li>
685 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/10/">October (
7)
</a></li>
687 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/11/">November (
9)
</a></li>
689 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2013/12/">December (
3)
</a></li>
696 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/01/">January (
7)
</a></li>
698 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/02/">February (
10)
</a></li>
700 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/03/">March (
17)
</a></li>
702 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/04/">April (
12)
</a></li>
704 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/05/">May (
12)
</a></li>
706 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/06/">June (
20)
</a></li>
708 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/07/">July (
17)
</a></li>
710 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/08/">August (
6)
</a></li>
712 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/09/">September (
9)
</a></li>
714 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/10/">October (
17)
</a></li>
716 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/11/">November (
10)
</a></li>
718 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2012/12/">December (
7)
</a></li>
725 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/01/">January (
16)
</a></li>
727 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/02/">February (
6)
</a></li>
729 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/03/">March (
6)
</a></li>
731 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/04/">April (
7)
</a></li>
733 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/05/">May (
3)
</a></li>
735 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/06/">June (
2)
</a></li>
737 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/07/">July (
7)
</a></li>
739 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/08/">August (
6)
</a></li>
741 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/09/">September (
4)
</a></li>
743 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/10/">October (
2)
</a></li>
745 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/11/">November (
3)
</a></li>
747 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2011/12/">December (
1)
</a></li>
754 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/01/">January (
2)
</a></li>
756 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/02/">February (
1)
</a></li>
758 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/03/">March (
3)
</a></li>
760 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/04/">April (
3)
</a></li>
762 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/05/">May (
9)
</a></li>
764 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/06/">June (
14)
</a></li>
766 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/07/">July (
12)
</a></li>
768 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/08/">August (
13)
</a></li>
770 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/09/">September (
7)
</a></li>
772 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/10/">October (
9)
</a></li>
774 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/11/">November (
13)
</a></li>
776 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/12/">December (
12)
</a></li>
783 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/01/">January (
8)
</a></li>
785 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/02/">February (
8)
</a></li>
787 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/03/">March (
12)
</a></li>
789 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/04/">April (
10)
</a></li>
791 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/05/">May (
9)
</a></li>
793 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/06/">June (
3)
</a></li>
795 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/07/">July (
4)
</a></li>
797 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/08/">August (
3)
</a></li>
799 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/09/">September (
1)
</a></li>
801 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/10/">October (
2)
</a></li>
803 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/11/">November (
3)
</a></li>
805 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/12/">December (
3)
</a></li>
812 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/11/">November (
5)
</a></li>
814 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/12/">December (
7)
</a></li>
825 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (
13)
</a></li>
827 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/amiga">amiga (
1)
</a></li>
829 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/aros">aros (
1)
</a></li>
831 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bankid">bankid (
4)
</a></li>
833 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (
8)
</a></li>
835 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (
15)
</a></li>
837 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bsa">bsa (
2)
</a></li>
839 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/chrpath">chrpath (
2)
</a></li>
841 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian (
112)
</a></li>
843 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (
153)
</a></li>
845 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/digistan">digistan (
10)
</a></li>
847 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/dld">dld (
15)
</a></li>
849 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/docbook">docbook (
18)
</a></li>
851 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (
4)
</a></li>
853 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/english">english (
291)
</a></li>
855 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (
23)
</a></li>
857 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (
12)
</a></li>
859 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (
20)
</a></li>
861 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (
9)
</a></li>
863 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (
16)
</a></li>
865 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/h264">h264 (
20)
</a></li>
867 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/intervju">intervju (
42)
</a></li>
869 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (
10)
</a></li>
871 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/kart">kart (
19)
</a></li>
873 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ldap">ldap (
9)
</a></li>
875 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/lenker">lenker (
8)
</a></li>
877 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/lsdvd">lsdvd (
2)
</a></li>
879 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (
1)
</a></li>
881 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network (
8)
</a></li>
883 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (
36)
</a></li>
885 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk (
265)
</a></li>
887 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/nuug">nuug (
177)
</a></li>
889 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (
20)
</a></li>
891 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/open311">open311 (
2)
</a></li>
893 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (
54)
</a></li>
895 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern (
88)
</a></li>
897 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/raid">raid (
1)
</a></li>
899 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/reactos">reactos (
1)
</a></li>
901 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/reprap">reprap (
11)
</a></li>
903 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/rfid">rfid (
3)
</a></li>
905 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/robot">robot (
9)
</a></li>
907 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/rss">rss (
1)
</a></li>
909 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ruter">ruter (
4)
</a></li>
911 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (
2)
</a></li>
913 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (
43)
</a></li>
915 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (
4)
</a></li>
917 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (
4)
</a></li>
919 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/standard">standard (
48)
</a></li>
921 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (
3)
</a></li>
923 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (
10)
</a></li>
925 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (
35)
</a></li>
927 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (
2)
</a></li>
929 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/usenix">usenix (
2)
</a></li>
931 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/valg">valg (
8)
</a></li>
933 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/video">video (
54)
</a></li>
935 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (
4)
</a></li>
937 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/web">web (
37)
</a></li>
943 <p style=
"text-align: right">
944 Created by
<a href=
"http://steve.org.uk/Software/chronicle">Chronicle v4.6
</a>