Posts

Coupled Transactions

7 minute read Published:

After several iterations of trial and error, I write code to update two databases while keeping them in sync.
Background We’re writing an application in Typescript. We have two Postgres databases that we want to keep in sync for the tables that they have in common. I’ll refer to them as our main database and our synced database. The synced database contains all the tables that our main database has plus other tables that our application won’t be touching. We want to update the main database live while keeping the synced database identical.

How to Create a Blog with Hugo and Gitlab Pages

4 minute read Modified:

Tutorial and documentation of how I built this site.
The day before starting this site, I had just started a blog using Github Pages and Jekyll and I wanted to compare the experience of building a site with Gitlab Pages and Hugo. Steps These steps are from the Hugo Quick Start guide and from the Hugo Gitlab Hosting Guide. Create a new Gitlab repository called ${username}.gitlab.io. Install Hugo. On Mac, you can run brew install hugo.