I recently works on an IoT project which involving of rendering a dashboard using node-RED. I was wondering whether I could build a node-RED inspired dashboard gauge using D3.js JavaScript library, so I built one as a side project.
Continue reading “A node-RED inspired D3 Dashboard Gauge”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”
Add Syntax Highlight to WordPress Blog
If you are a blogger and a programmer, the chances are that you will often shows some programming code on your blog. The codes that you shared may not be syntax-highlighted like what you see on your favourite text editor or IDE, but it is easy to add syntax highlight to your WordPress blog using Highlight.js (hljs). Continue reading “Add Syntax Highlight to WordPress Blog”
What is GoogleSoftwareUpdate.app on my Mac?
I never know there is a software called Google Software Update that is installed in my Mac without my knowledge and sending data back to google more frequent than it is necessary until a couple of days ago. Google Software Update is not a malware, but it behaves like a one. Continue reading “What is GoogleSoftwareUpdate.app on my Mac?”
How to create Arduino Library from Arduino Sketch
On previous article, I wrote an Arduino sketch (i.e. program) for interfacing LCD 5110 display module with Arduino. Technically speaking the Arduino sketch that I developed is not an Arduino library yet. In this article, I will discuss on how to create an Arduino Library, or more precisely, how to convert the Arduino sketch into an Arduino library. Continue reading “How to create Arduino Library from Arduino Sketch”
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”
How to use LCD 5110 (PCD 8544) with Arduino
When I was in Taiwan a month ago for my cycling trip, I went to the Guang Hua electronics market and bought a LCD 5110 display impulsively without any particular objective on how I’m going to use it. I figured that I will eventually used it in one of my hardware project in future, but for time being I just want to understand how it works. My goal is to understand how the LCD display works, and then write a library for it without rely on third-party library, and furthermore, with common APIs for both Arduino and Raspberry Pi. Continue reading “How to use LCD 5110 (PCD 8544) with Arduino”