As a part of the Udacity Full Stack Web Developer Nanodegree, they got us to deploy our Flask app to an Ubuntu server running Apache. This was relatively simple (find out more with my full server setup document). However, on my own server I use the Nginx web server and…
Python
Udacity SQL Tournament Project
As a part of the Udacity Full Stack Web Developer Nanodegree programme, this project was all about designing an SQL database scheme to hold the results of games in an Swiss-system style tournament. SQL queries had to be designed to support the rules of the Swiss-system (basically, players with a…
Python example: Encryption using AES in Counter Mode
While doing a course on cybersecurity (yeah, academia still use the word cyber), I found the need to write an encryption module in Python that would safely protect a file on disk. I won't mention the course here. Don't want to make it too easy for future students. However, I…
How to run Python in Visual Studio Code
There isn’t much support for Python in Microsoft new code editor Visual Studio Code (VSCode), but there is a neat way to run your Python code right inside VSCode. It’s a feature called tasks and while the examples give are for compiling code, you can pretty much just…