Welcome to northCoder

a blind man in a dark cellar searching for a black cat that isn't there

RabbitMQ's Management API

01 Aug 2022
It’s possible to access a wide array of data about your RabbitMQ installation using the RabbitMQ management API - a REST API which returns JSON responses. Some of the data can be a bit unintuitive without an explanation, and the documentation was initially a bit hard to find… Here are some notes…

Spring Boot Demo for DataTables Server-Side Processing

28 Jul 2022
A small demo app showing some features of Spring Boot for handling a Thymeleaf template, a JSON request, using Spring JdbcTemplate, with some Java records, lambdas and streams. The demo uses a server-side DataTable for the demo. Not intended for production use.

Jakarta EE 9 on Tomcat 10 - A Basic Set-Up

13 Jul 2022
A very basic Maven-based set-up for a Jakarta EE 9 web app (servlet) running on Tomcat 10, using NetBeans 13.

Two Ways to Integrate an SSL Certificate Into a Web Site

29 Jun 2022
Two different configurations for my SSL certificate: one for Tomcat and another for embedded Jetty.

Java Class Object Encodings - Summary Table

27 Jun 2022
Because I can never remember what the abbreviations mean.

How to Break Java's Type Safety System

27 Jun 2022
A simple-looking piece of code which results in something other than a list of Integer values being stored in a List<Integer> object.

Notes on Floating Point Numbers in Java

12 Jun 2022
Some notes to self about inaccuracies in floating point values.

Converting File Formats Using Python 3

06 Mar 2022
I recently needed to convert text files created by one application into a completely different format, to be processed by a different application. The source files did not have line terminators. In some cases, the files were too large to be read into memory (without causing resource problems). A small Python script to the rescue - during which I learned about callables and sentinels.

Streaming and Parsing a CSV File

06 Mar 2022
Parsing a CSV file is a simple task, with great library support. This short example uses Commons CSV, together with Java streaming techniques. It also uses an enum, a lambda, a static factory method, a method reference, and other techniques. In other words, a combination of different tools, with some notes to help me remember it all.

Linux and Bash commands with ANSI-C escaping

17 Feb 2022
Quick note on the syntax for using control characters in bash commands…