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