Sunday, April 26, 2015

Sunday Sermon: 50 Ways to Patronise your Lover / Husband / Wife

Miley Cyrus: 50 Ways to Leave your Lover

I'm normally pretty critical of Miley Cyrus. Her politically incorrect behaviour is a pretty bad example to /the youth/ of today.

But there are worse.

Substantially worse.  Some publications espouse a set of behaviours that by most modern 21st century thinking persons standards are outdated, sexist and reprehensible.

Oh, and it's inevitably backed by Religion

Exhibit 1: 

25 Ways to Communicate Respect to Your Husband

Exhibit 2:

25 Ways to Show Love to Your Wife

Now for a start there is just no concept here of same sex marriage?   If a Man marries a Man or a Woman marries a Woman as is legally possible in the UK   (and I don't just mean Civil Partnership, I mean marriage)  then exactly which tomb of greatness should couples follow here.

I suppose what I am politely saying is that in my opinion these two books re-enforce a totally outmoded stereotype which has run it's course.  In the 21st Century Same Sex marriages exist. Further a man or a woman can be /head/ of the household.   Today it's not the role of the "woman" to faun over her husband and support him regardless, and it's not the role of the husband to "forgive his well meaning wife when she transgresses his rules that found and make his family"

Now I am far too polite in these matters, so I will hand over the lesson to Patti Ford instead.  She can more tell it /how it really is/

Please read the article in full ( < 5 minutes)

25 Bullshit Ways to Communicate Respect to Your Husband


Saturday, April 25, 2015

Lausanne 20Km 2015

The Day Before
You need to pickup the race numbers the day before and so on Friday evening we schmoozed over to the West of Lausanne near the running stadium and lake and picked up our race numbers and goodie bag  (containing some pasta, some lotions, a biscuit, and a caramel chocolate bar), oh and the green Lausanne 20Km Tshirt.

After obtaining race numbers we mulled around the /village/ expo and picked up some catalogues for some summer Swiss races as well as a chat to the Powerbar  (now not Nestle since they sold it in late 2014) and also the Compex electro muscle stimulation gadget (that we very much approve of).

It was dry until about 10 minutes before the race start at 18.00 and thereafter it rained with a steadily increasing intensity.  This meant that on the course large puddles and even cascading downhill streams of water needed to be avoided.  All par for the course and this is a relatively short run so we thought what the heck!

Agata Report

I am so pleased.   I managed a time that was within a smidgen of my personal best for this race

Along the course I of course bumped into many people that I know, this is Lausanne or the village as we like to call it.

It was raining so hard that I almost did not have to drink except for 1 glass of Powerade.

Marcus Report: No ecstasy just agony
For the last 2 months I have had quite severe nerve pains in my right back of thigh, buttocks and waist.    Essentially any attempt to run is quite painful and any attempt to run > 10Km/h is quite agonisingly painful on the right side.

So today I applied some hot lineament before the race, wore my best compression clothing   (which seems to help) and set off....

I has set my Garmin GPS watch to show speed and was careful to keep it to 13.5Km/h or less.  Speed was not a problem but rising hills were.  And in the Lausanne 20Km these start after 3.5Km or so.

Every step up every hill was agony and by 10Km I could barely feel or control my right leg.  It was very painful.  But I only had to get to 12Km and then it was mostly downhill. After that I managed a pace of 5min/km upto 4:30min/km.  Downhill,  the pain was more tolerable.

I was glad to finish and I comment that my overall fitness level is better than ever, if I can fix this right leg/bottom/back pain I could have run this course substantially quicker without a shadow of doubt.


Agata and Marcus had a great time.  Pain aside the run went well for Marcus and all our race planning like gels and drinking in the right places and times worked out well.  We finished in good spirits and Marcus finished without breaking a sweat since he was not able to run quickly at all due to his injury.

We made it back home on the bus and had a large celebration meal.  This was our first race in 2015.

Agata 20Km : 01.44.20

Marcus 20Km (injured) 01:32:47

Lausanne 20Km results
Lausanne 20Km website

Friday, April 24, 2015

Anker 5 Port USB Charger

As time passes the number of gadgets that need USB charging seems to grow and grow.  In fact with the advent of USB 3.1 I believe that within the next 18 months most laptop too will be powered directly via USB.  But I digress.

Until recently at home in Switzerland we have made do with USB adapters usually supplied as standard by the manufacturer, or (yes, of course it's Apple) purchased separately because the powerful adapter you want, is extra.

As a subscriber to the xdadevelopers youtube channel  I was alerted to the Anker USB charger and it seems a low enough cost gismo to make a speculative buy ....

About 4 weeks later it arrived from Hong Kong.  [This kind of thing is not available in darkest Switzerland, come on!]

Single Mains in and 5 USB sockets out and upto 8 Amps total.  (40Watts).

So now 5 devices in the study are connected  (yes that is a 24 year old PC on the right.  I put the Anker unit close to him just to intimidate the old guy)

And I was so impressed that I bought a second unit  (yup, another 4 week wait) and plugged in our daytime running Bicycle lights and Logitech speaker in the basement too.

A great, modestly priced bit of kit at about 30GBP.  See below for full specification and ebay seller links


eBay Anker power brick
Anker 5 port official

Thursday, April 23, 2015

OnePlus and CyanogenMod meets Android 5.1

This is a terse but factual account of how to install and CyanogenMod based Android 5.1 onto you OnePlus phone


OnePlus smartphone owners have been waiting forever for CyanogenMod OS based on Android 5.0 but recently the first builds of CyanogenMod (CM) 12.1 based on Android 5.1 have appeared.  In this tutorial we will install (not upgrade) to CM 12.1 

The following procedure if mis stepped can render your phone dead as a dodo and then you are a little screwed.  I accidentally have two working phones  (see Two Phone Strategy) and so this procedure is being operated on my secondary phone, so should it go wrong I won't be in a big panic and can take the time to fix it.  

Data Deletion

This procedure deletes all data and applications on your phone.  Whilst they will be re-installed (because automatic backups of the existing phone are set on) note that you need to enter all userids and passwords for each application again as necessary (example DropBox).

Also, note for me that it's the other Primary phone (my Nexus 5) that has my Google Authenticator and other 2 step Authentication programs on.  So this leaves this OnePlus phone a clean and isolated upgrade.

Install an Android SDK onto a controlling PC

Download the Slim Android SDK  (Software Development Toolkit) and unpack the zip file.  The files should be as above.

For Marcus, as in a previous Android tutorial, I needed to use a Windows 7 , 32bit system.  None of my Windows 64 bit 8, 2012 installations (on the same hardware, physical not virtual) worked with this software. Bizarre.

Start Phone in Fastboot mode

I powered off the Oneplus phone then powered on and held volume up button.  Phone displays /Fastboot Mode/ words on screen.

Unpack SDK and Test it

Connect your OnePlus in /fastboot mode/ and fastboot devices must return something, after which you can unlock.

fastboot devices
fastboot oem unlock

If devices does not show anything you need to check the cable, try with alternative drivers here or here  You can't get anywhere till a connected phone over USB responds to fastboot.  So if you are here and nothing works you need to Google.

Install TWRP binary

I downloaded latest TWRP (Team Win Recovery Program) from here  leading to a file from

As you know Bacon is the codename for the OnePlus phone.

With this file in the same directory as fastboot.exe and the OnePlus still connected and in Fastboot mode, install the latest TWRP program

fastboot flash recovery twrp-

I explained more about TWRP in my 2 phone post but essentially this is a superior Recovery program that allows you to perform multiple diagnostic operations, or backups or installs.

Making a Backup

After TWRP is installed you can easily make a backup of your existing installation, and then transfer this to your PC afterwards for real protection  (should the phone get fully wiped)

Right now your phone is still connected to a Android SDK installed computer via the USB cable.  So we disconnect the phone, personally I then plug it into a mains adapter.  Power off, then start TWRP by Power On + Volume Down button

Select Backup

Connect to a PC and save all the Backup files with Copy / Paste.  For the impatient, know that the whole process takes <5 minutes.

Now we are ready to install the new OS properly:
Prepare Sources

Download 3 necessary files:

Latest Bacon Firmware

Latest 12.1 Build

Latest Google Apps  (I choose stock)

For me this looked like above

Transfer OS to Phone Disk

Now with TWRP booted, you need to mount some partitions and transfer these files downloaded to PC to the phone and then install them.  Perversely I could not do this on the Windows 7.32 machine I used to fastboot unlock the phone with since it could not see the Phones 'disk' as a drive no matter what drivers I installed. 

So, what I did was boot the phone into TWRP, then plug that into different computers until one of them could see the TWRP booted filesystem I needed ...

Initially phone is off, then powered on and holding volume down button. Should boot into TWRP.  If it boots to Android then power down and try again!

 Mount option and select System and Data and Cache

Plug in the phone and create a directory called ROMs and put into it the 3 files you previously downloaded.

Wipe Existing Installation

In the Wipe option choose Dalvik, System, Data, Cache and wipe it.

Install new CM12.1 i.e. Android 5.1 OS

Now in the install step select the firmware, cm-12.1, and finally the pa_gapps file in that order and install.

After completion (< 60 seconds) reboot!

It is rebooting and I'm sorry about the very mucky screen!

Basically at this point we are done, for completeness I'll paste in the remaining screens

 Rule Britannia and install UK English.

 Add back my gmail account

 Restore backup and all applications

At this point it has to download all your applications from the Play store and install them.  During this part apps icons with circles around them as shown are being installed.

Quite a few cups of coffee later and all is installed and working.   Voila.

Further updates from the Google Play store are then made to really complete everything.

All I had to do now was

- Fiddle around and reinstate my favourite settings (clock position, display timeout, lockscreen etc)
- Start some applications that need userid and Passwords e.g. Withings fitness, Runkeeper, DropBox
- Make sure DropBox and Google Drive are doing automatic uploads and backups
- etcetera

Total time of whole operation is < 1 hour end to end, once your are practised. 

I hope this works for you and that you can now enjoy Android 5.1 based CyanogenMod.



If whilst installing/ upgrading the phone gets to the end of the process, prints an error then reboots and tries again it might get stuck in an infinite /bootloop/.

To solve  First: 
Read this article

Essentially what you would need to do is

- Try wiping Dalvik cache

- Install a different OS build, at worst the one that you had previously installed  (i.e. a backout)

Note that right now I  can't seem to upgrade from any CM12 (Android 5.0) or CM12.1 (Android 5.1) base to a later CM 12.1.  I always got a bootloop.  So for example, right now to change to a later daily build I could not upgrade (dirty flash) but only reinstall (clean flash) everything.  So I have not shown the simpler upgrade procedure in this article since it does not work! (just yet)


Latest Bacon Firmware
Latest 12.1 Build
Latest Google Apps