OPI Blog
Learn from experts in their fields

Browsing Tags: Modern API

Nov 24, 2020
Performance Test Liquibase Update
When doing a liquibase update to a database if you’re having performance issues, it can be hard to find out which updates are causing problems. If you need to measure the time to apply each ...
Aug 26, 2020
Large Data Migrations Django
Been working with a Django project with a large dataset and wanted to insert a bunch of inter-related data in a migration. Where Django has support for data migrations via the migration framework, it doesn’t ...
Local Testing for GCP Cloud Functions
It’s easy to write Google Cloud Functions in Python. The trick is to put a function that takes a single object in a file called main.py. Their example is simply: def hello_world(request): """Responds to any ...
Sep 24, 2019
Some Command Line Tools for AWS
I’ve been working a lot in AWS lately and while I like the tech stack, going through the console to do stuff is really annoying to a command-line junkie such as myself. I could cook ...
Managing Python environments with direnv
A few months ago I discovered direnv and was surprised how I got along so well with out it. From the website, direnv ” allows project-specific environment variables without cluttering the ~/.profile file.” I used ...
Creating dynamic headers in Reportlab
When writing code to make a report, you never truly know what you are going to get into. In a recent Python project, I was using the excellent ReportLab libraryand things were going smoothly. But then ...
Creating Raw SQL Migrations in Django
I am using Django, which has great support for PostgreSQL-specific functions in it’s ORM. I wanted to use a SearchVectorField inside my application and PostgreSQL recommends creating a trigger for to populate that column. Well that was easy enough but I ...
Nov 27, 2018
Managing Multiple Python Instances
The problem with working on different Python codebases is the versioning and the large amounts of libraries available. Say you are working on a data science project using Pandas and then suddenly your boss wants ...
A Quick Tour of Joda Beans
One of my big headaches about Java is the amount of boilerplate code you need to put in to make things work right. Especially in POJOs. I mean, is the solution to always run “generate ...
Converting Maven Dependencies to Gradle
I had the, er, honor of converting an old ANT build to Gradle. It was one of those with the directories filled with jars and was having a hard time figuring out what dependency was ...