1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"http://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>Lawrence Lessig interviewed Edward Snowden a year ago
</title>
11 <link>http://people.skolelinux.org/pere/blog/Lawrence_Lessig_interviewed_Edward_Snowden_a_year_ago.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lawrence_Lessig_interviewed_Edward_Snowden_a_year_ago.html
</guid>
13 <pubDate>Mon,
19 Oct
2015 11:
50:
00 +
0200</pubDate>
14 <description><p
>Last year,
<a href=
"https://lessig2016.us/
">US president candidate
15 in the Democratic Party
</a
> Lawrence interviewed Edward Snowden. The
16 one hour interview was
17 <a href=
"https://www.youtube.com/watch?v=o_Sr96TFQQE
">published by
18 Harvard Law School
2014-
10-
23 on Youtube
</a
>, and the meeting took
19 place
2014-
10-
20.
</p
>
21 <p
>The questions are very good, and there is lots of useful
22 information to be learned and very interesting issues to think about
23 being raised. Please check it out.
</p
>
25 <iframe width=
"560" height=
"315" src=
"https://www.youtube.com/embed/o_Sr96TFQQE
" frameborder=
"0" allowfullscreen
></iframe
>
27 <p
>I find it especially interesting to hear again that Snowden did try
28 to bring up his reservations through the official channels without any
29 luck. It is in sharp contrast to the answers made
2013-
11-
06 by the
30 Norwegian prime minister Erna Solberg to the Norwegian Parliament,
31 <a href=
"https://tale.holderdeord.no/speeches/s131106/
68">claiming
32 Snowden is no Whistle-Blower
</a
> because he should have taken up his
33 concerns internally and using official channels. It make me sad
34 that this is the political leadership we have here in Norway.
</p
>
39 <title>The Story of Aaron Swartz - Let us all weep!
</title>
40 <link>http://people.skolelinux.org/pere/blog/The_Story_of_Aaron_Swartz___Let_us_all_weep_.html
</link>
41 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_Story_of_Aaron_Swartz___Let_us_all_weep_.html
</guid>
42 <pubDate>Thu,
8 Oct
2015 12:
10:
00 +
0200</pubDate>
43 <description><p
>The movie
"<a href=
"http://www.takepart.com/internets-own-boy
">The
44 Internet
's Own Boy: The Story of Aaron Swartz
</a
>" is both inspiring
45 and depressing at the same time. The work of Aaron Swartz has
46 inspired me in my work, and I am grateful of all the improvements he
47 was able to initiate or complete. I wish I am able to do as much good
48 in my life as he did in his. Every minute of this
1:
45 long movie is
49 inspiring in documenting how much impact a single person can have on
50 improving the society and this world. And it is depressing in
51 documenting how the law enforcement of USA (and other countries) is
52 corrupted to a point where they can push a bright kid to his death for
53 downloading too many scientific articles. Aaron is dead. Let us all
56 <p
>The movie is also available on
57 <a href=
"https://www.youtube.com/watch?v=vXr-
2hwTk58
">Youtube
</a
>. I
58 wish there were Norwegian subtitles available, so I could show it to
64 <title>Alle Stortingets mobiltelefoner kontrolleres fra USA...
</title>
65 <link>http://people.skolelinux.org/pere/blog/Alle_Stortingets_mobiltelefoner_kontrolleres_fra_USA___.html
</link>
66 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Alle_Stortingets_mobiltelefoner_kontrolleres_fra_USA___.html
</guid>
67 <pubDate>Wed,
7 Oct
2015 09:
55:
00 +
0200</pubDate>
68 <description><p
>Jeg lot meg fascinere av
69 <a href=
"http://www.aftenposten.no/nyheter/iriks/politikk/Stortinget-har-tilgang-til-a-fjernstyre-
600-mobiler-
8192692.html
">en
70 artikkel i Aftenposten
</a
> der det fortelles at «over
600 telefoner som
71 benyttes av stortingsrepresentanter, rådgivere og ansatte på
72 Stortinget, kan «fjernstyres» ved hjelp av
73 <a href=
"https://play.google.com/store/apps/details?id=com.airwatch.androidagent
">programvaren
74 Airwatch
</a
>, et såkalte MDM-program (Mobile Device Managment)». Det
75 hele bagatelliseres av Stortingets IT-stab, men det er i hovedsak på
76 grunn av at journalisten ikke stiller de relevante spørsmålene. For
77 meg er det relevante spørsmålet hvem som har lovlig tilgang (i henhold
78 til lokal lovgiving, dvs. i hvert fall i Norge, Sverige, UK og USA)
79 til informasjon om og på telefonene, og hvor enkelt det er å skaffe
80 seg tilgang til hvor mobilene befinner seg og informasjon som befinner
81 seg på telefonene ved hjelp av utro tjenere, trusler, innbrudd og
82 andre ulovlige metoder.
</p
>
84 <p
>Bruken av AirWatch betyr i realiteten at USAs etteretning og
85 politimyndigheter har full tilgang til stortingets mobiltelefoner,
86 inkludert posisjon og innhold, takket være
87 <a href=
"https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008
">FISAAA-loven
</a
>
89 "<a href=
"https://en.wikipedia.org/wiki/National_security_letter
">National
90 Security Letters
</a
>" og det enkle faktum at selskapet
91 <a href=
"http://www.airwatch.com/
">AirWatch
</a
> er kontrollert av et
92 selskap i USA. I tillegg er det kjent at flere lands
93 etterretningstjenester kan lytte på trafikken når den passerer
94 landegrensene.
</p
>
96 <p
>Jeg har bedt om mer informasjon
97 <a href=
"https://www.mimesbronn.no/request/saksnummer_for_saker_anganede_br
">fra
98 Stortinget om bruken av AirWatch
</a
> via Mimes brønn så får vi se hva
99 de har å fortelle om saken. Fant ingenting om
'airwatch
' i
100 postjournalen til Stortinget, så jeg trenger hjelp før jeg kan be om
101 innsyn i konkrete dokumenter.
</p
>
103 <p
>Oppdatering
2015-
10-
07: Jeg er blitt spurt hvorfor jeg antar at
104 AirWatch-agenten rapporterer til USA og ikke direkte til Stortingets
105 egen infrastruktur. Det stemmer at det er teknisk mulig å sette
106 opp mobiltelefonene til å rapportere til datamaskiner som eies av
107 Stortinget. Jeg antar det rapporteres til AirWatch sine sentrale
108 tjenester basert på det jeg leste fra beskrivelsen av
109 <a href=
"http://www.airwatch.com/solutions/mobile-device-management/
">Mobile
110 Device Management
</A
> på AirWatch sine egne nettsider, koblet med at
111 det brukes en standard app som kan hentes fra
"app-butikkene
" for å få
112 tilgang. Enten må app-en settes opp individuelt hos Stortinget, eller
113 så får den beskjed fra AirWatch i USA om hvor den skal koble seg opp.
114 I det første tilfellet vil den ikke rapportere direkte til USA, men
115 til programvare utviklet av AirWatch som kjører på en maskin under
116 Stortingets kontroll. Det er litt bedre, men fortsatt vil det være
117 umulig for Stortinget å være sikker på hva programvaren som tar imot
118 forbindelser gjør. Jeg ser fra beskrivelsen av
119 <a href=
"http://www.airwatch.com/differentiators/enterprise-integration/
">Enterprice
120 Integration
</a
> hos AirWatch at det er mulig å ha lokal installasjon,
121 og håper innsynsforespørsler mot Stortinget kan fortelle mer om
122 hvordan ting konkret fungerer der.
</p
>
127 <title>French Docbook/PDF/EPUB/MOBI edition of the Free Culture book
</title>
128 <link>http://people.skolelinux.org/pere/blog/French_Docbook_PDF_EPUB_MOBI_edition_of_the_Free_Culture_book.html
</link>
129 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/French_Docbook_PDF_EPUB_MOBI_edition_of_the_Free_Culture_book.html
</guid>
130 <pubDate>Thu,
1 Oct
2015 13:
20:
00 +
0200</pubDate>
131 <description><p
>As I wrap up the Norwegian version of
132 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">Free
133 Culture
</a
> book by Lawrence Lessig (still waiting for my final proof
134 reading copy to arrive in the mail), my great
135 <a href=
"http://dblatex.sourceforge.net/
">dblatex
</a
> helper and
136 developer of the dblatex docbook processor, Benoît Guillon, decided a
137 to try to create a French version of the book. He started with the
138 French translation available from the
139 <a href=
"http://www.wikilivres.ca/wiki/Culture_libre
">Wikilivres wiki
140 pages
</a
>, and wrote a program to convert it into a PO file, allowing
141 the translation to be integrated into the po4a based framework I use
142 to create the Norwegian translation from the English edition. We meet
143 on the
<a href=
"irc://irc.freenode.net/%
23dblatex
">#dblatex IRC
144 channel
</a
> to discuss the work. If you want to help create a French
146 <a href=
"https://github.com/marsgui/free-culture-lessig
">his git
147 repository
</a
> and join us on IRC. If the French edition look good,
148 we might publish it as a paper book on lulu.com. A French version of
149 the drawings and the cover need to be provided for this to happen.
</p
>
154 <title>The life and death of a laptop battery
</title>
155 <link>http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html
</link>
156 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html
</guid>
157 <pubDate>Thu,
24 Sep
2015 16:
00:
00 +
0200</pubDate>
158 <description><p
>When I get a new laptop, the battery life time at the start is OK.
159 But this do not last. The last few laptops gave me a feeling that
160 within a year, the life time is just a fraction of what it used to be,
161 and it slowly become painful to use the laptop without power connected
162 all the time. Because of this, when I got a new Thinkpad X230 laptop
163 about two years ago, I decided to monitor its battery state to have
164 more hard facts when the battery started to fail.
</p
>
166 <img src=
"http://people.skolelinux.org/pere/blog/images/
2015-
09-
24-laptop-battery-graph.png
"/
>
168 <p
>First I tried to find a sensible Debian package to record the
169 battery status, assuming that this must be a problem already handled
170 by someone else. I found
171 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
</a
>,
172 which collects statistics from the battery, but it was completely
173 broken. I sent a few suggestions to the maintainer, but decided to
174 write my own collector as a shell script while I waited for feedback
176 <a href=
"http://www.ifweassume.com/
2013/
08/the-de-evolution-of-my-laptop-battery.html
">a
177 blog post about the battery development on a MacBook Air
</a
> I also
179 <a href=
"https://github.com/jradavenport/batlog.git
">batlog
</a
>, not
180 available in Debian.
</p
>
182 <p
>I started my collector
2013-
07-
15, and it has been collecting
183 battery stats ever since. Now my
184 /var/log/hjemmenett-battery-status.log file contain around
115,
000
185 measurements, from the time the battery was working great until now,
186 when it is unable to charge above
7% of original capacity. My
187 collector shell script is quite simple and look like this:
</p
>
192 # http://www.ifweassume.com/
2013/
08/the-de-evolution-of-my-laptop-battery.html
194 # http://blog.sleeplessbeastie.eu/
2013/
01/
02/debian-how-to-monitor-battery-capacity/
195 logfile=/var/log/hjemmenett-battery-status.log
197 files=
"manufacturer model_name technology serial_number \
198 energy_full energy_full_design energy_now cycle_count status
"
200 if [ ! -e
"$logfile
" ] ; then
202 printf
"timestamp,
"
204 printf
"%s,
" $f
207 )
> "$logfile
"
211 # Print complete message in one echo call, to avoid race condition
212 # when several log processes run in parallel.
213 msg=$(printf
"%s,
" $(date +%s); \
214 for f in $files; do \
215 printf
"%s,
" $(cat $f); \
217 echo
"$msg
"
220 cd /sys/class/power_supply
223 (cd $bat
&& log_battery
>> "$logfile
")
227 <p
>The script is called when the power management system detect a
228 change in the power status (power plug in or out), and when going into
229 and out of hibernation and suspend. In addition, it collect a value
230 every
10 minutes. This make it possible for me know when the battery
231 is discharging, charging and how the maximum charge change over time.
232 The code for the Debian package
233 <a href=
"https://github.com/petterreinholdtsen/battery-status
">is now
234 available on github
</a
>.
</p
>
236 <p
>The collected log file look like this:
</p
>
239 timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_full_design,energy_now,cycle_count,status,
240 1376591133,LGC,
45N1025,Li-ion,
974,
62800000,
62160000,
39050000,
0,Discharging,
242 1443090528,LGC,
45N1025,Li-ion,
974,
4900000,
62160000,
4900000,
0,Full,
243 1443090601,LGC,
45N1025,Li-ion,
974,
4900000,
62160000,
4900000,
0,Full,
246 <p
>I wrote a small script to create a graph of the charge development
247 over time. This graph depicted above show the slow death of my laptop
250 <p
>But why is this happening? Why are my laptop batteries always
251 dying in a year or two, while the batteries of space probes and
252 satellites keep working year after year. If we are to believe
253 <a href=
"http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
">Battery
254 University
</a
>, the cause is me charging the battery whenever I have a
255 chance, and the fix is to not charge the Lithium-ion batteries to
100%
256 all the time, but to stay below
90% of full charge most of the time.
257 I
've been told that the Tesla electric cars
258 <a href=
"http://my.teslamotors.com/de_CH/forum/forums/battery-charge-limit
">limit
259 the charge of their batteries to
80%
</a
>, with the option to charge to
260 100% when preparing for a longer trip (not that I would want a car
261 like Tesla where rights to privacy is abandoned, but that is another
262 story), which I guess is the option we should have for laptops on
265 <p
>Is there a good and generic way with Linux to tell the battery to
266 stop charging at
80%, unless requested to charge to
100% once in
267 preparation for a longer trip? I found
268 <a href=
"http://askubuntu.com/questions/
34452/how-can-i-limit-battery-charging-to-
80-capacity
">one
269 recipe on askubuntu for Ubuntu to limit charging on Thinkpad to
270 80%
</a
>, but could not get it to work (kernel module refused to
273 <p
>I wonder why the battery capacity was reported to be more than
100%
274 at the start. I also wonder why the
"full capacity
" increases some
275 times, and if it is possible to repeat the process to get the battery
276 back to design capacity. And I wonder if the discharge and charge
277 speed change over time, or if this stay the same. I did not yet try
278 to write a tool to calculate the derivative values of the battery
279 level, but suspect some interesting insights might be learned from
282 <p
>Update
2015-
09-
24: I got a tip to install the packages
283 acpi-call-dkms and tlp (unfortunately missing in Debian stable)
284 packages instead of the tp-smapi-dkms package I had tried to use
285 initially, and use
'tlp setcharge
40 80' to change when charging start
286 and stop. I
've done so now, but expect my existing battery is toast
287 and need to be replaced. The proposal is unfortunately Thinkpad
293 <title>Book cover for the Free Culture book finally done
</title>
294 <link>http://people.skolelinux.org/pere/blog/Book_cover_for_the_Free_Culture_book_finally_done.html
</link>
295 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Book_cover_for_the_Free_Culture_book_finally_done.html
</guid>
296 <pubDate>Thu,
3 Sep
2015 21:
00:
00 +
0200</pubDate>
297 <description><p
>Creating a good looking book cover proved harder than I expected.
298 I wanted to create a cover looking similar to the original cover of
300 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">Free
301 Culture
</a
> book we are translating to Norwegian, and I wanted it in
302 vector format for high resolution printing. But my inkscape knowledge
303 were not nearly good enough to pull that off.
305 <p
>But thanks to the great inkscape community, I was able to wrap up
306 the cover yesterday evening. I asked on the
307 <a href=
"irc://irc.freenode.net/%
23inkscape
">#inkscape IRC channel
</a
>
308 on Freenode for help and clues, and Marc Jeanmougin (Mc-) volunteered
309 to try to recreate it based on the PDF of the cover from the HTML
310 version. Not only did he create a
311 <a href=
"https://marc.jeanmougin.fr/share/copy1.svg
">SVG document with
312 the original and his vector version side by side
</a
>, he even provided
313 an
<a href=
"https://marc.jeanmougin.fr/share/out-
1.ogv
">instruction
314 video
</a
> explaining how he did it
</a
>. But the instruction video is
315 not easy to follow for an untrained inkscape user. The video is a
316 recording on how he did it, and he is obviously very experienced as
317 the menu selections are very quick and he mentioned on IRC that he did
318 use some keyboard shortcuts that can
't be seen on the video, but it
319 give a good idea about the inkscape operations to use to create the
320 stripes with the embossed copyright sign in the center.
</p
>
322 <p
>I took his SVG file, copied the vector image and re-sized it to fit
323 on the cover I was drawing. I am happy with the end result, and the
324 current english version look like this:
</p
>
326 <img src=
"http://people.skolelinux.org/pere/blog/images/
2015-
09-
03-free-culture-cover.png
" width=
"70%
" align=
"center
"/
>
328 <p
>I am not quite sure about the text on the back, but guess it will
329 do. I picked three quotes from the official site for the book, and
330 hope it will work to trigger the interest of potential readers. The
331 Norwegian cover will look the same, but with the texts and bar code
332 replaced with the Norwegian version.
</p
>
334 <p
>The book is very close to being ready for publication, and I expect
335 to upload the final draft to Lulu in the next few days and order a
336 final proof reading copy to verify that everything look like it should
337 before allowing everyone to order their own copy of Free Culture, in
338 English or Norwegian Bokmål. I
'm waiting to give the the productive
339 proof readers a chance to complete their work.
</p
>
344 <title>In my hand, a pocket book edition of the Norwegian Free Culture book!
</title>
345 <link>http://people.skolelinux.org/pere/blog/In_my_hand__a_pocket_book_edition_of_the_Norwegian_Free_Culture_book_.html
</link>
346 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/In_my_hand__a_pocket_book_edition_of_the_Norwegian_Free_Culture_book_.html
</guid>
347 <pubDate>Wed,
19 Aug
2015 22:
10:
00 +
0200</pubDate>
348 <description><p
>Today, finally, my first printed draft edition of the Norwegian
349 translation of Free Culture I have been working on for the last few
350 years arrived in the mail. I had to fake a cover to get the interior
351 printed, and the exterior of the book look awful, but that is
352 irrelevant at this point. I asked for a printed pocket book version
353 to get an idea about the font sizes and paper format as well as how
354 good the figures and images look in print, but also to test what the
355 pocket book version would look like. After receiving the
500 page
356 pocket book, it became obvious to me that that pocket book size is too
357 small for this book. I believe the book is too thick, and several
358 tables and figures do not look good in the size they get with that
359 small page sizes. I believe I will go with the
5.5x8.5 inch size
360 instead. A surprise discovery from the paper version was how bad the
361 URLs look in print. They are very hard to read in the colophon page.
362 The URLs are red in the PDF, but light gray on paper. I need to
363 change the color of links somehow to look better. But there is a
364 printed book in my hand, and it feels great. :)
</p
>
366 <p
>Now I only need to fix the cover, wrap up the postscript with the
367 store behind the book, and collect the last corrections from the proof
368 readers before the book is ready for proper printing. Cover artists
369 willing to work for free and create a Creative Commons licensed vector
370 file looking similar to the original is most welcome, as my skills as
371 a graphics designer are mostly missing.
</p
>
376 <title>First paper version of the Norwegian Free Culture book heading my way
</title>
377 <link>http://people.skolelinux.org/pere/blog/First_paper_version_of_the_Norwegian_Free_Culture_book_heading_my_way.html
</link>
378 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/First_paper_version_of_the_Norwegian_Free_Culture_book_heading_my_way.html
</guid>
379 <pubDate>Sun,
9 Aug
2015 10:
15:
00 +
0200</pubDate>
380 <description><p
>Typesetting a book is harder than I hoped. As the translation is
381 mostly done, and a volunteer proof reader was going to check the text
382 on paper, it was time this summer to focus on formatting my translated
383 <a href=
"http://www.docbook.org/
">docbook
</a
> based version of the
384 <a href=
"http://free-culture.cc/
">Free Culture
</a
> book by Lawrence
385 Lessig. I
've been trying to get both docboox-xsl+fop and dblatex to
386 give me a good looking PDF, but in the end I went with dblatex, because
387 its Debian maintainer and upstream developer were responsive and very
388 helpful in solving my formatting challenges.
</p
>
390 <p
>Last night, I finally managed to create a PDF that no longer made
391 <a href=
"http://www.lulu.com/
">Lulu.com
</a
> complain after uploading,
392 and I ordered a text version of the book on paper. It is lacking a
393 proper book cover and is not tagged with the correct ISBN number, but
394 should give me an idea what the finished book will look like.
</p
>
396 <p
>Instead of using Lulu, I did consider printing the book using
397 <a href=
"http://www.createspace.com/
">CreateSpace
</a
>, but ended up
398 using Lulu because it had smaller book size options (CreateSpace seem
399 to lack pocket book with extended distribution). I looked for a
400 similar service in Norway, but have not seen anything so far. Please
401 let me know if I am missing out on something here.
</p
>
403 <p
>But I still struggle to decide the book size. Should I go for
404 pocket book (
4.25x6.875 inches /
10.8x17.5 cm) with
556 pages, Digest
405 (
5.5x8.5 inches /
14x21.6 cm) with
323 pages or US Trade (
6x8 inches /
406 15.3x22.9 cm) with
280 pages? Fewer pager give a cheaper book, and a
407 smaller book is easier to carry around. The test book I ordered was
408 pocket book sized, to give me an idea how well that fit in my hand,
409 but I suspect I will end up using a digest sized book in the end to
410 bring the prize down further.
</p
>
412 <p
>My biggest challenge at the moment is making nice cover art. My
413 inkscape skills are not yet up to the task of replicating the original
414 cover in SVG format. I also need to figure out what to write about
415 the book on the back (will most likely use the same text as the
416 description on web based book stores). I would love help with this,
417 if you are willing to license the art source and final version using
418 the same CC license as the book. My artistic skills are not really up
419 to the task.
</p
>
421 <p
>I plan to publish the book in both English and Norwegian and on
422 paper, in PDF form as well as EPUB and MOBI format. The current
423 status can as usual be found on
424 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">github
</a
>
425 in the archive/ directory. So far I have spent all time on making the
426 PDF version look good. Someone should probably do the same with the
427 dbtoepub generated e-book. Help is definitely needed here, as I
428 expect to run out of steem before I find time to improve the epub
429 formatting.
</p
>
431 <p
>Please let me know via github if you find typos in the book or
432 discover translations that should be improved. The final proof
433 reading is being done right now, and I expect to publish the finished
434 result in a few months.
</p
>
439 <title>Typesetting DocBook footnotes as endnotes with dblatex
</title>
440 <link>http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html
</link>
441 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html
</guid>
442 <pubDate>Thu,
16 Jul
2015 18:
10:
00 +
0200</pubDate>
443 <description><p
>I
'm still working on the Norwegian version of the
444 <a href=
"http://free-culture.cc/
">Free Culture book by Lawrence
445 Lessig
</a
>, and is now working on the final typesetting and layout.
446 One of the features I want to get the structure similar to the
447 original book is to typeset the footnotes as endnotes in the notes
448 chapter. Based on the
449 <a href=
"https://bugs.debian.org/
685063">feedback from the Debian
450 maintainer and the dblatex developer
</a
>, I came up with this recipe I
451 would like to share with you. The proposal was to create a new LaTeX
452 class file and add the LaTeX code there, but this is not always
453 practical, when I want to be able to replace the class using a make
454 file variable. So my proposal misuses the latex.begindocument XSL
455 parameter value, to get a small fragment into the correct location in
456 the generated LaTeX File.
</p
>
458 <p
>First, decide where in the DocBook document to place the endnotes,
459 and add this text there:
</p
>
462 &lt;?latex \theendnotes ?
&gt;
465 <p
>Next, create a xsl stylesheet file dblatex-endnotes.xsl to add the
466 code needed to add the endnote instructions in the preamble of the
467 generated LaTeX document, with content like this:
</p
>
470 &lt;?xml version=
'1.0'?
&gt;
471 &lt;xsl:stylesheet xmlns:xsl=
"http://www.w3.org/
1999/XSL/Transform
" version=
'1.0'&gt;
472 &lt;xsl:param name=
"latex.begindocument
"&gt;
473 &lt;xsl:text
&gt;
474 \usepackage{endnotes}
475 \let\footnote=\endnote
476 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
478 &lt;/xsl:text
&gt;
479 &lt;/xsl:param
&gt;
480 &lt;/xsl:stylesheet
&gt;
483 <p
>Finally, load this xsl file when running dblatex, for example like
487 dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
490 <p
>The end result can be seen on github, where
491 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">my
492 book project
</a
> is located.
</p
>
497 <title>Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert
</title>
498 <link>http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html
</link>
499 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html
</guid>
500 <pubDate>Thu,
9 Jul
2015 11:
40:
00 +
0200</pubDate>
501 <description><p
>I går fikk vi endelig lansert en norsk version av mySocietys
502 <a href=
"https://www.whatdotheyknow.com/
">WhatDoTheyKnow
</a
>.
503 Tjenesten heter Mimes brønn, og ble
504 <a href=
"http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml
">annonsert
505 av NUUG
</a
> via blogg, epost og twitter til NUUG-assosierte personer.
506 Det har tatt noen år, men de siste dagene fikk vi endelig tid til å få
507 på plass de siste bitene. Vi er to, Gorm og meg selv, som har vært
508 primus motor for det hele, men vi har fått hjelp med oversettelser og
509 oppsett fra mange flere. Jeg vil si tusen takk til hver og en av dem,
510 og er veldig fornøyd med at vi klarte å få tjenesten opp å kjøre før
511 ferietiden slo inn for fullt.
</p
>
513 <p
>Vi er usikker på hvor mye belastning den virtuelle maskinen der
514 tjenesten kjører klarer, så vi har lansert litt i det stille og ikke
515 til for mange folk for å se hvordan maskinen klarer seg over sommeren,
516 før vi går mer aktivt ut og annonserer til høsten. Ta en titt, og se
517 om du kanskje har et spørsmål til det offentlige som er egnet å sende
518 inn via Mimes brønn.
</p
>
520 <p
>Hvis du lurer på hva i alle dager en slik tjenestes kan brukes til,
521 anbefaler jeg deg å se
522 <a href=
"http://beta.frikanalen.no/video/
625321">TED-foredraget til
523 Heather Brook
</a
> om hvordan hun brukte WhatDoTheyKnow til å lære
524 hvordan offentlige midler ble misbrukt. Det er en inspirerende