Develop inside a Docker container

Photo by Science in HD on Unsplash

Dependency hell is the curse of all software developers trying to get the right toolchain installed. In this post I’ll show how to set up a clean environment using the remote container feature of Visual Studio Code, including Python and C++ development tools.

If you haven’t already done so install VS Code from the official site (I’ll assume some basic familiarity in this post). I’m mainly using it for Python development — if you are too I’d recommend having a look at the tutorial for the Python extension as well. …

Exploring an idealised model with a Python simulation

Photo by Paweł Czerwiński on Unsplash

Oscillators are a ubiquitous feature of man-made and natural systems. The word usually applies to electronic circuits that produce repetitive voltage signals, but the same characteristics appear everywhere: musical instruments, neurons, robots, chemical reactions and animal populations, to name a few.

This post will work through a simple model of an oscillator inspired by the pendulum clock, including code snippets to show how the model can be simulated in Python. I’ve uploaded the complete code for generating the images in this post to github.

The first feature of an oscillator is that is rotates or cycles (so that you get…

James Thorniley

Computer science and mathematical ideas for programmers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store