Use ↑ ↓ to navigate, ↵ to open, Esc to close.

Blog posts

Resumable file uploads with plain Jakarta EE and TUS protocol

Resumable file uploads with plain Jakarta EE and TUS protocol

Plain uploads break when connections drop. The TUS protocol fixes that with resumable uploads. Here we will implement it with pure Jakarta REST using POST, HEAD, PATCH, and a few headers.

Binary file uploads to REST endpoints using Jakarta EE or Quarkus

Binary file uploads to REST endpoints using Jakarta EE or Quarkus

How to build a REST API that accepts binary attachments? As part of a multipart payload, or as the whole body. Standard Jakarta REST 3.1 EntityPart, the Quarkus @RestForm approach, and the raw application/octet-stream case, with code examples and the usual pros and cons.

Unknown JSON fields in Java REST clients: JSON-B, Jackson, Quarkus, and Spring Boot

Unknown JSON fields in Java REST clients: JSON-B, Jackson, Quarkus, and Spring Boot

What happens when a JSON response contains more fields than your DTO declares? The answer depends on your JSON provider. A look at the defaults for JSON-B, Jackson, Quarkus, and Spring when consuming an API with the MicroProfile REST Client – with the official docs to back each one up.

Jakarta EL: safer rules without handwritten predicate parsers

Jakarta EL: safer rules without handwritten predicate parsers

A practical look at Jakarta Expression Language as a small in-process policy engine – replacing a handwritten predicate parser with `jakarta.el.ELProcessor`, then hardening evaluation with a resolver whitelist and timeout.

Sane API error handling with RFC 9457 Problem Details in Jakarta EE

Sane API error handling with RFC 9457 Problem Details in Jakarta EE

A practical look at RFC 9457 Problem Details for HTTP APIs in Jakarta EE – a hand-made ProblemDetail + ExceptionMapper approach, the Zalando Problem library, and a short note on Quarkus and Spring.

API versioning in Java using JAX-RS with Jakarta EE and MicroProfile

API versioning in Java using JAX-RS with Jakarta EE and MicroProfile

Exploring common API versioning strategies in Java using JAX-RS with Jakarta EE and MicroProfile – URL, header, and media type versioning – with pros, cons, and practical code examples.

Multiplying The Developer Joy: Multiple Quarkus Containers + Simultaneous Remote Development Sessions

Multiplying The Developer Joy: Multiple Quarkus Containers + Simultaneous Remote Development Sessions

Running several simultaneous Quarkus app containers on your machine with the Quarkus’ remote development mode activated presents some challenges. Let’s have a look at how we can fix this.

Cloud Security Principles: Part 2

Cloud Security Principles: Part 2

This is the second part of the series on the Cloud Security Principles. This post will look at some key principles for securing your applications. Similarly to the first post, some prior knowledge of various IT architecture and security concepts may be expected. This post was inspired by a talk I have recently done with Neha Sardana at JAX New York.

Cloud Security Principles

Cloud Security Principles

This post was inspired by a talk I have recently done with Neha Sardana at JAX New York and is meant to serve as a stepping stone to categorize and catalog the things you need to consider working with the Cloud and Cloud-native applications. Some prior knowledge of various concepts within IT architecture and security may be expected for this post.

It Is Alive! Again!

It Is Alive! Again!

Getting the site updated and rebooting blogging. It’s back!

Building a Basic Apache Beam Pipeline in 4 Steps with Java

Building a Basic Apache Beam Pipeline in 4 Steps with Java

Getting started with building data pipelines using Apache Beam Java SDK

Getting a Graph Representation of a Pipeline in Apache Beam

Getting a Graph Representation of a Pipeline in Apache Beam

How to get a graph representation of your data pipeline in Apache Beam, step by step.

MicroProfile – Part 1: Defining End-Points

MicroProfile – Part 1: Defining End-Points

Getting started with MicroProfile – defining end-points for JSON, images, and PDF responses.

Generating PDF Files Using Java

Generating PDF Files Using Java

A step-by-step tutorial on generating PDF files in Java with text, images, and metadata.

Generating QR Codes With Secure Hashes Using Java

Generating QR Codes With Secure Hashes Using Java

A step-by-step tutorial on generating QR codes and secure hashed strings with salt in Java.

Configuring Slack Notifications for Google Cloud Build

Configuring Slack Notifications for Google Cloud Build

Setting up Slack notifications for Google Cloud Build jobs with code examples and screenshots.

Computers as Movie Superstars

Computers as Movie Superstars

The untold story behind the vintage computers used in the JavaZone 2018 short film Stranger Strings.

Disposable Docker Containers

Disposable Docker Containers

Using single-use, ephemeral Docker containers for building and testing applications locally.

Navigating and Editing the Command Line – Bash Edition

Navigating and Editing the Command Line – Bash Edition

A cheat sheet for navigating and editing the command line in Bash.

Escaping Developer Nightmares

Escaping Developer Nightmares

Common pitfalls in software development and practical suggestions on how to fix them.

Docker Command Line Survival Guide: The Absolute Basics

Docker Command Line Survival Guide: The Absolute Basics

Ten essential Docker commands to get you started with the command-line interface.

Personal Data Security

Personal Data Security

How one of Norway's biggest Apple service centers was leaking personal data to anyone who would click a button.

Start Docker Containers Automatically

Start Docker Containers Automatically

Starting your Docker containers automatically using systemd.

Command Line Tools for Your Java Projects

Command Line Tools for Your Java Projects

Getting an overview of your project with simple command-line tools.

Hvordan lære opp ditt eget kamera

Hvordan lære opp ditt eget kamera

Bildegjenkjenning gjort enkelt. Slik gjenkjenner du en bestemt gjenstand ved hjelp av et kamera og OpenCV eller TensorFlow

How to Train Your Camera

How to Train Your Camera

Training your camera to recognize objects using OpenCV or TensorFlow

Playing with IoT

Playing with IoT

Start-up kit for prototyping IoT solutions

Micro:bit Bluetooth Challenge

Micro:bit Bluetooth Challenge

Scissor-Paper-Rock challenge using micro:bit and Bluetooth

Automating Confluence Posts with Amazon Cloud (AWS)

Automating Confluence Posts with Amazon Cloud (AWS)

Automating posting to Confluence with cloud services like Amazon Web Services (AWS).

Five Pillars of a Good Maven Project

Five Pillars of a Good Maven Project

The five main types of Maven plugins that will simplify the development process and increase maintainability of a project.

Posting Jekyll Content on Time

Posting Jekyll Content on Time

Posting of content in Jekyll relies on the date assigned to the post, and the time is relative to the time zone on the server. It can sometimes be confusing when running Jekyll on the remote servers in different time zones, like hosting the content on GitHub Pages.

Solving Problems with Reasoning, Semantic Wizardry, and Java

Solving Problems with Reasoning, Semantic Wizardry, and Java

On June 16th, I will be doing a workshop at JBCNConf in Barcelona, Spain. I will be talking about semantic technologies, reasoning, and Java. I have been asked to post some information about the workshop, so here it comes.

What Happens to Your Code After a Commit?

What Happens to Your Code After a Commit?

I have written an article for the student magazine INDEX at the Department of Informatics (Ifi), University of Oslo. It was published on 30.04.2016, in Norwegian, and I have previously shared it with you here. I was also asked to share an English version of the article. This post is not only a simple translation to English but rather a 2.0 version of the previous post.

Hva skjer med koden din etter at du har skrevet den ferdig?

Hva skjer med koden din etter at du har skrevet den ferdig?

Update 21.05.2016: English version of this article.

It Is Alive!

It Is Alive!

Getting the site up and running, introducing it to you, and plans for the future.