java

Breadth-first Search in Java

I recently had to solve a problem that involved finding the shortest path between two vertices (or nodes). A DuckDuckGo search suggested that an algorithm called breadth-first search was the way to go. Here’s an implementation in Java, based on chapter 22 in Introduction to Algorithms by Cormen et al. Source on Read more…

By Mikael, ago
java

Looking into Java 9

Here I was thinking Java 9 was still quite new when I realized Java 10 has been released. Time to have a look. Key Changes Java Platform Module System This looks really interesting. I haven’t had a chance to use modules in a production system yet, but they look like a Read more…

By Mikael, ago
backend

Validating VAT numbers with VIES

Turns out the European Commission has a service where people can verify VAT numbers: The VAT Information Exchange System (VIES). Good thing since we don’t want to have to figure out how each individual European country handles VAT numbers. There is a web based user interface where users can manually input Read more…

By Mikael, ago
certificates

Figuring out TLS/SSL Certificates

A while back I was setting up client certificates for a server and ran into some issues, apparently caused by cURL not playing nicely with OS X. Like most software developers, I think, my experience with cryptography is mainly limited to things like installing certificates, so when things didn’t work Read more…

By Mikael, ago