Skip to content
3 min read

SSL/TLS certificates

What the usual certificate files contain, how to convert CRT to PEM, and how to issue, list, renew and delete Let's Encrypt certificates with Certbot.

  • Security
3 min read

ELK Stack

Run Elasticsearch, Logstash and Kibana in Docker, create a Kibana data view and ship Java logs to Logstash with Logback.

  • Observability & Testing
3 min read

Jetty

Run a Maven web application with the Jetty Maven plugin, change the port, and serve it over TLS with a Let's Encrypt certificate.

  • Java & Jakarta EE
4 min read

WildFly

Connect WildFly to PostgreSQL and MySQL: install the JDBC driver as a module, define datasources and fix WFLYJCA0047.

  • Java & Jakarta EE
18 min read

GlassFish

Install and run GlassFish: secure admin, ports and paths, JVM tuning, SSL certificates, JDBC and mail resources, realms and common errors.

  • Java & Jakarta EE
7 min read

macOS

macOS command-line tips: software updates, NTFS mounts, torrents, yt-dlp, checksums, PDF merging and faster animations.

  • Apple & Mobile
3 min read

Logback

Two Logback appenders explained: daily rolling log files with size and history limits, and log events written to a database over JNDI.

  • Java & Jakarta EE
  • Observability & Testing
8 min read

JPA (Jakarta Persistence)

JPA recipes: java.time mappings, sequence generators, runtime persistence properties, bulk updates, JSON columns and inheritance.

  • Java & Jakarta EE
  • Databases
2 min read

Apache Derby

Apache Derby, the pure-Java database: run the ij tool, connect with embedded, in-memory and network URLs, and run SQL.

  • Databases
  • Java & Jakarta EE
5 min read

Java Swing

Make Java Swing apps feel native on macOS (menu bar, app name, Dock icon, splash screen) and package them with jpackage.

  • Java & Jakarta EE
4 min read

JavaFX

JavaFX snippets: periodic actions, FXML controller lifecycle, user-agent stylesheets, high-contrast themes, the virtual keyboard and pie chart labels.

  • Java & Jakarta EE
5 min read

GIS calculations

Geographic math for developers: degrees and minutes, radius searches, great-circle distance and the midpoint of several points, with Java code.

  • Miscellaneous
3 min read

E-commerce KPIs

Formulas for the e-commerce KPIs worth tracking, from return on investment and conversion rate to customer lifetime value and NPS.

  • Business
2 min read

LaTeX and KaTeX

Recompile LaTeX documents automatically with latexmk, and write and render maths on web pages with KaTeX.

  • Miscellaneous
3 min read

Microsoft SQL Server

Run SQL Server in a Docker container, query it with sqlcmd, connect from Java with jTDS, and define a GlassFish connection pool.

  • Databases
4 min read

SSH keys

Create and manage SSH keys: generate a key pair, set a passphrase, copy the public key, test Git hosts and recover a server you are locked out of.

  • Security
  • Linux & Systems
9 min read

Maven

Maven reference: build lifecycle, properties, skipping tests, archetypes, local JARs, GPG signing, deploy plugins and dependency checks.

  • Java & Jakarta EE
  • Developer Tools

Type to search the whole site.