/etc/hosts for Windows Mobile 5.0

Agosto 29, 2006

This week I needed to set a fixed IP for a specific DNS name (I wished to bypass DNS resolution) in my WM5.0 PDA. While in Windows XP/2000 there is a /etc/hosts file, there isn’t any equivalent file in WM5.0 .

There is actually a way to achieve the same fixed DNS resolution, creating an entry into the registry:

For example, to set 192.168.0.5 for host “host01″, you can create:

[HKEY_LOCAL_MACHINE\\Comm\\Tcpip\\Hosts\\host01]
"ipaddr"=hex:c0,a8,00,05

More at windowsmobilepro.blogspot.com.

UPDATE 09/09/2006: Pocket Hosts is a tool written by Marc Zimmerman that allows you to edit the static host name to IP address mappings on a Pocket PC.


WordPress Mobile Edition

Agosto 28, 2006

Thanks to WordPress Mobile Edition, a plugin for WP by Alex King, I now have a Mobile Edition, i.e. a version compatible with low screen capability devices like PDAs or smartphone!


PocketIE loads “screen” CSS stylesheets

Agosto 28, 2006

When designing a web page you can apply different stylesheet depending on the browser calling the page. One way of doing this is by using:



(more about CSS filtering)

Asus A636As shown, there are supposely several type that could be specified: screen (Desktop browser with normal screen capabilities), print (for use when printing the page), handheld (for mobile devices with reduced screen capabilities)…

I was trying to apply this yesterday to a blog, so that when loading it from my PDA it wouldn’t load the full CSS, with backgrounds and so… with no success!

And I found that PocketIE loads both screen and handheld CSS, instead of just loading the handheld one! (yes, it sucks!)

I found a is a trick to fool PocketIE on Windows Mobile Team Blog:

Use media=”Screen”, not media=”screen” for your screen stylesheets, and pocket IE will ignore them.

It works! PocketIE won’t load the Screen’s CSS! This trick seems to be called “CodeBitch Omniweb case hack“.


Seamlessly upgrade WordPress

Agosto 11, 2006

WordPress 2 My blog is set up like this:
basedir/wp201: all files for WP2.0.1 (now obsolete)
basedir/wp203: all files for WP2.0.3
basedir/blog: symlink to wp203 directory

Apache serves files from directory blog, so upgrade and rollback can easily be made by changing the “blog” symlink from one version to another — the database part isn’t that easy though.

I have downloaded the last tarball, and untared it.

Then I’ve obtained the patch (diff -urN) between the original files from the actual version that I run (wp203) and last one (wp204).

I’ve copyied (cp -prl) basedir/wp203 to basedir/wp204. The last step is
applying the patch between pristine wp203 and wp204 to my own wp204 folder, and that’s it: I get a upgraded WordPress 2.0.4 installation, maintaining all the changes I have made to some files.


Proyecto de fin de semana: traslado

Agosto 7, 2006

Este fin de semana he realizado mi “traslado” de ordenadores a otra habitacion donde he montado un pequeño despacho. De esta forma he liberado la habitacion para la niña y he montado el despacho en la habitacion de invitados.


No tires papeles con tus datos

Agosto 6, 2006

PowershredP5+Hace un par de semanas me compre una destructora de papel: le metes las hojas y te las corta en tiras. La compre porque me daba mal rollo tirar papeles con mis datos personales: algunos papeles del banco que no quiero conservar, recibos de tarjetas… Aun asi tirar una bolsa de tiras de papel me parece un poco llamativo. Asi que las tiras, las remuevo, las mezclo e intento tirarlas a la basura mezclandolas en varias bolsas, asi supongo que es mas seguro.

He comprado el modelo mas barato que habia en Media Markt. Es una Powershred® P-5+ de Fellowes.


Debian sobre HP PA-Risc

Agosto 5, 2006

Acabo de instalar una Debian Sarge sobre mi maquina HP9000 B180L: una modesta workstation, con un procesador pa-risc PA7300LC a 180Mhz. Vamos, todo un maquinon! jeje. Esta maquina no es arquitectura x86, es hppa.


La verdad es que me ha molado bastante esta instalacion. El tema es que esta maquina no tiene ni disquete, ni lector de CD/DVD. Bueno, tiene un drive de cintas DDS2, pero creo que de momento no hay distribuciones de Debian que permitan bajarse una cinta botable de instalacion — acaso alguien conoce alguna?

Asi que probe a botar e instalar por red! Y funciono. Para eso me apoye sobre otro servidor que tenia, un Debian sobre un PC. Como dijo un compañero mio, “esto es una buena freakada” ;) .

Baje e instale el dhcpd y el tftpd en el PC. Baje tambien la LIF (kernel, initrd y mini-root fs de instalacion) de instalacion de Debian por red para arquitectura hppa. Y listo para botar: boot lan ! La maquina pide IP por dhcp, carga la LIF y arranca el debian-installer, el cual sigue la instalacion por red (bajando la distribucion de un mirror en Internet).

No me ha funcionado a la primera por un tema que habia instalado mal el PALO (como Lilo, pero para maquinas hppa). A la segunda ha ido bien!

Ahi esta:

$ uname -a
Linux kayak 2.6.8-3-32 #1 Fri Jul 21 17:02:20 UTC 2006 parisc GNU/Linux
$ grep -e model -e cpu /proc/cpuinfo
cpu family : PA-RISC 1.1e
cpu : PA7300LC (PCX-L2)
cpu MHz : 180.000000
model : 9000/778/B180L
model name : Merlin L2+ 180 (9000/778/B180L)