Posted on 2019-11-18T09:42:21Z by Kevin Foong
This is the second part of my earlier Flask / TinyMCE tutorial. See the first part here.
In this blog post I will outline the steps I used to save a thumbnail version of any image I upload to my post. Here I used the very useful Pillow (Python Imaging Library) library.
TinyMCE has a great image uploader feature where you can simply drag and drop images to directly upload into your post. I have summarised some of the main implementation points below:
Read more ...
Tags:
tinymce
flask
python
Posted on 2019-11-18T08:49:23Z by Kevin Foong
Using Python to analyse a dataset on Premier League soccer matches around the metrics of "possession" and "matches won", reveals some interesting findings. This is a previous assignment I did for my Udacity Nanodegree in Data Analysis.
In season 2015/2016 Leicester City won the league at starting odds of 5000-1. Their possession stats (number of matches where they had more possession than the opposition) put them 3rd from bottom, but then we can deduce that perhaps they were also a lethal counter-attacking side.

Read more ...
Tags:
python
data
Posted on 2019-08-25T04:10:15Z by Kevin Foong
I have just completely re-designed the front-end of this website using HTML, CSS and some vanilla Javascript. I decided to try and create my own CSS without a framework and it was certainly a good learning experience. As you recall previously I used Bootstrap. I think beginning developers should definitely be proficient at plain CSS first before jumping onto a framework.
Doing this design exercise brought me to the topic of IE 11, as you do, when you find out your design doesn't quite work properly on IE 11 but working fine on all other browsers. So I check ever so often at the stats to see when IE 11 is ever going to die out - it seems it is quite a stayer. It is interesting though to know that Microsoft themeselves are actually discouraging users from using IE. This blog post "The perils of using Internet Explorer as your default browser" is quite an interesting read.
Tags:
CSS
Posted on 2019-05-08T11:59:33Z by Kevin Foong
This is the classic Snake game that I created in Processing. It is based off Dan Schiffman's great Processing tutorials here.
To play you have to eat the food (in green) but avoid the poison (in purple). The green food is worth 2 points. After a while it turns pink and is only worth 1 point. If you eat the poison 3 points is deducted. The controls is via a 3x3 grid mainly because it was originally designed to run on a mobile phone.
Enjoy!

See Snake Game
Tags:
processing
games
Posted on 2019-05-06T13:03:57Z by Kevin Foong
"Garden" is an orginal sketch I created in Processing (P5.js)
This sketch experiments with bezier curves. Click anywhere on the grass to grow your own garden!

See Garden
Tags:
processing
Posted on 2019-05-05T07:25:52Z by Kevin Foong
"Sun & Moon" is an original sketch created using P5.js, the Javascript version of Processing. It is a simple sketch based on trigonometry to calculate the closest "sun" then moving towards it and finally rotating around it.
To play click anywhere on the screen to spawn a "moon".

See Sun & Moon
Read more ...
Tags:
processing