Thursday, February 22, 2007
Octave basic - editing
Tasked to look for alternatives to Matlab, I haven't touched Matlab for long time. Anyway, google tells me Octave. Command for a start before you "edit" your own functions.
path ('~/octave') # put your src directory in LOADPATH, <-- Bug?
edit home '~/myproject' # if not using default.
edit editor "gedit %s &" # default emacs, can set vim also
path ('~/octave') # put your src directory in LOADPATH, <-- Bug?
edit home '~/myproject' # if not using default.
edit editor "gedit %s &" # default emacs, can set vim also
Saturday, February 10, 2007
rip sound from movie file
1. Encode sound to make sure it's mp3, skip video to get a .avi with sound only.
mencoder -oac mp3lame -ovc frameno -o aa1.avi vts1.vob
2. Dump the raw sound out from .avi
mplayer -ao pcm mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile aa1.mp3 aa1.avi
mencoder -oac mp3lame -ovc frameno -o aa1.avi vts1.vob
2. Dump the raw sound out from .avi
mplayer -ao pcm mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile aa1.mp3 aa1.avi
Thursday, February 01, 2007
Blend Linux into Windows domain
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/idmapper.html
This great solution allow us to deploy Linux into the sea of windows.
With the little help from pam_mkhomedir.so,
session required pam_mkhomedir.so skel=/etc/skel umask=0022
This great solution allow us to deploy Linux into the sea of windows.
With the little help from pam_mkhomedir.so,
session required pam_mkhomedir.so skel=/etc/skel umask=0022
Provide a name to dhcp server
Fedora Core using dhclient.
/etc/dhclient.conf
send fqdn.fqdn "mylinux.domain.local.";
send fqdn.encoded off;
send fqdn.server-update off;
/etc/dhclient.conf
send fqdn.fqdn "mylinux.domain.local.";
send fqdn.encoded off;
send fqdn.server-update off;