Monthly Archives: September 2007
dvd ripping
| 30-Sep-2007 | Posted by Sonia Hamilton under Audio |
Rip audio from a dvd
mencoder dvd://2 -oac mp3lame -lameopts br=96:cbr:vol=6 -ovc frameno -o track2.mp3
for i in ../vobs/* ; do j=${i##*/} mencoder "${i}" -oac pcm -ovc frameno -o "${j}" done
See also:
- http://axljab.homelinux.org/Mencoder_DVD_to_MPEG-4
- http://f0rked.com/projects/simplerip
- http://gentoo-wiki.com/HOWTO_Rip_DVD_mencoder
Rip entire dvd
- dd_rhelp + dd_rescue
- vobcopy
for i in /media/cdrom0/video_ts/* ; do j=${i##*/} dd_rhelp "${i}" "${j}" done
atime, ctime, mtime
| 20-Sep-2007 | Posted by Sonia Hamilton under |
You should almost never use atime or ctime in find; mtime
is almost always what you're after. In particular, atime
is useless if you do backups since it will always reflect
the time of the last backup or greater.
> atime: When the file was last read or written to.
> ctime: when the inode (metadata) was last changed. Metadata changes
> that are tracked include file creation, change of ownership,
> change of permissions.
(more…)
A nice way to see the differences is to play with the 'stat' command:
multiple mysql versions on same machine
| 12-Sep-2007 | Posted by Sonia Hamilton under MySQL |
Examples of working with multiple mysql versions on the same machine:
/usr/local/mysql/bin/mysqldump -uroot --sock=/tmp/mysql5.sock directaccesscms > directaccesscms_tpldb1.sql
mysqldump -uroot --sock=/tmp/mysql5.sock directaccesscms > directaccesscms_tpldb1.sql
/root/mysql-5.0.37-solaris8-sparc/bin/mysql --sock=/tmp/mysql5.sock
/root/mysql-5.0.37-solaris8-sparc/bin/mysql --sock=/tmp/mysql5.sock seonodes < seonodes.sql
bang history
| 10-Sep-2007 | Posted by Sonia Hamilton under Shell |
There are three fields (separated by colons) that can be manipulated using the bang history command:
EventDesignator:WordDesignator:Modifier
/usr/share/fonts: failed to write cache
| 09-Sep-2007 | Posted by Sonia Hamilton under Ubuntu |
After doing a fresh install of Ubuntu 7.04 and installing all pending updates via Update Manager, I get an error that starts like this:
(more…)
Setting up ttf-opensymbol (2.2.0-1ubuntu4) ...
Updating fontconfig cache...
/usr/share/fonts: failed to write cache
/usr/share/fonts/X11: failed to write cache
Recent Comments