]> pere.pagekite.me Git - homepage.git/blob - blog/index.html
Improve language.
[homepage.git] / blog / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <title>Petter Reinholdtsen</title>
7 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/style.css" />
8 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/vim.css" />
9 <link rel="alternate" title="RSS Feed" href="http://people.skolelinux.org/pere/blog/index.rss" type="application/rss+xml" />
10 </head>
11 <body>
12 <div class="title">
13 <h1>
14 <a href="http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen</a>
15
16 </h1>
17
18 </div>
19
20
21
22 <div class="entry">
23 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Litt_statistikk_over_offentlige_anbud_annonsert_via_Doffin_siden_2008.html">Litt statistikk over offentlige anbud annonsert via Doffin siden 2008</a></div>
24 <div class="date">11th February 2013</div>
25 <div class="body"><p>For et halvt år siden
26 <a href="http://people.skolelinux.org/pere/blog/SQL_database_med_anbud_publisert_p__Doffin.html">satte
27 jeg opp et system for å lage en database</a> med informasjon om
28 offentlige anbud fra <a href="http://www.doffin.no/">Doffin</a> ved
29 <a href="https://scraperwiki.com/scrapers/norwegian-doffin/">hjelp av
30 Scraperwiki</a>. Nå er databasen så vidt jeg kan se komplett, med
31 data helt tilbake til 2008. Her er litt statistikk over
32 <a href="https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=htmltable&name=norwegian-doffin&query=select%20strftime(%22%25Y-%25m%22%2C%20publishdate)%20as%20publishmonth%2C%20count(*)%20from%20%60swdata%60%20group%20by%20publishmonth%20order%20by%20publishmonth%20desc">antall
33 anbud publisert hver måned</a>:</p>
34
35 <p><table border="1">
36 <tr> <th>Publiseringsmåned</th> <th>Antall</th> </tr>
37 <tr> <td>2013-01</td> <td>1015</td> </tr>
38 <tr> <td>2012-12</td> <td>756</td> </tr>
39 <tr> <td>2012-11</td> <td>979</td> </tr>
40 <tr> <td>2012-10</td> <td>1093</td> </tr>
41 <tr> <td>2012-09</td> <td>1023</td> </tr>
42 <tr> <td>2012-08</td> <td>951</td> </tr>
43 <tr> <td>2012-07</td> <td>1103</td> </tr>
44 <tr> <td>2012-06</td> <td>1334</td> </tr>
45 <tr> <td>2012-05</td> <td>1435</td> </tr>
46 <tr> <td>2012-04</td> <td>1169</td> </tr>
47 <tr> <td>2012-03</td> <td>1573</td> </tr>
48 <tr> <td>2012-02</td> <td>1335</td> </tr>
49 <tr> <td>2012-01</td> <td>1147</td> </tr>
50 <tr> <td>2011-12</td> <td>1045</td> </tr>
51 <tr> <td>2011-11</td> <td>1114</td> </tr>
52 <tr> <td>2011-10</td> <td>1230</td> </tr>
53 <tr> <td>2011-09</td> <td>1165</td> </tr>
54 <tr> <td>2011-08</td> <td>966</td> </tr>
55 <tr> <td>2011-07</td> <td>1148</td> </tr>
56 <tr> <td>2011-06</td> <td>1410</td> </tr>
57 <tr> <td>2011-05</td> <td>1536</td> </tr>
58 <tr> <td>2011-04</td> <td>1350</td> </tr>
59 <tr> <td>2011-03</td> <td>1574</td> </tr>
60 <tr> <td>2011-02</td> <td>1370</td> </tr>
61 <tr> <td>2011-01</td> <td>1049</td> </tr>
62 <tr> <td>2010-12</td> <td>992</td> </tr>
63 <tr> <td>2010-11</td> <td>1089</td> </tr>
64 <tr> <td>2010-10</td> <td>1110</td> </tr>
65 <tr> <td>2010-09</td> <td>1132</td> </tr>
66 <tr> <td>2010-08</td> <td>883</td> </tr>
67 <tr> <td>2010-07</td> <td>1126</td> </tr>
68 <tr> <td>2010-06</td> <td>1440</td> </tr>
69 <tr> <td>2010-05</td> <td>1236</td> </tr>
70 <tr> <td>2010-04</td> <td>1249</td> </tr>
71 <tr> <td>2010-03</td> <td>1556</td> </tr>
72 <tr> <td>2010-02</td> <td>1256</td> </tr>
73 <tr> <td>2010-01</td> <td>1140</td> </tr>
74 <tr> <td>2009-12</td> <td>1013</td> </tr>
75 <tr> <td>2009-11</td> <td>1220</td> </tr>
76 <tr> <td>2009-10</td> <td>1320</td> </tr>
77 <tr> <td>2009-09</td> <td>1294</td> </tr>
78 <tr> <td>2009-08</td> <td>953</td> </tr>
79 <tr> <td>2009-07</td> <td>1162</td> </tr>
80 <tr> <td>2009-06</td> <td>1605</td> </tr>
81 <tr> <td>2009-05</td> <td>1568</td> </tr>
82 <tr> <td>2009-04</td> <td>1522</td> </tr>
83 <tr> <td>2009-03</td> <td>1599</td> </tr>
84 <tr> <td>2009-02</td> <td>1376</td> </tr>
85 <tr> <td>2009-01</td> <td>1080</td> </tr>
86 <tr> <td>2008-12</td> <td>1028</td> </tr>
87 <tr> <td>2008-11</td> <td>949</td> </tr>
88 <tr> <td>2008-10</td> <td>1047</td> </tr>
89 <tr> <td>2008-09</td> <td>965</td> </tr>
90 <tr> <td>2008-08</td> <td>725</td> </tr>
91 <tr> <td>2008-07</td> <td>1015</td> </tr>
92 <tr> <td>2008-06</td> <td>1304</td> </tr>
93 <tr> <td>2008-05</td> <td>323</td> </tr>
94 </table></p>
95
96 <p>Her er tilsvarende
97 <a href="https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=htmltable&name=norwegian-doffin&query=select%20strftime(%22%25Y%22%2C%20publishdate)%20as%20publishyear%2C%20count(*)%20from%20%60swdata%60%20group%20by%20publishyear%20order%20by%20publishyear%20desc">tall
98 per år</a>, som viser en liten nedgang i antall anbud:</p>
99
100 <table border="1">
101 <tr> <th>Publiseringsår</th> <th>Antall</th> </tr>
102 <tr> <td>2012</td> <td>13898</td> </tr>
103 <tr> <td>2011</td> <td>14957</td> </tr>
104 <tr> <td>2010</td> <td>14209</td> </tr>
105 <tr> <td>2009</td> <td>15712</td> </tr>
106 <tr> <td>2008</td> <td>7356</td> </tr>
107 </table></p>
108
109 <p>Jeg troppet den ufullstendige måneden og året fra tabellen. Se
110 lenken for oppdaterte tall.</p>
111 </div>
112 <div class="tags">
113
114
115 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>, <a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn</a>.
116
117
118 </div>
119 </div>
120 <div class="padding"></div>
121
122 <div class="entry">
123 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Sleep_until_morning___home_automation_for_the_kids.html">Sleep until morning - home automation for the kids</a></div>
124 <div class="date">10th February 2013</div>
125 <div class="body"><p><img align="left" style="margin-right:25px;" src="http://people.skolelinux.org/pere/blog/images/2013-02-10-morning-light.jpeg"></p>
126
127 <p>With kids in the house, one challenge is getting them to sleep
128 during the night and wake up when it is morning. I mean, when I
129 believe it is morning, and not two hours earlier. In our household we
130 have decided that 07:00 is the turning point, but getting the kids to
131 sleep until 07:00 is a small challenge every day. They have adapted
132 quite well, and rarely wake up at 05:00 any more, but some times wake
133 up at times like 05:50, 06:15, 06:30 or 06:45, and it is hard to put
134 the awake one to bed again without disturbing and waking the rest.
135 And I understand perfectly well that they fail to sleep until 07:00
136 some times, as there is no way for them to know if it is before or
137 after the magic moment without coming and asking us parents.</p>
138
139 <p>But yesterday I came up with a method to solve this problem. It
140 involve home automation. A few years ago I bought a
141 <a href="http://www.telldus.se/products/tellstick">Tellstick</a> and RF
142 switches at the local <a href="http://www.clasohlson.com/">Clas
143 Ohlson</a> shop, allowing me to control lights and other electrical
144 gadgets using my Linux server. When I moved from the old flat to a
145 small house, I put away all this equipment as most of the lighting in
146 the house was not using wall sockets and thus not easy to connect to
147 the gadgets I had. But recently I bought a
148 <a href="http://www.telldus.se/products/tellstick_net">Tellstick
149 Net</a> to be able to read sensor input as well as control power
150 sockets. I want to control ovens in the basement to avoid the pipes
151 to freeze, and monitor the humidity to detect flooding. The default
152 setup for Tellstick Net is to be controlled by the vendor web service,
153 which to me is a security problem, but it is also possible to build
154 ones own
155 <a href="http://developer.telldus.com/blog/2012/03/02/help-us-develop-local-access-using-tellstick-net-build-your-own-firmware">firmware
156 with local access</A> instead of being controlled by a Swedish
157 company, thanks to the release of the GPL licensed firmware source
158 code. I plan to get that running before I let it control anything
159 important. But while working on this, one idea to make it easier for
160 the kids came to me yesterday. We can set up a night light controlled
161 by the computer, and turn it automatically on at 07:00. The kids can
162 then check the light in the morning to know if they are supposed to
163 get up or not. They joined me in setting everything up, and I
164 repeated the concept several times before bed times to make sure they
165 remembered to check the light before getting up in the morning.</p>
166
167 <p>We tested it this morning, and all the kids stayed in bed until
168 after 07:00, and every one of them commented on the fact that the
169 "morning light" was turned on and signalled that the morning had
170 arrived. So this look like a success, and I am excited to see how
171 this develops the next few days. :) I really hope this can allow us
172 all to sleep a bit longer in the morning.</p>
173
174 <p>A nice advantage of this setup is that we can remote control when
175 to tell the kids to get up. We do not have to wait until 07:00, and
176 can also delay it if we want to.</p>
177 </div>
178 <div class="tags">
179
180
181 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
182
183
184 </div>
185 </div>
186 <div class="padding"></div>
187
188 <div class="entry">
189 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Hva_stemte_hver_stortingsrepresentant_i_voteringene_om_datalagringsdirektivet_.html">Hva stemte hver stortingsrepresentant i voteringene om datalagringsdirektivet?</a></div>
190 <div class="date"> 9th February 2013</div>
191 <div class="body"><p>Nytt stortingsvalg er på trappene, og folket får igjen mulighet til
192 å påvirke sammensetningen i vår lovgivende forsamling. Da er det
193 relevant å vite hvilke representanter og partier som har støttet
194 innføringen av brev- og besøkskontroll av hele den norske
195 befolkningen, det vil si datalagringsdirektivet.</p>
196
197 <p>Hvis du vil vite hva hver enkelt stortingsrepresentant har stemt i
198 stortingsvoteringene om datalagringsdirektivet, så har nettstedet til
199 <a href="http://www.holderdeord.no/">Holder De Ord</a> den (så vidt jeg
200 vet) eneste komplette oversikten på sin temaside om
201 <a href="http://beta.holderdeord.no/issues/innfore-datalagringsdirektivet">innføringen
202 av datalagringsdirektivet</a>. Den har detaljene fra de 11 relevante
203 forslagene som har vært fremmet så lagt. De har vært votert over
204 2011-04-04, 2011-04-11, 2012-06-11, 2012-10-05 og 2012-12-06.</p>
205
206 <p>Hvis du lurer på hva som er problemet med datalagringsdirektivet,
207 anbefaler jeg å lese <a href="http://www.uhuru.biz/?cat=84">artiklene
208 fra Jon Wessel-Aas</a> om temaet, samt informasjon fra foreningen
209 <a href="http://www.digitaltpersonvern.no/">Digitalt
210 Personvern</a>.</p>
211 </div>
212 <div class="tags">
213
214
215 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern</a>, <a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget</a>, <a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance</a>.
216
217
218 </div>
219 </div>
220 <div class="padding"></div>
221
222 <div class="entry">
223 <div class="title"><a href="http://people.skolelinux.org/pere/blog/_kt_overv_kning_applauderes_igjen_av_Arbeiderpartiet__H_yre_og_Fremskrittspartiet.html">Økt overvåkning applauderes igjen av Arbeiderpartiet, Høyre og Fremskrittspartiet</a></div>
224 <div class="date"> 4th February 2013</div>
225 <div class="body"><p>Jeg ser med gru at Arbeiderpartiet, Høyre og Fremskrittspartiet
226 <a href="http://www.aftenposten.no/nyheter/iriks/Positive-til-mer-smuglerovervaking-7110348.html">applauderer
227 tollvesenets forslag</a> om å øke overvåkningen i Norge nok et hakk.
228 Det er ikke så rart, da de som uttaler seg jo også har støttet
229 innføringen av datalagringsdirektivet eller i hvert fall ikke veldig
230 aktivt har motarbeidet det. Innføringen av datalagringsdirektivet er
231 en lovendring som innebærer brev og besøkskontroll for hele
232 befolkningen.</p>
233
234 <p><a href="http://www.stortinget.no/no/Saker-og-publikasjoner/Saker/Sak/?p=48717">Datalagringsdirektivet</a>
235 har vært oppe til votering i stortinget tre ganger så langt. Det ble
236 <a href="http://svartelisten.org/">vedtatt første gang 2011-04-04</a>
237 og
238 <a href="https://github.com/holderdeord/hdo-folketingparser/blob/master/data/votering-2011-04-11.xml">andre
239 gang 2011-04-11</a> (lovendringer voteres to ganger), og forslag om å
240 stoppe loven ble
241 <a href="http://www.stortinget.no/no/Saker-og-publikasjoner/Saker/Sak/Voteringsoversikt/?p=53844&dnid=1">nedstemt
242 2012-12-06</a> (se også
243 <a href="http://beta.holderdeord.no/issues/innfore-datalagringsdirektivet">oversikt fra Holder De
244 Ord</a>).</p>
245
246 <p>Jan Bøhler i Arbeiderpartiet stemte for å innføre
247 datalagringsdirektivet i lovverket i første votering, var ikke
248 tilstede i andre votering og støttet loven i tredje votering. André
249 Oktay Dahl i Høyre var ikke til stede i første og andre votering men
250 støttet loven i tredje votering. Ulf Leirstein i Fremskrittspartiet
251 stemte mot loven i første votering men var ikke til stede i andre og
252 tredje votering.</p>
253
254 <p>Hvis du lurer på hva som er problemet med datalagringsdirektivet,
255 anbefaler jeg å lese <a href="http://www.uhuru.biz/?cat=84">artiklene
256 fra Jon Wessel-Aas</a> om temaet, samt informasjon fra foreningen
257 <a href="http://www.digitaltpersonvern.no/">Digitalt
258 Personvern</a>.</p>
259
260 <p><strong>Oppdatering 2013-03-09</strong>: Endret lenke til Holder De
261 Ord, som har byttet mange lenker i forbindelse med import av
262 voteringsdata for 2010-2011.</p>
263 </div>
264 <div class="tags">
265
266
267 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern</a>, <a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance</a>.
268
269
270 </div>
271 </div>
272 <div class="padding"></div>
273
274 <div class="entry">
275 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Bitcoin_GUI_now_available_from_Debian_unstable__and_Ubuntu_raring_.html">Bitcoin GUI now available from Debian/unstable (and Ubuntu/raring)</a></div>
276 <div class="date"> 2nd February 2013</div>
277 <div class="body"><p>My
278 <a href="http://people.skolelinux.org/pere/blog/How_to_backport_bitcoin_qt_version_0_7_2_2_to_Debian_Squeeze.html">last
279 bitcoin related blog post</a> mentioned that the new
280 <a href="http://packages.qa.debian.org/bitcoin">bitcoin package</a> for
281 Debian was waiting in NEW. It was accepted by the Debian ftp-masters
282 2013-01-19, and have been available in unstable since then. It was
283 automatically copied to Ubuntu, and is available in their Raring
284 version too.</p>
285
286 <p>But there is a strange problem with the build that block this new
287 version from being available on the i386 and kfreebsd-i386
288 architectures. For some strange reason, the autobuilders in Debian
289 for these architectures fail to run the test suite on these
290 architectures (<a href="http://bugs.debian.org/672524">BTS #672524</a>).
291 We are so far unable to reproduce it when building it manually, and
292 no-one have been able to propose a fix. If you got an idea what is
293 failing, please let us know via the BTS.</p>
294
295 <p>One feature that is annoying me with of the bitcoin client, because
296 I often run low on disk space, is the fact that the client will exit
297 if it run short on space (<a href="http://bugs.debian.org/696715">BTS
298 #696715</a>). So make sure you have enough disk space when you run
299 it. :)</p>
300
301 <p>As usual, if you use bitcoin and want to show your support of my
302 activities, please send Bitcoin donations to my address
303 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&label=PetterReinholdtsenBlog">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
304 </div>
305 <div class="tags">
306
307
308 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin</a>, <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
309
310
311 </div>
312 </div>
313 <div class="padding"></div>
314
315 <div class="entry">
316 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Welcome_to_the_world__Isenkram_.html">Welcome to the world, Isenkram!</a></div>
317 <div class="date">22nd January 2013</div>
318 <div class="body"><p>Yesterday, I
319 <a href="http://people.skolelinux.org/pere/blog/First_prototype_ready_making_hardware_easier_to_use_in_Debian.html">asked
320 for testers</a> for my prototype for making Debian better at handling
321 pluggable hardware devices, which I
322 <a href="http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html">set
323 out to create</a> earlier this month. Several valuable testers showed
324 up, and caused me to really want to to open up the development to more
325 people. But before I did this, I want to come up with a sensible name
326 for this project. Today I finally decided on a new name, and I have
327 renamed the project from hw-support-handler to this new name. In the
328 process, I moved the source to git and made it available as a
329 <a href="http://anonscm.debian.org/gitweb/?p=collab-maint/isenkram.git">collab-maint</a>
330 repository in Debian. The new name? It is <strong>Isenkram</strong>.
331 To fetch and build the latest version of the source, use</p>
332
333 <pre>
334 git clone http://anonscm.debian.org/git/collab-maint/isenkram.git
335 cd isenkram && git-buildpackage -us -uc
336 </pre>
337
338 <p>I have not yet adjusted all files to use the new name yet. If you
339 want to hack on the source or improve the package, please go ahead.
340 But please talk to me first on IRC or via email before you do major
341 changes, to make sure we do not step on each others toes. :)</p>
342
343 <p>If you wonder what 'isenkram' is, it is a Norwegian word for iron
344 stuff, typically meaning tools, nails, screws, etc. Typical hardware
345 stuff, in other words. I've been told it is the Norwegian variant of
346 the German word eisenkram, for those that are familiar with that
347 word.</p>
348
349 <p><strong>Update 2013-01-26</strong>: Added -us -us to build
350 instructions, to avoid confusing people with an error from the signing
351 process.</p>
352
353 <p><strong>Update 2013-01-27</strong>: Switch to HTTP URL for the git
354 clone argument to avoid the need for authentication.</p>
355 </div>
356 <div class="tags">
357
358
359 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram</a>.
360
361
362 </div>
363 </div>
364 <div class="padding"></div>
365
366 <div class="entry">
367 <div class="title"><a href="http://people.skolelinux.org/pere/blog/First_prototype_ready_making_hardware_easier_to_use_in_Debian.html">First prototype ready making hardware easier to use in Debian</a></div>
368 <div class="date">21st January 2013</div>
369 <div class="body"><p>Early this month I set out to try to
370 <a href="http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html">improve
371 the Debian support for pluggable hardware devices</a>. Now my
372 prototype is working, and it is ready for a larger audience. To test
373 it, fetch the
374 <a href="http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/">source
375 from the Debian Edu subversion repository</a>, build and install the
376 package. You might have to log out and in again activate the
377 autostart script.</p>
378
379 <p>The design is simple:</p>
380
381 <ul>
382
383 <li>Add desktop entry in /usr/share/autostart/ causing a program
384 hw-support-handlerd to start when the user log in.</li>
385
386 <li>This program listen for kernel events about new hardware (directly
387 from the kernel like udev does), not using HAL dbus events as I
388 initially did.</li>
389
390 <li>When new hardware is inserted, look up the hardware modalias in
391 the APT database, a database
392 <a href="http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/modaliases?view=markup">available
393 via HTTP</a> and a database available as part of the package.</li>
394
395 <li>If a package is mapped to the hardware in question, the package
396 isn't installed yet and this is the first time the hardware was
397 plugged in, show a desktop notification suggesting to install the
398 package or packages.</li>
399
400 <li>If the user click on the 'install package now' button, ask
401 aptdaemon via the PackageKit API to install the requrired package.</li>
402
403 <li>aptdaemon ask for root password or sudo password, and install the
404 package while showing progress information in a window.</li>
405
406 </ul>
407
408 <p>I still need to come up with a better name for the system. Here
409 are some screen shots showing the prototype in action. First the
410 notification, then the password request, and finally the request to
411 approve all the dependencies. Sorry for the Norwegian Bokmål GUI.</p>
412
413 <p><img src="http://people.skolelinux.org/pere/blog/images/2013-01-21-hw-support-1-notification.png">
414 <br><img src="http://people.skolelinux.org/pere/blog/images/2013-01-21-hw-support-2-password.png">
415 <br><img src="http://people.skolelinux.org/pere/blog/images/2013-01-21-hw-support-3-dependencies.png">
416 <br><img src="http://people.skolelinux.org/pere/blog/images/2013-01-21-hw-support-4-installing.png">
417 <br><img src="http://people.skolelinux.org/pere/blog/images/2013-01-21-hw-support-5-installing-details.png" width="70%"></p>
418
419 <p>The prototype still need to be improved with longer timeouts, but
420 is already useful. The database of hardware to package mappings also
421 need more work. It is currently compatible with the Ubuntu way of
422 storing such information in the package control file, but could be
423 changed to use other formats instead or in addition to the current
424 method. I've dropped the use of discover for this mapping, as the
425 modalias approach is more flexible and easier to use on Linux as long
426 as the Linux kernel expose its modalias strings directly.</p>
427
428 <p><strong>Update 2013-01-21 16:50</strong>: Due to popular demand,
429 here is the command required to check out and build the source: Use
430 '<tt>svn checkout
431 svn://svn.debian.org/debian-edu/trunk/src/hw-support-handler/; cd
432 hw-support-handler; debuild</tt>'. If you lack debuild, install the
433 devscripts package.</p>
434
435 <p><strong>Update 2013-01-23 12:00</strong>: The project is now
436 renamed to Isenkram and the source moved from the Debian Edu
437 subversion repository to a Debian collab-maint git repository. See
438 <a href="http://people.skolelinux.org/pere/blog/Welcome_to_the_world__Isenkram_.html">build
439 instructions</a> for details.</p>
440 </div>
441 <div class="tags">
442
443
444 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram</a>.
445
446
447 </div>
448 </div>
449 <div class="padding"></div>
450
451 <div class="entry">
452 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Thank_you_Thinkpad_X41__for_your_long_and_trustworthy_service.html">Thank you Thinkpad X41, for your long and trustworthy service</a></div>
453 <div class="date">19th January 2013</div>
454 <div class="body"><p>This Christmas my trusty old laptop died. It died quietly and
455 suddenly in bed. With a quiet whimper, it went completely quiet and
456 black. The power button was no longer able to turn it on. It was a
457 IBM Thinkpad X41, and the best laptop I ever had. Better than both
458 Thinkpads X30, X31, X40, X60, X61 and X61S. Far better than the
459 Compaq I had before that. Now I need to find a replacement. To keep
460 going during Christmas, I moved the one year old SSD disk to my old
461 X40 where it fitted (only one I had left that could use it), but it is
462 not a durable solution.
463
464 <p>My laptop needs are fairly modest. This is my wishlist from when I
465 got a new one more than 10 years ago. It still holds true.:)</p>
466
467 <ul>
468
469 <li>Lightweight (around 1 kg) and small volume (preferably smaller
470 than A4).</li>
471 <li>Robust, it will be in my backpack every day.</li>
472 <li>Three button mouse and a mouse pin instead of touch pad.</li>
473 <li>Long battery life time. Preferable a week.</li>
474 <li>Internal WIFI network card.</li>
475 <li>Internal Twisted Pair network card.</li>
476 <li>Some USB slots (2-3 is plenty)</li>
477 <li>Good keyboard - similar to the Thinkpad.</li>
478 <li>Video resolution at least 1024x768, with size around 12" (A4 paper
479 size).</li>
480 <li>Hardware supported by Debian Stable, ie the default kernel and
481 X.org packages.</li>
482 <li>Quiet, preferably fan free (or at least not using the fan most of
483 the time).
484
485 </ul>
486
487 <p>You will notice that there are no RAM and CPU requirements in the
488 list. The reason is simply that the specifications on laptops the
489 last 10-15 years have been sufficient for my needs, and I have to look
490 at other features to choose my laptop. But are there still made as
491 robust laptops as my X41? The Thinkpad X60/X61 proved to be less
492 robust, and Thinkpads seem to be heading in the wrong direction since
493 Lenovo took over. But I've been told that X220 and X1 Carbon might
494 still be useful.</p>
495
496 <p>Perhaps I should rethink my needs, and look for a pad with an
497 external keyboard? I'll have to check the
498 <a href="http://www.linux-laptop.net/">Linux Laptops site</a> for
499 well-supported laptops, or perhaps just buy one preinstalled from one
500 of the vendors listed on the <a href="http://linuxpreloaded.com/">Linux
501 Pre-loaded site</a>.</p>
502 </div>
503 <div class="tags">
504
505
506 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
507
508
509 </div>
510 </div>
511 <div class="padding"></div>
512
513 <div class="entry">
514 <div class="title"><a href="http://people.skolelinux.org/pere/blog/How_to_find_a_browser_plugin_supporting_a_given_MIME_type.html">How to find a browser plugin supporting a given MIME type</a></div>
515 <div class="date">18th January 2013</div>
516 <div class="body"><p>Some times I try to figure out which Iceweasel browser plugin to
517 install to get support for a given MIME type. Thanks to
518 <a href="https://wiki.ubuntu.com/MozillaTeam/Plugins">specifications
519 done by Ubuntu</a> and Mozilla, it is possible to do this in Debian.
520 Unfortunately, not very many packages provide the needed meta
521 information, Anyway, here is a small script to look up all browser
522 plugin packages announcing ther MIME support using this specification:</p>
523
524 <pre>
525 #!/usr/bin/python
526 import sys
527 import apt
528 def pkgs_handling_mimetype(mimetype):
529 cache = apt.Cache()
530 cache.open(None)
531 thepkgs = []
532 for pkg in cache:
533 version = pkg.candidate
534 if version is None:
535 version = pkg.installed
536 if version is None:
537 continue
538 record = version.record
539 if not record.has_key('Npp-MimeType'):
540 continue
541 mime_types = record['Npp-MimeType'].split(',')
542 for t in mime_types:
543 t = t.rstrip().strip()
544 if t == mimetype:
545 thepkgs.append(pkg.name)
546 return thepkgs
547 mimetype = "audio/ogg"
548 if 1 < len(sys.argv):
549 mimetype = sys.argv[1]
550 print "Browser plugin packages supporting %s:" % mimetype
551 for pkg in pkgs_handling_mimetype(mimetype):
552 print " %s" %pkg
553 </pre>
554
555 <p>It can be used like this to look up a given MIME type:</p>
556
557 <pre>
558 % ./apt-find-browserplug-for-mimetype
559 Browser plugin packages supporting audio/ogg:
560 gecko-mediaplayer
561 % ./apt-find-browserplug-for-mimetype application/x-shockwave-flash
562 Browser plugin packages supporting application/x-shockwave-flash:
563 browser-plugin-gnash
564 %
565 </pre>
566
567 <p>In Ubuntu this mechanism is combined with support in the browser
568 itself to query for plugins and propose to install the needed
569 packages. It would be great if Debian supported such feature too. Is
570 anyone working on adding it?</p>
571
572 <p><strong>Update 2013-01-18 14:20</strong>: The Debian BTS
573 request for icweasel support for this feature is
574 <a href="http://bugs.debian.org/484010">#484010</a> from 2008 (and
575 <a href="http://bugs.debian.org/698426">#698426</a> from today). Lack
576 of manpower and wish for a different design is the reason thus feature
577 is not yet in iceweasel from Debian.</p>
578 </div>
579 <div class="tags">
580
581
582 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
583
584
585 </div>
586 </div>
587 <div class="padding"></div>
588
589 <div class="entry">
590 <div class="title"><a href="http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html">What is the most supported MIME type in Debian?</a></div>
591 <div class="date">16th January 2013</div>
592 <div class="body"><p>The <a href="http://wiki.debian.org/AppStreamDebianProposal">DEP-11
593 proposal to add AppStream information to the Debian archive</a>, is a
594 proposal to make it possible for a Desktop application to propose to
595 the user some package to install to gain support for a given MIME
596 type, font, library etc. that is currently missing. With such
597 mechanism in place, it would be possible for the desktop to
598 automatically propose and install leocad if some LDraw file is
599 downloaded by the browser.</p>
600
601 <p>To get some idea about the current content of the archive, I decided
602 to write a simple program to extract all .desktop files from the
603 Debian archive and look up the claimed MIME support there. The result
604 can be found on the
605 <a href="http://ftp.skolelinux.org/pub/AppStreamTest">Skolelinux FTP
606 site</a>. Using the collected information, it become possible to
607 answer the question in the title. Here are the 20 most supported MIME
608 types in Debian stable (Squeeze), testing (Wheezy) and unstable (Sid).
609 The complete list is available from the link above.</p>
610
611 <p><strong>Debian Stable:</strong></p>
612
613 <pre>
614 count MIME type
615 ----- -----------------------
616 32 text/plain
617 30 audio/mpeg
618 29 image/png
619 28 image/jpeg
620 27 application/ogg
621 26 audio/x-mp3
622 25 image/tiff
623 25 image/gif
624 22 image/bmp
625 22 audio/x-wav
626 20 audio/x-flac
627 19 audio/x-mpegurl
628 18 video/x-ms-asf
629 18 audio/x-musepack
630 18 audio/x-mpeg
631 18 application/x-ogg
632 17 video/mpeg
633 17 audio/x-scpls
634 17 audio/ogg
635 16 video/x-ms-wmv
636 </pre>
637
638 <p><strong>Debian Testing:</strong></p>
639
640 <pre>
641 count MIME type
642 ----- -----------------------
643 33 text/plain
644 32 image/png
645 32 image/jpeg
646 29 audio/mpeg
647 27 image/gif
648 26 image/tiff
649 26 application/ogg
650 25 audio/x-mp3
651 22 image/bmp
652 21 audio/x-wav
653 19 audio/x-mpegurl
654 19 audio/x-mpeg
655 18 video/mpeg
656 18 audio/x-scpls
657 18 audio/x-flac
658 18 application/x-ogg
659 17 video/x-ms-asf
660 17 text/html
661 17 audio/x-musepack
662 16 image/x-xbitmap
663 </pre>
664
665 <p><strong>Debian Unstable:</strong></p>
666
667 <pre>
668 count MIME type
669 ----- -----------------------
670 31 text/plain
671 31 image/png
672 31 image/jpeg
673 29 audio/mpeg
674 28 application/ogg
675 27 image/gif
676 26 image/tiff
677 26 audio/x-mp3
678 23 audio/x-wav
679 22 image/bmp
680 21 audio/x-flac
681 20 audio/x-mpegurl
682 19 audio/x-mpeg
683 18 video/x-ms-asf
684 18 video/mpeg
685 18 audio/x-scpls
686 18 application/x-ogg
687 17 audio/x-musepack
688 16 video/x-ms-wmv
689 16 video/x-msvideo
690 </pre>
691
692 <p>I am told that PackageKit can provide an API to access the kind of
693 information mentioned in DEP-11. I have not yet had time to look at
694 it, but hope the PackageKit people in Debian are on top of these
695 issues.</p>
696
697 <p><strong>Update 2013-01-16 13:35</strong>: Updated numbers after
698 discovering a typo in my script.</p>
699 </div>
700 <div class="tags">
701
702
703 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
704
705
706 </div>
707 </div>
708 <div class="padding"></div>
709
710 <p style="text-align: right;"><a href="index.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS feed" width="36" height="14" /></a></p>
711 <div id="sidebar">
712
713
714
715 <h2>Archive</h2>
716 <ul>
717
718 <li>2013
719 <ul>
720
721 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/01/">January (11)</a></li>
722
723 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/02/">February (5)</a></li>
724
725 </ul></li>
726
727 <li>2012
728 <ul>
729
730 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/01/">January (7)</a></li>
731
732 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/02/">February (10)</a></li>
733
734 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
735
736 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (12)</a></li>
737
738 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/05/">May (12)</a></li>
739
740 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/06/">June (20)</a></li>
741
742 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/07/">July (17)</a></li>
743
744 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/08/">August (6)</a></li>
745
746 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/09/">September (9)</a></li>
747
748 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/10/">October (17)</a></li>
749
750 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/11/">November (10)</a></li>
751
752 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/12/">December (7)</a></li>
753
754 </ul></li>
755
756 <li>2011
757 <ul>
758
759 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (16)</a></li>
760
761 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/02/">February (6)</a></li>
762
763 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/03/">March (6)</a></li>
764
765 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/04/">April (7)</a></li>
766
767 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/05/">May (3)</a></li>
768
769 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/06/">June (2)</a></li>
770
771 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/07/">July (7)</a></li>
772
773 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/08/">August (6)</a></li>
774
775 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/09/">September (4)</a></li>
776
777 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/10/">October (2)</a></li>
778
779 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/11/">November (3)</a></li>
780
781 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/12/">December (1)</a></li>
782
783 </ul></li>
784
785 <li>2010
786 <ul>
787
788 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
789
790 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
791
792 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
793
794 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
795
796 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
797
798 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
799
800 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
801
802 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
803
804 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
805
806 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
807
808 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
809
810 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
811
812 </ul></li>
813
814 <li>2009
815 <ul>
816
817 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
818
819 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
820
821 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
822
823 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
824
825 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
826
827 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
828
829 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
830
831 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
832
833 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
834
835 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
836
837 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
838
839 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
840
841 </ul></li>
842
843 <li>2008
844 <ul>
845
846 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
847
848 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
849
850 </ul></li>
851
852 </ul>
853
854
855
856 <h2>Tags</h2>
857 <ul>
858
859 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (13)</a></li>
860
861 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
862
863 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
864
865 <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
866
867 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (6)</a></li>
868
869 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (12)</a></li>
870
871 <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
872
873 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (70)</a></li>
874
875 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (118)</a></li>
876
877 <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (9)</a></li>
878
879 <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (7)</a></li>
880
881 <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
882
883 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (177)</a></li>
884
885 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (21)</a></li>
886
887 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
888
889 <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (10)</a></li>
890
891 <li><a href="http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (9)</a></li>
892
893 <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (32)</a></li>
894
895 <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (5)</a></li>
896
897 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (17)</a></li>
898
899 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (8)</a></li>
900
901 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (6)</a></li>
902
903 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
904
905 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (25)</a></li>
906
907 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (222)</a></li>
908
909 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (149)</a></li>
910
911 <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (7)</a></li>
912
913 <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
914
915 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (41)</a></li>
916
917 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (63)</a></li>
918
919 <li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (1)</a></li>
920
921 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
922
923 <li><a href="http://people.skolelinux.org/pere/blog/tags/rfid">rfid (2)</a></li>
924
925 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (6)</a></li>
926
927 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
928
929 <li><a href="http://people.skolelinux.org/pere/blog/tags/ruter">ruter (4)</a></li>
930
931 <li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
932
933 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (28)</a></li>
934
935 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
936
937 <li><a href="http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (4)</a></li>
938
939 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (39)</a></li>
940
941 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (3)</a></li>
942
943 <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (6)</a></li>
944
945 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (14)</a></li>
946
947 <li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (1)</a></li>
948
949 <li><a href="http://people.skolelinux.org/pere/blog/tags/valg">valg (7)</a></li>
950
951 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (35)</a></li>
952
953 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (4)</a></li>
954
955 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (26)</a></li>
956
957 </ul>
958
959
960 </div>
961 <p style="text-align: right">
962 Created by <a href="http://steve.org.uk/Software/chronicle">Chronicle v4.6</a>
963 </p>
964
965 </body>
966 </html>