Setup the basic Alfred workflow If you don’t have Powerpack for Alfred you might want to get it before you start, as none of this will work without it. Open Alfred Preferences, go to Workflows and hit the + button at the bottom of the list: For this workflow, we can start with an “Essentials” […]
Lots of Flask tutorials recommend setting environment variables to protect any private information stored in the settings of the app. This is good advice, it only takes a moment of inattention to commit sensitive information to your GIT repo and then push it to a public place such as GitHub. If you’re using a virtualenv […]
If you’re running a Flask App on your Raspberry Pi in Kiosk mode you may find that you want to add a shutdown button to the ensemble so that you can switch the Pi off safely without having to SSH into it and manually issue the shutdown command. Based on Adding a Shutdown Button to […]
If the fact that the Flask development server cant find your favicon annoys you shove your favicon into your static folder and do this: NOTE: this is one of several ways of getting rid of that particular error and is the one I’m using today. I’ll add more as I use them.
Got a Flask app you want to run on a Raspberry Pi in kiosk mode? Here’s how. Setup Set up your Raspberry Pi to work in kiosk mode – I usually set it to go to Google or the BBC News, something I know is unlikely to fall over while I’m testing. Once you know it […]
I’ve been playing with Flask a lot in the last few days. If you’re going to do anything with sessions in Flask you first need to generate a secret key which you use to cryptographically sign the session. I got a tad bored of mashing the keyboard to generate them so I wrote a short script to […]
For the lovely ladies on my short Introduction to Programming course here is an answer to the code challenges at the end of the course, this is not the only answer, nor is it necessarily the best answer but it does work and has been thoroughly tested. The challenges were to add the following functionality to your […]