Archive for January, 2009

ripping a DVD the 2009 way

Thursday, January 29th, 2009

source: forum post

  1. Insert DVD
  2. run ‘vobcopy -m’
  3. run ‘HandBrakeCLI -i /path/to/output/of/vobcopy -o movie.mp4 -e x264 -b 2000 -B 192′
  4. play movie.mp4

Of course, you’ll need vobcopy and libdvdcss and HandBrakeCLI installed. On Ubuntu, vobcopy is available from the standard repo, libdvdcss can be installed per the RestrictedFormats wiki page and HandBrake is available from their site.

some perl one-liners

Tuesday, January 27th, 2009

I’m reading “Learning Perl, 5th Ed”.

520 perl -e ‘chomp(@lines=); foreach $i(@lines) {print $i . “\n”;}’ < /var/log/aptitude
523 perl -e 'chomp(@lines=); foreach $i(@lines) {print $i . “\n” unless $i =~ /UPG*/;}’ < /var/log/aptitude
524 perl -e 'chomp(@lines=); foreach $i(@lines) {print $i . “\n” if $i =~ /UPG*/;}’ < /var/log/aptitude
527 perl -e 'chomp(@lines=); @lines2 = reverse(@lines); print @lines2; print “\n”;’
529 perl -e ‘@names=qw(fred betty barney dino wilma pebbles bamm-bamm); print “Enter numbers separated by newlines, then Ctrl-D: “; chomp(@lines =
); foreach $num(@lines){print $names[$num];} print “\n”;’
534 perl -e ‘chomp(@in=
); @sorted = sort @in; foreach $i(@sorted){print $i . “\n”;}’

optimal MTU for DSL

Thursday, January 15th, 2009

I set my MTU on my Linux box to 1454 instead of the default 1500. Not much of a difference, but maybe it helps :)

One explanation here: http://www.mynetwatchman.com/kb/ADSL/pppoemtu.htm

Now if I tracepath some place on the Internet, my pmtu doesn’t get dropped down from 1500 to 1492 at my DSL router.