Jamie Tanna | Software Engineer

  • /now
  • Blog
  • Popular Posts
  • Archives
  • Search
  • Salary History
  • Open Source Projects I Maintain
  • Support Me
  • Hire Me (CV/Resume)

 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.

 Article

Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Go (2 mins read).

Featured image for sharing metadata for article

How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Go.

Sat, 26 Feb 2022 20:54 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #command-line #jwt #json #pretty-print.

 Article

Gotcha: Field casing is important when marshalling structs to JSON in Go (2 mins read).

Featured image for sharing metadata for article

Why you may be missing fields from your structs in your Go json.Marshal calls.

Fri, 25 Feb 2022 11:14 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #json.

 Article

Testing @Scheduled annotations with Spring (Boot) (2 mins read).

Featured image for sharing metadata for article

How to test your Spring (Boot) scheduling without waiting for hours.

Fri, 25 Feb 2022 09:15 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring #spring-boot #tdd.

 Article

Creating a "Manual of Me" (1 mins read).

Featured image for sharing metadata for article

Creating a reference document about how to best collaborate together.

Wed, 23 Feb 2022 20:57 by Jamie Tanna's profile image Jamie Tanna . #manual-of-me #css.

 Article

Pretty Printing JSON on the Command Line with Go (1 mins read).

Featured image for sharing metadata for article

Using Go's JSON module to pretty print JSON objects from the command line.

Mon, 21 Feb 2022 17:18 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #json #pretty-print.

 Article

Reading all of stdin on the command-line with Go (1 mins read).

Featured image for sharing metadata for article

How to read the whole of stdin, up to EOF, with Go.

Mon, 21 Feb 2022 17:18 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #command-line.

 Article

Exporting a Git repo as an archive (1 mins read).

Featured image for sharing metadata for article

How to export a Git repo as an archive format, such as a .tar.gz or a .zip.

Fri, 18 Feb 2022 14:01 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #git.

 Article

How to interpolate a property inside Spring Security @PreAuthorize / @PostAuthorize (3 mins read).

Featured image for sharing metadata for article

How to use the value of a property in a Spring Security authorization statement.

Thu, 17 Feb 2022 16:35 by Jamie Tanna's profile image 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.

Thu, 17 Feb 2022 08:54 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #ffmpeg #command-line.

 Article

Adding a Wiretap to a Spring WebFlux WebClient to Log All Request/Response Data (2 mins read).

Featured image for sharing metadata for article

How to log all request/response data from a Spring Webflux WebClient.

Sun, 13 Feb 2022 10:01 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring.

 Article

Determining if the Spring Boot Application is Running in Debug or Trace Mode (3 mins read).

Featured image for sharing metadata for article

How to determine if your Spring Boot application is running in debug mode, for instance to selectively enable other features of your application.

Sun, 13 Feb 2022 10:01 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot.

 Article

Simplifying Spring (Boot) ExceptionHandlers by extending ResponseStatusException (1 mins read).

Featured image for sharing metadata for article

How to drive HTTP response status codes from exceptions by extending Spring's ResponseStatusException.

Sat, 12 Feb 2022 09:41 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring.

 Article

Bundling Multi-File OpenAPI Documents into a Single File (2 mins read).

Featured image for sharing metadata for article

Looking at the options we have for converting a multi-file OpenAPI specification to a single document.

Thu, 10 Feb 2022 11:35 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #openapi #command-line.

 Article

Announcing openapi.tanna.dev, a client-side OpenAPI Viewer (1 mins read).

Featured image for sharing metadata for article

Creating a hosted version of a local and client-side only OpenAPI viewer.

Tue, 08 Feb 2022 22:00 by Jamie Tanna's profile image Jamie Tanna . #openapi.tanna.dev #swagger #openapi.

 Article

Generating Favicons using ImageMagick on the Command-Line (1 mins read).

Featured image for sharing metadata for article

How to generate a multi-size favicon.ico on the command-line using ImageMagick.

Mon, 07 Feb 2022 21:52 by Jamie Tanna's profile image 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.

Mon, 07 Feb 2022 14:52 by Jamie Tanna's profile image Jamie Tanna . #blogging.

 Article

Excluding Filters When using WebMvcTest (1 mins read).

Featured image for sharing metadata for article

How to exclude specific Filters from running when performing WebMvcTests.

Mon, 07 Feb 2022 10:55 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring #spring-boot #testing #tdd.

 Article

Capturing HTTP Requests with okhttp's MockWebServer.takeRequest (1 mins read).

Featured image for sharing metadata for article

How to use MockWebServer's takeRequest method to verify that HTTP request(s) are sent correctly.

Mon, 07 Feb 2022 10:44 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java.

 Article

Integration Testing Your Spring WebClients with okhttp's MockWebServer (5 mins read).

Featured image for sharing metadata for article

How to write integration tests using MockWebServer with Spring Boot, for use with WebClients.

Mon, 07 Feb 2022 10:44 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #testing #tdd.

 Article

Generate Plain Old Java Objects (POJOs) from OpenAPI Model Definitions with Gradle (2 mins read).

Featured image for sharing metadata for article

How to generate POJOs really quickly and easily, with no manual work, using the Gradle openapi-generator Plugin.

Sat, 05 Feb 2022 19:29 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #gradle #java #openapi.

 Article

Running Elements API Viewer to Verify Local OpenAPI/Swagger Documents (2 mins read).

Featured image for sharing metadata for article

How to run Elements UI locally to visualise OpenAPI documents.

Thu, 03 Feb 2022 15:26 by Jamie Tanna's profile image 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.

Thu, 03 Feb 2022 10:35 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #logs.

 Article

Validating a MockMvc Response Has No Content Type (1 mins read).

Featured image for sharing metadata for article

How to validate, in a MockMvc test, whether the response has no content-type nor a body.

Wed, 02 Feb 2022 11:54 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #spring #spring-boot #testing.

 Article

Replacing Text in Vim with the Output of a Command (1 mins read).

Featured image for sharing metadata for article

How to replace text under the cursor with the output of a command.

Tue, 01 Feb 2022 14:42 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #vim #neovim #command-line.

 Article

Integration Testing Your Spring RestTemplates with RestClientTest, using spring-test (8 mins read).

Featured image for sharing metadata for article

How to write integration tests using RestClientTest with Spring Boot, for use with RestTemplate and RestTemplateBuilders.

Tue, 01 Feb 2022 10:40 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring #spring-boot #testing #tdd.

 Article

Running Swagger UI to Verify Local OpenAPI/Swagger Documents (2 mins read).

Featured image for sharing metadata for article

How to run Swagger UI locally to visualise OpenAPI documents.

Mon, 31 Jan 2022 18:07 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #swagger #openapi #cors.

 Article

Create Executables, not Shell Aliases or Functions (2 mins read).

Why I create standalone executable scripts instead of shell aliases or functions.

Sun, 30 Jan 2022 13:37 by Jamie Tanna's profile image Jamie Tanna . #command-line #automation.

 Article

Announcing spring-content-negotiator, a Java Library for Content Negotiation with Spring (1 mins read).

Featured image for sharing metadata for article

Releasing a new library that can support content negotiation in Spring (Boot) applications, i.e. in Filters or ExceptionHandlers.

Sun, 30 Jan 2022 08:35 by Jamie Tanna's profile image 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).

Featured image for sharing metadata for article

A guided example of converting a Spring Boot project to the Onion Architecture pattern.

Fri, 28 Jan 2022 13:45 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #architecture #spring-boot #onion-architecture #jmolecules #archunit.

 Article

How to Create and Unit Test Java Bean Validation Annotations (12 mins read).

Featured image for sharing metadata for article

A guided example through what the different type of annotation ElementTypes are, with respect to Bean Validation, and how to write unit tests for them.

Sun, 23 Jan 2022 10:24 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #bean-validation #testing #tdd.

 Article

Codifying Your Technical / Architectural Standards with ArchUnit (7 mins read).

Featured image for sharing metadata for article

How to use ArchUnit to codify your technical standards to reduce code review requirements, and arrive at a more consistent codebase.

Fri, 21 Jan 2022 16:34 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #archunit #code-review.

 Article

Appending to a Querystring using Go (1 mins read).

Featured image for sharing metadata for article

How to append query parameters in a URL in Go.

Thu, 20 Jan 2022 21:40 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #go #web.

 Article

Don't Just String Append to a Querystring (1 mins read).

Why you shouldn't use concatenate strings together to append to a querystring.

Thu, 20 Jan 2022 21:40 by Jamie Tanna's profile image Jamie Tanna . #web.

 Article

Simplifying Spring (Boot) ExceptionHandlers with ResponseStatus Annotations (2 mins read).

Featured image for sharing metadata for article

How to use annotations to drive HTTP response codes from a Spring ExceptionHandler.

Thu, 20 Jan 2022 14:48 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring.

 Article

Use SLF4J, not Log4J, as Your Logging Interface (3 mins read).

Featured image for sharing metadata for article

Why we should be using the interface API for logging, rather than the underlying implementation's API.

Thu, 20 Jan 2022 09:33 by Jamie Tanna's profile image Jamie Tanna . #java #logs #slf4j #log4j #logback.

 Article

Using the Facade Pattern to More Easily Test static or Complex Classes (2 mins read).

Featured image for sharing metadata for article

How to use the Facade design pattern to more easily test classes that are more complex than our tests need to understand.

Wed, 19 Jan 2022 13:40 by Jamie Tanna's profile image Jamie Tanna . #java #testing.

 Article

Mocking void methods with Mockito (1 mins read).

Featured image for sharing metadata for article

How to Mock a void method with Mockito, for instance to throw an exception.

Tue, 18 Jan 2022 15:28 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #mockito.

 Article

Thoughts on Social Media Anonymity (4 mins read).

My thoughts on the protection of social media anonymity.

Tue, 18 Jan 2022 13:17 by Jamie Tanna's profile image Jamie Tanna . #social-media.

 Article

Content Negotiation with Servlet Filter in Spring (Boot) (3 mins read).

Featured image for sharing metadata for article

How to perform content-negotiation in a Servlet Filter, to serve the correct representation of error to a consumer, based on the Accept header.

Tue, 18 Jan 2022 12:01 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring #content-negotiation.

 Article

Content Negotiation with ControllerAdvice and ExceptionHandlers in Spring (Boot) (5 mins read).

Featured image for sharing metadata for article

How to perform content-negotiation in a Spring ExceptionHandler, to serve the correct representation of error to a consumer, based on the Accept header.

Tue, 18 Jan 2022 09:03 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring #content-negotiation.

 Article

Error Handling in (Spring) Servlet Filters (2 mins read).

Featured image for sharing metadata for article

How to return HTTP errors when a Java Servlet fails with Spring (Boot).

Mon, 17 Jan 2022 17:14 by Jamie Tanna's profile image Jamie Tanna . #blogumentation #java #spring-boot #spring.

 Article

'Knowing Me, Knowing You': Wiggly ears, custom pizzas and a burst appendix (5 mins read).

A copy of answers to the DSA's 'Knowing Me, Knowing You'.

Fri, 14 Jan 2022 14:34 by Jamie Tanna's profile image Jamie Tanna . #personal #cddo.

 Article

Announcing uuid, a Java Library for UUID Validation (1 mins read).

Featured image for sharing metadata for article

Releasing a new library that can be used to validate UUIDs in Java.

Fri, 14 Jan 2022 11:54 by Jamie Tanna's profile image Jamie Tanna . #java #uuid #jsr380 #bean-validation.

You're currently viewing page 7 of 17, of 833 posts.

Go to the previous page

Go to the next page

Other links that may be of interest:

  • /slashes
  • Follow This Blog (i.e. via RSS feed)
  • Talks
  • Blogroll
  • Why is my site www.jvt.me?
  • Archives
  • Post Visualisation
  • Manual of Me
  • Typography
  • My name and pronounciation
  • RSVPs
  • Links
  • Post by Kind

This site is part of an IndieWeb Webring πŸ•ΈπŸ’

  • Previous site
  • Next site

Want to get in touch? Drop me an email at  hi@jamietanna.co.uk. I try to get back to everything, if I don't reply in a couple of weeks, feel free to give me a nudge!

You can also check out a list of all the places /elsewhere you can find me.

© 2025 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.
Proudly hosted on AWS using S3 + CloudFront, deployed by GitLab CI, and generated by 4a2feb8ddf on Sat, 18 Apr 2020 14:40:29 +0100..