]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
New post.
[homepage.git] / blog / index.rss
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">
3 <channel>
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" />
8
9 <item>
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>&lt;p&gt;Last year, &lt;a href=&quot;https://lessig2016.us/&quot;&gt;US president candidate
15 in the Democratic Party&lt;/a&gt; Lawrence interviewed Edward Snowden. The
16 one hour interview was
17 &lt;a href=&quot;https://www.youtube.com/watch?v=o_Sr96TFQQE&quot;&gt;published by
18 Harvard Law School 2014-10-23 on Youtube&lt;/a&gt;, and the meeting took
19 place 2014-10-20.&lt;/p&gt;
20
21 &lt;p&gt;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.&lt;/p&gt;
24
25 &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/o_Sr96TFQQE&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
26
27 &lt;p&gt;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 &lt;a href=&quot;https://tale.holderdeord.no/speeches/s131106/68&quot;&gt;claiming
32 Snowden is no Whistle-Blower&lt;/a&gt; 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.&lt;/p&gt;
35 </description>
36 </item>
37
38 <item>
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>&lt;p&gt;The movie &quot;&lt;a href=&quot;http://www.takepart.com/internets-own-boy&quot;&gt;The
44 Internet&#39;s Own Boy: The Story of Aaron Swartz&lt;/a&gt;&quot; 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
54 weep.&lt;/p&gt;
55
56 &lt;p&gt;The movie is also available on
57 &lt;a href=&quot;https://www.youtube.com/watch?v=vXr-2hwTk58&quot;&gt;Youtube&lt;/a&gt;. I
58 wish there were Norwegian subtitles available, so I could show it to
59 my parents.&lt;/p&gt;
60 </description>
61 </item>
62
63 <item>
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>&lt;p&gt;Jeg lot meg fascinere av
69 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/politikk/Stortinget-har-tilgang-til-a-fjernstyre-600-mobiler-8192692.html&quot;&gt;en
70 artikkel i Aftenposten&lt;/a&gt; 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 &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.airwatch.androidagent&quot;&gt;programvaren
74 Airwatch&lt;/a&gt;, 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.&lt;/p&gt;
83
84 &lt;p&gt;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 &lt;a href=&quot;https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008&quot;&gt;FISAAA-loven&lt;/a&gt;
88 og
89 &quot;&lt;a href=&quot;https://en.wikipedia.org/wiki/National_security_letter&quot;&gt;National
90 Security Letters&lt;/a&gt;&quot; og det enkle faktum at selskapet
91 &lt;a href=&quot;http://www.airwatch.com/&quot;&gt;AirWatch&lt;/a&gt; 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.&lt;/p&gt;
95
96 &lt;p&gt;Jeg har bedt om mer informasjon
97 &lt;a href=&quot;https://www.mimesbronn.no/request/saksnummer_for_saker_anganede_br&quot;&gt;fra
98 Stortinget om bruken av AirWatch&lt;/a&gt; via Mimes brønn så får vi se hva
99 de har å fortelle om saken. Fant ingenting om &#39;airwatch&#39; i
100 postjournalen til Stortinget, så jeg trenger hjelp før jeg kan be om
101 innsyn i konkrete dokumenter.&lt;/p&gt;
102
103 &lt;p&gt;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 &lt;a href=&quot;http://www.airwatch.com/solutions/mobile-device-management/&quot;&gt;Mobile
110 Device Management&lt;/A&gt; på AirWatch sine egne nettsider, koblet med at
111 det brukes en standard app som kan hentes fra &quot;app-butikkene&quot; 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 &lt;a href=&quot;http://www.airwatch.com/differentiators/enterprise-integration/&quot;&gt;Enterprice
120 Integration&lt;/a&gt; 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.&lt;/p&gt;
123 </description>
124 </item>
125
126 <item>
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>&lt;p&gt;As I wrap up the Norwegian version of
132 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;Free
133 Culture&lt;/a&gt; book by Lawrence Lessig (still waiting for my final proof
134 reading copy to arrive in the mail), my great
135 &lt;a href=&quot;http://dblatex.sourceforge.net/&quot;&gt;dblatex&lt;/a&gt; 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 &lt;a href=&quot;http://www.wikilivres.ca/wiki/Culture_libre&quot;&gt;Wikilivres wiki
140 pages&lt;/a&gt;, 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 &lt;a href=&quot;irc://irc.freenode.net/%23dblatex&quot;&gt;#dblatex IRC
144 channel&lt;/a&gt; to discuss the work. If you want to help create a French
145 edition, check out
146 &lt;a href=&quot;https://github.com/marsgui/free-culture-lessig&quot;&gt;his git
147 repository&lt;/a&gt; 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.&lt;/p&gt;
150 </description>
151 </item>
152
153 <item>
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>&lt;p&gt;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.&lt;/p&gt;
165
166 &lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2015-09-24-laptop-battery-graph.png&quot;/&gt;
167
168 &lt;p&gt;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 &lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;battery-stats&lt;/a&gt;,
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
175 from him. Via
176 &lt;a href=&quot;http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html&quot;&gt;a
177 blog post about the battery development on a MacBook Air&lt;/a&gt; I also
178 discovered
179 &lt;a href=&quot;https://github.com/jradavenport/batlog.git&quot;&gt;batlog&lt;/a&gt;, not
180 available in Debian.&lt;/p&gt;
181
182 &lt;p&gt;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:&lt;/p&gt;
188
189 &lt;pre&gt;
190 #!/bin/sh
191 # Inspired by
192 # http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html
193 # See also
194 # http://blog.sleeplessbeastie.eu/2013/01/02/debian-how-to-monitor-battery-capacity/
195 logfile=/var/log/hjemmenett-battery-status.log
196
197 files=&quot;manufacturer model_name technology serial_number \
198 energy_full energy_full_design energy_now cycle_count status&quot;
199
200 if [ ! -e &quot;$logfile&quot; ] ; then
201 (
202 printf &quot;timestamp,&quot;
203 for f in $files; do
204 printf &quot;%s,&quot; $f
205 done
206 echo
207 ) &gt; &quot;$logfile&quot;
208 fi
209
210 log_battery() {
211 # Print complete message in one echo call, to avoid race condition
212 # when several log processes run in parallel.
213 msg=$(printf &quot;%s,&quot; $(date +%s); \
214 for f in $files; do \
215 printf &quot;%s,&quot; $(cat $f); \
216 done)
217 echo &quot;$msg&quot;
218 }
219
220 cd /sys/class/power_supply
221
222 for bat in BAT*; do
223 (cd $bat &amp;&amp; log_battery &gt;&gt; &quot;$logfile&quot;)
224 done
225 &lt;/pre&gt;
226
227 &lt;p&gt;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 &lt;a href=&quot;https://github.com/petterreinholdtsen/battery-status&quot;&gt;is now
234 available on github&lt;/a&gt;.&lt;/p&gt;
235
236 &lt;p&gt;The collected log file look like this:&lt;/p&gt;
237
238 &lt;pre&gt;
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,
241 [...]
242 1443090528,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
243 1443090601,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
244 &lt;/pre&gt;
245
246 &lt;p&gt;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
248 battery.&lt;/p&gt;
249
250 &lt;p&gt;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 &lt;a href=&quot;http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries&quot;&gt;Battery
254 University&lt;/a&gt;, 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&#39;ve been told that the Tesla electric cars
258 &lt;a href=&quot;http://my.teslamotors.com/de_CH/forum/forums/battery-charge-limit&quot;&gt;limit
259 the charge of their batteries to 80%&lt;/a&gt;, 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
263 Linux too.&lt;/p&gt;
264
265 &lt;p&gt;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 &lt;a href=&quot;http://askubuntu.com/questions/34452/how-can-i-limit-battery-charging-to-80-capacity&quot;&gt;one
269 recipe on askubuntu for Ubuntu to limit charging on Thinkpad to
270 80%&lt;/a&gt;, but could not get it to work (kernel module refused to
271 load).&lt;/p&gt;
272
273 &lt;p&gt;I wonder why the battery capacity was reported to be more than 100%
274 at the start. I also wonder why the &quot;full capacity&quot; 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
280 those.&lt;/p&gt;
281
282 &lt;p&gt;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 &#39;tlp setcharge 40 80&#39; to change when charging start
286 and stop. I&#39;ve done so now, but expect my existing battery is toast
287 and need to be replaced. The proposal is unfortunately Thinkpad
288 specific.&lt;/p&gt;
289 </description>
290 </item>
291
292 <item>
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>&lt;p&gt;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
299 the
300 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;Free
301 Culture&lt;/a&gt; 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.
304
305 &lt;p&gt;But thanks to the great inkscape community, I was able to wrap up
306 the cover yesterday evening. I asked on the
307 &lt;a href=&quot;irc://irc.freenode.net/%23inkscape&quot;&gt;#inkscape IRC channel&lt;/a&gt;
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 &lt;a href=&quot;https://marc.jeanmougin.fr/share/copy1.svg &quot;&gt;SVG document with
312 the original and his vector version side by side&lt;/a&gt;, he even provided
313 an &lt;a href=&quot;https://marc.jeanmougin.fr/share/out-1.ogv&quot;&gt;instruction
314 video&lt;/a&gt; explaining how he did it&lt;/a&gt;. 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&#39;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.&lt;/p&gt;
321
322 &lt;p&gt;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:&lt;/p&gt;
325
326 &lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2015-09-03-free-culture-cover.png&quot; width=&quot;70%&quot; align=&quot;center&quot;/&gt;
327
328 &lt;p&gt;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.&lt;/p&gt;
333
334 &lt;p&gt;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&#39;m waiting to give the the productive
339 proof readers a chance to complete their work.&lt;/p&gt;
340 </description>
341 </item>
342
343 <item>
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>&lt;p&gt;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. :)&lt;/p&gt;
365
366 &lt;p&gt;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.&lt;/p&gt;
372 </description>
373 </item>
374
375 <item>
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>&lt;p&gt;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 &lt;a href=&quot;http://www.docbook.org/&quot;&gt;docbook&lt;/a&gt; based version of the
384 &lt;a href=&quot;http://free-culture.cc/&quot;&gt;Free Culture&lt;/a&gt; book by Lawrence
385 Lessig. I&#39;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.&lt;/p&gt;
389
390 &lt;p&gt;Last night, I finally managed to create a PDF that no longer made
391 &lt;a href=&quot;http://www.lulu.com/&quot;&gt;Lulu.com&lt;/a&gt; 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.&lt;/p&gt;
395
396 &lt;p&gt;Instead of using Lulu, I did consider printing the book using
397 &lt;a href=&quot;http://www.createspace.com/&quot;&gt;CreateSpace&lt;/a&gt;, 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.&lt;/p&gt;
402
403 &lt;p&gt;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.&lt;/p&gt;
411
412 &lt;p&gt;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.&lt;/p&gt;
420
421 &lt;p&gt;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 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;github&lt;/a&gt;
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.&lt;/p&gt;
430
431 &lt;p&gt;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.&lt;/p&gt;
435 </description>
436 </item>
437
438 <item>
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>&lt;p&gt;I&#39;m still working on the Norwegian version of the
444 &lt;a href=&quot;http://free-culture.cc/&quot;&gt;Free Culture book by Lawrence
445 Lessig&lt;/a&gt;, 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 &lt;a href=&quot;https://bugs.debian.org/685063&quot;&gt;feedback from the Debian
450 maintainer and the dblatex developer&lt;/a&gt;, 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.&lt;/p&gt;
457
458 &lt;p&gt;First, decide where in the DocBook document to place the endnotes,
459 and add this text there:&lt;/p&gt;
460
461 &lt;pre&gt;
462 &amp;lt;?latex \theendnotes ?&amp;gt;
463 &lt;/pre&gt;
464
465 &lt;p&gt;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:&lt;/p&gt;
468
469 &lt;pre&gt;
470 &amp;lt;?xml version=&#39;1.0&#39;?&amp;gt;
471 &amp;lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; version=&#39;1.0&#39;&amp;gt;
472 &amp;lt;xsl:param name=&quot;latex.begindocument&quot;&amp;gt;
473 &amp;lt;xsl:text&amp;gt;
474 \usepackage{endnotes}
475 \let\footnote=\endnote
476 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
477 \begin{document}
478 &amp;lt;/xsl:text&amp;gt;
479 &amp;lt;/xsl:param&amp;gt;
480 &amp;lt;/xsl:stylesheet&amp;gt;
481 &lt;/pre&gt;
482
483 &lt;p&gt;Finally, load this xsl file when running dblatex, for example like
484 this:&lt;/p&gt;
485
486 &lt;pre&gt;
487 dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
488 &lt;/pre&gt;
489
490 &lt;p&gt;The end result can be seen on github, where
491 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;my
492 book project&lt;/a&gt; is located.&lt;/p&gt;
493 </description>
494 </item>
495
496 <item>
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>&lt;p&gt;I går fikk vi endelig lansert en norsk version av mySocietys
502 &lt;a href=&quot;https://www.whatdotheyknow.com/&quot;&gt;WhatDoTheyKnow&lt;/a&gt;.
503 Tjenesten heter Mimes brønn, og ble
504 &lt;a href=&quot;http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml&quot;&gt;annonsert
505 av NUUG&lt;/a&gt; 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.&lt;/p&gt;
512
513 &lt;p&gt;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.&lt;/p&gt;
519
520 &lt;p&gt;Hvis du lurer på hva i alle dager en slik tjenestes kan brukes til,
521 anbefaler jeg deg å se
522 &lt;a href=&quot;http://beta.frikanalen.no/video/625321&quot;&gt;TED-foredraget til
523 Heather Brook&lt;/a&gt; om hvordan hun brukte WhatDoTheyKnow til å lære
524 hvordan offentlige midler ble misbrukt. Det er en inspirerende
525 historie.&lt;/p&gt;
526 </description>
527 </item>
528
529 </channel>
530 </rss>