Combine Multiple Field Tags in Go

I work a lot with JSON APIs in my Go projects, so almost every struct has some field tags on it to translate AccountID into account_id and that sort of thing. Then one day I needed to load data from config using mapstructure and it took a few attempts with the search engine to find the syntax I needed, so it’s here for next time I need it (or in case you need it too). Continue reading

Package Webpages as Apps with Nativefier

There are a couple of specific web pages I use in separate windows from my other browser tabs, so I can always find them. However this quickly leads to a too-many-browser-windows problem. Instead, I have been turning them into basic standalone applications with a javascript tool: nativefier and I thought I’d share my recipes. Continue reading

Create .desktop files for Ubuntu

Having created a couple of .desktop files lately to make launching apps easier, I thought I’d write myself a quick reminder of what I did and how it works. If it’s useful to you too, then great! I have one application in a weird path, and another that needs a specific environment variable set for it to work. Continue reading

Sharing Screen and Camera from Android to Linux

With all the video calls, twitch streaming and product demo work I’ve been doing recently, I’ve been building up a library of tricks for using my android devices within the video content I produce from my laptop, so I thought I’d share. I’ve worked remotely for many years but I think there’s more of us not going back to the office any time soon, so strong video communication skills are important! Continue reading

An Intro to Your ESP8266

I’ve been using a microchip on my neopixel shelf project but I kind of set it up, changed one thing, and didn’t look at it again until this week. I’d like to have my neopixels do something more interesting than one solid colour or another, so I needed to remind myself of what this thing is and how I do it. These are my notes, for my Ubuntu platform, but you’re more than welcome to them!

strip of pink LEDs embedded in a shelf, with an esp8266 on a wire in the foreground

Continue reading

Creating a Simple OpenAPI Spec

Having API descriptions in your workflow is a game-changer, but how do you get from nothing to a functioning spec in the first place? I recently made a very simple spec for a very simple API, and thought it might make a good example for anyone looking to create a spec for the first time. OpenAPI specs are very verbose so this very tiny API makes quite a manageable example! Continue reading

Using Environments in Postman

I’m using Postman more lately and showing off the Environments feature really often. I really like this feature for giving easy ways to handle values I use frequently, but it seems to be a bit of a hidden gem, so I thought I’d write about when I find it useful, in case you do too! Continue reading

Planets and Webhooks: a simple Flask app

As a Developer Advocate for an API company, I spend a lot of time talking about APIs and webhooks and HTTP in general. Recently I’ve been focussing on HTTP tools, but I really wanted a very simple example API that I could use that would return JSON but really let me focus on the tools, not the API. So I created a “Planets and Webhooks” API with a couple of GET endpoints to return JSON data, and another endpoint to receive and log incoming webhook data. Continue reading

Neopixel Shelf

In these days of video calling in place of any other social contact, I’ve seen a lot of excellent video backgrounds. Perhaps I’m old-fashioned but I went the traditional route, and set up my computer close to a wall (so you can’t see the mess in the room) and added a nice pinboard behind me. I looked a bit flat against the wall though, so I did what anyone else would do … and built a handmade wooden shelf with neopixels in it!

webcam's eye view, showing radiator, shelf with blue lights, and pinboard above
Continue reading