]> pere.pagekite.me Git - homepage.git/blob - blog/index.html
New post.
[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 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>
46 </div>
47 <div class="tags">
48
49
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>.
51
52
53 </div>
54 </div>
55 <div class="padding"></div>
56
57 <div class="entry">
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
71 weep.</p>
72
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
76 my parents.</p>
77 </div>
78 <div class="tags">
79
80
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>.
82
83
84 </div>
85 </div>
86 <div class="padding"></div>
87
88 <div class="entry">
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>
106
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>
111 og
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
117 landegrensene.</p>
118
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>
125
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>
146 </div>
147 <div class="tags">
148
149
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>.
151
152
153 </div>
154 </div>
155 <div class="padding"></div>
156
157 <div class="entry">
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
174 edition, check out
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>
179 </div>
180 <div class="tags">
181
182
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>.
184
185
186 </div>
187 </div>
188 <div class="padding"></div>
189
190 <div class="entry">
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>
200
201 <img src="http://people.skolelinux.org/pere/blog/images/2015-09-24-laptop-battery-graph.png"/>
202
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
210 from him. Via
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
213 discovered
214 <a href="https://github.com/jradavenport/batlog.git">batlog</a>, not
215 available in Debian.</p>
216
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>
223
224 <pre>
225 #!/bin/sh
226 # Inspired by
227 # http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html
228 # See also
229 # http://blog.sleeplessbeastie.eu/2013/01/02/debian-how-to-monitor-battery-capacity/
230 logfile=/var/log/hjemmenett-battery-status.log
231
232 files="manufacturer model_name technology serial_number \
233 energy_full energy_full_design energy_now cycle_count status"
234
235 if [ ! -e "$logfile" ] ; then
236 (
237 printf "timestamp,"
238 for f in $files; do
239 printf "%s," $f
240 done
241 echo
242 ) > "$logfile"
243 fi
244
245 log_battery() {
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); \
251 done)
252 echo "$msg"
253 }
254
255 cd /sys/class/power_supply
256
257 for bat in BAT*; do
258 (cd $bat && log_battery >> "$logfile")
259 done
260 </pre>
261
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>
270
271 <p>The collected log file look like this:</p>
272
273 <pre>
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,
276 [...]
277 1443090528,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
278 1443090601,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
279 </pre>
280
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
283 battery.</p>
284
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
298 Linux too.</p>
299
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
306 load).</p>
307
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
315 those.</p>
316
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
323 specific.</p>
324 </div>
325 <div class="tags">
326
327
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>.
329
330
331 </div>
332 </div>
333 <div class="padding"></div>
334
335 <div class="entry">
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
340 the
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.
345
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>
362
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>
366
367 <img src="http://people.skolelinux.org/pere/blog/images/2015-09-03-free-culture-cover.png" width="70%" align="center"/>
368
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>
374
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>
381 </div>
382 <div class="tags">
383
384
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>.
386
387
388 </div>
389 </div>
390 <div class="padding"></div>
391
392 <div class="entry">
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>
412
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>
419 </div>
420 <div class="tags">
421
422
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>.
424
425
426 </div>
427 </div>
428 <div class="padding"></div>
429
430 <div class="entry">
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>
442
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>
448
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>
455
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>
464
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
472 to the task.</p>
473
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
482 formatting.</p>
483
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>
488 </div>
489 <div class="tags">
490
491
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>.
493
494
495 </div>
496 </div>
497 <div class="padding"></div>
498
499 <div class="entry">
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>
516
517 <p>First, decide where in the DocBook document to place the endnotes,
518 and add this text there:</p>
519
520 <pre>
521 &lt;?latex \theendnotes ?&gt;
522 </pre>
523
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>
527
528 <pre>
529 &lt;?xml version='1.0'?&gt;
530 &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt;
531 &lt;xsl:param name="latex.begindocument"&gt;
532 &lt;xsl:text&gt;
533 \usepackage{endnotes}
534 \let\footnote=\endnote
535 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
536 \begin{document}
537 &lt;/xsl:text&gt;
538 &lt;/xsl:param&gt;
539 &lt;/xsl:stylesheet&gt;
540 </pre>
541
542 <p>Finally, load this xsl file when running dblatex, for example like
543 this:</p>
544
545 <pre>
546 dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
547 </pre>
548
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>
552 </div>
553 <div class="tags">
554
555
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>.
557
558
559 </div>
560 </div>
561 <div class="padding"></div>
562
563 <div class="entry">
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>
577
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>
584
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
590 historie.</p>
591 </div>
592 <div class="tags">
593
594
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>.
596
597
598 </div>
599 </div>
600 <div class="padding"></div>
601
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>
603 <div id="sidebar">
604
605
606
607 <h2>Archive</h2>
608 <ul>
609
610 <li>2015
611 <ul>
612
613 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/01/">January (7)</a></li>
614
615 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/02/">February (6)</a></li>
616
617 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/03/">March (1)</a></li>
618
619 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/04/">April (4)</a></li>
620
621 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/05/">May (3)</a></li>
622
623 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/06/">June (4)</a></li>
624
625 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/07/">July (6)</a></li>
626
627 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/08/">August (2)</a></li>
628
629 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/09/">September (2)</a></li>
630
631 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/10/">October (4)</a></li>
632
633 </ul></li>
634
635 <li>2014
636 <ul>
637
638 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/01/">January (2)</a></li>
639
640 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/02/">February (3)</a></li>
641
642 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/03/">March (8)</a></li>
643
644 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/04/">April (7)</a></li>
645
646 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/05/">May (1)</a></li>
647
648 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/06/">June (2)</a></li>
649
650 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/07/">July (2)</a></li>
651
652 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/08/">August (2)</a></li>
653
654 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/09/">September (5)</a></li>
655
656 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/10/">October (6)</a></li>
657
658 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/11/">November (3)</a></li>
659
660 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/12/">December (5)</a></li>
661
662 </ul></li>
663
664 <li>2013
665 <ul>
666
667 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/01/">January (11)</a></li>
668
669 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/02/">February (9)</a></li>
670
671 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/03/">March (9)</a></li>
672
673 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/04/">April (6)</a></li>
674
675 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/05/">May (9)</a></li>
676
677 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (10)</a></li>
678
679 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/07/">July (7)</a></li>
680
681 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/08/">August (3)</a></li>
682
683 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/09/">September (5)</a></li>
684
685 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/10/">October (7)</a></li>
686
687 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/11/">November (9)</a></li>
688
689 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/12/">December (3)</a></li>
690
691 </ul></li>
692
693 <li>2012
694 <ul>
695
696 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/01/">January (7)</a></li>
697
698 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/02/">February (10)</a></li>
699
700 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
701
702 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (12)</a></li>
703
704 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/05/">May (12)</a></li>
705
706 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/06/">June (20)</a></li>
707
708 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/07/">July (17)</a></li>
709
710 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/08/">August (6)</a></li>
711
712 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/09/">September (9)</a></li>
713
714 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/10/">October (17)</a></li>
715
716 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/11/">November (10)</a></li>
717
718 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/12/">December (7)</a></li>
719
720 </ul></li>
721
722 <li>2011
723 <ul>
724
725 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (16)</a></li>
726
727 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/02/">February (6)</a></li>
728
729 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/03/">March (6)</a></li>
730
731 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/04/">April (7)</a></li>
732
733 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/05/">May (3)</a></li>
734
735 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/06/">June (2)</a></li>
736
737 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/07/">July (7)</a></li>
738
739 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/08/">August (6)</a></li>
740
741 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/09/">September (4)</a></li>
742
743 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/10/">October (2)</a></li>
744
745 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/11/">November (3)</a></li>
746
747 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/12/">December (1)</a></li>
748
749 </ul></li>
750
751 <li>2010
752 <ul>
753
754 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
755
756 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
757
758 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
759
760 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
761
762 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
763
764 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
765
766 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
767
768 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
769
770 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
771
772 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
773
774 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
775
776 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
777
778 </ul></li>
779
780 <li>2009
781 <ul>
782
783 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
784
785 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
786
787 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
788
789 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
790
791 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
792
793 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
794
795 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
796
797 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
798
799 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
800
801 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
802
803 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
804
805 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
806
807 </ul></li>
808
809 <li>2008
810 <ul>
811
812 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
813
814 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
815
816 </ul></li>
817
818 </ul>
819
820
821
822 <h2>Tags</h2>
823 <ul>
824
825 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (13)</a></li>
826
827 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
828
829 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
830
831 <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
832
833 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (8)</a></li>
834
835 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (15)</a></li>
836
837 <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
838
839 <li><a href="http://people.skolelinux.org/pere/blog/tags/chrpath">chrpath (2)</a></li>
840
841 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (112)</a></li>
842
843 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (153)</a></li>
844
845 <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (10)</a></li>
846
847 <li><a href="http://people.skolelinux.org/pere/blog/tags/dld">dld (15)</a></li>
848
849 <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (18)</a></li>
850
851 <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
852
853 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (291)</a></li>
854
855 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (23)</a></li>
856
857 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
858
859 <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (20)</a></li>
860
861 <li><a href="http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (9)</a></li>
862
863 <li><a href="http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (16)</a></li>
864
865 <li><a href="http://people.skolelinux.org/pere/blog/tags/h264">h264 (20)</a></li>
866
867 <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (42)</a></li>
868
869 <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (10)</a></li>
870
871 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (19)</a></li>
872
873 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (9)</a></li>
874
875 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (8)</a></li>
876
877 <li><a href="http://people.skolelinux.org/pere/blog/tags/lsdvd">lsdvd (2)</a></li>
878
879 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
880
881 <li><a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network (8)</a></li>
882
883 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (36)</a></li>
884
885 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (265)</a></li>
886
887 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (177)</a></li>
888
889 <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (20)</a></li>
890
891 <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
892
893 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (54)</a></li>
894
895 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (88)</a></li>
896
897 <li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (1)</a></li>
898
899 <li><a href="http://people.skolelinux.org/pere/blog/tags/reactos">reactos (1)</a></li>
900
901 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
902
903 <li><a href="http://people.skolelinux.org/pere/blog/tags/rfid">rfid (3)</a></li>
904
905 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (9)</a></li>
906
907 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
908
909 <li><a href="http://people.skolelinux.org/pere/blog/tags/ruter">ruter (4)</a></li>
910
911 <li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
912
913 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (43)</a></li>
914
915 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
916
917 <li><a href="http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (4)</a></li>
918
919 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (48)</a></li>
920
921 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (3)</a></li>
922
923 <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (10)</a></li>
924
925 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (35)</a></li>
926
927 <li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (2)</a></li>
928
929 <li><a href="http://people.skolelinux.org/pere/blog/tags/usenix">usenix (2)</a></li>
930
931 <li><a href="http://people.skolelinux.org/pere/blog/tags/valg">valg (8)</a></li>
932
933 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (54)</a></li>
934
935 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (4)</a></li>
936
937 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (37)</a></li>
938
939 </ul>
940
941
942 </div>
943 <p style="text-align: right">
944 Created by <a href="http://steve.org.uk/Software/chronicle">Chronicle v4.6</a>
945 </p>
946
947 </body>
948 </html>