Jan 9, 2009

Standalone Windows Mobile emulator setup

I've spent several hours trying to setup and run windows mobile emulator (we're working on mobile UI for Checkvist), and here is the essence of my experience:
  • Don't try to run this emulator under Parallels / Mac OS if you need to get a working network under the emulator. This is due to the fact that emulator uses Virtual PC functionality for setting up network, and it is not compatible with Parallels networking. In fact, I spent most of the time trying to overcome this problem, and failed :(
  • Make sure your windows has .NET Framework 2.0 installed (this may be not the case for Win XP) 
  • As mentioned above, you also need Virtual PC 2007
  • Install the standalone Windows Mobile Emulator
  • Install and reinstall second time (repair) the Windows Mobile Emulator Images. I used 6.0 ones, but there is 6.1 version as well.
  • Use these instructions to setup network in the emulator.



nginx, Analog stats, LOGFORMAT

Currently, I'm using nginx web server for the Checkvist project. And have the following definition for the access log format (from The Rails Way book):
    log_format  main  '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

Today I decided to create a quick and dirty statistics report for the checkvist.com using Analog. The problem was, that the log format used by nginx is not recognizable by Analog by default - one have to tweak LOGFORMAT option.

If you are in the same situation, here is the LOGFORMAT I use:
LOGFORMAT (%S - %u [%d/%M/%Y:%h:%n:%j %j] %j %r %j "%c" %b "%f" "%B" %j)
May be this will help someone :).