Wednesday, December 10, 2008

Convert AVI to 3gp

To convert your favorite video in 3gp format, in order to watch it in your cellphone, just do (trick from: http://goinggnu.wordpress.com/2007/02/13/convert-avi-to-3gp-using-ffmpeg/)

ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp

Thursday, October 23, 2008

Inline Images with Data URLs

You can embed an image inside the img tag, in this way:
 

 src="data:image/gif;base64,R0lGODl... (base64 letters) .../gAwXEQA7" 

The image is encoded in base64 and won't be read from a file! This works on all the decent web browsers, so don't expect a good behavior on IE.

An embedded image using this technique: embedded folder icon

Tuesday, May 6, 2008

how to remove dolphin and everythink that is associate with it in kubuntu gutsy

From: http://ubuntuforums.org/showthread.php?t=667425

1.) Right click a folder, select Properties
2.) Click button next to "Type: Folder"
3.) Set konqueror as default and apply.

Thursday, April 17, 2008

Skencil 0.6.17 on Ubuntu 7.10

Definitively, the .deb binary for Ubuntu of skencil is broken, it doesn't work. According I have read in the Internet, it fails because Ubuntu 7.10 uses Python 2.5, which is incompatible with skencil. Fortunately, surfing the web I found on http://ubuntuforums.org/archive/index.php/t-679508.html the hack to compile from source skencil. The trick is to install Python 2.4 concurrently with 2.5 . From that webpage:


FENIAN: I got skencil working by doing this,open a terminal and enter the following lines (enter each line seperately)...

sudo apt get install tcl8.4-dev tk8.4-dev

cd /tmp

sudo apt-get install python2.4 python2.4-dev build-essential

sudo apt-get remove skencil

sudo apt-get source skencil

cd skencil-0.6.17/

sudo python2.4 setup.py configure --prefix=/usr/local

sudo python2.4 setup.py build

sudo python2.4 setup.py install

sudo perl -pi -e 's,env python,env python2.4,' /usr/local/lib/skencil-0.6.17/*.py


You can start skencel from the terminal by typing...

skencil



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.

Thursday, February 21, 2008

Nice hyperref colors

To change hyperref links to a nice blue color:
\usepackage[pdftex, bookmarks, colorlinks=true, linkcolor=blue,
plainpages = false, citecolor = green, urlcolor = blue, filecolor =blue]{hyperref}