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

Announcing an NPM package and a hosted service for converting OpenGraph metadata to a Microformats2 object.
by
Jamie Tanna
.
#opengraph
#opengraph-mf2
#indieweb
#microformats2.
Article
Week Notes 22#10 (5 mins read).
What happened in the week of 2022-03-07?
by
Jamie Tanna
.
#week-notes.
Article
How to fix Failed to load ApplicationContext
in Spring (Boot) applications (6 mins read).

Some common issues with Spring dependency injection and how to fix them.
by
Jamie Tanna
.
#blogumentation
#spring
#spring-boot.
Article
Week Notes 22#09 (5 mins read).
What happened in the week of 2022-02-28?
by
Jamie Tanna
.
#week-notes.
Article
Converting an x5c
from a JSON Web Key to a PEM with Node.JS (1 mins read).

How to convert a JWK's x5c
to a PEM-formatted certificate with Node.JS.
by
Jamie Tanna
.
#blogumentation
#nodejs
#jwks
#jwk
#certificates
#pem
#x509.
Article
Extracting x5c
s from a JSON Web Key Set (JWKS) to PEM files with Node.js (1 mins read).

How to extract the full chain of certificates from a JWKS' x5c
parameter to files.
by
Jamie Tanna
.
#blogumentation
#nodejs
#jwks
#jwk
#certificates
#pem
#x509.
Article
Generate a running mock server from an OpenAPI specification using Prism (3 mins read).

Using Stoplight's prism
tool to run a stubbed server from an OpenAPI specification, for better testing.
by
Jamie Tanna
.
#blogumentation
#swagger
#openapi.
Article
Gotcha: checked and unchecked exception handling from Spring WebFlux WebClient
(2 mins read).

How checked and unchecked exceptions may appear when testing your WebClient
code.
by
Jamie Tanna
.
#blogumentation
#spring
#spring-boot
#java
#testing.
Article
Accessing the response body with Spring WebFlux WebClient
with onStatus
(1 mins read).

How to access the body of an (error) response when using WebClient
's onStatus
method.
by
Jamie Tanna
.
#blogumentation
#spring
#spring-boot
#java.
Article
Running a command on a visual selection in Vim (1 mins read).

How to pipe the text in a visual selection to a command, either to run it, or to replace the text in the seletion.
by
Jamie Tanna
.
#blogumentation
#vim
#neovim
#command-line.
Article
Updating the CA Certificate bundle in Chef Installations (3 mins read).

How to update/add new certificates to the Certificate Authority Certificate Bundle in a Chef Development Kit / Workstation installation.
by
Jamie Tanna
.
#blogumentation
#chef.
Article
Introducing a Go command-line tool for interacting with Micropub servers (1 mins read).

Announcing the initial release of micropub
, a CLI for interacting with Micropub servers.
by
Jamie Tanna
.
#go
#micropub
#micropub-go.
Article
Automagically formatting on save, with Neovim and Language Server Protocol (LSP) (1 mins read).

How to use Neovim's Language Server Protocol (LSP) support to autoformat code on a file's save.
by
Jamie Tanna
.
#blogumentation
#neovim.
Article
Gotcha: Segfault when HTTP headers include newlines with Go (2 mins read).

Why you may be receiving a segfault when using http.Client
with HTTTP headers that include newlines.
by
Jamie Tanna
.
#blogumentation
#go.
Article
Week Notes 22#08 (5 mins read).
What happened in the week of 2022-02-21?
by
Jamie Tanna
.
#week-notes.
Article
Converting Spring Boot Property Variables to Environment Variables with Go (1 mins read).

A command-line script to convert a Spring Boot property to an environment variable.
by
Jamie Tanna
.
#blogumentation
#go
#command-line
#spring-boot.
Article
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Go (2 mins read).

How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Go.
by
Jamie Tanna
.
#blogumentation
#go
#command-line
#jwt
#json
#pretty-print.
Article
Gotcha: Field casing is important when marshalling struct
s to JSON in Go (2 mins read).

Why you may be missing fields from your struct
s in your Go json.Marshal
calls.
by
Jamie Tanna
.
#blogumentation
#go
#json.
Article
Testing @Scheduled
annotations with Spring (Boot) (2 mins read).

How to test your Spring (Boot) scheduling without waiting for hours.
by
Jamie Tanna
.
#blogumentation
#spring
#spring-boot
#tdd.
Article
Creating a "Manual of Me" (1 mins read).

Creating a reference document about how to best collaborate together.
by
Jamie Tanna
.
#manual-of-me
#css.
Article
Pretty Printing JSON on the Command Line with Go (1 mins read).

Using Go's JSON module to pretty print JSON objects from the command line.
by
Jamie Tanna
.
#blogumentation
#go
#json
#pretty-print.
Article
Reading all of stdin
on the command-line with Go (1 mins read).

How to read the whole of stdin
, up to EOF, with Go.
by
Jamie Tanna
.
#blogumentation
#go
#command-line.
Article
Week Notes 22#07 (4 mins read).
What happened in the week of 2022-02-14?
by
Jamie Tanna
.
#week-notes.
Article
Exporting a Git repo as an archive (1 mins read).

How to export a Git repo as an archive format, such as a .tar.gz
or a .zip
.
by
Jamie Tanna
.
#blogumentation
#git.
Article
How to interpolate a property inside Spring Security @PreAuthorize
/ @PostAuthorize
(3 mins read).

How to use the value of a property in a Spring Security authorization statement.
by
Jamie Tanna
.
#blogumentation
#java
#spring
#spring-boot
#spring-security.
Article
Combining an Audio-only and Video-only MP4 with ffmpeg
on the command-line (1 mins read).
How to use ffmpeg
to combine two MP4 files, where each file contains audio and video separately.
by
Jamie Tanna
.
#blogumentation
#ffmpeg
#command-line.
Article
Week Notes 22#06 (2 mins read).
What happened in the week of 2022-02-07?
by
Jamie Tanna
.
#week-notes.
Article
Adding a Wiretap to a Spring WebFlux WebClient
to Log All Request/Response Data (2 mins read).

How to log all request/response data from a Spring Webflux WebClient
.
by
Jamie Tanna
.
#blogumentation
#java
#spring-boot
#spring.
Article
Determining if the Spring Boot Application is Running in Debug or Trace Mode (3 mins read).

How to determine if your Spring Boot application is running in debug mode, for instance to selectively enable other features of your application.
by
Jamie Tanna
.
#blogumentation
#java
#spring-boot.
Article
Simplifying Spring (Boot) ExceptionHandler
s by extending ResponseStatusException
(1 mins read).

How to drive HTTP response status codes from exceptions by extending Spring's ResponseStatusException
.
by
Jamie Tanna
.
#blogumentation
#java
#spring-boot
#spring.
Article
Bundling Multi-File OpenAPI Documents into a Single File (2 mins read).

Looking at the options we have for converting a multi-file OpenAPI specification to a single document.
by
Jamie Tanna
.
#blogumentation
#openapi
#command-line.
Article
Announcing openapi.tanna.dev
, a client-side OpenAPI Viewer (1 mins read).

Creating a hosted version of a local and client-side only OpenAPI viewer.
by
Jamie Tanna
.
#openapi.tanna.dev
#swagger
#openapi.
Article
Generating Favicons using ImageMagick on the Command-Line (1 mins read).

How to generate a multi-size favicon.ico
on the command-line using ImageMagick.
by
Jamie Tanna
.
#blogumentation
#command-line
#imagemagick.
Article
Please Add a Relevant Publish Time to Blog Posts (2 mins read).
A request to bloggers to not use midnight as the time they publish an article.
by
Jamie Tanna
.
#blogging.
Article
Excluding Filter
s When using WebMvcTest
(1 mins read).

How to exclude specific Filter
s from running when performing WebMvcTest
s.
by
Jamie Tanna
.
#blogumentation
#java
#spring
#spring-boot
#testing
#tdd.
Article
Capturing HTTP Requests with okhttp's MockWebServer.takeRequest
(1 mins read).

How to use MockWebServer
's takeRequest
method to verify that HTTP request(s) are sent correctly.
by
Jamie Tanna
.
#blogumentation
#java.
Article
Integration Testing Your Spring WebClient
s with okhttp's MockWebServer
(5 mins read).

How to write integration tests using MockWebServer
with Spring Boot, for use with WebClient
s.
by
Jamie Tanna
.
#blogumentation
#java
#spring-boot
#testing
#tdd.
Article
Week Notes 22#05 (2 mins read).
What happened in the week of 2022-01-31?
by
Jamie Tanna
.
#week-notes.
Article
Generate Plain Old Java Objects (POJOs) from OpenAPI Model Definitions with Gradle (2 mins read).

How to generate POJOs really quickly and easily, with no manual work, using the Gradle openapi-generator Plugin.
by
Jamie Tanna
.
#blogumentation
#gradle
#java
#openapi.
Article
Running Elements API Viewer to Verify Local OpenAPI/Swagger Documents (2 mins read).

How to run Elements UI locally to visualise OpenAPI documents.
by
Jamie Tanna
.
#blogumentation
#swagger
#openapi
#cors.
Article
I don't think you should be logging that? π³ (12 mins read).
Common pitfalls and dangerous things that you should be watching out for in your log messages.
by
Jamie Tanna
.
#blogumentation
#logs.
Article
Validating a MockMvc
Response Has No Content Type (1 mins read).

How to validate, in a MockMvc
test, whether the response has no content-type
nor a body.
by
Jamie Tanna
.
#blogumentation
#spring
#spring-boot
#testing.
Article
Replacing Text in Vim with the Output of a Command (1 mins read).

How to replace text under the cursor with the output of a command.
by
Jamie Tanna
.
#blogumentation
#vim
#neovim
#command-line.
Article
Integration Testing Your Spring RestTemplate
s with RestClientTest
, using spring-test (8 mins read).

How to write integration tests using RestClientTest
with Spring Boot, for use with RestTemplate
and RestTemplateBuilder
s.
by
Jamie Tanna
.
#blogumentation
#java
#spring
#spring-boot
#testing
#tdd.
Article
Running Swagger UI to Verify Local OpenAPI/Swagger Documents (2 mins read).

How to run Swagger UI locally to visualise OpenAPI documents.
by
Jamie Tanna
.
#blogumentation
#swagger
#openapi
#cors.
Article
Week Notes 22#04 (3 mins read).
What happened in the week of 2022-01-24?
by
Jamie Tanna
.
#week-notes.
Article
Create Executables, not Shell Aliases or Functions (2 mins read).
Why I create standalone executable scripts instead of shell aliases or functions.
by
Jamie Tanna
.
#command-line
#automation.
Article
Announcing spring-content-negotiator
, a Java Library for Content Negotiation with Spring (1 mins read).

Releasing a new library that can support content negotiation in Spring (Boot) applications, i.e. in Filter
s or ExceptionHandlers
.
by
Jamie Tanna
.
#spring
#spring-boot
#spring-content-negotiator
#content-negotiation.
Article
Getting Started with jMolecules and the (Classical) Onion Architecture, with a Spring Boot project (6 mins read).

A guided example of converting a Spring Boot project to the Onion Architecture pattern.
by
Jamie Tanna
.
#blogumentation
#java
#architecture
#spring-boot
#onion-architecture
#jmolecules
#archunit.
Article
Week Notes 22#03 (4 mins read).
What happened in the week of 2022-01-17?
by
Jamie Tanna
.
#week-notes.