Saturday, January 3, 2009

Modem de Melvin

Abra el archivo
/etc/wvdial.conf y escriba lo siguiente

[Dialer Defaults]

Phone = *99***1#
Username = telfort
Password = telfort
Stupid Mode = 1
Dial Command = ATDT

[Dialer reset]
Modem = /dev/ttyUSB0
Init1 = AT

[Dialer telfort]
Phone = *99***1#
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","telfort.nl";

Para el internet, desde la consola ejecute

wvdial telfort

abra el firefox y desactivar Archivo>Trabajar sin conexion

Thursday, December 18, 2008

Creating DJVU files

I wanted to create a DJVU file from some photocopies (TIFF)

I found some nice tutorials at

http://www.howtoforge.com/creating_djvu_documents_on_linux
http://en.wikisource.org/wiki/Wikisource:How_to_create_a_DJVU_file
http://en.wikisource.org/wiki/Wikisource:How_to_create_a_DJVU_file

Two incredible tools:
http://gscan2pdf.sourceforge.net/
http://unpaper.berlios.de/

My final code was
To rotate and crop all the tiff files:
$ mogrify -rotate 90 *.tiff
$
mogrify -crop 3600x2448+600x0 *.tiff

And then the following script:

#!/bin/bash

shopt -s extglob

MASK="*.tiff"

for i in $MASK; do
if [ ! -e $i.djvu ]; then
echo "$i"
tifftopnm $i > $i.ppm
# unpaper --layout double --output-pages 1 $i.ppm x_$i.ppm
cpaldjvu -verbose -bgwhite -colors 2 $i.ppm $i.djvu
# rm x.ppm $i.ppm
fi
done

# compile a bundled DjVu document
djvm -c book.djvu $MASK.djvu

To make the OCR, use the service in the page
http://any2djvu.djvuzone.org/

Saturday, October 4, 2008

FATsort: listen your MP3 in order!!!

FATsort is useful if you want to listen in order your MP3 files on your MP3 hardware player.

FATSort is a C utility that sorts FAT16 and FAT32 partitions. FATSort reads the boot sector and sorts the directory structure recursively.

$ sudo umount /dev/sda1
$ fatsort /dev/sda1

Monday, September 15, 2008

How to Create a Flash Demo (for showing software)

Use one of the following:
http://www.debugmode.com/wink/
http://www.prasannatech.net/2008/08/how-to-create-flash-demo.html
http://www.linux.com/articles/113764
http://www.unixuser.org/~euske/vnc2swf/index.html
http://apusay.blogspot.com/2008/01/30-screencasting-software-with-download.html
http://wc4.worldcrossing.com/webx/.1dea8f49

Sunday, September 14, 2008

To avoid the crash of the X11 in MATLAB

Add the following lines

% To avoid the crash of the X11
% See http://www.mathworks.com/matlabcentral/newsreader/view_thread/158572
disp('Loading opengl software to avoid X11 crash')
opengl software

At the end of:
/usr/local/matlab/R2008a/toolbox/local/matlabrc.m

Saturday, September 6, 2008

Linux - howto convert iso-8859-1 charset html files into utf-8 charset files

$ iconv --from-code=ISO-8859-1 --to-code=UTF-8 ./oldfile.htm > ./newfile.html

ONLY convert file that really are in old charset to new charset

If you convert a file that was already in the new charset format or that you converted manually before or inserted text components in new charset inbetween old text components - then you may get something worse ... neither UTF-8 and nor ISO-8859-1 ...

hence make sure your OLD file IS in OLD charset before running the tool !!

Friday, September 5, 2008

Linux distributions for Parallel Computing

In http://en.wikipedia.org/wiki/Beowulf_(computing)

you can find a list of live linux distributions for parallel computing