Monthly Archives: September 2007

dvd ripping

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:

Rip entire dvd

  • dd_rhelp + dd_rescue
  • for i in /media/cdrom0/video_ts/* ; do j=${i##*/} dd_rhelp "${i}" "${j}" done

  • vobcopy

atime, ctime, mtime


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.

A nice way to see the differences is to play with the 'stat' command:
(more…)

multiple mysql versions on same machine

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

There are three fields (separated by colons) that can be manipulated using the bang history command:

EventDesignator:WordDesignator:Modifier

(more…)

/usr/share/fonts: failed to write cache

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:

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
(more…)