Monday, March 23, 2009

Tune MicroB

You can edit your /home/user/.mozilla/microb/prefs.js in terminal or via ssh ( when microb is not running ) and drop in some or all of these changes. You can also use the about:config page. It's slow, but will get the job done eventually.

# Too many connections and you will swap this poor CPU, this will allow it to be much more responsive.
user_pref("network.http.max-connections", 2);
user_pref("network.http.max-connections-per-server", 1);
user_pref("network.http.max-persistent-connections-per-server", 1);
user_pref("network.http.pipelining.maxrequests", 10000);

# Increase the cache size
user_pref("browser.cache.memory.capacity", 16384);

# Improve readability and clickability of most sites
user_pref("font.minimum-size.x-central-euro", 18);
user_pref("font.minimum-size.x-cyrillic", 18);
user_pref("font.minimum-size.x-unicode", 18);
user_pref("font.minimum-size.x-user-def", 18);
user_pref("font.minimum-size.x-western", 18);

# dunno how much help this is
user_pref("browser.sessionhistory.max_entries", 2);

# Impersonate the iphone. Works better than you might think most of the time.
user_pref("general.useragent.override", "Mozilla/5.0 (N8x0 like iPhone; U; Linux like Mac OS X; ARM; en) AppleWebkit/420+ (Gecko, like KHTML)");


I also recommend turning on swap space if you have not done so already. Control Panel -> memory -> virtual -> Extend virtual memory: Yes size 64MB


It's not perfect, but it's an improvement. I'm still tracking a few areas where I think we can improve the speed.

Add a city to clock in Nokia N810

I found Nokia N810 clock applet doesn't show my city. sucks.
I'll try this:

Adding a new timezone to osso-clock

The set of cities included in the Nokia N800 does not include any city in my home timezone (GMT+9:30, Australian Central Standard Time).

Luckily, I’ve worked out how to add one (the following is an example for my home city of Adelaide):

  • Edit /usr/share/osso-clock/wdb-parsed.txt and add the following line:
    • Adelaide|AU|Australia|Australia/Adelaide|1280|650|en_AU
      • (The 1280 and 650 numbers are pixel coordinates on the osso-clock map of the world)

You should be able to use the same method to add any other city that already exists in /usr/share/zoneinfo.


Whitby's instructions are missing a step. You need to edit osso-cities.mo in /usr/share/local/en_GB/LC_MESSAGES/ (adjust for your locale) to add the city. You can do it without using poEdit, but you still need msgunfmt and msgfmt. I had them on my Linux box, but I don't know if they are available for Windows.

1. Copy osso-cities.mo from the tablet to a Linux box
2. Run "msgunfmt osso-cities.mo -o osso-cities.po"
3. Edit osso-cities.po with any text editor. Add the following lines, with blank lines separating the from other pairs:

msgid "osso_db_city_toronto"
msgstr "Toronto"

4. Run "msgfmt osso-cities.po -o osso-cities.mo
5. Copy osso-cities.mo back to your tablet.