]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
Klarere språk.
[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>E-tjenesten ber om innsyn i eposten til partiene på Stortinget</title>
11 <link>http://people.skolelinux.org/pere/blog/E_tjenesten_ber_om_innsyn_i_eposten_til_partiene_p__Stortinget.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/E_tjenesten_ber_om_innsyn_i_eposten_til_partiene_p__Stortinget.html</guid>
13 <pubDate>Tue, 6 Sep 2016 23:00:00 +0200</pubDate>
14 <description>&lt;p&gt;I helga kom det et hårreisende forslag fra Lysne II-utvalget satt
15 ned av Forsvarsdepartementet. Lysne II-utvalget var bedt om å vurdere
16 ønskelista til Forsvarets etterretningstjeneste (e-tjenesten), og har
17 kommet med
18 &lt;a href=&quot;http://www.aftenposten.no/norge/Utvalg-sier-ja-til-at-E-tjenesten-far-overvake-innholdet-i-all-internett--og-telefontrafikk-som-krysser-riksgrensen-603232b.html&quot;&gt;forslag
19 om at e-tjenesten skal få lov til a avlytte all Internett-trafikk&lt;/a&gt;
20 som passerer Norges grenser. Få er klar over at dette innebærer at
21 e-tjenesten får tilgang til epost sendt til de fleste politiske
22 partiene på Stortinget. Regjeringspartiet Høyre (@hoyre.no),
23 støttepartiene Venstre (@venstre.no) og Kristelig Folkeparti (@krf.no)
24 samt Sosialistisk Ventreparti (@sv.no) og Miljøpartiet de grønne
25 (@mdg.no) har nemlig alle valgt å ta imot eposten sin via utenlandske
26 tjenester. Det betyr at hvis noen sender epost til noen med en slik
27 adresse vil innholdet i eposten, om dette forslaget blir vedtatt, gjøres
28 tilgjengelig for e-tjenesten. Venstre, Sosialistisk Ventreparti og
29 Miljøpartiet De Grønne har valgt å motta sin epost hos Google,
30 Kristelig Folkeparti har valgt å motta sin epost hos Microsoft, og
31 Høyre har valgt å motta sin epost hos Comendo med mottak i Danmark og
32 Irland. Kun Arbeiderpartiet og Fremskrittspartiet har valgt å motta
33 eposten sin i Norge, hos henholdsvis Intility AS og Telecomputing
34 AS.&lt;/p&gt;
35
36 &lt;p&gt;Konsekvensen er at epost inn og ut av de politiske organisasjonene,
37 til og fra partimedlemmer og partiets tillitsvalgte vil gjøres
38 tilgjengelig for e-tjenesten for analyse og sortering. Jeg mistenker
39 at kunnskapen som slik blir tilgjengelig vil være nyttig hvis en
40 ønsker å vite hvilke argumenter som treffer publikum når en ønsker å
41 påvirke Stortingets representanter.&lt;/p
42
43 &lt;p&gt;Ved hjelp av MX-oppslag i DNS for epost-domene, tilhørende
44 whois-oppslag av IP-adressene og traceroute for å se hvorvidt
45 trafikken går via utlandet kan enhver få bekreftet at epost sendt til
46 de omtalte partiene vil gjøres tilgjengelig for forsvarets
47 etterretningstjeneste hvis forslaget blir vedtatt. En kan også bruke
48 den kjekke nett-tjenesten &lt;a href=&quot;http://ipinfo.io/&quot;&gt;ipinfo.io&lt;/a&gt;
49 for å få en ide om hvor i verden en IP-adresse hører til.&lt;/p&gt;
50
51 &lt;p&gt;På den positive siden vil forslaget gjøre at enda flere blir
52 motivert til å ta grep for å bruke
53 &lt;a href=&quot;https://www.torproject.org/&quot;&gt;Tor&lt;/a&gt; og krypterte
54 kommunikasjonsløsninger for å kommunisere med sine kjære, for å sikre
55 at privatsfæren vernes. Selv bruker jeg blant annet
56 &lt;a href=&quot;https://www.freedomboxfoundation.org/&quot;&gt;FreedomBox&lt;/a&gt; og
57 &lt;a href=&quot;https://whispersystems.org/&quot;&gt;Signal&lt;/a&gt; til slikt. Ingen av
58 dem er optimale, men de fungerer ganske bra allerede og øker kostnaden
59 for dem som ønsker å invadere mitt privatliv.&lt;/p&gt;
60
61 &lt;p&gt;For øvrig burde varsleren Edward Snowden få politisk asyl i
62 Norge.&lt;/p&gt;
63
64 &lt;!--
65
66 venstre.no
67 venstre.no mail is handled by 10 aspmx.l.google.com.
68 venstre.no mail is handled by 20 alt1.aspmx.l.google.com.
69 venstre.no mail is handled by 20 alt2.aspmx.l.google.com.
70 venstre.no mail is handled by 30 aspmx2.googlemail.com.
71 venstre.no mail is handled by 30 aspmx3.googlemail.com.
72
73 traceroute to aspmx.l.google.com (173.194.222.27), 30 hops max, 60 byte packets
74 1 uio-gw10.uio.no (129.240.6.1) 0.411 ms 0.438 ms 0.536 ms
75 2 uio-gw8.uio.no (129.240.24.229) 0.375 ms 0.452 ms 0.548 ms
76 3 oslo-gw1.uninett.no (128.39.65.17) 1.940 ms 1.950 ms 1.942 ms
77 4 se-tug.nordu.net (109.105.102.108) 6.910 ms 6.949 ms 7.283 ms
78 5 google-gw.nordu.net (109.105.98.6) 6.975 ms 6.967 ms 6.958 ms
79 6 209.85.250.192 (209.85.250.192) 7.337 ms 7.286 ms 10.890 ms
80 7 209.85.254.13 (209.85.254.13) 7.394 ms 209.85.254.31 (209.85.254.31) 7.586 ms 209.85.254.33 (209.85.254.33) 7.570 ms
81 8 209.85.251.255 (209.85.251.255) 15.686 ms 209.85.249.229 (209.85.249.229) 16.118 ms 209.85.251.255 (209.85.251.255) 16.073 ms
82 9 74.125.37.255 (74.125.37.255) 16.794 ms 216.239.40.248 (216.239.40.248) 16.113 ms 74.125.37.44 (74.125.37.44) 16.764 ms
83 10 * * *
84
85 mdg.no
86 mdg.no mail is handled by 1 aspmx.l.google.com.
87 mdg.no mail is handled by 5 alt2.aspmx.l.google.com.
88 mdg.no mail is handled by 5 alt1.aspmx.l.google.com.
89 mdg.no mail is handled by 10 aspmx2.googlemail.com.
90 mdg.no mail is handled by 10 aspmx3.googlemail.com.
91 sv.no
92 sv.no mail is handled by 1 aspmx.l.google.com.
93 sv.no mail is handled by 5 alt1.aspmx.l.google.com.
94 sv.no mail is handled by 5 alt2.aspmx.l.google.com.
95 sv.no mail is handled by 10 aspmx3.googlemail.com.
96 sv.no mail is handled by 10 aspmx2.googlemail.com.
97 hoyre.no
98 hoyre.no mail is handled by 10 hoyre-no.mx1.comendosystems.com.
99 hoyre.no mail is handled by 20 hoyre-no.mx2.comendosystems.net.
100
101 traceroute to hoyre-no.mx1.comendosystems.com (89.104.206.4), 30 hops max, 60 byte packets
102 1 uio-gw10.uio.no (129.240.6.1) 0.450 ms 0.510 ms 0.591 ms
103 2 uio-gw8.uio.no (129.240.24.229) 0.383 ms 0.508 ms 0.596 ms
104 3 oslo-gw1.uninett.no (128.39.65.17) 0.311 ms 0.315 ms 0.300 ms
105 4 se-tug.nordu.net (109.105.102.108) 6.837 ms 6.842 ms 6.834 ms
106 5 dk-uni.nordu.net (109.105.97.10) 26.073 ms 26.085 ms 26.076 ms
107 6 dix.1000m.soeborg.ip.comendo.dk (192.38.7.22) 15.372 ms 15.046 ms 15.123 ms
108 7 89.104.192.65 (89.104.192.65) 15.875 ms 15.990 ms 16.239 ms
109 8 89.104.192.179 (89.104.192.179) 15.676 ms 15.674 ms 15.664 ms
110 9 03dm-com.mx1.staysecuregroup.com (89.104.206.4) 15.637 ms * *
111
112 krf.no
113 krf.no mail is handled by 10 krf-no.mail.protection.outlook.com.
114
115 traceroute to krf-no.mail.protection.outlook.com (213.199.154.42), 30 hops max, 60 byte packets
116 1 uio-gw10.uio.no (129.240.6.1) 0.401 ms 0.438 ms 0.536 ms
117 2 uio-gw8.uio.no (129.240.24.229) 11.076 ms 11.120 ms 11.204 ms
118 3 oslo-gw1.uninett.no (128.39.65.17) 0.232 ms 0.234 ms 0.271 ms
119 4 se-tug.nordu.net (109.105.102.108) 6.811 ms 6.820 ms 6.815 ms
120 5 netnod-ix-ge-a-sth-4470.microsoft.com (195.245.240.181) 7.074 ms 7.013 ms 7.061 ms
121 6 ae1-0.sto-96cbe-1b.ntwk.msn.net (104.44.225.161) 7.227 ms 7.362 ms 7.293 ms
122 7 be-8-0.ibr01.ams.ntwk.msn.net (104.44.5.7) 41.993 ms 43.334 ms 41.939 ms
123 8 be-1-0.ibr02.ams.ntwk.msn.net (104.44.4.214) 43.153 ms 43.507 ms 43.404 ms
124 9 ae3-0.fra-96cbe-1b.ntwk.msn.net (104.44.5.17) 29.897 ms 29.831 ms 29.794 ms
125 10 ae10-0.vie-96cbe-1a.ntwk.msn.net (198.206.164.1) 42.309 ms 42.130 ms 41.808 ms
126 11 * ae8-0.vie-96cbe-1b.ntwk.msn.net (104.44.227.29) 41.425 ms *
127 12 * * *
128
129 arbeiderpartiet.no
130 arbeiderpartiet.no mail is handled by 10 mail.intility.com.
131 arbeiderpartiet.no mail is handled by 20 mail2.intility.com.
132
133 traceroute to mail.intility.com (188.95.245.87), 30 hops max, 60 byte packets
134 1 uio-gw10.uio.no (129.240.6.1) 0.486 ms 0.508 ms 0.649 ms
135 2 uio-gw8.uio.no (129.240.24.229) 0.416 ms 0.508 ms 0.620 ms
136 3 oslo-gw1.uninett.no (128.39.65.17) 0.276 ms 0.278 ms 0.275 ms
137 4 te3-1-2.br1.fn3.as2116.net (193.156.90.3) 0.374 ms 0.371 ms 0.416 ms
138 5 he16-1-1.cr1.san110.as2116.net (195.0.244.234) 3.132 ms he16-1-1.cr2.oslosda310.as2116.net (195.0.244.48) 10.079 ms he16-1-1.cr1.san110.as2116.net (195.0.244.234) 3.353 ms
139 6 te1-2-0.ar2.ulv89.as2116.net (195.0.243.194) 0.569 ms te5-0-0.ar2.ulv89.as2116.net (195.0.243.192) 0.661 ms 0.653 ms
140 7 cD2EC45C1.static.as2116.net (193.69.236.210) 0.654 ms 0.615 ms 0.590 ms
141 8 185.7.132.38 (185.7.132.38) 1.661 ms 1.808 ms 1.695 ms
142 9 185.7.132.100 (185.7.132.100) 1.793 ms 1.943 ms 1.546 ms
143 10 * * *
144
145 frp.no
146 frp.no mail is handled by 10 mx03.telecomputing.no.
147 frp.no mail is handled by 20 mx01.telecomputing.no.
148
149 traceroute to mx03.telecomputing.no (95.128.105.102), 30 hops max, 60 byte packets
150 1 uio-gw10.uio.no (129.240.6.1) 0.378 ms 0.402 ms 0.479 ms
151 2 uio-gw8.uio.no (129.240.24.229) 0.361 ms 0.458 ms 0.548 ms
152 3 oslo-gw1.uninett.no (128.39.65.17) 0.361 ms 0.352 ms 0.336 ms
153 4 xe-2-2-0-0.san-peer2.osl.no.ip.tdc.net (193.156.90.16) 0.375 ms 0.366 ms 0.346 ms
154 5 xe-2-0-2-0.ost-pe1.osl.no.ip.tdc.net (85.19.121.97) 0.780 ms xe-2-0-0-0.ost-pe1.osl.no.ip.tdc.net (85.19.121.101) 0.713 ms xe-2-0-2-0.ost-pe1.osl.no.ip.tdc.net (85.19.121.97) 0.759 ms
155 6 cpe.xe-0-2-0-100.ost-pe1.osl.no.customer.tdc.net (85.19.26.46) 0.837 ms 0.755 ms 0.759 ms
156 7 95.128.105.3 (95.128.105.3) 1.050 ms 1.288 ms 1.182 ms
157 8 mx03.telecomputing.no (95.128.105.102) 0.717 ms 0.703 ms 0.692 ms
158
159 --&gt;
160 </description>
161 </item>
162
163 <item>
164 <title>First draft Norwegian Bokmål edition of The Debian Administrator&#39;s Handbook now public</title>
165 <link>http://people.skolelinux.org/pere/blog/First_draft_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook_now_public.html</link>
166 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/First_draft_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook_now_public.html</guid>
167 <pubDate>Tue, 30 Aug 2016 10:10:00 +0200</pubDate>
168 <description>&lt;p&gt;In April we
169 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Lets_make_a_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook.html&quot;&gt;started
170 to work&lt;/a&gt; on a Norwegian Bokmål edition of the &quot;open access&quot; book on
171 how to set up and administrate a Debian system. Today I am happy to
172 report that the first draft is now publicly available. You can find
173 it on &lt;a href=&quot;https://debian-handbook.info/get/&quot;&gt;get the Debian
174 Administrator&#39;s Handbook page&lt;/a&gt; (under Other languages). The first
175 eight chapters have a first draft translation, and we are working on
176 proofreading the content. If you want to help out, please start
177 contributing using
178 &lt;a href=&quot;https://hosted.weblate.org/projects/debian-handbook/&quot;&gt;the
179 hosted weblate project page&lt;/a&gt;, and get in touch using
180 &lt;a href=&quot;http://lists.alioth.debian.org/mailman/listinfo/debian-handbook-translators&quot;&gt;the
181 translators mailing list&lt;/a&gt;. Please also check out
182 &lt;a href=&quot;https://debian-handbook.info/contribute/&quot;&gt;the instructions for
183 contributors&lt;/a&gt;. A good way to contribute is to proofread the text
184 and update weblate if you find errors.&lt;/p&gt;
185
186 &lt;p&gt;Our goal is still to make the Norwegian book available on paper as well as
187 electronic form.&lt;/p&gt;
188 </description>
189 </item>
190
191 <item>
192 <title>Coz can help you find bottlenecks in multi-threaded software - nice free software</title>
193 <link>http://people.skolelinux.org/pere/blog/Coz_can_help_you_find_bottlenecks_in_multi_threaded_software___nice_free_software.html</link>
194 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Coz_can_help_you_find_bottlenecks_in_multi_threaded_software___nice_free_software.html</guid>
195 <pubDate>Thu, 11 Aug 2016 12:00:00 +0200</pubDate>
196 <description>&lt;p&gt;This summer, I read a great article
197 &quot;&lt;a href=&quot;https://www.usenix.org/publications/login/summer2016/curtsinger&quot;&gt;coz:
198 This Is the Profiler You&#39;re Looking For&lt;/a&gt;&quot; in USENIX ;login: about
199 how to profile multi-threaded programs. It presented a system for
200 profiling software by running experiences in the running program,
201 testing how run time performance is affected by &quot;speeding up&quot; parts of
202 the code to various degrees compared to a normal run. It does this by
203 slowing down parallel threads while the &quot;faster up&quot; code is running
204 and measure how this affect processing time. The processing time is
205 measured using probes inserted into the code, either using progress
206 counters (COZ_PROGRESS) or as latency meters (COZ_BEGIN/COZ_END). It
207 can also measure unmodified code by measuring complete the program
208 runtime and running the program several times instead.&lt;/p&gt;
209
210 &lt;p&gt;The project and presentation was so inspiring that I would like to
211 get the system into Debian. I
212 &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830708&quot;&gt;created
213 a WNPP request for it&lt;/a&gt; and contacted upstream to try to make the
214 system ready for Debian by sending patches. The build process need to
215 be changed a bit to avoid running &#39;git clone&#39; to get dependencies, and
216 to include the JavaScript web page used to visualize the collected
217 profiling information included in the source package.
218 But I expect that should work out fairly soon.&lt;/p&gt;
219
220 &lt;p&gt;The way the system work is fairly simple. To run an coz experiment
221 on a binary with debug symbols available, start the program like this:
222
223 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
224 coz run --- program-to-run
225 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
226
227 &lt;p&gt;This will create a text file profile.coz with the instrumentation
228 information. To show what part of the code affect the performance
229 most, use a web browser and either point it to
230 &lt;a href=&quot;http://plasma-umass.github.io/coz/&quot;&gt;http://plasma-umass.github.io/coz/&lt;/a&gt;
231 or use the copy from git (in the gh-pages branch). Check out this web
232 site to have a look at several example profiling runs and get an idea what the end result from the profile runs look like. To make the
233 profiling more useful you include &amp;lt;coz.h&amp;gt; and insert the
234 COZ_PROGRESS or COZ_BEGIN and COZ_END at appropriate places in the
235 code, rebuild and run the profiler. This allow coz to do more
236 targeted experiments.&lt;/p&gt;
237
238 &lt;p&gt;A video published by ACM
239 &lt;a href=&quot;https://www.youtube.com/watch?v=jE0V-p1odPg&quot;&gt;presenting the
240 Coz profiler&lt;/a&gt; is available from Youtube. There is also a paper
241 from the 25th Symposium on Operating Systems Principles available
242 titled
243 &lt;a href=&quot;https://www.usenix.org/conference/atc16/technical-sessions/presentation/curtsinger&quot;&gt;Coz:
244 finding code that counts with causal profiling&lt;/a&gt;.&lt;/p&gt;
245
246 &lt;p&gt;&lt;a href=&quot;https://github.com/plasma-umass/coz&quot;&gt;The source code&lt;/a&gt;
247 for Coz is available from github. It will only build with clang
248 because it uses a
249 &lt;a href=&quot;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606&quot;&gt;C++
250 feature missing in GCC&lt;/a&gt;, but I&#39;ve submitted
251 &lt;a href=&quot;https://github.com/plasma-umass/coz/pull/67&quot;&gt;a patch to solve
252 it&lt;/a&gt; and hope it will be included in the upstream source soon.&lt;/p&gt;
253
254 &lt;p&gt;Please get in touch if you, like me, would like to see this piece
255 of software in Debian. I would very much like some help with the
256 packaging effort, as I lack the in depth knowledge on how to package
257 C++ libraries.&lt;/p&gt;
258 </description>
259 </item>
260
261 <item>
262 <title>Sales number for the Free Culture translation, first half of 2016</title>
263 <link>http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html</link>
264 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html</guid>
265 <pubDate>Fri, 5 Aug 2016 22:45:00 +0200</pubDate>
266 <description>&lt;p&gt;As my regular readers probably remember, the last year I published
267 a French and Norwegian translation of the classic
268 &lt;a href=&quot;http://www.free-culture.cc/&quot;&gt;Free Culture book&lt;/a&gt; by the
269 founder of the Creative Commons movement, Lawrence Lessig. A bit less
270 known is the fact that due to the way I created the translations,
271 using docbook and po4a, I also recreated the English original. And
272 because I already had created a new the PDF edition, I published it
273 too. The revenue from the books are sent to the Creative Commons
274 Corporation. In other words, I do not earn any money from this
275 project, I just earn the warm fuzzy feeling that the text is available
276 for a wider audience and more people can learn why the Creative
277 Commons is needed.&lt;/p&gt;
278
279 &lt;p&gt;Today, just for fun, I had a look at the sales number over at
280 Lulu.com, which take care of payment, printing and shipping. Much to
281 my surprise, the English edition is selling better than both the
282 French and Norwegian edition, despite the fact that it has been
283 available in English since it was first published. In total, 24 paper
284 books was sold for USD $19.99 between 2016-01-01 and 2016-07-31:&lt;/p&gt;
285
286 &lt;table border=&quot;0&quot;&gt;
287 &lt;tr&gt;&lt;th&gt;Title / language&lt;/th&gt;&lt;th&gt;Quantity&lt;/th&gt;&lt;/tr&gt;
288 &lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-22645082.html&quot;&gt;Culture Libre / French&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;3&lt;/td&gt;&lt;/tr&gt;
289 &lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://www.lulu.com/shop/lawrence-lessig/fri-kultur/paperback/product-22441576.html&quot;&gt;Fri kultur / Norwegian&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;7&lt;/td&gt;&lt;/tr&gt;
290 &lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://www.lulu.com/shop/lawrence-lessig/free-culture/paperback/product-22440520.html&quot;&gt;Free Culture / English&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;14&lt;/td&gt;&lt;/tr&gt;
291 &lt;/table&gt;
292
293 &lt;p&gt;The books are available both from Lulu.com and from large book
294 stores like Amazon and Barnes&amp;Noble. Most revenue, around $10 per
295 book, is sent to the Creative Commons project when the book is sold
296 directly by Lulu.com. The other channels give less revenue. The
297 summary from Lulu tell me 10 books was sold via the Amazon channel, 10
298 via Ingram (what is this?) and 4 directly by Lulu. And Lulu.com tells
299 me that the revenue sent so far this year is USD $101.42. No idea
300 what kind of sales numbers to expect, so I do not know if that is a
301 good amount of sales for a 10 year old book or not. But it make me
302 happy that the buyers find the book, and I hope they enjoy reading it
303 as much as I did.&lt;/p&gt;
304
305 &lt;p&gt;The ebook edition is available for free from
306 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;Github&lt;/a&gt;.&lt;/p&gt;
307
308 &lt;p&gt;If you would like to translate and publish the book in your native
309 language, I would be happy to help make it happen. Please get in
310 touch.&lt;/p&gt;
311 </description>
312 </item>
313
314 <item>
315 <title>Vitenskapen tar som vanlig feil igjen - relativt feil</title>
316 <link>http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html</link>
317 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html</guid>
318 <pubDate>Mon, 1 Aug 2016 16:00:00 +0200</pubDate>
319 <description>&lt;p&gt;For mange år siden leste jeg en klassisk tekst som gjorde såpass
320 inntrykk på meg at jeg husker den fortsatt, flere år senere, og bruker
321 argumentene fra den stadig vekk. Teksten var «The Relativity of
322 Wrong» som Isaac Asimov publiserte i Skeptical Inquirer i 1989. Den
323 gir litt perspektiv rundt formidlingen av vitenskapelige resultater.
324 Jeg har hatt lyst til å kunne dele den også med folk som ikke
325 behersker engelsk så godt, som barn og noen av mine eldre slektninger,
326 og har savnet å ha den tilgjengelig på norsk. For to uker siden tok
327 jeg meg sammen og kontaktet Asbjørn Dyrendal i foreningen Skepsis om
328 de var interessert i å publisere en norsk utgave på bloggen sin, og da
329 han var positiv tok jeg kontakt med Skeptical Inquirer og spurte om
330 det var greit for dem. I løpet av noen dager fikk vi tilbakemelding
331 fra Barry Karr hos The Skeptical Inquirer som hadde sjekket og fått OK
332 fra Robyn Asimov som representerte arvingene i Asmiov-familien og gikk
333 igang med oversettingen.&lt;/p&gt;
334
335 &lt;p&gt;Resultatet, &lt;a href=&quot;http://www.skepsis.no/?p=1617&quot;&gt;«Relativt
336 feil»&lt;/a&gt;, ble publisert på skepsis-bloggen for noen minutter siden.
337 Jeg anbefaler deg på det varmeste å lese denne teksten og dele den med
338 dine venner.&lt;/p&gt;
339
340 &lt;p&gt;For å håndtere oversettelsen og sikre at original og oversettelse
341 var i sync brukte vi git, po4a, GNU make og Transifex. Det hele
342 fungerte utmerket og gjorde det enkelt å dele tekstene og jobbe sammen
343 om finpuss på formuleringene. Hadde hosted.weblate.org latt meg
344 opprette nye prosjekter selv i stedet for å måtte kontakte
345 administratoren der, så hadde jeg brukt weblate i stedet.&lt;/p&gt;
346 </description>
347 </item>
348
349 <item>
350 <title>Techno TV broadcasting live across Norway and the Internet (#debconf16, #nuug) on @frikanalen</title>
351 <link>http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html</link>
352 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html</guid>
353 <pubDate>Mon, 1 Aug 2016 10:30:00 +0200</pubDate>
354 <description>&lt;p&gt;Did you know there is a TV channel broadcasting talks from DebConf
355 16 across an entire country? Or that there is a TV channel
356 broadcasting talks by or about
357 &lt;a href=&quot;http://beta.frikanalen.no/video/625529/&quot;&gt;Linus Torvalds&lt;/a&gt;,
358 &lt;a href=&quot;http://beta.frikanalen.no/video/625599/&quot;&gt;Tor&lt;/a&gt;,
359 &lt;a href=&quot;http://beta.frikanalen.no/video/624019/&quot;&gt;OpenID&lt;/A&gt;,
360 &lt;a href=&quot;http://beta.frikanalen.no/video/625624/&quot;&gt;Common Lisp&lt;/a&gt;,
361 &lt;a href=&quot;http://beta.frikanalen.no/video/625446/&quot;&gt;Civic Tech&lt;/a&gt;,
362 &lt;a href=&quot;http://beta.frikanalen.no/video/625090/&quot;&gt;EFF founder John Barlow&lt;/a&gt;,
363 &lt;a href=&quot;http://beta.frikanalen.no/video/625432/&quot;&gt;how to make 3D
364 printer electronics&lt;/a&gt; and many more fascinating topics? It works
365 using only free software (all of it
366 &lt;a href=&quot;http://github.com/Frikanalen&quot;&gt;available from Github&lt;/a&gt;), and
367 is administrated using a web browser and a web API.&lt;/p&gt;
368
369 &lt;p&gt;The TV channel is the Norwegian open channel
370 &lt;a href=&quot;http://www.frikanalen.no/&quot;&gt;Frikanalen&lt;/a&gt;, and I am involved
371 via &lt;a href=&quot;https://www.nuug.no/&quot;&gt;the NUUG member association&lt;/a&gt; in
372 running and developing the software for the channel. The channel is
373 organised as a member organisation where its members can upload and
374 broadcast what they want (think of it as Youtube for national
375 broadcasting television). Individuals can broadcast too. The time
376 slots are handled on a first come, first serve basis. Because the
377 channel have almost no viewers and very few active members, we can
378 experiment with TV technology without too much flack when we make
379 mistakes. And thanks to the few active members, most of the slots on
380 the schedule are free. I see this as an opportunity to spread
381 knowledge about technology and free software, and have a script I run
382 regularly to fill up all the open slots the next few days with
383 technology related video. The end result is a channel I like to
384 describe as Techno TV - filled with interesting talks and
385 presentations.&lt;/p&gt;
386
387 &lt;p&gt;It is available on channel 50 on the Norwegian national digital TV
388 network (RiksTV). It is also available as a multicast stream on
389 Uninett. And finally, it is available as
390 &lt;a href=&quot;http://beta.frikanalen.no/&quot;&gt;a WebM unicast stream&lt;/a&gt; from
391 Frikanalen and NUUG. Check it out. :)&lt;/p&gt;
392 </description>
393 </item>
394
395 <item>
396 <title>Unlocking HTC Desire HD on Linux using unruu and fastboot</title>
397 <link>http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html</link>
398 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html</guid>
399 <pubDate>Thu, 7 Jul 2016 11:30:00 +0200</pubDate>
400 <description>&lt;p&gt;Yesterday, I tried to unlock a HTC Desire HD phone, and it proved
401 to be a slight challenge. Here is the recipe if I ever need to do it
402 again. It all started by me wanting to try the recipe to set up
403 &lt;a href=&quot;https://blog.torproject.org/blog/mission-impossible-hardening-android-security-and-privacy&quot;&gt;an
404 hardened Android installation&lt;/a&gt; from the Tor project blog on a
405 device I had access to. It is a old mobile phone with a broken
406 microphone The initial idea had been to just
407 &lt;a href=&quot;http://wiki.cyanogenmod.org/w/Install_CM_for_ace&quot;&gt;install
408 CyanogenMod on it&lt;/a&gt;, but did not quite find time to start on it
409 until a few days ago.&lt;/p&gt;
410
411 &lt;p&gt;The unlock process is supposed to be simple: (1) Boot into the boot
412 loader (press volume down and power at the same time), (2) select
413 &#39;fastboot&#39; before (3) connecting the device via USB to a Linux
414 machine, (4) request the device identifier token by running &#39;fastboot
415 oem get_identifier_token&#39;, (5) request the device unlocking key using
416 the &lt;a href=&quot;http://www.htcdev.com/bootloader/&quot;&gt;HTC developer web
417 site&lt;/a&gt; and unlock the phone using the key file emailed to you.&lt;/p&gt;
418
419 &lt;p&gt;Unfortunately, this only work fi you have hboot version 2.00.0029
420 or newer, and the device I was working on had 2.00.0027. This
421 apparently can be easily fixed by downloading a Windows program and
422 running it on your Windows machine, if you accept the terms Microsoft
423 require you to accept to use Windows - which I do not. So I had to
424 come up with a different approach. I got a lot of help from AndyCap
425 on #nuug, and would not have been able to get this working without
426 him.&lt;/p&gt;
427
428 &lt;p&gt;First I needed to extract the hboot firmware from
429 &lt;a href=&quot;http://www.htcdev.com/ruu/PD9810000_Ace_Sense30_S_hboot_2.00.0029.exe&quot;&gt;the
430 windows binary for HTC Desire HD&lt;/a&gt; downloaded as &#39;the RUU&#39; from HTC.
431 For this there is is &lt;a href=&quot;https://github.com/kmdm/unruu/&quot;&gt;a github
432 project named unruu&lt;/a&gt; using libunshield. The unshield tool did not
433 recognise the file format, but unruu worked and extracted rom.zip,
434 containing the new hboot firmware and a text file describing which
435 devices it would work for.&lt;/p&gt;
436
437 &lt;p&gt;Next, I needed to get the new firmware into the device. For this I
438 followed some instructions
439 &lt;a href=&quot;http://www.htc1guru.com/2013/09/new-ruu-zips-posted/&quot;&gt;available
440 from HTC1Guru.com&lt;/a&gt;, and ran these commands as root on a Linux
441 machine with Debian testing:&lt;/p&gt;
442
443 &lt;p&gt;&lt;pre&gt;
444 adb reboot-bootloader
445 fastboot oem rebootRUU
446 fastboot flash zip rom.zip
447 fastboot flash zip rom.zip
448 fastboot reboot
449 &lt;/pre&gt;&lt;/p&gt;
450
451 &lt;p&gt;The flash command apparently need to be done twice to take effect,
452 as the first is just preparations and the second one do the flashing.
453 The adb command is just to get to the boot loader menu, so turning the
454 device on while holding volume down and the power button should work
455 too.&lt;/p&gt;
456
457 &lt;p&gt;With the new hboot version in place I could start following the
458 instructions on the HTC developer web site. I got the device token
459 like this:&lt;/p&gt;
460
461 &lt;p&gt;&lt;pre&gt;
462 fastboot oem get_identifier_token 2&gt;&amp;1 | sed &#39;s/(bootloader) //&#39;
463 &lt;/pre&gt;
464
465 &lt;p&gt;And once I got the unlock code via email, I could use it like
466 this:&lt;/p&gt;
467
468 &lt;p&gt;&lt;pre&gt;
469 fastboot flash unlocktoken Unlock_code.bin
470 &lt;/pre&gt;&lt;/p&gt;
471
472 &lt;p&gt;And with that final step in place, the phone was unlocked and I
473 could start stuffing the software of my own choosing into the device.
474 So far I only inserted a replacement recovery image to wipe the phone
475 before I start. We will see what happen next. Perhaps I should
476 install &lt;a href=&quot;https://www.debian.org/&quot;&gt;Debian&lt;/a&gt; on it. :)&lt;/p&gt;
477 </description>
478 </item>
479
480 <item>
481 <title>How to use the Signal app if you only have a land line (ie no mobile phone)</title>
482 <link>http://people.skolelinux.org/pere/blog/How_to_use_the_Signal_app_if_you_only_have_a_land_line__ie_no_mobile_phone_.html</link>
483 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/How_to_use_the_Signal_app_if_you_only_have_a_land_line__ie_no_mobile_phone_.html</guid>
484 <pubDate>Sun, 3 Jul 2016 14:20:00 +0200</pubDate>
485 <description>&lt;p&gt;For a while now, I have wanted to test
486 &lt;a href=&quot;https://whispersystems.org/&quot;&gt;the Signal app&lt;/a&gt;, as it is
487 said to provide end to end encrypted communication and several of my
488 friends and family are already using it. As I by choice do not own a
489 mobile phone, this proved to be harder than expected. And I wanted to
490 have the source of the client and know that it was the code used on my
491 machine. But yesterday I managed to get it working. I used the
492 Github source, compared it to the source in
493 &lt;a href=&quot;https://chrome.google.com/webstore/detail/signal-private-messenger/bikioccmkafdpakkkcpdbppfkghcmihk?hl=en-US&quot;&gt;the
494 Signal Chrome app&lt;/a&gt; available from the Chrome web store, applied
495 patches to use the production Signal servers, started the app and
496 asked for the hidden &quot;register without a smart phone&quot; form. Here is
497 the recipe how I did it.&lt;/p&gt;
498
499 &lt;p&gt;First, I fetched the Signal desktop source from Github, using
500
501 &lt;pre&gt;
502 git clone https://github.com/WhisperSystems/Signal-Desktop.git
503 &lt;/pre&gt;
504
505 &lt;p&gt;Next, I patched the source to use the production servers, to be
506 able to talk to other Signal users:&lt;/p&gt;
507
508 &lt;pre&gt;
509 cat &amp;lt;&amp;lt;EOF | patch -p0
510 diff -ur ./js/background.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/0.15.0_0/js/background.js
511 --- ./js/background.js 2016-06-29 13:43:15.630344628 +0200
512 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/0.15.0_0/js/background.js 2016-06-29 14:06:29.530300934 +0200
513 @@ -47,8 +47,8 @@
514 });
515 });
516
517 - var SERVER_URL = &#39;https://textsecure-service-staging.whispersystems.org&#39;;
518 - var ATTACHMENT_SERVER_URL = &#39;https://whispersystems-textsecure-attachments-staging.s3.amazonaws.com&#39;;
519 + var SERVER_URL = &#39;https://textsecure-service-ca.whispersystems.org:4433&#39;;
520 + var ATTACHMENT_SERVER_URL = &#39;https://whispersystems-textsecure-attachments.s3.amazonaws.com&#39;;
521 var messageReceiver;
522 window.getSocketStatus = function() {
523 if (messageReceiver) {
524 diff -ur ./js/expire.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/0.15.0_0/js/expire.js
525 --- ./js/expire.js 2016-06-29 13:43:15.630344628 +0200
526 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/0.15.0_0/js/expire.js2016-06-29 14:06:29.530300934 +0200
527 @@ -1,6 +1,6 @@
528 ;(function() {
529 &#39;use strict&#39;;
530 - var BUILD_EXPIRATION = 0;
531 + var BUILD_EXPIRATION = 1474492690000;
532
533 window.extension = window.extension || {};
534
535 EOF
536 &lt;/pre&gt;
537
538 &lt;p&gt;The first part is changing the servers, and the second is updating
539 an expiration timestamp. This timestamp need to be updated regularly.
540 It is set 90 days in the future by the build process (Gruntfile.js).
541 The value is seconds since 1970 times 1000, as far as I can tell.&lt;/p&gt;
542
543 &lt;p&gt;Based on a tip and good help from the #nuug IRC channel, I wrote a
544 script to launch Signal in Chromium.&lt;/p&gt;
545
546 &lt;pre&gt;
547 #!/bin/sh
548 cd $(dirname $0)
549 mkdir -p userdata
550 exec chromium \
551 --proxy-server=&quot;socks://localhost:9050&quot; \
552 --user-data-dir=`pwd`/userdata --load-and-launch-app=`pwd`
553 &lt;/pre&gt;
554
555 &lt;p&gt; The script start the app and configure Chromium to use the Tor
556 SOCKS5 proxy to make sure those controlling the Signal servers (today
557 Amazon and Whisper Systems) as well as those listening on the lines
558 will have a harder time location my laptop based on the Signal
559 connections if they use source IP address.&lt;/p&gt;
560
561 &lt;p&gt;When the script starts, one need to follow the instructions under
562 &quot;Standalone Registration&quot; in the CONTRIBUTING.md file in the git
563 repository. I right clicked on the Signal window to get up the
564 Chromium debugging tool, visited the &#39;Console&#39; tab and wrote
565 &#39;extension.install(&quot;standalone&quot;)&#39; on the console prompt to get the
566 registration form. Then I entered by land line phone number and
567 pressed &#39;Call&#39;. 5 seconds later the phone rang and a robot voice
568 repeated the verification code three times. After entering the number
569 into the verification code field in the form, I could start using
570 Signal from my laptop.
571
572 &lt;p&gt;As far as I can tell, The Signal app will leak who is talking to
573 whom and thus who know who to those controlling the central server,
574 but such leakage is hard to avoid with a centrally controlled server
575 setup. It is something to keep in mind when using Signal - the
576 content of your chats are harder to intercept, but the meta data
577 exposing your contact network is available to people you do not know.
578 So better than many options, but not great. And sadly the usage is
579 connected to my land line, thus allowing those controlling the server
580 to associate it to my home and person. I would prefer it if only
581 those I knew could tell who I was on Signal. There are options
582 avoiding such information leakage, but most of my friends are not
583 using them, so I am stuck with Signal for now.&lt;/p&gt;
584 </description>
585 </item>
586
587 <item>
588 <title>The new &quot;best&quot; multimedia player in Debian?</title>
589 <link>http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html</link>
590 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html</guid>
591 <pubDate>Mon, 6 Jun 2016 12:50:00 +0200</pubDate>
592 <description>&lt;p&gt;When I set out a few weeks ago to figure out
593 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html&quot;&gt;which
594 multimedia player in Debian claimed to support most file formats /
595 MIME types&lt;/a&gt;, I was a bit surprised how varied the sets of MIME types
596 the various players claimed support for. The range was from 55 to 130
597 MIME types. I suspect most media formats are supported by all
598 players, but this is not really reflected in the MimeTypes values in
599 their desktop files. There are probably also some bogus MIME types
600 listed, but it is hard to identify which one this is.&lt;/p&gt;
601
602 &lt;p&gt;Anyway, in the mean time I got in touch with upstream for some of
603 the players suggesting to add more MIME types to their desktop files,
604 and decided to spend some time myself improving the situation for my
605 favorite media player VLC. The fixes for VLC entered Debian unstable
606 yesterday. The complete list of MIME types can be seen on the
607 &lt;a href=&quot;https://wiki.debian.org/DebianMultimedia/PlayerSupport&quot;&gt;Multimedia
608 player MIME type support status&lt;/a&gt; Debian wiki page.&lt;/p&gt;
609
610 &lt;p&gt;The new &quot;best&quot; multimedia player in Debian? It is VLC, followed by
611 totem, parole, kplayer, gnome-mpv, mpv, smplayer, mplayer-gui and
612 kmplayer. I am sure some of the other players desktop files support
613 several of the formats currently listed as working only with vlc,
614 toten and parole.&lt;/p&gt;
615
616 &lt;p&gt;A sad observation is that only 14 MIME types are listed as
617 supported by all the tested multimedia players in Debian in their
618 desktop files: audio/mpeg, audio/vnd.rn-realaudio, audio/x-mpegurl,
619 audio/x-ms-wma, audio/x-scpls, audio/x-wav, video/mp4, video/mpeg,
620 video/quicktime, video/vnd.rn-realvideo, video/x-matroska,
621 video/x-ms-asf, video/x-ms-wmv and video/x-msvideo. Personally I find
622 it sad that video/ogg and video/webm is not supported by all the media
623 players in Debian. As far as I can tell, all of them can handle both
624 formats.&lt;/p&gt;
625 </description>
626 </item>
627
628 <item>
629 <title>A program should be able to open its own files on Linux</title>
630 <link>http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html</link>
631 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html</guid>
632 <pubDate>Sun, 5 Jun 2016 08:30:00 +0200</pubDate>
633 <description>&lt;p&gt;Many years ago, when koffice was fresh and with few users, I
634 decided to test its presentation tool when making the slides for a
635 talk I was giving for NUUG on Japhar, a free Java virtual machine. I
636 wrote the first draft of the slides, saved the result and went to bed
637 the day before I would give the talk. The next day I took a plane to
638 the location where the meeting should take place, and on the plane I
639 started up koffice again to polish the talk a bit, only to discover
640 that kpresenter refused to load its own data file. I cursed a bit and
641 started making the slides again from memory, to have something to
642 present when I arrived. I tested that the saved files could be
643 loaded, and the day seemed to be rescued. I continued to polish the
644 slides until I suddenly discovered that the saved file could no longer
645 be loaded into kpresenter. In the end I had to rewrite the slides
646 three times, condensing the content until the talk became shorter and
647 shorter. After the talk I was able to pinpoint the problem &amp;ndash;
648 kpresenter wrote inline images in a way itself could not understand.
649 Eventually that bug was fixed and kpresenter ended up being a great
650 program to make slides. The point I&#39;m trying to make is that we
651 expect a program to be able to load its own data files, and it is
652 embarrassing to its developers if it can&#39;t.&lt;/p&gt;
653
654 &lt;p&gt;Did you ever experience a program failing to load its own data
655 files from the desktop file browser? It is not a uncommon problem. A
656 while back I discovered that the screencast recorder
657 gtk-recordmydesktop would save an Ogg Theora video file the KDE file
658 browser would refuse to open. No video player claimed to understand
659 such file. I tracked down the cause being &lt;tt&gt;file --mime-type&lt;/tt&gt;
660 returning the application/ogg MIME type, which no video player I had
661 installed listed as a MIME type they would understand. I asked for
662 &lt;a href=&quot;http://bugs.gw.com/view.php?id=382&quot;&gt;file to change its
663 behavour&lt;/a&gt; and use the MIME type video/ogg instead. I also asked
664 several video players to add video/ogg to their desktop files, to give
665 the file browser an idea what to do about Ogg Theora files. After a
666 while, the desktop file browsers in Debian started to handle the
667 output from gtk-recordmydesktop properly.&lt;/p&gt;
668
669 &lt;p&gt;But history repeats itself. A few days ago I tested the music
670 system Rosegarden again, and I discovered that the KDE and xfce file
671 browsers did not know what to do with the Rosegarden project files
672 (*.rg). I&#39;ve reported &lt;a href=&quot;http://bugs.debian.org/825993&quot;&gt;the
673 rosegarden problem to BTS&lt;/a&gt; and a fix is commited to git and will be
674 included in the next upload. To increase the chance of me remembering
675 how to fix the problem next time some program fail to load its files
676 from the file browser, here are some notes on how to fix it.&lt;/p&gt;
677
678 &lt;p&gt;The file browsers in Debian in general operates on MIME types.
679 There are two sources for the MIME type of a given file. The output from
680 &lt;tt&gt;file --mime-type&lt;/tt&gt; mentioned above, and the content of the
681 shared MIME type registry (under /usr/share/mime/). The file MIME
682 type is mapped to programs supporting the MIME type, and this
683 information is collected from
684 &lt;a href=&quot;https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/&quot;&gt;the
685 desktop files&lt;/a&gt; available in /usr/share/applications/. If there is
686 one desktop file claiming support for the MIME type of the file, it is
687 activated when asking to open a given file. If there are more, one
688 can normally select which one to use by right-clicking on the file and
689 selecting the wanted one using &#39;Open with&#39; or similar. In general
690 this work well. But it depend on each program picking a good MIME
691 type (preferably
692 &lt;a href=&quot;http://www.iana.org/assignments/media-types/media-types.xhtml&quot;&gt;a
693 MIME type registered with IANA&lt;/a&gt;), file and/or the shared MIME
694 registry recognizing the file and the desktop file to list the MIME
695 type in its list of supported MIME types.&lt;/p&gt;
696
697 &lt;p&gt;The &lt;tt&gt;/usr/share/mime/packages/rosegarden.xml&lt;/tt&gt; entry for
698 &lt;a href=&quot;http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec&quot;&gt;the
699 Shared MIME database&lt;/a&gt; look like this:&lt;/p&gt;
700
701 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
702 &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
703 &amp;lt;mime-info xmlns=&quot;http://www.freedesktop.org/standards/shared-mime-info&quot;&amp;gt;
704 &amp;lt;mime-type type=&quot;audio/x-rosegarden&quot;&amp;gt;
705 &amp;lt;sub-class-of type=&quot;application/x-gzip&quot;/&amp;gt;
706 &amp;lt;comment&amp;gt;Rosegarden project file&amp;lt;/comment&amp;gt;
707 &amp;lt;glob pattern=&quot;*.rg&quot;/&amp;gt;
708 &amp;lt;/mime-type&amp;gt;
709 &amp;lt;/mime-info&amp;gt;
710 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
711
712 &lt;p&gt;This states that audio/x-rosegarden is a kind of application/x-gzip
713 (it is a gzipped XML file). Note, it is much better to use an
714 official MIME type registered with IANA than it is to make up ones own
715 unofficial ones like the x-rosegarden type used by rosegarden.&lt;/p&gt;
716
717 &lt;p&gt;The desktop file of the rosegarden program failed to list
718 audio/x-rosegarden in its list of supported MIME types, causing the
719 file browsers to have no idea what to do with *.rg files:&lt;/p&gt;
720
721 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
722 % grep Mime /usr/share/applications/rosegarden.desktop
723 MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
724 X-KDE-NativeMimeType=audio/x-rosegarden-composition
725 %
726 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
727
728 &lt;p&gt;The fix was to add &quot;audio/x-rosegarden;&quot; at the end of the
729 MimeType= line.&lt;/p&gt;
730
731 &lt;p&gt;If you run into a file which fail to open the correct program when
732 selected from the file browser, please check out the output from
733 &lt;tt&gt;file --mime-type&lt;/tt&gt; for the file, ensure the file ending and
734 MIME type is registered somewhere under /usr/share/mime/ and check
735 that some desktop file under /usr/share/applications/ is claiming
736 support for this MIME type. If not, please report a bug to have it
737 fixed. :)&lt;/p&gt;
738 </description>
739 </item>
740
741 </channel>
742 </rss>