Why Use Environment Variables? Whilst building my Django project I replaced several of the values within settings.py with an option for them to be read from environment variables, rather than storing them in plain text within settings.py. This change allows me to store the settings.py file within a source control repository (e.g. Git) and also … Continue reading Docker – Environment Variables, Env File & A Little Django (Python)
Category: Python
Personal Update, Django and MVC / MTV
Last autumn (2020) I started a university degree apprenticeship to make up for that fact that I don't currently have a degree and that I enjoy learning a lot more now than I did in my late teens/early 20s. One of the modules I'm undertaking is Web Application Development, which I'm going to expand on … Continue reading Personal Update, Django and MVC / MTV
AWS DeepRacer – Reinforcement Learning (Machine Learning)
My interest in machine learning has continued to grow and this week I had the opportunity to attend an AWS DeepRacer event. As I'm taking a look at DeepRacer I decided to write this blog post to store my notes and hopefully help me with some of the options. The aim of DeepRacer is to … Continue reading AWS DeepRacer – Reinforcement Learning (Machine Learning)
Practical Deep Learning – Book Review (Python)
Machine learning is a very big field for both amateur and professional computer scientists. This depth can make accessing the topic, which is dynamic and fast moving, seem complicated. Thankfully Ronald T. Kneusel has stepped up with a book to not only introduce the topic but also to lay the groundwork with skills to help … Continue reading Practical Deep Learning – Book Review (Python)
Powering Off AWS EC2 Instances via Tags (Python)
AWS EC2 instances can be powered off (or on) via a few lines of Python and the Boto3 library. Below is an example I'm currently playing about with. The instances segment filters on all EC2 instances that are running and contain a tag of "office_hours", great to run at the end of the day to … Continue reading Powering Off AWS EC2 Instances via Tags (Python)
Python Unit Test And Some CI via GitLab (Python)
A post looking at Python Unit Tests and GitLab CI.
Grafana – Using An API Call To Add DataSources (Python)
I've written blog posts on how to install Grafana and data exporters using Ansible (https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/) and a blog post on adding users to Grafana using an API call (https://geektechstuff.com/2021/01/06/using-an-api-call-to-make-multiple-grafana-users-python/), but after re-reading my blog posts I decided to automate the process (previously a manual step in the Ansible post) of adding data sources. I have … Continue reading Grafana – Using An API Call To Add DataSources (Python)
Follow The LED with Raspberry Pi Pico and Pico Display Part 1(Python)
With a Raspberry Pi Pico and a Pimoroni Pico Display in hand, I have decided to try and make a game. The Pico Display has a colour LED, so for my first attempt I decided to utilise it for a game of “Follow The LED”. The game is similar to one most people play as … Continue reading Follow The LED with Raspberry Pi Pico and Pico Display Part 1(Python)
Tackling Fractions With Python
Fractions, not something I've really looked at since my school days. However with home schooling currently taking place here in the UK due to another Coronavirus lockdown, it is something that I've been refreshing my knowledge on this week. Note: https://www.calculatorsoup.com/calculators/math/fractions.php provides an online calculator to help with fractions. The site also provides the formulas … Continue reading Tackling Fractions With Python
Using An API Call To Make Multiple Grafana Users (Python)
A little while ago I looked at using Grafana on a Raspberry Pi ( https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/ ), today I created a quick Python script to create new Grafana user accounts using the Grafana API. Why Use The API? Grafana does have a graphical web based interface for creating users, and if creating a single user account … Continue reading Using An API Call To Make Multiple Grafana Users (Python)
You must be logged in to post a comment.