2. Write Object Oriented Code (Python: beginner to pro in five steps)

Top five things to improve your coding (in no particular order): 1. Document your code (automatically) 2. Write Object Oriented code (This post) 3. Get acquainted with useful packages 4. Write tests for your code 5. Use a version control… Continue Reading →

Automating Global HTTPS Deployment using Fly’s API and Ansible

When it comes to deployment, Ansible is fast becoming the tool of choice for many DevOps engineers. When I discovered the benefits of using Fly – especially for HTTPS – I thought it would be a really useful to automate… Continue Reading →

Raspberry Pi SMS to email gateway – Part 4

In this final part, we’ll complete the gateway by setting up our relay to send an sms by sending an email. 1. Setup DNS and Mailgun I part 3 we already partially setup mailgun, but now you’ll need to add… Continue Reading →

Mining Monero XMR Crypto Currency on Raspberry Pi

UPDATE DEC 2 2017: Please see comment at the bottom for a suggestion of a miner that currently works! I’ve got a Pi 3 that’s hanging around doing nothing so I thought I would try and use it to mine… Continue Reading →

Raspberry Pi SMS to email gateway – Part 3

This is part 3 of our series in building an SMS to email gateway. Now we’re setup with the hardware tested and working, it’s time to write some python code for receiving an SMS and forwarding it to an email… Continue Reading →

WordPress Plugins Advanced Search

WordPress is a great system because it is extendible by using plugins. However, the search function within WordPress and their website is very annoying, since you can’t order your search results by plugin rating or most installed, so even if… Continue Reading →

Top five reasons why Engineers should use Python (instead of Matlab / MathCAD / Excel)

Before getting into programming, I worked as a Mechanical Engineer in the steel and rail industry. Whilst a lot of engineering inevitably involves boring bits like finance and project management, we do spend a fair amount of time doing mathematical… Continue Reading →

1. Documentation (Python: beginner to pro in five steps)

A friend of mine (another Andy!) started playing with Raspberry Pis about a year or so ago, and has set up his own code club to teach local kids. I’ve seen his videos of programmable robotic arms which looked very… Continue Reading →

Responding to a Chargify webhook with a python-flask API

It’s cool to be able to interact with publicly available API’s so you can grab weather reports, live travel updates or access your twitter feed. But even better, it’s actually pretty straightforward to create your own API using python and… Continue Reading →

Batch rename of filenames in Python

Well it’s Christmas Eve, and I had some free time so I wanted to try out a mini programming project that would be useful. It’s been annoying me (very OCD…) for ages that my MagPi (Raspberry Pi magazine) downloads are… Continue Reading →

© 2021 AndyPi — Powered by WordPress

Theme by Anders NorenUp ↑