]> pere.pagekite.me Git - homepage.git/blob - blog/index.html
Generated.
[homepage.git] / blog / index.html
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">
4 <head>
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" />
10 </head>
11 <body>
12 <div class="title">
13 <h1>
14 <a href="http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen</a>
15
16 </h1>
17
18 </div>
19
20
21
22 <div class="entry">
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
30 place 2014-10-20.</p>
31
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>
35
36 <iframe width="560" height="315" src="https://www.youtube.com/embed/o_Sr96TFQQE" frameborder="0" allowfullscreen></iframe>
37
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 by the Norwegian
41 prime minister Erna Solberg said 2013-11-06 to the Norwegian
42 Parliament,
43 <a href="https://tale.holderdeord.no/speeches/s131106/68">claiming
44 Snowden is no Whistle-Blower</a> because he should have taken up his
45 concerns internally and using official channels. It make me sad
46 that this is the political leadership we have here in Norway.</p>
47 </div>
48 <div class="tags">
49
50
51 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>.
52
53
54 </div>
55 </div>
56 <div class="padding"></div>
57
58 <div class="entry">
59 <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>
60 <div class="date"> 8th October 2015</div>
61 <div class="body"><p>The movie "<a href="http://www.takepart.com/internets-own-boy">The
62 Internet's Own Boy: The Story of Aaron Swartz</a>" is both inspiring
63 and depressing at the same time. The work of Aaron Swartz has
64 inspired me in my work, and I am grateful of all the improvements he
65 was able to initiate or complete. I wish I am able to do as much good
66 in my life as he did in his. Every minute of this 1:45 long movie is
67 inspiring in documenting how much impact a single person can have on
68 improving the society and this world. And it is depressing in
69 documenting how the law enforcement of USA (and other countries) is
70 corrupted to a point where they can push a bright kid to his death for
71 downloading too many scientific articles. Aaron is dead. Let us all
72 weep.</p>
73
74 <p>The movie is also available on
75 <a href="https://www.youtube.com/watch?v=vXr-2hwTk58">Youtube</a>. I
76 wish there were Norwegian subtitles available, so I could show it to
77 my parents.</p>
78 </div>
79 <div class="tags">
80
81
82 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>.
83
84
85 </div>
86 </div>
87 <div class="padding"></div>
88
89 <div class="entry">
90 <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>
91 <div class="date"> 7th October 2015</div>
92 <div class="body"><p>Jeg lot meg fascinere av
93 <a href="http://www.aftenposten.no/nyheter/iriks/politikk/Stortinget-har-tilgang-til-a-fjernstyre-600-mobiler-8192692.html">en
94 artikkel i Aftenposten</a> der det fortelles at «over 600 telefoner som
95 benyttes av stortingsrepresentanter, rådgivere og ansatte på
96 Stortinget, kan «fjernstyres» ved hjelp av
97 <a href="https://play.google.com/store/apps/details?id=com.airwatch.androidagent">programvaren
98 Airwatch</a>, et såkalte MDM-program (Mobile Device Managment)». Det
99 hele bagatelliseres av Stortingets IT-stab, men det er i hovedsak på
100 grunn av at journalisten ikke stiller de relevante spørsmålene. For
101 meg er det relevante spørsmålet hvem som har lovlig tilgang (i henhold
102 til lokal lovgiving, dvs. i hvert fall i Norge, Sverige, UK og USA)
103 til informasjon om og på telefonene, og hvor enkelt det er å skaffe
104 seg tilgang til hvor mobilene befinner seg og informasjon som befinner
105 seg på telefonene ved hjelp av utro tjenere, trusler, innbrudd og
106 andre ulovlige metoder.</p>
107
108 <p>Bruken av AirWatch betyr i realiteten at USAs etteretning og
109 politimyndigheter har full tilgang til stortingets mobiltelefoner,
110 inkludert posisjon og innhold, takket være
111 <a href="https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008">FISAAA-loven</a>
112 og
113 "<a href="https://en.wikipedia.org/wiki/National_security_letter">National
114 Security Letters</a>" og det enkle faktum at selskapet
115 <a href="http://www.airwatch.com/">AirWatch</a> er kontrollert av et
116 selskap i USA. I tillegg er det kjent at flere lands
117 etterretningstjenester kan lytte på trafikken når den passerer
118 landegrensene.</p>
119
120 <p>Jeg har bedt om mer informasjon
121 <a href="https://www.mimesbronn.no/request/saksnummer_for_saker_anganede_br">fra
122 Stortinget om bruken av AirWatch</a> via Mimes brønn så får vi se hva
123 de har å fortelle om saken. Fant ingenting om 'airwatch' i
124 postjournalen til Stortinget, så jeg trenger hjelp før jeg kan be om
125 innsyn i konkrete dokumenter.</p>
126
127 <p>Oppdatering 2015-10-07: Jeg er blitt spurt hvorfor jeg antar at
128 AirWatch-agenten rapporterer til USA og ikke direkte til Stortingets
129 egen infrastruktur. Det stemmer at det er teknisk mulig å sette
130 opp mobiltelefonene til å rapportere til datamaskiner som eies av
131 Stortinget. Jeg antar det rapporteres til AirWatch sine sentrale
132 tjenester basert på det jeg leste fra beskrivelsen av
133 <a href="http://www.airwatch.com/solutions/mobile-device-management/">Mobile
134 Device Management</A> på AirWatch sine egne nettsider, koblet med at
135 det brukes en standard app som kan hentes fra "app-butikkene" for å få
136 tilgang. Enten må app-en settes opp individuelt hos Stortinget, eller
137 så får den beskjed fra AirWatch i USA om hvor den skal koble seg opp.
138 I det første tilfellet vil den ikke rapportere direkte til USA, men
139 til programvare utviklet av AirWatch som kjører på en maskin under
140 Stortingets kontroll. Det er litt bedre, men fortsatt vil det være
141 umulig for Stortinget å være sikker på hva programvaren som tar imot
142 forbindelser gjør. Jeg ser fra beskrivelsen av
143 <a href="http://www.airwatch.com/differentiators/enterprise-integration/">Enterprice
144 Integration</a> hos AirWatch at det er mulig å ha lokal installasjon,
145 og håper innsynsforespørsler mot Stortinget kan fortelle mer om
146 hvordan ting konkret fungerer der.</p>
147 </div>
148 <div class="tags">
149
150
151 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>.
152
153
154 </div>
155 </div>
156 <div class="padding"></div>
157
158 <div class="entry">
159 <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>
160 <div class="date"> 1st October 2015</div>
161 <div class="body"><p>As I wrap up the Norwegian version of
162 <a href="https://github.com/petterreinholdtsen/free-culture-lessig">Free
163 Culture</a> book by Lawrence Lessig (still waiting for my final proof
164 reading copy to arrive in the mail), my great
165 <a href="http://dblatex.sourceforge.net/">dblatex</a> helper and
166 developer of the dblatex docbook processor, Benoît Guillon, decided a
167 to try to create a French version of the book. He started with the
168 French translation available from the
169 <a href="http://www.wikilivres.ca/wiki/Culture_libre">Wikilivres wiki
170 pages</a>, and wrote a program to convert it into a PO file, allowing
171 the translation to be integrated into the po4a based framework I use
172 to create the Norwegian translation from the English edition. We meet
173 on the <a href="irc://irc.freenode.net/%23dblatex">#dblatex IRC
174 channel</a> to discuss the work. If you want to help create a French
175 edition, check out
176 <a href="https://github.com/marsgui/free-culture-lessig">his git
177 repository</a> and join us on IRC. If the French edition look good,
178 we might publish it as a paper book on lulu.com. A French version of
179 the drawings and the cover need to be provided for this to happen.</p>
180 </div>
181 <div class="tags">
182
183
184 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>.
185
186
187 </div>
188 </div>
189 <div class="padding"></div>
190
191 <div class="entry">
192 <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>
193 <div class="date">24th September 2015</div>
194 <div class="body"><p>When I get a new laptop, the battery life time at the start is OK.
195 But this do not last. The last few laptops gave me a feeling that
196 within a year, the life time is just a fraction of what it used to be,
197 and it slowly become painful to use the laptop without power connected
198 all the time. Because of this, when I got a new Thinkpad X230 laptop
199 about two years ago, I decided to monitor its battery state to have
200 more hard facts when the battery started to fail.</p>
201
202 <img src="http://people.skolelinux.org/pere/blog/images/2015-09-24-laptop-battery-graph.png"/>
203
204 <p>First I tried to find a sensible Debian package to record the
205 battery status, assuming that this must be a problem already handled
206 by someone else. I found
207 <a href="https://tracker.debian.org/pkg/battery-stats">battery-stats</a>,
208 which collects statistics from the battery, but it was completely
209 broken. I sent a few suggestions to the maintainer, but decided to
210 write my own collector as a shell script while I waited for feedback
211 from him. Via
212 <a href="http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html">a
213 blog post about the battery development on a MacBook Air</a> I also
214 discovered
215 <a href="https://github.com/jradavenport/batlog.git">batlog</a>, not
216 available in Debian.</p>
217
218 <p>I started my collector 2013-07-15, and it has been collecting
219 battery stats ever since. Now my
220 /var/log/hjemmenett-battery-status.log file contain around 115,000
221 measurements, from the time the battery was working great until now,
222 when it is unable to charge above 7% of original capacity. My
223 collector shell script is quite simple and look like this:</p>
224
225 <pre>
226 #!/bin/sh
227 # Inspired by
228 # http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html
229 # See also
230 # http://blog.sleeplessbeastie.eu/2013/01/02/debian-how-to-monitor-battery-capacity/
231 logfile=/var/log/hjemmenett-battery-status.log
232
233 files="manufacturer model_name technology serial_number \
234 energy_full energy_full_design energy_now cycle_count status"
235
236 if [ ! -e "$logfile" ] ; then
237 (
238 printf "timestamp,"
239 for f in $files; do
240 printf "%s," $f
241 done
242 echo
243 ) > "$logfile"
244 fi
245
246 log_battery() {
247 # Print complete message in one echo call, to avoid race condition
248 # when several log processes run in parallel.
249 msg=$(printf "%s," $(date +%s); \
250 for f in $files; do \
251 printf "%s," $(cat $f); \
252 done)
253 echo "$msg"
254 }
255
256 cd /sys/class/power_supply
257
258 for bat in BAT*; do
259 (cd $bat && log_battery >> "$logfile")
260 done
261 </pre>
262
263 <p>The script is called when the power management system detect a
264 change in the power status (power plug in or out), and when going into
265 and out of hibernation and suspend. In addition, it collect a value
266 every 10 minutes. This make it possible for me know when the battery
267 is discharging, charging and how the maximum charge change over time.
268 The code for the Debian package
269 <a href="https://github.com/petterreinholdtsen/battery-status">is now
270 available on github</a>.</p>
271
272 <p>The collected log file look like this:</p>
273
274 <pre>
275 timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_full_design,energy_now,cycle_count,status,
276 1376591133,LGC,45N1025,Li-ion,974,62800000,62160000,39050000,0,Discharging,
277 [...]
278 1443090528,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
279 1443090601,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
280 </pre>
281
282 <p>I wrote a small script to create a graph of the charge development
283 over time. This graph depicted above show the slow death of my laptop
284 battery.</p>
285
286 <p>But why is this happening? Why are my laptop batteries always
287 dying in a year or two, while the batteries of space probes and
288 satellites keep working year after year. If we are to believe
289 <a href="http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries">Battery
290 University</a>, the cause is me charging the battery whenever I have a
291 chance, and the fix is to not charge the Lithium-ion batteries to 100%
292 all the time, but to stay below 90% of full charge most of the time.
293 I've been told that the Tesla electric cars
294 <a href="http://my.teslamotors.com/de_CH/forum/forums/battery-charge-limit">limit
295 the charge of their batteries to 80%</a>, with the option to charge to
296 100% when preparing for a longer trip (not that I would want a car
297 like Tesla where rights to privacy is abandoned, but that is another
298 story), which I guess is the option we should have for laptops on
299 Linux too.</p>
300
301 <p>Is there a good and generic way with Linux to tell the battery to
302 stop charging at 80%, unless requested to charge to 100% once in
303 preparation for a longer trip? I found
304 <a href="http://askubuntu.com/questions/34452/how-can-i-limit-battery-charging-to-80-capacity">one
305 recipe on askubuntu for Ubuntu to limit charging on Thinkpad to
306 80%</a>, but could not get it to work (kernel module refused to
307 load).</p>
308
309 <p>I wonder why the battery capacity was reported to be more than 100%
310 at the start. I also wonder why the "full capacity" increases some
311 times, and if it is possible to repeat the process to get the battery
312 back to design capacity. And I wonder if the discharge and charge
313 speed change over time, or if this stay the same. I did not yet try
314 to write a tool to calculate the derivative values of the battery
315 level, but suspect some interesting insights might be learned from
316 those.</p>
317
318 <p>Update 2015-09-24: I got a tip to install the packages
319 acpi-call-dkms and tlp (unfortunately missing in Debian stable)
320 packages instead of the tp-smapi-dkms package I had tried to use
321 initially, and use 'tlp setcharge 40 80' to change when charging start
322 and stop. I've done so now, but expect my existing battery is toast
323 and need to be replaced. The proposal is unfortunately Thinkpad
324 specific.</p>
325 </div>
326 <div class="tags">
327
328
329 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>.
330
331
332 </div>
333 </div>
334 <div class="padding"></div>
335
336 <div class="entry">
337 <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>
338 <div class="date"> 3rd September 2015</div>
339 <div class="body"><p>Creating a good looking book cover proved harder than I expected.
340 I wanted to create a cover looking similar to the original cover of
341 the
342 <a href="https://github.com/petterreinholdtsen/free-culture-lessig">Free
343 Culture</a> book we are translating to Norwegian, and I wanted it in
344 vector format for high resolution printing. But my inkscape knowledge
345 were not nearly good enough to pull that off.
346
347 <p>But thanks to the great inkscape community, I was able to wrap up
348 the cover yesterday evening. I asked on the
349 <a href="irc://irc.freenode.net/%23inkscape">#inkscape IRC channel</a>
350 on Freenode for help and clues, and Marc Jeanmougin (Mc-) volunteered
351 to try to recreate it based on the PDF of the cover from the HTML
352 version. Not only did he create a
353 <a href="https://marc.jeanmougin.fr/share/copy1.svg ">SVG document with
354 the original and his vector version side by side</a>, he even provided
355 an <a href="https://marc.jeanmougin.fr/share/out-1.ogv">instruction
356 video</a> explaining how he did it</a>. But the instruction video is
357 not easy to follow for an untrained inkscape user. The video is a
358 recording on how he did it, and he is obviously very experienced as
359 the menu selections are very quick and he mentioned on IRC that he did
360 use some keyboard shortcuts that can't be seen on the video, but it
361 give a good idea about the inkscape operations to use to create the
362 stripes with the embossed copyright sign in the center.</p>
363
364 <p>I took his SVG file, copied the vector image and re-sized it to fit
365 on the cover I was drawing. I am happy with the end result, and the
366 current english version look like this:</p>
367
368 <img src="http://people.skolelinux.org/pere/blog/images/2015-09-03-free-culture-cover.png" width="70%" align="center"/>
369
370 <p>I am not quite sure about the text on the back, but guess it will
371 do. I picked three quotes from the official site for the book, and
372 hope it will work to trigger the interest of potential readers. The
373 Norwegian cover will look the same, but with the texts and bar code
374 replaced with the Norwegian version.</p>
375
376 <p>The book is very close to being ready for publication, and I expect
377 to upload the final draft to Lulu in the next few days and order a
378 final proof reading copy to verify that everything look like it should
379 before allowing everyone to order their own copy of Free Culture, in
380 English or Norwegian Bokmål. I'm waiting to give the the productive
381 proof readers a chance to complete their work.</p>
382 </div>
383 <div class="tags">
384
385
386 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>.
387
388
389 </div>
390 </div>
391 <div class="padding"></div>
392
393 <div class="entry">
394 <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>
395 <div class="date">19th August 2015</div>
396 <div class="body"><p>Today, finally, my first printed draft edition of the Norwegian
397 translation of Free Culture I have been working on for the last few
398 years arrived in the mail. I had to fake a cover to get the interior
399 printed, and the exterior of the book look awful, but that is
400 irrelevant at this point. I asked for a printed pocket book version
401 to get an idea about the font sizes and paper format as well as how
402 good the figures and images look in print, but also to test what the
403 pocket book version would look like. After receiving the 500 page
404 pocket book, it became obvious to me that that pocket book size is too
405 small for this book. I believe the book is too thick, and several
406 tables and figures do not look good in the size they get with that
407 small page sizes. I believe I will go with the 5.5x8.5 inch size
408 instead. A surprise discovery from the paper version was how bad the
409 URLs look in print. They are very hard to read in the colophon page.
410 The URLs are red in the PDF, but light gray on paper. I need to
411 change the color of links somehow to look better. But there is a
412 printed book in my hand, and it feels great. :)</p>
413
414 <p>Now I only need to fix the cover, wrap up the postscript with the
415 store behind the book, and collect the last corrections from the proof
416 readers before the book is ready for proper printing. Cover artists
417 willing to work for free and create a Creative Commons licensed vector
418 file looking similar to the original is most welcome, as my skills as
419 a graphics designer are mostly missing.</p>
420 </div>
421 <div class="tags">
422
423
424 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>.
425
426
427 </div>
428 </div>
429 <div class="padding"></div>
430
431 <div class="entry">
432 <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>
433 <div class="date"> 9th August 2015</div>
434 <div class="body"><p>Typesetting a book is harder than I hoped. As the translation is
435 mostly done, and a volunteer proof reader was going to check the text
436 on paper, it was time this summer to focus on formatting my translated
437 <a href="http://www.docbook.org/">docbook</a> based version of the
438 <a href="http://free-culture.cc/">Free Culture</a> book by Lawrence
439 Lessig. I've been trying to get both docboox-xsl+fop and dblatex to
440 give me a good looking PDF, but in the end I went with dblatex, because
441 its Debian maintainer and upstream developer were responsive and very
442 helpful in solving my formatting challenges.</p>
443
444 <p>Last night, I finally managed to create a PDF that no longer made
445 <a href="http://www.lulu.com/">Lulu.com</a> complain after uploading,
446 and I ordered a text version of the book on paper. It is lacking a
447 proper book cover and is not tagged with the correct ISBN number, but
448 should give me an idea what the finished book will look like.</p>
449
450 <p>Instead of using Lulu, I did consider printing the book using
451 <a href="http://www.createspace.com/">CreateSpace</a>, but ended up
452 using Lulu because it had smaller book size options (CreateSpace seem
453 to lack pocket book with extended distribution). I looked for a
454 similar service in Norway, but have not seen anything so far. Please
455 let me know if I am missing out on something here.</p>
456
457 <p>But I still struggle to decide the book size. Should I go for
458 pocket book (4.25x6.875 inches / 10.8x17.5 cm) with 556 pages, Digest
459 (5.5x8.5 inches / 14x21.6 cm) with 323 pages or US Trade (6x8 inches /
460 15.3x22.9 cm) with 280 pages? Fewer pager give a cheaper book, and a
461 smaller book is easier to carry around. The test book I ordered was
462 pocket book sized, to give me an idea how well that fit in my hand,
463 but I suspect I will end up using a digest sized book in the end to
464 bring the prize down further.</p>
465
466 <p>My biggest challenge at the moment is making nice cover art. My
467 inkscape skills are not yet up to the task of replicating the original
468 cover in SVG format. I also need to figure out what to write about
469 the book on the back (will most likely use the same text as the
470 description on web based book stores). I would love help with this,
471 if you are willing to license the art source and final version using
472 the same CC license as the book. My artistic skills are not really up
473 to the task.</p>
474
475 <p>I plan to publish the book in both English and Norwegian and on
476 paper, in PDF form as well as EPUB and MOBI format. The current
477 status can as usual be found on
478 <a href="https://github.com/petterreinholdtsen/free-culture-lessig">github</a>
479 in the archive/ directory. So far I have spent all time on making the
480 PDF version look good. Someone should probably do the same with the
481 dbtoepub generated e-book. Help is definitely needed here, as I
482 expect to run out of steem before I find time to improve the epub
483 formatting.</p>
484
485 <p>Please let me know via github if you find typos in the book or
486 discover translations that should be improved. The final proof
487 reading is being done right now, and I expect to publish the finished
488 result in a few months.</p>
489 </div>
490 <div class="tags">
491
492
493 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>.
494
495
496 </div>
497 </div>
498 <div class="padding"></div>
499
500 <div class="entry">
501 <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>
502 <div class="date">16th July 2015</div>
503 <div class="body"><p>I'm still working on the Norwegian version of the
504 <a href="http://free-culture.cc/">Free Culture book by Lawrence
505 Lessig</a>, and is now working on the final typesetting and layout.
506 One of the features I want to get the structure similar to the
507 original book is to typeset the footnotes as endnotes in the notes
508 chapter. Based on the
509 <a href="https://bugs.debian.org/685063">feedback from the Debian
510 maintainer and the dblatex developer</a>, I came up with this recipe I
511 would like to share with you. The proposal was to create a new LaTeX
512 class file and add the LaTeX code there, but this is not always
513 practical, when I want to be able to replace the class using a make
514 file variable. So my proposal misuses the latex.begindocument XSL
515 parameter value, to get a small fragment into the correct location in
516 the generated LaTeX File.</p>
517
518 <p>First, decide where in the DocBook document to place the endnotes,
519 and add this text there:</p>
520
521 <pre>
522 &lt;?latex \theendnotes ?&gt;
523 </pre>
524
525 <p>Next, create a xsl stylesheet file dblatex-endnotes.xsl to add the
526 code needed to add the endnote instructions in the preamble of the
527 generated LaTeX document, with content like this:</p>
528
529 <pre>
530 &lt;?xml version='1.0'?&gt;
531 &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt;
532 &lt;xsl:param name="latex.begindocument"&gt;
533 &lt;xsl:text&gt;
534 \usepackage{endnotes}
535 \let\footnote=\endnote
536 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
537 \begin{document}
538 &lt;/xsl:text&gt;
539 &lt;/xsl:param&gt;
540 &lt;/xsl:stylesheet&gt;
541 </pre>
542
543 <p>Finally, load this xsl file when running dblatex, for example like
544 this:</p>
545
546 <pre>
547 dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
548 </pre>
549
550 <p>The end result can be seen on github, where
551 <a href="https://github.com/petterreinholdtsen/free-culture-lessig">my
552 book project</a> is located.</p>
553 </div>
554 <div class="tags">
555
556
557 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>.
558
559
560 </div>
561 </div>
562 <div class="padding"></div>
563
564 <div class="entry">
565 <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>
566 <div class="date"> 9th July 2015</div>
567 <div class="body"><p>I går fikk vi endelig lansert en norsk version av mySocietys
568 <a href="https://www.whatdotheyknow.com/">WhatDoTheyKnow</a>.
569 Tjenesten heter Mimes brønn, og ble
570 <a href="http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml">annonsert
571 av NUUG</a> via blogg, epost og twitter til NUUG-assosierte personer.
572 Det har tatt noen år, men de siste dagene fikk vi endelig tid til å få
573 på plass de siste bitene. Vi er to, Gorm og meg selv, som har vært
574 primus motor for det hele, men vi har fått hjelp med oversettelser og
575 oppsett fra mange flere. Jeg vil si tusen takk til hver og en av dem,
576 og er veldig fornøyd med at vi klarte å få tjenesten opp å kjøre før
577 ferietiden slo inn for fullt.</p>
578
579 <p>Vi er usikker på hvor mye belastning den virtuelle maskinen der
580 tjenesten kjører klarer, så vi har lansert litt i det stille og ikke
581 til for mange folk for å se hvordan maskinen klarer seg over sommeren,
582 før vi går mer aktivt ut og annonserer til høsten. Ta en titt, og se
583 om du kanskje har et spørsmål til det offentlige som er egnet å sende
584 inn via Mimes brønn.</p>
585
586 <p>Hvis du lurer på hva i alle dager en slik tjenestes kan brukes til,
587 anbefaler jeg deg å se
588 <a href="http://beta.frikanalen.no/video/625321">TED-foredraget til
589 Heather Brook</a> om hvordan hun brukte WhatDoTheyKnow til å lære
590 hvordan offentlige midler ble misbrukt. Det er en inspirerende
591 historie.</p>
592 </div>
593 <div class="tags">
594
595
596 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>.
597
598
599 </div>
600 </div>
601 <div class="padding"></div>
602
603 <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>
604 <div id="sidebar">
605
606
607
608 <h2>Archive</h2>
609 <ul>
610
611 <li>2015
612 <ul>
613
614 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/01/">January (7)</a></li>
615
616 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/02/">February (6)</a></li>
617
618 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/03/">March (1)</a></li>
619
620 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/04/">April (4)</a></li>
621
622 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/05/">May (3)</a></li>
623
624 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/06/">June (4)</a></li>
625
626 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/07/">July (6)</a></li>
627
628 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/08/">August (2)</a></li>
629
630 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/09/">September (2)</a></li>
631
632 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/10/">October (4)</a></li>
633
634 </ul></li>
635
636 <li>2014
637 <ul>
638
639 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/01/">January (2)</a></li>
640
641 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/02/">February (3)</a></li>
642
643 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/03/">March (8)</a></li>
644
645 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/04/">April (7)</a></li>
646
647 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/05/">May (1)</a></li>
648
649 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/06/">June (2)</a></li>
650
651 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/07/">July (2)</a></li>
652
653 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/08/">August (2)</a></li>
654
655 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/09/">September (5)</a></li>
656
657 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/10/">October (6)</a></li>
658
659 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/11/">November (3)</a></li>
660
661 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/12/">December (5)</a></li>
662
663 </ul></li>
664
665 <li>2013
666 <ul>
667
668 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/01/">January (11)</a></li>
669
670 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/02/">February (9)</a></li>
671
672 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/03/">March (9)</a></li>
673
674 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/04/">April (6)</a></li>
675
676 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/05/">May (9)</a></li>
677
678 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (10)</a></li>
679
680 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/07/">July (7)</a></li>
681
682 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/08/">August (3)</a></li>
683
684 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/09/">September (5)</a></li>
685
686 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/10/">October (7)</a></li>
687
688 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/11/">November (9)</a></li>
689
690 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/12/">December (3)</a></li>
691
692 </ul></li>
693
694 <li>2012
695 <ul>
696
697 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/01/">January (7)</a></li>
698
699 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/02/">February (10)</a></li>
700
701 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
702
703 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (12)</a></li>
704
705 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/05/">May (12)</a></li>
706
707 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/06/">June (20)</a></li>
708
709 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/07/">July (17)</a></li>
710
711 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/08/">August (6)</a></li>
712
713 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/09/">September (9)</a></li>
714
715 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/10/">October (17)</a></li>
716
717 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/11/">November (10)</a></li>
718
719 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/12/">December (7)</a></li>
720
721 </ul></li>
722
723 <li>2011
724 <ul>
725
726 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (16)</a></li>
727
728 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/02/">February (6)</a></li>
729
730 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/03/">March (6)</a></li>
731
732 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/04/">April (7)</a></li>
733
734 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/05/">May (3)</a></li>
735
736 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/06/">June (2)</a></li>
737
738 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/07/">July (7)</a></li>
739
740 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/08/">August (6)</a></li>
741
742 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/09/">September (4)</a></li>
743
744 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/10/">October (2)</a></li>
745
746 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/11/">November (3)</a></li>
747
748 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/12/">December (1)</a></li>
749
750 </ul></li>
751
752 <li>2010
753 <ul>
754
755 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
756
757 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
758
759 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
760
761 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
762
763 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
764
765 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
766
767 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
768
769 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
770
771 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
772
773 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
774
775 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
776
777 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
778
779 </ul></li>
780
781 <li>2009
782 <ul>
783
784 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
785
786 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
787
788 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
789
790 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
791
792 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
793
794 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
795
796 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
797
798 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
799
800 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
801
802 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
803
804 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
805
806 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
807
808 </ul></li>
809
810 <li>2008
811 <ul>
812
813 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
814
815 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
816
817 </ul></li>
818
819 </ul>
820
821
822
823 <h2>Tags</h2>
824 <ul>
825
826 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (13)</a></li>
827
828 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
829
830 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
831
832 <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
833
834 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (8)</a></li>
835
836 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (15)</a></li>
837
838 <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
839
840 <li><a href="http://people.skolelinux.org/pere/blog/tags/chrpath">chrpath (2)</a></li>
841
842 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (112)</a></li>
843
844 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (153)</a></li>
845
846 <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (10)</a></li>
847
848 <li><a href="http://people.skolelinux.org/pere/blog/tags/dld">dld (15)</a></li>
849
850 <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (18)</a></li>
851
852 <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
853
854 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (291)</a></li>
855
856 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (23)</a></li>
857
858 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
859
860 <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (20)</a></li>
861
862 <li><a href="http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (9)</a></li>
863
864 <li><a href="http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (16)</a></li>
865
866 <li><a href="http://people.skolelinux.org/pere/blog/tags/h264">h264 (20)</a></li>
867
868 <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (42)</a></li>
869
870 <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (10)</a></li>
871
872 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (19)</a></li>
873
874 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (9)</a></li>
875
876 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (8)</a></li>
877
878 <li><a href="http://people.skolelinux.org/pere/blog/tags/lsdvd">lsdvd (2)</a></li>
879
880 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
881
882 <li><a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network (8)</a></li>
883
884 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (36)</a></li>
885
886 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (265)</a></li>
887
888 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (177)</a></li>
889
890 <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (20)</a></li>
891
892 <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
893
894 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (54)</a></li>
895
896 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (88)</a></li>
897
898 <li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (1)</a></li>
899
900 <li><a href="http://people.skolelinux.org/pere/blog/tags/reactos">reactos (1)</a></li>
901
902 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
903
904 <li><a href="http://people.skolelinux.org/pere/blog/tags/rfid">rfid (3)</a></li>
905
906 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (9)</a></li>
907
908 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
909
910 <li><a href="http://people.skolelinux.org/pere/blog/tags/ruter">ruter (4)</a></li>
911
912 <li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
913
914 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (43)</a></li>
915
916 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
917
918 <li><a href="http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (4)</a></li>
919
920 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (48)</a></li>
921
922 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (3)</a></li>
923
924 <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (10)</a></li>
925
926 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (35)</a></li>
927
928 <li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (2)</a></li>
929
930 <li><a href="http://people.skolelinux.org/pere/blog/tags/usenix">usenix (2)</a></li>
931
932 <li><a href="http://people.skolelinux.org/pere/blog/tags/valg">valg (8)</a></li>
933
934 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (54)</a></li>
935
936 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (4)</a></li>
937
938 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (37)</a></li>
939
940 </ul>
941
942
943 </div>
944 <p style="text-align: right">
945 Created by <a href="http://steve.org.uk/Software/chronicle">Chronicle v4.6</a>
946 </p>
947
948 </body>
949 </html>