Spring Security LDAP with Microsoft Active Directory

The following describes how to easily configure Spring Security to use Microsoft Active Directory as the user repository. This guide is based on the official Spring guide for Securing a Web Application and shall focus on the LDAP / Microsoft Active Directory part. It uses the default Spring Boot configuration for most things, including the…
Read more

Multicast with Docker Swarm

Docker Swarm and Multicast In one of my projects I had to use Docker Swarm instead of Kubernetes, as the operations department dictated it (mostly because it looked like less work for them). As the project uses Hazelcast IMDG for some caching and some locks, I needed to find a Hazelcast discovery strategy that fitted…
Read more

Continuous Integration using Gitlab CI with Docker

Gitlab.com Most people I know prefer Github or a private server for hosting their private git repositories. Nothing wrong with that, everyone has their own workflow. I’ve been using Gitlab for a few years now, privately hosted. A few months ago, my Gitlab server had some problems after upgrading to a newer version. I needed…
Read more

Spring Boot Applications in Docker

As a beginner with Spring Boot, “dockerizing” a new application can look like a quite complicated task. In fact it is quite simple, using the right tools. Dockerizing means nothing more than the putting your existing app, like a REST backend based on Spring Boot, into a docker image. This post should not just be…
Read more

Snack Vending over TCP – or how Spring Integration saved the day

Recently I got a new project, create a REST backend to process sales data from snack vending machines. Set up Spring Boot, create some controller, database connector, little admin web interface, Spring Security, done. Sound easy enough, right? Wrong…at least in this story.

Spring Profiles – why you’ll love them

In the good old days, when you were writing your first few lines of code (and probably used PHP) you probably hardcoded any configuration strings right in to the code. After you wrote your first working version you might wanted to deploy that ugly bastard onto some server, but you had to change any config…
Read more

REST services with Spring – getting the client locale

When building a REST backend, you often need to know what language the user is using. This is why the HTTP/1.1 standard (section 14.4) defines the Accept-Language header. Most HTTP clients (web browsers at least) set this header to the language the user has set as his system language.

Amazon Alexa – Part 1, Intents and Utterances

In this post I’ll discuss what Intents are, how Intent, Custom Slots and Sample Utterances are related and how you can easily configure your own. Note that this post only brushes the topics below, but it should be enough for you to get the samples running.

Amazon Alexa – Part 0, The Basics

In November 2014 Amazon annouced its Amazon Echo, and along with it Alexa. According to David Limp, the Amazon senior vice president who oversees Alexa and all of its Amazon devices, the goal of Alexa was inspired by the computer voice and conversational system on board the starship Enterprise in science fiction TV series and…
Read more

Creating self-signed certificates for Java Keystore

I recently came across a project that required to use HTTPS on the backend side and I wanted to have HTTPS in the DEV environment. Most people would ask “Why the hell would you use TLS for local tests?” – well, I just want to handle HTTPS problems as soon as possible during development.