Loading

Daily Archives: July 5, 2007

Scripts to rename avi files from TV Shows

If you got a lot of ill-named files like:

$ ls
S01E03.The.Sopranos.S01E03.Denial.Anger.Acceptance.avi
The.Sopranos.1×04.Meadowlands.avi
The.Sopranos.S01E01.The.Sopranos.avi
The.Sopranos.S01E02.46.Long.avi
The.Sopranos.S01E06.Pax.Soprana.avi
The_Sopranos.105.College.avi

that your divx player can’t sort properly and you want to end up with something like:

$ ls
1×01.avi 1×02.avi 1×03.avi 1×04.avi 1×05.avi 1×06.avi

you can use the following script in this way:

cd /path/to/avi/files
../script.sh|sh

and if you want to do the same thing to [...]

Java bug producing SAAJ0511 error

I run onto the following exception a couple of days ago:

Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
or change an object in a way which is incorrect with regard to namespaces.
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkDOMNSErr
(CoreDocumentImpl.java:2421)

the following log trace was also present in the log file

SEVERE: [...]