domingo, 26 de agosto de 2007

Java: determinar si un String contiene un Substring

  • http://www.exampledepot.com/egs/java.lang/HasSubstr.html

miércoles, 22 de agosto de 2007

Javadoc: como escribir documentación para javadoc

Tutorial de Sun con guías respecto a como crear documentación para javadoc.
  • http://java.sun.com/j2se/javadoc/writingdoccomments/

Bash: programación

Referencias para programacion bash.
Basico
  • http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Avanzado
  • http://tldp.org/LDP/abs/html/index.html

lunes, 20 de agosto de 2007

Netbeans: habilitar las assertions

NetBeans 4.x and 5.x

  1. Invoke Properties on the project you are going to debug.
  2. Select "Run" property.
  3. Insert " -ea " to the "VM Options" field.

sábado, 18 de agosto de 2007

Ubuntu: Hacer una imagen iso de un cdrom

To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.

dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi

To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.

mkisofs -o /tmp/cd.iso /tmp/directory/

This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.

viernes, 17 de agosto de 2007

MDA Pro: WAP e Internet

Start > Settings > Connections > Connections > Add a new modem connection
  1. poner el nombre: WAP
  2. Modem > New
    1. poner el nombre: WAP ANCEL
    2. Cellular line (GPRS, 3G)
    3. Access point name: wap
    4. username: f
    5. password en blanco
    6. domain en blanco
    7. Finnish
  3. Proxy Settins
    1. This network connects to the Internet: ok
    2. This network uses a proxy server to connect to the Internet: ok
    3. Advanced
      1. HTTP
        1. Server: 200.40.246.2
        2. Port: 3128
        3. username: f
        4. password en blanco
        5. domain en blanco
      2. WAP
        1. Server: 200.40.246.2
        2. Port: 9201
        3. username: f
        4. password en blanco
        5. domain en blanco

jueves, 16 de agosto de 2007

P2PMPI p2pmpirun script mejorado

#!/bin/bash
# Usage : p2pmpirun -n [-r -l -o] [args]
# -n : number of processes MPI
# -r : number of replica per rank (omit for 1 replica per rank)
# -l : list of input file (omit for transfer only executable file)
# -o : output will be collect in file (omit ouput will be on standard output) [not available]
# : executable file without .class
# args : argument of executable file
#######################################################################################
if [ $# -lt 3 ]; then
echo "Usage : p2pmpirun -n [-r -l -w

domingo, 5 de agosto de 2007

CSS: background image stretched to fit window size

Excelente tutorial de como hacer que una background image se estire y se ajuste al tamaño de la pantalla.

Obtenido de:
  • http://www.htmlite.com/faq022.php