Wednesday, February 18, 2009

VMWare keypad doesn't work

~/.vmware/config

xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

Monday, February 16, 2009

Canon CHDK links

Includes HDR imaging, Depth of Field and CHDK firmware main site. Works on my SD630.

http://lifehacker.com/387380/turn-your-point+and+shoot-into-a-super+camera

http://chdk.wikia.com/wiki/CHDK_firmware_usage

http://abaditya.com/2008/04/19/playing-around-with-chdk-and-hdr-imaging/

http://chdk.wikia.com/wiki/Samples:_High-Speed_Shutter_&_Flash-Sync

Saving sound from Mame game

Parameter is wavwrite

sdlmame suprmrio -wavwrite suprmrio.wav

Windows Mobile default SIP keyboard with Opera

Search for "IsSIPInputMethod" in HKCR and then find {42429667-ae04-11d0-a4f8-00aa00a749b9}

Change the value from 0 to 1

Tuesday, February 3, 2009

USB HDD repeats [sdb] Sense Key : No Sense [current] error

Ok, my mistake. I tried it out another time and yes it works.

In FC10 you have to:
Nov 11 21:42:10 localhost kernel: sd 5:0:0:0: [sdb] Add. Sense: No additional
sense information
Nov 11 21:42:10 localhost kernel: sd 5:0:0:0: [sdb] Sense Key : No Sense [current]


sudo cp /lib/udev/rules.d/60-persistent-storage.rules
/etc/udev/rules.d/60-persistent-storage.rules

edit: /etc/udev/rules.d/60-persistent-storage.rules

change line 62 from: KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
to: KERNEL!="sr*", ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export
$tempnode"


From https://bugzilla.redhat.com/show_bug.cgi?id=473017

Monday, February 2, 2009

mencoder to normalize audio in AVI for youtube

Before uploading to youtube

mencoder MVI_4930.AVI -ovc copy -oac mp3lame -af volume=12.1:0 -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_plus_12db.AVI

This will reencode the audio in mvi-4930.avi to mp3 128kpbs/22050 sample rate and add 12db to the original volume

mencoder MVI_4930.AVI -ovc copy -af volnorm=1 -oac mp3lame -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_normalize.AVI

This will reencode the audio and normalize the volume in mp3 format, constant 128kbps / 22050 sample rate.