X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/8b85bd40cd4064aed586dda320e4f635816e4b54..f903b45d9035366579aaf3a6ec97c99fcc960fe6:/blog/archive/2011/09/index.html diff --git a/blog/archive/2011/09/index.html b/blog/archive/2011/09/index.html index d523732a8c..bcd1d7ae71 100644 --- a/blog/archive/2011/09/index.html +++ b/blog/archive/2011/09/index.html @@ -132,7 +132,7 @@ har vært innom, og sjekker så om løpenummeret som var på stemmeseddel opptellingen. Det kan på den måten være mulig å finne ut hva en person stemte. Hvis personen tar med seg en stemmeseddel fra alle partiene vil det fortsatt være mulig å finne ut hvilken av disse som -ble talt opp, slik at en ikke kan beskytte seg på det viset./p> +ble talt opp, slik at en ikke kan beskytte seg på det viset.

Jeg er ikke sikker på hvor realistiske disse scenariene er i dag, dvs. hvilke andre prosedyrer som finnes i det norske valget for å @@ -165,6 +165,106 @@ programvare, og tilgjengelig fra

+
+
+ Kommunevalget må visst kontrollregnes på +
+
+ 14th September 2011 +
+
+

En artikkel i aftenbladet påstår at valgsystemet til EDB Ergogroup +ikke +regner riktig mandatfordeling i Stavanger. Det høres for meg ut +som om innbyggerne i Norge er nødt til å kontrollregne på +mandatfordelingen for å sikre at valget går riktig for seg. Det tar +jeg som nok et argument for nøyere kontroll av det norske +valgsystemet.

+ +
+
+ + + Tags: norsk, valg. + + +
+
+
+ +
+
+ Ripping problematic DVDs using dvdbackup and genisoimage +
+
+ 17th September 2011 +
+
+

For convenience, I want to store copies of all my DVDs on my file +server. It allow me to save shelf space flat while still having my +movie collection easily available. It also make it possible to let +the kids see their favourite DVDs without wearing the physical copies +down. I prefer to store the DVDs as ISOs to keep the DVD menu and +subtitle options intact. It also ensure that the entire film is one +file on the disk. As this is for personal use, the ripping is +perfectly legal here in Norway.

+ +

Normally I rip the DVDs using dd like this:

+ +
+#!/bin/sh
+# apt-get install lsdvd
+title=$(lsdvd 2>/dev/null|awk '/Disc Title: / {print $3}')
+dd if=/dev/dvd of=/storage/dvds/$title.iso bs=1M
+
+ +

But some DVDs give a input/output error when I read it, and I have +been looking for a better alternative. I have no idea why this I/O +error occur, but suspect my DVD drive, the Linux kernel driver or +something fishy with the DVDs in question. Or perhaps all three.

+ +

Anyway, I believe I found a solution today using dvdbackup and +genisoimage. This script gave me a working ISO for a problematic +movie by first extracting the DVD file system and then re-packing it +back as an ISO. + +

+#!/bin/sh
+# apt-get install lsdvd dvdbackup genisoimage
+set -e
+tmpdir=/storage/dvds/
+title=$(lsdvd 2>/dev/null|awk '/Disc Title: / {print $3}')
+dvdbackup -i /dev/dvd -M -o $tmpdir -n$title
+genisoimage -dvd-video -o $tmpdir/$title.iso $tmpdir/$title
+rm -rf $tmpdir/$title
+
+ +

Anyone know of a better way available in Debian/Squeeze?

+ +

Update 2011-09-18: I got a tip from Konstantin Khomoutov about the +readom program from the wodim package. It is specially written to +read optical media, and is called like this: readom dev=/dev/dvd +f=image.iso. It got 6 GB along with the problematic Cars DVD +before it failed, and failed right away with a Timmy Time DVD.

+ +

Next, I got a tip from Bastian Blank about +his +program python-dvdvideo, which seem to be just what I am looking +for. Tested it with my problematic Timmy Time DVD, and it succeeded +creating a ISO image. The git source built and installed just fine in +Squeeze, so I guess this will be my tool of choice in the future.

+ +
+
+ + + Tags: english, opphavsrett, video. + + +
+
+
+

RSS Feed