Assuming an IAM role from an EC2 instance with its own assumed IAM role
In AWS IAM’s authentication infrastructure, it’s possible for one IAM role to assume another. This is useful if, for example, a service application runs as an assumed role on EC2,...
Python environment with Pipenv, Jupyter, and EIN
Update 4/2019: This post gets a lot of traffic, so I wanted to note that the Python tooling described herein isn’t exactly what I’d recommend anymore. Specifically, I’d probably recommend...
Constructing a list from an iterable in Python
I discovered this unexpected behavior in Python when a generator function yields an (object) element, mutates that object, and yields it again. Iterating over the result of the generator has...
Using the Google Places API in Google Sheets
My girlfriend and I were making a list of places to visit while on vacation in a new city. We decided to put this data in a spreadsheet so that...
painting clouds with clojure
Over the 4th of July weekend I made this little program to generate images of clouds (ns clouds.core (:gen-class) (:import [java.awt.image BufferedImage] [java.io File] [javax.imageio ImageIO] [javax.swing JPanel JFrame...