When I was 12, I was given a Raspberry Pi. For the first couple of days, it was really fun. After I had browsed the web for a while and played a bit of Minecraft, it sat in it’s box for a few months. I really had no idea what to do with it. That was until I discovered that I could build a website with it.
I have a bit of a complex set up with all my sites and services, mainly due to using a multitude of different tools and languages to deploy different things. Currently, I have one main OVH server which most of my stuff is hosted on, including different database engines, Node.js and PHP apps.
A couple of weeks ago, a friend of mine reminded me about Docker. Docker is a containerisation platform which allows you to deploy different systems very quickly and efficiently on the same host machine. Not only that, you can put several Docker hosts together in order to create a swarm. It’s like VMs, but cooler.
I recently undertook the expedition phase of my Gold Duke of Edinburgh in a Canadian open canoe. The team and I paddled from just outside Thetford all the way down to Cambridge on the River Thet, the Little Ouse, the Great Ouse and finally, the Cam.
For the expedition, we needed to have an “aim”. This could be anything from photographing the team at checkpoints to measuring the water PH levels. My team opted to photograph wildlife along the way and due to this, I took along my Nikon Coolpix P610 because it featured GPS – something I thought would be useful when it came to showing where the photos were taken! The camera also had a “logging” mode which allowed logging of it’s location, speed and altitude, every
n number of seconds for
x amount of time. I set it to every 30s for 12 hours each morning before we left so that I could see our precise route.
Note: Healthy was launched about 5 months ago but I’ve only just got around to writing this post.
On Nov 3, 2015, SubjectRefresh spent a day in London at the annual Open Data Institute Summit, where we gave two presentations on our Young Rewired State Festival of Code 2015 Refresh app.
We were also challenged to create an application using open data that gets people to eat healthier. We came up with Healthy, a calculator that tells you “the time to burn” of a particular food.
It’s built on top of Node.js and uses Socket.io to communicate with the browser in real time. This means no page refreshing, no Ajax calls and no latency. We use an API to collect the information about the food the user has requested and then use some algorithms to figure out how much time doing a particular excercise is needed to burn off the calories.
I worked mainly on the algorithms to extract the information from the API and also wrote a large amount of the main JS for the Node.js web server and Socket.io integrations.
The code is available on GitHub and you can try out Healthy now at http://subjectrefresh.info/healthy/!