Monday, 27 August 2012

Getting Gmail back on CyanogenMod 7

In the distant past, I mentioned my then newly acquired HTC Wildfire and looked forward to converting into a productivity machine. That never happened, mostly on account of it being a pretty slow phone. For example, it can't really handle Skype. It has been very useful for allowing me to sift through my RSS feeds in otherwise wasted time but it hasn't revolutionized how I work. But recently, I've been finding that it has far too little space on the ROM to keep up with newer versions of major mobile apps. So I bit the bullet and ROM'ed my phone. That is, I installed CyanogenMod 7, which allows you to force applications onto external storage (i.e. the SD card).

This post won't tell you how to install the new OS. That's well-covered by the relevant article in the CyanogenMod wiki. However, after installing, I found myself without Gmail. Other Google apps installed correctly with the relevant package but Gmail remained conspicuously absent from the Play store.

The solution I found is to fake your location in the Play store to somewhere in the US, where Gmail is available from the store. For this, you need Market Enabler, available here but not in the store. You'll need to allow non-Market applications but if you've haven't yet, you'll be prompted. Once it's installed, feign your location as a US provider by long-pressing an appropriate choice and changing the location. Gmail should now show up in the Play store and you can install it and happily reconnect to your mailbox.

Friday, 24 August 2012

.gnuplot, the startup script for Gnuplot

I've been using Gnuplot for a long time but I've only now come across the appropriate way to execute a default script when the program runs. Just put your favourite commands in ~/.gnuplot and they'll be executed whenever Gnuplot starts. For example, my .gnuplot file starts with

set term x11
set style data lines

Note that typing reset restores the defaults and does not run .gnuplot again.