Show 1st and 2nd level directories in zip December 20, 2007
Posted by maxmil in : Debian , add a commentunzip -l myZip.zip | grep ^[^/]*/[^/]*/[^/]*$
Convert m4a to mp3 on debian December 12, 2007
Posted by maxmil in : Debian , add a commentMy starting point was here.
This site was also crucial.
First i added debian-multimedia to /etc/apt/sources.listdeb http://www.debian-multimedia.org etch main
Then i installed the key for debian-multimedia, ignoring the warningsudo aptitude install debian-multimedia-keyring
Then i installed faad and lamesudo aptitude install faad lame
Then to convert a file you just issuefaad -o - inputfile.m4a | lame - outputfile.mp3
To convert a whole directory i wrote this little script
#!/bin/bash
#
# m4a2mp3
#
for i in *.m4a; do
faad -o - "$i" | lame - "${i%.m4a}.mp3"
done
Avoiding jar locks with Tomcat 6 on Windows Server 2003 December 7, 2007
Posted by maxmil in : tomcat , 1 comment so farI was having problems with a production tomcat 6 server on a Windows Server 2003 box.
If you update the war for a reloadable context while tomcat is running tomcat automatically tries to undeploy the current webapp and redeploy the new war.
On my Windows Server 2003 tomcat could not manage to undeploy the current application because the operating system had a lock on the jar files in WEB-INF/lib.
This left the application partially undeployed and broken.
The only solution was to stop the Tomcat service, manually delete the jar files and restart it which automatically redeploys the webapp.
The problem with this is that this is a production server with multiple webapps installed on it. I didn’t want to have to stop and start the server every time i needed to update just one of my webapps.
The solution has been to add antiJARLocking="true" to the context declaration in tomcat.
There is another option antiResourceLocking="true" which i have also added just to be on the safe side although i don’t think that in my case it’s necessary.
Install IE 6 on Debian Etch with IEs4Linux December 6, 2007
Posted by maxmil in : Debian , 1 comment so farAs root install wine and cabextract
$aptitude install wine cabextract
Download and decompress IEsLinux script
$wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.0.3.tar.gz
$tar xzvf ies4linux-2.0.3.tar.gz
As your normal user, execute the ie4linux script
$cd ied4linux.2.0.3
$./ies4linux
Follow instructions to install IE 6 (and optionally IE 5.5 and IE 5.0). This takes a little while and lots of wine windows pop up but don’t require intervention.
Finally run IE 6
~/bin/ie6
Done!