MySQL in Docker (for Testing)
10 Feb 2020
A walkthrough of one way to launch a Docker container running a MySQL database server, and to enable access to the database from the host OS - for example, using JDBC.
Zip File Writer Example
14 Jan 2020
An example of writing a potentially large amount of data directly to a zip file, item by item.
JVM Heap Dumps and OQL
09 Jan 2020
VisualVM is a great tool for exploring Java applications and the JVM in which they are running. One area which has always been a bit overwhelming (to me) is the heap dump - a mass of raw information for millions of objects, which can be hard to sift through…
Password Hasher
08 Jan 2020
I have previously written about my wish to avoid being responsible for password management. Here is the other side of the coin: Some code which (a) creates a hash for a new password, and (b) checks if a password is valid. Also included: A bonus digression on Java string immutability.
AWS Cognito - Signing Up and Signing In
07 Dec 2019
In this walk-through I will take a look at AWS Cognito for user sign-up, password management and access controls, using a basic Java web application for demonstration purposes.
SSL/TLS Certificates Using Let's Encrypt
02 Dec 2019
How to generate a free SSL wildcard certificate using Let’s Encrypt and certbot.
Java Timezones (or Time Zones if you prefer)
27 Nov 2019
The other day I was working with some old relational data, where timestamps had been stored without timezone data - and not standardized to UTC…
Lucene 8.3 - More Analyzers - and Some Queries
26 Nov 2019
While I was exploring Lucene as a way to improve my demo web application, I tried a few different combinations of analyzers, tokenizers and filters. It got to the point where I created a small test application for this. Along the way, I also had to dive into Lucene’s boolean query logic.