Monthly Archive for August, 2006

/etc/hosts for Windows Mobile 5.0

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

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

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

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

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.




Close
Powered by ShareThis