Generating / Reading QR Codes via Python (Python)
A blog post looking at using Python to create or read QR Codes.
A blog post looking at using Python to create or read QR Codes.
The Software Engineering & Agile module of my degree apprenticeship is coming to a close. With that in mind I think I can now share the coding I’ve done for the assignment especially as I needed to store it in a public repository (it’s on my GitHub at https://github.com/geektechdude/qa-se-webapp ) as part of the submissions … Continue reading An Asset WebApp (Flask / Python)
Continuing on with the Software Engineering & Agile module of my degree, I need to be able to show my Flask web application running. After picking a cloud platform (in this case Azure) I git cloned my repository to the Linux Ubuntu instance that will be running it and realised that I’ve not included a … Continue reading Running Flask As A Linux Service (Linux / Python)
In this blog post I will be discussing Continuous Integration (CI) with GitHub Actions. Readers of previous blog entries may remember that I’ve tackled Continuous Integration (CI) with GitLab previously (see: https://geektechstuff.com/2021/04/05/python-unit-test-and-some-ci-via-gitlab-python/ ) and that last autumn (2021) I got into more testing (see: https://geektechstuff.com/2021/10/06/personal-update-django-and-mvc-mtv/ ). Thankfully both have helped as the current module of my degree apprenticeship is … Continue reading Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)
Less of blog post and more of a reminder to myself. When using Flask and Unit Testing with Python, if either of the below errors occur (or something similar): Then it may be because the setUp function of the test class has not set up correctly. Spent some time going round in circles until I … Continue reading AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)
With my Data Analytics learnings continuing at a fair pace I need to be able to turn data into something nice (e.g., plot it onto charts). I could use Power BI or R , but as regular readers may know my preference for most tasks is Python. Python offers several libraries that are great for … Continue reading Jupyter Notebook via Docker on Raspberry Pi (Python, Raspberry Pi)
I previously wrote about using some Python to stop AWS EC2 instances that had the tag “office_hours” and indicated that this could be automatically run via AWS Lambda. This blog post is a brief follow up with some notes on creating the Lambda function, using the Python from the previous blog post. Using AWS Lambda … Continue reading AWS Lambda – Stop Instances Outside Office Hours (Python / AWS)
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)
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)
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)