home
to by garaolaza
<a href="fitxategia.pdf" onclick="javascript:urchinTracker('/pdfak/fitxategia.pdf');">Fitxategia</a>
to by garaolaza
// When XML processing with JavaScript, sometimes void XML elements give strange answers about them
// I needed to check if the element was void, just like <item/>
if (somewhere.getElementsByTagName('item')[0].childNodes.length) { dothis(); }
to by garaolaza
from lxml import etree
coords = etree.parse("/path/to/your/xml/file").getroot()
coords_list = []
for coord in coords:
this = {}to by garaolaza
# With linux filesystem
sudo rsync -rlptD --delete andoni /media/SWISNIFE1/
# With NTFS backup
sudo rsync -rtv --delete Videos /media/SWISNIFE1/
to by garaolaza
# You need to unmount if the drives are mounted
# More in http://ubuntuforums.org/archive/index.php/t-6509.html
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdromto by garaolaza
mplayer -dumpstream -dumpfile myfile.mp3 mms://yoururl_here
# myfile.mp3's extension depends on the format of the original stream.
to by garaolaza
# First convert .asf to wav:
mplayer -ao pcm:file=destination.wav source.asf
# Then encode it to mp3
lame destination.wav