-
How to Generate YAML-based table definitions with dbtoyaml
Today I extended an existing tool that generates your table definitions as YAML by inspecting your PostgreSQL db using Pyrseas. It’s a very minimal install. My addition was to make it work with only need Docker, and optionally Fish Shell in case you want to take advantage of a convenience script I made. Head over…
-
How to fix Viper unmarshal error for nested structs
Let’s say you have the following structs that you need to unmarshal using Go’s Viper library (Go configuration with fangs). It’s intended to parse the configuration file you have found on config.yaml on your root folder, which looks something like this: Symptom or Problem Sometimes you encounter unmarshalling errors when using viper.Unmarshal, or sometimes there…
-
How to send Keycloak events as a webhook
Keycloak is a powerful, open-source IAM provider that offers numerous out-of-the-box features. At the time of creating this blog post (2021), one key capability that Keycloak lacks is the ability to send webhook events to an external service. This blog post shows the step-by-step process to enable Keycloak to forward webhook events to a third-party…
-
Creating enum type tables on Hasura
So I recently streamed my late-night software development process (thinking out loud, walking through my thought process). A part of it was discussing how to create enum type tables using Hasura. I enjoy going through this process of thinking: moving from “I don’t know what to do” to the basic steps of “what do I…
-
VSCode Integrated Terminal fills with D^[[
When you press ALT while your VSCode intergrated terminal is open, it sometimes fills the terminal with D^[[. Github user meganrogge notes that you can fix this by configuring a setting on VSCode. Specifically, you want to go to VSCode settings and uncheck/disable the Alt Click Moves Cursor setting. You can search altclickmoves and it…
-
On Hexagonal architecture : Why? (Part 1)
Some interfaces provide many options and empower users immensely, but suffer in user experience. How might we find the balance between power and usability?
-
On Hexagonal architecture : Common mistakes (Part 2)
As the second entry in this blog series, this blog post jumps straight into issues and challenges encountered in the developer experience.