Thursday, March 13, 2008

epstopdf

It is available in the ubuntu package:

apt-get install texlive-extra-utils

Monday, March 3, 2008

Basic reminder about Sed command

(Small thing you always know, but always forget)

if you have a file "pp.txt" with the following text:
GGATSGSFFSTSTYYSGHGSSYSHSUSUSH
in order to substitute a "Y" for a "P", the command should be:
sed s/Y/P/g < ppp.txt
the substituted string will go to the standard output. I you wish, you can redirect it to a file:
sed s/Y/P/g < ppp.txt > new_ppp.txt

document.createElement() and document.getElementById() trick

An element is created using document.createElement(), will not be retrieved by a call to document.getElementById(), if such a element has not been inserted before in the document tree, using a container_element.appendChild() call.