After using the stock Android ICS that came with my Sensation for a couple of years and getting fed up with it crashing and being slow all the time, I decided to try out the CyanogenMod (CM) everyone was talking about. When I started with this endeavour, I was a bit overwhelmed by the amount of incoherent/incomplete resources all around. In this post, I’ll try to summarise the steps necessary to install it in a more human way to help others achieve the same goal.
HTC Sensation and the material design of CM 12
Note: before starting any of this, backup (e.g. by syncing them to Google) all your personal data from the phone – contacts, pictures etc. The process will wipe it all!
The main, but partially outdated instructions to install CM on the Sensation (code-named Pyramid) can be found on this wiki site. The main difference now is that it’s no longer necessary to get S-OFF or use the Revolutionary app. It’s sufficient to unlock the phone on the HTC dev site by following their instructions (at the end these instructions will perform a factory reset). The recovery image can be set up by following the first part of these instructions to boot a recovery image. I downloaded the latest recovery (at the time the 126.96.36.199 normal version, not the touch version) from the official ClockworkMod site that supports CM 10. Later, I also figured out how to install the newer CM 12 based on Lollipop, so I’ll document these settings as well. Continue reading
Just trying out resin.io which is a nice new service that enables you to deploy apps to Raspberry Pi devices in a Heroku-like workflow:
git push resin master
In this post I’ll explain how I deployed a simple app that recites “N green bottles” written in Node.js to my Raspberry Pi via Resin.io – without having to ssh to the Pi even once. Continue reading
Changing CPU frequencies can be interesting to measure certain energy efficiency aspects. To manually change the CPU frequency in Ubuntu, first install
cpufrequtils to get the additional commands:
sudo apt-get install cpufrequtils
See the available CPU frequencies, the current frequency and governor per core.
For some time now, I had a pending task of converting the latin1-encoded MySQL database powering this site into utf8. I finally managed to do it after getting some advice from the kind people at a Vienna WordPress meetup.
The essence is that out of all the methods suggested in the official documentation, what worked best for me was dumping all the data to a text file, marking up and encoding it as utf-8 in a text editor and then importing it into a new database (instead of working on the production DB) that we point the wp-config.php file to after everything is verified.
Last evening as I was listening Maxïmo Park (to get in the mood for their concert today), I found the song Apply Some Pressure quite interesting. I learned to play it on my guitar and analysed the harmony a bit. Here is my recording of the song (courtesy of my turbo webcam microphone 9000) with annotated chord progressions: