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