VirginBroadband ssh timeouts

I attempted to upgrade to Virgin’s 50 Mbps Internet, so they replaced my old cable modem with their new SuperHub. And immediately my ssh connections to remote servers started timing out after a couple of mins. Very annoying… I’ve been on the phone to their support team and have so far been told: “It’s a known problem with some hubs, we’ll send you another one.” “It works for me. Can’t be a problem.

VirginBroadband 50 Mbps service - check upload speed before ordering

I get broadband Internet from Virgin, was 10 Mbps but I got seduced by the promise of a 5 Mbps upload speed to upgrade to the 50 Mbps service. Engineer came, replaced old cable model with whizzy new SuperHub, left. And that’s when all my problems started… 3 problems: engineer didn’t use power supply which came with the hub, just reused the old one (wrong voltage, wrong amps, ran far too hot) Upload speed still less than 1 Mbps.

Selenium WebDriver won't let you add/change request headers

Selenium looks like being a good tool for writing some automated browser tests. Selenium WebDriver with the python bindings looks like it could be fantastic for doing this. But then they go and spoil it… I need to be able to modify the headers in my requests as part of my tests. WebDriver doesn’t let you do that. Worse, its a conscious design choice they have made to not let you do this since they want WD to only do what a user can do.

How to import a module programmatically

To import a module where you have the module name as a string and want to do it programmatically: X = import(‘X’) X is now a variable that can be used in your code: e.g. getattr(X, method)

converting ssl cert from PKCS#12 to PEM

$ openssl pkcs12 -in /path/to/my/cert.p12 -out /pathto/my/cert.pem If you get “X509_check_private_key:key values mismatch” e.g. with stunnel, then try adding -clcerts $ openssl pkcs12 -clcerts -in /path/to/my/cert.p12 -out /pathto/my/cert.pem

HOWTO install couchdb 0.11.0 on Ubuntu Lucid from source

Only 0.10.0 available in ubuntu package, but I want 0.11.0. Here goes… Get couchdb tarball from apache couchdb website. sudo apt-get install xulrunner-dev libicu-dev libcurl4-openssl-dev erlang-dev help2man You need xulrunner-dev as a replacement for the Mozilla spidermonkey which used to conflict with Mozilla and is not available in Lucid. Then follow the rest of the instructions at http://wiki.apache.org/couchdb/Installing_on_Ubuntu (look for the section called “Ubuntu 10.04”)

iPad annoyances

Can’t use certificate authentication with Safari, so there are some websites I can’t access that I can from my laptop. iPhone-native apps don’t rotate into landscape mode. Book selection in iBooks is paltry.