Monday, September 27, 2010

HTML script tag

Someone once told me the only place you can have a script tag is in the HEAD section of the a html document. This is not true! You can also have a script tag anywhere in the body of the document too :-)

"The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document."

Source: http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1

Wednesday, September 8, 2010

Novell Access Manager (NAM) in VMware

When running a NAM AG in a virtual environment make sure you add clock=pit to /boot/grub/menu.lst and reboot the AG

Sample:

title Novell Linux Access Gateway
    kernel (hd0,0)/vmlinuz root (hd0,2) splash=silent desktop resume (hd0,1) showopts clock=pit
    initrd (hd0,0)/initrd

JQuery check if checkbox checked

The reason I am posting this is because I stuggeld to find this solution. I guess Google did not like my English of 'check checkbox checked'. Well here is the solution:

$('#checkbox1').is(':checked')


Ref: http://jquery-howto.blogspot.com/2008/12/how-to-check-if-checkbox-is-checked.html

Friday, September 3, 2010

http_proxy Special chars

Ok so there seems to be a couple of solution here but this is the one I found.

I've got a @ in my password but if you put this in http_proxy it does not work.

Quick solution replace @ with %40

Basically this is the hex value for the char. List of hex values here: http://www.robelle.com/smugbook/ascii.html

Quick command to rip audio from DVD

for((x=1; x<=41; x++)) do transcode -i /dev/dvd -x dvd -T 1,$x,1 -a 0 -y wav -m track$x.wav; lame -V2 track$x.wav track$x.mp3; rm track$x.wav; done;

Ref: http://www.ubuntugeek.com/how-to-rip-dvd-audio-to-mp3-or-ogg.html

Followers