Jamie Tanna | Software Engineer

  • /now
  • Blog
  • Links
  • RSVPs
  • Post by Kind
  • Search
  • Support Me
  • Hire Me

 Article

Weirdness with git diff-index showing 1 file changed, 0 insertions(+), 0 deletions(-) (1 mins read).

Featured image for sharing metadata for article

Something weird I hit last week with git diff-index, which shows 1 file changed, but no changes.

Mon, 23 May 2022 09:11 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #git.

 Article

Introducing a library for OpenAPI contract testing with Go's net/http package (2 mins read).

Featured image for sharing metadata for article

Creating a Go library that can verify net/http handlers implement an OpenAPI contract, for use with testing.

Sun, 22 May 2022 19:00 by Jamie Tanna's profile image Jamie Tanna . #go #openapi #testing #contract-testing.

 Article

Testing Go net/http handlers (1 mins read).

Featured image for sharing metadata for article

How to write unit tests to validate an HTTP handler.

Sat, 21 May 2022 21:44 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go.

 Article

Constructing a serialised YAML string in Ruby (1 mins read).

How to convert a YAML document to a string representation, preserving escaped newlines, with Ruby.

Fri, 13 May 2022 18:19 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #ruby #yaml.

 Article

Lessons learned from modernising a lesser maintained (Spring Boot) service (16 mins read).

What I learned from taking ownership of a lesser maintained service and bringing it up to a better standard.

Thu, 12 May 2022 08:55 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring-boot #supportability #incident-management #production #capital-one #technical-leadership.

 Article

Getting the fingerprint of a certificate in Go (1 mins read).

Featured image for sharing metadata for article

How to retrieve an X.509 thumbprint from a remote server, in Go.

Fri, 06 May 2022 21:20 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #certificates.

 Article

Getting the OpenID Connect thumbprint for AWS on the command-line with Go (2 mins read).

Featured image for sharing metadata for article

How to automagically retrieve an OpenID Connect thumbprint for use with AWS' OpenID Connect federated identity.

Fri, 06 May 2022 21:20 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #certificates #aws #oidc.

 Article

Setting up a Go package structure for a combined library and CLI tool (2 mins read).

Featured image for sharing metadata for article

How to structure a Go repository to be both a library and command-line tool(s).

Fri, 06 May 2022 09:20 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go.

 Article

Parsing AWS ALB/ELB access logs into SQLite (2 mins read).

Featured image for sharing metadata for article

How to take a set of ALB/ELB logs and convert them to an SQLite database for further processing.

Fri, 06 May 2022 07:49 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #sqlite #aws.

 Article

When should I use env to start a command with environment variables? (2 mins read).

Featured image for sharing metadata for article

When you should use the env command to specify environment variables when executing a command on the command-line (TL;DR: always).

Thu, 05 May 2022 21:02 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #shell.

 Article

Should I commit generated Go code? (1 mins read).

Featured image for sharing metadata for article

Answering whether go:generated code should be committed (TL;DR is yes).

Thu, 05 May 2022 09:31 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go.

 Article

Lessons learned from the recent job hunt (13 mins read).

A recap of the recent interview process with several companies, what I learned, and what others should know.

Mon, 02 May 2022 16:50 by Jamie Tanna's profile image Jamie Tanna . #job #interviewing #recruitment #monzo #starling #gitpod #deliveroo #atom-bank #compensation #negotiation #gov.uk #cddo.

 Article

Installing Nokogiri on an M1 Mac (1 mins read).

Featured image for sharing metadata for article

How to get Nokogiri building on an M1 Mac, when using Bundler.

Sun, 01 May 2022 14:39 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #mac #ruby.

 Article

Determining if there are uncommitted changes in Git (1 mins read).

Featured image for sharing metadata for article

A one-liner to work out whether there are uncommitted changes in a repository.

Fri, 29 Apr 2022 16:45 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #git.

 Article

Building a fault-tolerant work queue for command-line executions with GNU Parallel (2 mins read).

Featured image for sharing metadata for article

How to use parallel to create a lightweight work queue of commands, with retry logic and a record of what's been executed.

Thu, 28 Apr 2022 21:04 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #gnu-parallel.

 Article

Extracting Podcast Addict listening history from the SQLite database (2 mins read).

Featured image for sharing metadata for article

How to get raw listening history from the Podcast Addict database.

Thu, 28 Apr 2022 21:04 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #podcast-addict #sqlite.

 Article

Removing 'smart' quotes from a file, on the command-line (2 mins read).

A one-liner with sed to replace 'smart' quotes with regular quotes.

Thu, 28 Apr 2022 13:57 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #command-line #mac #linux.

 Article

I'm Joining Deliveroo (2 mins read).

Featured image for sharing metadata for article

Announcing my move into Deliveroo as a Senior Software Engineer.

Mon, 25 Apr 2022 08:57 by Jamie Tanna's profile image Jamie Tanna . #personal #job #announcement #cddo #deliveroo.

 Article

Automagically setting the project version for Go projects in SonarQube (2 mins read).

Featured image for sharing metadata for article

How to automagically set sonar.projectVersion for Go projects, based on Git tags.

Wed, 20 Apr 2022 22:17 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #sonarqube #gitlab-ci.

 Article

Converting a Byte Array to String from a Node.JS Buffer, in Go (1 mins read).

Featured image for sharing metadata for article

How to convert an array of bytes to a string using Go.

Tue, 12 Apr 2022 21:40 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #nodejs.

 Article

Prefactoring: Preparatory Refactoring (2 mins read).

Featured image for sharing metadata for article

Why I use prefactoring as a means to perform up-front refactoring for codebases, splitting these into separate PRs/MRs where possible.

Tue, 12 Apr 2022 21:03 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #git #workflow #refactoring #code-review.

 Article

Protecting an Architect Framework Application with OAuth2 or OpenID Connect Authentication (4 mins read).

Featured image for sharing metadata for article

How to set up OAuth2/OpenID Connect authentication with an Architect Framework application.

Mon, 11 Apr 2022 11:10 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #architect-framework #nodejs #aws-lambda #oidc #indieauth #oauth2.

 Article

Getting node-canvas to run on AWS Lambda (3 mins read).

Featured image for sharing metadata for article

Some common issues that occur when using node-canvas on AWS Lambda, and how to solve them.

Fri, 08 Apr 2022 14:29 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #javascript #nodejs #aws-lambda.

 Article

Parsing the Cookie and Set-Cookie headers with Go (2 mins read).

Featured image for sharing metadata for article

How to parse the value of a Cookie or Set-Cookie header to a JSON object.

Thu, 07 Apr 2022 10:18 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #http.

 Article

Generating a Go HTTP Client from OpenAPI schemas (2 mins read).

Featured image for sharing metadata for article

How to generate a Go HTTP client really quickly and easily, with no manual work, using the oapi-codegen project.

Wed, 06 Apr 2022 14:59 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #openapi.

 Article

Generating Go structs from OpenAPI schemas (2 mins read).

Featured image for sharing metadata for article

How to generate Go structs really quickly and easily, with no manual work, using the oapi-codegen project.

Wed, 06 Apr 2022 14:32 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #openapi.

 Article

Setting up GitLab CI for Go projects (1 mins read).

Featured image for sharing metadata for article

How to set up a basic set of automated builds for Go projects on GitLab CI, for modern Go projects.

Wed, 06 Apr 2022 09:36 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #gitlab-ci.

 Article

Introducing tiktok-mf2.tanna.dev, for converting TikTok video metadata to Microformats2 (1 mins read).

Featured image for sharing metadata for article

Announcing a hosted service for converting TikTok metadata to a Microformats2 object.

Fri, 01 Apr 2022 21:28 by Jamie Tanna's profile image Jamie Tanna . #tiktok #tiktok-mf2 #indieweb #microformats2.

 Article

Adding a Non-AWS Hosted Custom Domain to an AWS API Gateway without CloudFront (2 mins read).

Featured image for sharing metadata for article

How to set up a domain name for AWS API Gateway for a domain that isn't managed through AWS Route 53.

Fri, 01 Apr 2022 15:37 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #aws.

 Article

Creating a minimal AWS S3 Bucket Policy for deploying with Hugo via hugo deploy. (1 mins read).

Featured image for sharing metadata for article

How to configure an AWS S3 Bucket for hugo deploy with the minimal access required for a role to write objects to.

Wed, 30 Mar 2022 17:17 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #aws #hugo.

 Article

Automagically deploying Architect Framework applications to AWS uisng GitLab CI (2 mins read).

Featured image for sharing metadata for article

How to use GitLab's OpenID Connect support with AWS, to allow deployment using the Architect Framework automagically on GitLab CI.

Wed, 30 Mar 2022 15:17 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #oidc #architect-framework #aws #gitlab #gitlab-ci.

 Article

Avoiding Spring context issues when parallelising @Nested Spring integration tests (3 mins read).

Featured image for sharing metadata for article

Using abstract base classes to reduce risk of Spring context overall issues with Spring (Boot) integration tests.

Tue, 22 Mar 2022 11:44 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring #spring-boot #testing #tdd.

 Article

Providing a basic implementation of Ruby's ARGF.read in Go (2 mins read).

Featured image for sharing metadata for article

Creating a Go helper method to read from stdin or a file, inspired by Ruby's ARGF.read method.

Tue, 22 Mar 2022 11:22 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #ruby.

 Article

Integration Testing Your Spring WebClients with Wiremock (4 mins read).

Featured image for sharing metadata for article

How to write integration tests using Wiremock, for use with WebClients.

Tue, 22 Mar 2022 10:38 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #testing #tdd.

 Article

Accessing the OpenAPI Specification for a Kubernetes Cluster (1 mins read).

Featured image for sharing metadata for article

How to get the OpenAPI specification for your Kubernetes Cluster.

Wed, 16 Mar 2022 18:26 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #kubernetes #openapi.

 Article

Solving ConnectExceptions with the Kubernetes Java ApiClient (1 mins read).

Featured image for sharing metadata for article

How I solved ConnectExceptions in my Kubernetes Java client usage, by moving to cluster mode.

Wed, 16 Mar 2022 17:51 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #kubernetes #java.

 Article

Automagically Auditing GitHub (Actions) Security using OpenSSF Scorecards (6 mins read).

Featured image for sharing metadata for article

How to use the OpenSSF Scorecards GitHub Action to audit your GitHub and GitHub Actions configuration, and a breakdown of some of the issues raised by it.

Tue, 15 Mar 2022 15:03 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #github #github-actions #security.

 Article

Introducing opengraph-mf2 a library, and service opengraph-mf2.tanna.dev, for converting OpenGraph metadata to Microformats2 (3 mins read).

Featured image for sharing metadata for article

Announcing an NPM package and a hosted service for converting OpenGraph metadata to a Microformats2 object.

Mon, 14 Mar 2022 19:20 by Jamie Tanna's profile image Jamie Tanna . #opengraph #opengraph-mf2 #indieweb #microformats2.

 Article

How to fix Failed to load ApplicationContext in Spring (Boot) applications (6 mins read).

Featured image for sharing metadata for article

Some common issues with Spring dependency injection and how to fix them.

Thu, 10 Mar 2022 16:04 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring #spring-boot.

 Article

Converting an x5c from a JSON Web Key to a PEM with Node.JS (1 mins read).

Featured image for sharing metadata for article

How to convert a JWK's x5c to a PEM-formatted certificate with Node.JS.

Sun, 06 Mar 2022 11:33 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #nodejs #jwks #jwk #certificates #pem #x509.

 Article

Extracting x5cs from a JSON Web Key Set (JWKS) to PEM files with Node.js (1 mins read).

Featured image for sharing metadata for article

How to extract the full chain of certificates from a JWKS' x5c parameter to files.

Sun, 06 Mar 2022 11:33 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #nodejs #jwks #jwk #certificates #pem #x509.

 Article

Generate a running mock server from an OpenAPI specification using Prism (3 mins read).

Featured image for sharing metadata for article

Using Stoplight's prism tool to run a stubbed server from an OpenAPI specification, for better testing.

Fri, 04 Mar 2022 17:52 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #swagger #openapi.

 Article

Gotcha: checked and unchecked exception handling from Spring WebFlux WebClient (2 mins read).

Featured image for sharing metadata for article

How checked and unchecked exceptions may appear when testing your WebClient code.

Fri, 04 Mar 2022 17:06 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring #spring-boot #java #testing.

 Article

Accessing the response body with Spring WebFlux WebClient with onStatus (1 mins read).

Featured image for sharing metadata for article

How to access the body of an (error) response when using WebClient's onStatus method.

Fri, 04 Mar 2022 16:55 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring #spring-boot #java.

 Article

Running a command on a visual selection in Vim (1 mins read).

Featured image for sharing metadata for article

How to pipe the text in a visual selection to a command, either to run it, or to replace the text in the seletion.

Thu, 03 Mar 2022 09:35 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #vim #neovim #command-line.

 Article

Updating the CA Certificate bundle in Chef Installations (3 mins read).

Featured image for sharing metadata for article

How to update/add new certificates to the Certificate Authority Certificate Bundle in a Chef Development Kit / Workstation installation.

Wed, 02 Mar 2022 09:59 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #chef.

 Article

Introducing a Go command-line tool for interacting with Micropub servers (1 mins read).

Featured image for sharing metadata for article

Announcing the initial release of micropub, a CLI for interacting with Micropub servers.

Tue, 01 Mar 2022 14:50 by Jamie Tanna's profile image Jamie Tanna . #go #micropub #micropub-go.

 Article

Automagically formatting on save, with Neovim and Language Server Protocol (LSP) (1 mins read).

Featured image for sharing metadata for article

How to use Neovim's Language Server Protocol (LSP) support to autoformat code on a file's save.

Tue, 01 Mar 2022 09:45 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #neovim.

 Article

Gotcha: Segfault when HTTP headers include newlines with Go (2 mins read).

Featured image for sharing metadata for article

Why you may be receiving a segfault when using http.Client with HTTTP headers that include newlines.

Mon, 28 Feb 2022 21:44 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go.

 Article

Converting Spring Boot Property Variables to Environment Variables with Go (1 mins read).

Featured image for sharing metadata for article

A command-line script to convert a Spring Boot property to an environment variable.

Sat, 26 Feb 2022 21:26 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #command-line #spring-boot.

You're currently viewing page 1 of 12, of 576 posts.

Go to the next page

Other links that may be of interest:

  • All Posts
  • Follow This Blog
  • Talks
  • Blogroll
  • Why is my site www.jvt.me?
  • Popular Posts
  • Post Visualisation
  • Salary History
  • Manual of Me
  • Open Source Projects I Maintain

Want to get in touch?

  •  @jamietanna
  •  @jamietanna
  •  @jamietanna
  •  Jamie Tanna
  •  hi@jamietanna.co.uk
  • My name and pronounciation
© 2022 Jamie Tanna. Post content and code snippets licensing is detailed on respective pages, otherwise default to Creative Commons Attribution Non Commercial Share Alike 4.0 International and Apache License 2.0.
Site design released under the MIT License, based on Hack.css.
Proudly hosted on AWS using S3 + CloudFront, deployed by GitLab CI, and generated by 4a2feb8ddf on Sat, 18 Apr 2020 14:40:29 +0100..