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">
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" />
10 <title>Terms of use for video produced by a Canon IXUS
130 digital camera
</title>
11 <link>http://people.skolelinux.org/pere/blog/Terms_of_use_for_video_produced_by_a_Canon_IXUS_130_digital_camera.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Terms_of_use_for_video_produced_by_a_Canon_IXUS_130_digital_camera.html
</guid>
13 <pubDate>Thu,
9 Sep
2010 23:
55:
00 +
0200</pubDate>
15 <p
>A few days ago I had the mixed pleasure of bying a new digital
16 camera, a Canon IXUS
130. It was instructive and very disturbing to
17 be able to verify that also this camera producer have the nerve to
18 specify how I can or can not use the videos produced with the camera.
19 Even thought I was aware of the issue, the options with new cameras
20 are limited and I ended up bying the camera anyway. What is the
21 problem, you might ask? It is software patents, MPEG-
4, H
.264 and the
22 MPEG-LA that is the problem, and our right to record our experiences
25 <p
>On page
27 of the Danish instruction manual, this section is
29 <p
>This product is licensed under AT
&T patents for the MPEG-
4 standard
30 and may be used for encoding MPEG-
4 compliant video and/or decoding
31 MPEG-
4 compliant video that was encoded only (
1) for a personal and
32 non-commercial purpose or (
2) by a video provider licensed under the
33 AT
&T patents to provide MPEG-
4 compliant video.
</p
>
35 <p
>No license is granted or implied for any other user for MPEG-
4
39 <p
>In short, the camera producer have chosen to use technology
40 (MPEG-
4/H
.264) that is only provided if I used it for personal and
41 non-commercial purposes, or ask for permission from the organisations
42 holding the knowledge monopoly (patent) for technology used.
</p
>
44 <p
>This issue has been brewing for a while, and I recommend you to
46 "<a href=
"http://www.osnews.com/story/
23236/Why_Our_Civilization_s_Video_Art_and_Culture_is_Threatened_by_the_MPEG-LA
">Why
47 Our Civilization
's Video Art and Culture is Threatened by the
48 MPEG-LA
</a
>" by Eugenia Loli-Queru and
49 "<a href=
"http://webmink.com/
2010/
09/
03/h-
264-and-foss/
">H
.264 Is Not
50 The Sort Of Free That Matters
</a
>" by Simon Phipps to learn more about
51 the issue. The solution is to support the
52 <a href=
"http://www.digistan.org/open-standard:definition
">free and
53 open standards
</a
> for video, like
<a href=
"http://www.theora.org/
">Ogg
54 Theora
</a
>, and avoid MPEG-
4 and H
.264 if you can.
</p
>
59 <title>Navteq bruker
3-
12 måneder, OpenStreetmap.org trenger noen dager
</title>
60 <link>http://people.skolelinux.org/pere/blog/Navteq_bruker_3_12_m__neder__OpenStreetmap_org_trenger_noen_dager.html
</link>
61 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Navteq_bruker_3_12_m__neder__OpenStreetmap_org_trenger_noen_dager.html
</guid>
62 <pubDate>Tue,
7 Sep
2010 21:
40:
00 +
0200</pubDate>
64 <p
>Jeg ble riktig fascinert av
65 <a href=
"http://www.aftenposten.no/nyheter/iriks/article3800967.ece
">en
66 artikkel i Aftenposten
</a
> om hvor hardt Navteq jobber for å oppdatere
67 kartene som brukes i navigasjons-GPSer, der det blant annet heter at
68 "på grunn av teknikken tar det alt fra tre til tolv måneder før
69 kartene er oppdatert
". Når en kjenner hva slags oppdateringshastighet
70 som er tilgjengelig på
71 <a href=
"http://www.openstreetmap.org/
">OpenStreetmap
</a
> som
72 oppdateres på dugnad, blir det litt trist å se hva noe av det beste en
73 kan kjøpe for penger får til.
</p
>
75 <p
>Fra en endrer kartdataene i databasen til OpenStreetmap tar det
76 ca.
15 minutter før endringen er synlig på kartet som alle kan se på
77 web. Dernest overføres det daglig til en kartdump som lastes ned av
78 personen som lager Garmin-kart for Norge ca. en gang i uken. Med
79 OpenStreetmap.org og
<a href=
"http://www.frikart.no/
">Frikart.no
</a
>
80 kan en altså ha korreksjonene på plass i sin Garmin-GPS i løpet av en
81 uke. Det er også av tekniske årsaker at det tar så langt tid.
82 Jobbene som tegner kartene, henter ut kartdumpene og konverterer til
83 Garmin-format tar minutter og timer å gjennomføre, slik at de ikke
84 gjøres kontinuerlig men kun regelmessing.
</p
>
89 <title>Some notes on Flash in Debian and Debian Edu
</title>
90 <link>http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</link>
91 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</guid>
92 <pubDate>Sat,
4 Sep
2010 10:
10:
00 +
0200</pubDate>
94 <p
>In the
<a href=
"http://popcon.debian.org/unknown/by_vote
">Debian
95 popularity-contest numbers
</a
>, the adobe-flashplugin package the
96 second most popular used package that is missing in Debian. The sixth
97 most popular is flashplayer-mozilla. This is a clear indication that
98 working flash is important for Debian users. Around
10 percent of the
99 users submitting data to popcon.debian.org have this package
102 <p
>In the report written by Lars Risan in August
2008
103 («
<a href=
"http://wiki.skolelinux.no/Dokumentasjon/Rapporter?action=AttachFile
&do=view
&target=Skolelinux_i_bruk_rapport_1.0.pdf
">Skolelinux
104 i bruk – Rapport for Hurum kommune, Universitetet i Agder og
105 stiftelsen SLX Debian Labs
</a
>»), one of the most important problems
106 schools experienced with
<a href=
"http://www.skolelinux.org/
">Debian
107 Edu/Skolelinux
</a
> was the lack of working Flash. A lot of educational
108 web sites require Flash to work, and lacking working Flash support in
109 the web browser and the problems with installing it was perceived as a
110 good reason to stay with Windows.
</p
>
112 <p
>I once saw a funny and sad comment in a web forum, where Linux was
113 said to be the retarded cousin that did not really understand
114 everything you told him but could work fairly well. This was a
115 comment regarding the problems Linux have with proprietary formats and
116 non-standard web pages, and is sad because it exposes a fairly common
117 understanding of whose fault it is if web pages that only work in for
118 example Internet Explorer
6 fail to work on Firefox, and funny because
119 it explain very well how annoying it is for users when Linux
120 distributions do not work with the documents they receive or the web
121 pages they want to visit.
</p
>
123 <p
>This is part of the reason why I believe it is important for Debian
124 and Debian Edu to have a well working Flash implementation in the
125 distribution, to get at least popular sites as Youtube and Google
126 Video to working out of the box. For Squeeze, Debian have the chance
127 to include the latest version of Gnash that will make this happen, as
128 the new release
0.8.8 was published a few weeks ago and is resting in
129 unstable. The new version work with more sites that version
0.8.7.
130 The Gnash maintainers have asked for a freeze exception, but the
131 release team have not had time to reply to it yet. I hope they agree
132 with me that Flash is important for the Debian desktop users, and thus
133 accept the new package into Squeeze.
</p
>
138 <title>My first perl GUI application - controlling a Spykee robot
</title>
139 <link>http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</link>
140 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</guid>
141 <pubDate>Wed,
1 Sep
2010 21:
00:
00 +
0200</pubDate>
143 <p
>This evening I made my first Perl GUI application. The last few
144 days I have worked on a Perl module for controlling my recently
145 aquired Spykee robots, and the module is now getting complete enought
146 that it is possible to use it to control the robot driving at least.
147 It was now time to figure out how to use it to create some GUI to
148 allow me to drive the robot around. I picked PerlQt as I have had
149 positive experiences with the Qt API before, and spent a few minutes
150 browsing the web for examples. Using Qt Designer seemed like a short
151 cut, so I ended up writing the perl GUI using Qt Designer and
152 compiling it into a perl program using the puic program from
153 libqt-perl. Nothing fancy yet, but it got buttons to connect and
154 drive around.
</p
>
156 <p
>The perl module I have written provide a object oriented API for
157 controlling the robot. Here is an small example on how to use it:
</p
>
161 Spykee::discover(sub {$robot{$_[
0]} = $_[
1]});
162 my $host = (keys %robot)[
0];
163 my $spykee = Spykee-
>new();
164 $spykee-
>contact($host,
"admin
",
"admin
");
169 $spykee-
>forward();
174 </pre
></p
>
176 <p
>Thanks to the release of the source of the robot firmware, I could
177 peek into the implementation at the other end to figure out how to
178 implement the protocol used by the robot. I
've implemented several of
179 the commands the robot understand, but is still missing the camera
180 support to make it possible to control the robot from remote. First I
181 want to implement support for uploading new firmware and configuring
182 the wireless network, to make it possible to bootstrap a Spykee robot
183 without the producers Windows and MacOSX software (I only have Linux,
184 so I had to ask a friend to come over to get the robot testing
187 <p
>Will release the source to the public soon, but need to figure out
188 where to make it available first. I will add a link to
189 <a href=
"http://wiki.nuug.no/grupper/robot/
">the NUUG wiki
</a
> for
190 those that want to check back later to find it.
</p
>
195 <title>Forslag i stortinget om å stoppe elektronisk stemmegiving i Norge
</title>
196 <link>http://people.skolelinux.org/pere/blog/Forslag_i_stortinget_om____stoppe_elektronisk_stemmegiving_i_Norge.html
</link>
197 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Forslag_i_stortinget_om____stoppe_elektronisk_stemmegiving_i_Norge.html
</guid>
198 <pubDate>Tue,
31 Aug
2010 21:
00:
00 +
0200</pubDate>
200 <p
>Ble tipset i dag om at et forslag om å stoppe forsøkene med
201 elektronisk stemmegiving utenfor valglokaler er
202 <a href=
"http://www.stortinget.no/no/Saker-og-publikasjoner/Saker/Sak/?p=
46616">til
203 behandling
</a
> i Stortinget.
204 <a href=
"http://www.stortinget.no/Global/pdf/Representantforslag/
2009-
2010/dok8-
200910-
128.pdf
">Forslaget
</a
>
205 er fremmet av Erna Solberg, Michael Tetzschner og Trond Helleland.
</p
>
207 <p
>Håper det får flertall.
</p
>
212 <title>Broken hard link handling with sshfs
</title>
213 <link>http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</link>
214 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</guid>
215 <pubDate>Mon,
30 Aug
2010 19:
30:
00 +
0200</pubDate>
217 <p
>Just got an email from Tobias Gruetzmacher as a followup on my
218 <a href=
"http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
">previous
219 post about sshfs
</a
>. He reported another problem with sshfs. It
220 fail to handle hard links properly. A simple way to spot this is to
221 look at the . and .. entries in the directory tree. These should have
222 a link count
>1, but on sshfs the count is
1. I just tested to see
223 what happen when trying to hardlink, and this fail as well:
</p
>
227 ln: creating hard link `bar
' =
> `foo
': Function not implemented
231 <p
>I have not yet found time to implement a test for this in my file
232 system test code, but believe having working hard links is useful to
233 avoid surprised unix programs. Not as useful as working file locking
234 and symlinks, which are required to get a working desktop, but useful
235 nevertheless. :)
</p
>
237 <p
>The latest version of the file system test code is available via
239 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
></p
>
244 <title>Sikkerhetsteateret på flyplassene fortsetter
</title>
245 <link>http://people.skolelinux.org/pere/blog/Sikkerhetsteateret_p___flyplassene_fortsetter.html
</link>
246 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sikkerhetsteateret_p___flyplassene_fortsetter.html
</guid>
247 <pubDate>Sat,
28 Aug
2010 10:
40:
00 +
0200</pubDate>
249 <p
>Jeg skrev for et halvt år siden hvordan
250 <a href=
"http://people.skolelinux.org/pere/blog/Sikkerhet__teater__og_hvordan_gj__re_verden_sikrere.html
">samfunnet
251 kaster bort ressurser på sikkerhetstiltak som ikke fungerer
</a
>. Kom
253 <a href=
"http://www.askthepilot.com/essays-and-stories/terrorism-tweezers-and-terminal-madness-an-essay-on-security/
">historie
254 fra en pilot fra USA
</a
> som kommenterer det samme. Jeg mistenker det
255 kun er uvitenhet og autoritetstro som gjør at så få protesterer. Har
256 veldig sans for piloten omtalt i
<a
257 href=
"http://www.aftenposten.no/nyheter/iriks/article2057501.ece
">Aftenposten
</a
> 2007-
10-
23,
258 og skulle ønske flere rettet oppmerksomhet mot problemet. Det gir
259 ikke meg trygghetsfølelse på flyplassene når jeg ser at
260 flyplassadministrasjonen kaster bort folk, penger og tid på tull i
261 stedet for ting som bidrar til reell økning av sikkerheten. Det
262 forteller meg jo at vurderingsevnen til de som burde bidra til økt
263 sikkerhet er svært sviktende, noe som ikke taler godt for de andre
266 <p
>Mon tro hva som skjer hvis det fantes en enkel brosjyre å skrive ut
267 fra Internet som forklarte hva som er galt med sikkerhetsopplegget på
268 flyplassene, og folk skrev ut og la en bunke på flyplassene når de
269 passerte. Kanskje det ville fått flere til å få øynene opp for
272 <p
>Personlig synes jeg flyopplevelsen er blitt så avskyelig at jeg
273 forsøker å klare meg med tog, bil og båt for å slippe ubehaget. Det
274 er dog noe vanskelig i det langstrakte Norge og for å kunne besøke de
275 delene av verden jeg ønsker å nå. Mistenker at flere har det slik, og
276 at dette går ut over inntjeningen til flyselskapene. Det er antagelig
277 en god ting sett fra et miljøperspektiv, men det er en annen sak.
</p
>
282 <title>Skolelinux i Osloskolen
</title>
283 <link>http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</link>
284 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</guid>
285 <pubDate>Thu,
26 Aug
2010 22:
25:
00 +
0200</pubDate>
287 <p
>Denne høsten skal endelig alle Osloskolene få mulighet til å bruke
288 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>. Ny IT-løsning
289 har vært rullet ut i noen måneder nå, og så vidt jeg fikk vite før
290 sommeren skulle alle skoler ha nytt opplegg på plass før oppstart nå i
291 høst. På alle skolene skal en kunne velge ved installasjon om en skal
292 ha Windows eller Skolelinux på maskinene, og en kan i tillegg
293 PXE-boote maskinene over nett som tynne klienter eller diskløse
294 arbeidsstasjoner. Jeg er spent på hvor mange skoler som velger å ta i
295 bruk Skolelinux, og gleder meg til å se hvordan dette utvikler seg.
297 <a href=
"http://www.logica.no/
">Logica
</a
> med
298 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
> som
299 underleverandør, og jeg har vært involvert i utviklingen av løsningen
300 via Skolelinux Drift AS siden prosjektet starter. Jeg synes det er
301 fantastisk at Skolelinux er kommet så langt siden vi startet i
2001 at
302 alle elevene i Osloskolene nå skal få mulighet til å bruke
303 løsningen. Jeg håper de vil sette pris på alle de
304 <a href=
"http://www.skolelinux.no/linux-signpost/
">fantastiske
305 brukerprogrammene
</a
> som er tilgjengelig i Skolelinux.
</p
>
310 <title>Broken umask handling with sshfs
</title>
311 <link>http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</link>
312 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</guid>
313 <pubDate>Thu,
26 Aug
2010 13:
30:
00 +
0200</pubDate>
315 <p
>My file system sematics program
316 <a href=
"http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
">presented
317 a few days ago
</a
> is very useful to verify that a file system can
318 work as a unix home directory,and today I had to extend it a bit. I
'm
319 looking into alternatives for home directory access here at the
320 University of Oslo, and one of the options is sshfs. My friend
321 Finn-Arne mentioned a while back that they had used sshfs with Debian
322 Edu, but stopped because of problems. I asked today what the problems
323 where, and he mentioned that sshfs failed to handle umask properly.
324 Trying to detect the problem I wrote this addition to my fs testing
328 mode_t touch_get_mode(const char *name, mode_t mode) {
330 int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE, mode);
334 if (-
1 != fstat(fd,
&statbuf)) {
335 retval = statbuf.st_mode
& 0x1ff;
342 /* Try to detect problem discovered using sshfs */
343 int test_umask(void) {
344 printf(
"info: testing umask effect on file creation\n
");
346 mode_t orig_umask = umask(
000);
348 if (
0666 != (newmode = touch_get_mode(
"foobar
",
0666))) {
349 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
000\n
",
353 if (
0660 != (newmode = touch_get_mode(
"foobar
",
0666))) {
354 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
007\n
",
362 int main(int argc, char **argv) {
369 <p
>Sure enough. On NFS to a netapp, I get this result:
</p
>
372 Testing POSIX/Unix sematics on file system
373 info: testing symlink creation
374 info: testing subdirectory creation
375 info: testing fcntl locking
376 Read-locking
1 byte from
1073741824
377 Read-locking
510 byte from
1073741826
378 Unlocking
1 byte from
1073741824
379 Write-locking
1 byte from
1073741824
380 Write-locking
510 byte from
1073741826
381 Unlocking
2 byte from
1073741824
382 info: testing umask effect on file creation
385 <p
>When mounting the same directory using sshfs, I get this
389 Testing POSIX/Unix sematics on file system
390 info: testing symlink creation
391 info: testing subdirectory creation
392 info: testing fcntl locking
393 Read-locking
1 byte from
1073741824
394 Read-locking
510 byte from
1073741826
395 Unlocking
1 byte from
1073741824
396 Write-locking
1 byte from
1073741824
397 Write-locking
510 byte from
1073741826
398 Unlocking
2 byte from
1073741824
399 info: testing umask effect on file creation
400 error: Wrong file mode
644 when creating using mode
666 and umask
000
401 error: Wrong file mode
640 when creating using mode
666 and umask
007
404 <p
>So, I can conclude that sshfs is better than smb to a Netapp or a
405 Windows server, but not good enough to be used as a home
408 <p
>Update
2010-
08-
26: Reported the issue in
409 <a href=
"http://bugs.debian.org/
594498">BTS report #
594498</a
></p
>
411 <p
>Update
2010-
08-
27: Michael Gebetsroither report that he found the
412 script so useful that he created a GIT repository and stored it in
413 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
>.
</p
>
418 <title>Elektronisk stemmegiving er ikke til å stole på - heller ikke i Norge
</title>
419 <link>http://people.skolelinux.org/pere/blog/Elektronisk_stemmegiving_er_ikke_til____stole_p_____heller_ikke_i_Norge.html
</link>
420 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Elektronisk_stemmegiving_er_ikke_til____stole_p_____heller_ikke_i_Norge.html
</guid>
421 <pubDate>Mon,
23 Aug
2010 19:
30:
00 +
0200</pubDate>
423 <p
>I Norge pågår en prosess for å
424 <a href=
"http://www.e-valg.dep.no/
">innføre elektronisk
425 stemmegiving
</a
> ved kommune- og stortingsvalg. Dette skal
426 introduseres i
2011. Det er all grunn til å tro at valg i Norge ikke
427 vil være til å stole på hvis dette blir gjennomført. Da det hele var
428 oppe til høring i
2006 forfattet jeg
429 <a href=
"http://www.nuug.no/dokumenter/valg-horing-
2006-
09.pdf
">en
430 høringsuttalelse fra NUUG
</a
> (og EFN som hengte seg på) som skisserte
431 hvilke punkter som må oppfylles for at en skal kunne stole på et valg,
432 og elektronisk stemmegiving mangler flere av disse. Elektronisk
433 stemmegiving er for alle praktiske formål å putte ens stemme i en sort
434 boks under andres kontroll, og satse på at de som har kontroll med
435 boksen er til å stole på - uten at en har mulighet til å verifisere
436 dette selv. Det er ikke slik en gjennomfører demokratiske valg.
</p
>
438 <p
>Da problemet er fundamentalt med hvordan elektronisk stemmegiving
439 må fungere for at også ikke-krypografer skal kunne delta, har det vært
440 mange rapporter om hvordan elektronisk stemmegiving har sviktet i land
442 <a href=
"http://wiki.nuug.no/uttalelser/
2006-elektronisk-stemmegiving
">liten
443 samling referanser
</a
> finnes på NUUGs wiki. Den siste er fra India,
444 der valgkomisjonen har valgt
445 <a href=
"http://www.freedom-to-tinker.com/blog/jhalderm/electronic-voting-researcher-arrested-over-anonymous-source
">å
446 pusse politiet på en forsker
</a
> som har dokumentert svakheter i
447 valgsystemet.
</p
>
449 <p
>Her i Norge har en valgt en annen tilnærming, der en forsøker seg
450 med teknobabbel for å få befolkningen til å tro at dette skal bli
451 sikkert. Husk, elektronisk stemmegiving underminerer de demokratiske
452 valgene i Norge, og bør ikke innføres.
</p
>
454 <p
>Den offentlige diskusjonen blir litt vanskelig av at media har
455 valgt å kalle dette
"evalg
", som kan sies å både gjelde elektronisk
456 opptelling av valget som Norge har gjort siden
60-tallet og som er en
457 svært god ide, og elektronisk opptelling som er en svært dårlig ide.
458 Diskusjonen gir ikke mening hvis en skal diskutere om en er for eller
459 mot
"evalg
", og jeg forsøker derfor å være klar på at jeg snakker om
460 elektronisk stemmegiving og unngå begrepet
"evalg
".
</p
>