How to create an interactive transport system map with shortest path algorithm

SMRT system map

Recently I build a web application which is basically an interactive transport system map that utilise the shortest path algorithm. The web application sounds trivial but it demonstrates a practical implementation of graph data structure and shortest path algorithm that you probably studied during your Computer Science subject. Continue reading "How to create an interactive transport system map with shortest path algorithm"

How to control Raspberry Pi GPIO via http web server

control RPi GPIO via http server

You bought your Raspberry Pi, and managed to create a python script to turn on/off an LED via GPIO. Then you are wonder "How can I control the GPIO via a web page"? This is a common questions been asked repeatedly on Raspberry Pi StackExchange and Raspberry Pi user groups. Continue reading "How to control Raspberry Pi GPIO via http web server"

How to plot cycling route using Google Maps API and Flask web framework

Plot cycling route using Google Map API and Flask

Other than tinkering electronics hardware and computer programming, I spend a lot of time on cycling, this article combines my cycling hobby with my programming skill and talk about how to plot cycling route using Google Map API and Python Flask web framework. Continue reading "How to plot cycling route using Google Maps API and Flask web framework"