python
I Can't Believe It's Not Real Data! An Intro to Synthetic Data
What is Synthetic Data? What can I use it for? Is it as good as real data? Find out the answers to those and more
Redirecting Web Traffic Using Flask
In this tutorial we'll use Flask and DigitalOcean's App Platform to redirect traffic from one URL to another.
Getting Started with Flask
Flask — a, free, open-source Python web application framework — is one of the best ways to build applications. It is a micro framework, meaning your entire application can fit inside a single Python source file
Django or Flask: How Do I Choose Which To Use?
As a Python developer, I love both Flask and Django. But how do I choose which one to use? Over the years I've developed a very simple test that helps me decide if I'm going to use Flask or Django for my projects.
There's a Snake in the Birdhouse! Building a Python Culture at Vrbo
We all love Python, but not everyone is fortunate enough to use it at their day job. Come and listen as I detail the journey I took to establish Python as an onroad option at my company. Viewers will leave having learned from my experiences—both successes and mistakes—and with a solid plan for implementing Python at their job.
Using Signals to Clean Up My Mess in Django
While trying to cascade deletes of Droplets when I delete the parent Class they
would have been associated with in DigitalOcean Classroom, I attempted to
overwrite the delete
method. This only works part of the time, so I instead
turned to signals, specifically the post_delete
signal. Now no matter what
triggers the delete on the Class, my Droplets are cleaned up and deleted from
my account. I plan to use signals more for the creation process as well.
@receiver(post_delete, sender=Droplet)
def droplet_delete(sender, instance, using, **kwargs):
droplet = digitalocean.Droplet(token=settings.DO_TOKEN, id=instance.droplet_id)
try:
droplet.destroy()
except NotFoundError:
pass
Equivalency Statement In Hugo
Today I wanted to check if a page on this site was a TIL page and modify the list to not include a link if it was. To do this I used conditional statements in Hugo to check for equivalency.
{{ if eq .Type "TIL"}}
Building Docs like Code: Continuous Integration for Documentation
This talk discusses why developers dislike writing documentation, what we can do to address this, and provides a ready to go pipeline for automating your documtation
Simplify Your Python Developer Environment
Using `pyenv` with `pipenv` to seamlessly manage multiple environments and `pipx` for my installed executables gives me a Python setup that's a pleasure to work with. You should use them.
Giles
Giles is Python based ILS (Integrated Library System) focused around personal home libraries.
About
On my business card, I am a Developer Advocate. In my mind, I am an engineer. But in my heart, I am a teacher