video recording in linux

510  mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi 514  mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 519  mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.flv 520  mplayer webcam.flv

Setup SuperCollider in Ubuntu

1. Add these lines to sources.list, replace <your dist> with your value, eg. karmic, lucid, maverick deb http://ppa.launchpad.net/puredyne-team/ppa/ubuntu <your dist> main deb-src http://ppa.launchpad.net/puredyne-team/ppa/ubuntu <your dist> main Then execute these commands: sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 79696851 sudo apt-get update sudo apt-get install supercollider-vim supercollider-doc  supercollider

Partitioning with parted example

parted /dev/sdb (parted) print Model: AMCC 9550SXU-12 DISK (scsi) Disk /dev/sdb: 2880GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number  Start   End     Size   File system  Name  Flags 1      17.4kB  750GB   750GB  ext3         ext4 2      750GB   1500GB  750GB               ext3 (parted) rm 2 (parted) rm 1 (parted) print Model: AMCC 9550SXU-12 DISK (scsi) Disk /dev/sdb: 2880GB Sector […]

Upload openwrt to Linksys router

1. Turn router off, hold reset, turn it on… or something similar, depending on the model (read the manual!) 2. atftp –trace –option “timeout 1” –option “mode octet” –put –local-file ‘/images/openwrt-wrt54g-2.4-squashfs-7.09.bin’ 192.168.1.1 3. it is a question of the timing. Sometimes I had to repeat this several times.

wordpress db-convert-string für vi

Folgende vi-Befehle können auf ein MySQL-Dump einerr WordPress installation angewendet werdem: 1. Beim Umzug einer WordPress-Installation an eine andere URL (von http://php5.vmk.zhdk.ch/ nach http://195.176.254.162/): 1,$s/php5.vmk.zhdk.ch/~prototyp/195.176.254.162/g 2. Beim umzug einer WordPress-Installation an einen anderen Pfad: 1,$s/home/prototyp/public_html/var/www/g