I wrote a shortest path algorithm about a year ago using Python and later on port it into JavaScript, I recently revisit the algorithm and port it into Golang and compare the performance of three versions on two different hardware platforms. Continue reading "Shortest Path Algorithm Revisit with Golang"
Category: Python
How to properly host Flask application with Nginx and Guincorn
I recently need to host a Flask web application, and decided to share my experience with this comprehensive guide on how to properly host a Flask web application with Nginx http server and Gunicorn WSGI server. Continue reading "How to properly host Flask application with Nginx and Guincorn"
How to create an interactive transport system map with shortest path algorithm
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
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
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"
How to use LCD 5110 (PCD 8544) with Raspberry Pi
In this article, I will briefly explain on how to create a Python class library to interface with LCD 5110 display module and shares the common APIs with the Arduino LCD5110 library that I previously created. Continue reading "How to use LCD 5110 (PCD 8544) with Raspberry Pi"
DS18B20 data analysis using Pandas
I wrote about how to collect data from DS18B20 temperature sensor with Raspberry Pi a few months ago, and this is an article on how to do some basic data analysis using Python with the collected DS18B20 temperature sensor data. Continue reading "DS18B20 data analysis using Pandas"