-
Log Message Validation with JUnit 5
Introduction In your unittests it is important to check whether the code under test has been executed correctly. Sometimes, all you can check is log statements. In this guide, we will leverage the JUnit 5 Extension Model to intercept and verify logging. We will asume Logback is used in the application. Capture logging statements The first thing…
-
Elevate Your Web Content: Adding Image Support with Spring Boot, Thymeleaf, and CKEditor
Introduction In this guide, we will walk you through the process of integrating image support into your online text editor using a stack that includes Spring Boot, Thymeleaf, and CKEditor. Whether you’re building a wiki, a recipe site, or any application where visual content matters, this tutorial will help you take the next step in…
-
Send an email with Spring Boot and Thymeleaf
Using Spring Boot and Thymeleaf, it’s easy to send HTML emails to your users. This post will show the configuration and logic to send an email. We won’t go into details on how to setup the template, that’s for another time. Project setup Assuming you already use Spring Boot, we need to add two dependencies…
-
Be agile, don’t do “Agile”
Over the last decade I’ve been involved in several projects that are doing Agile. Most of them were using Scrum, and most of them didn’t really deliver what was promised. The promise of Scrum is that the team delivers more value, but what it actually delivers is more reporting tools and ceremonies to keep managers…
-
Maven, Hibernate, PrimeFaces and Jetty
In this post, we will make a (very) simple CRUD application using Maven, Hibernate, PrimeFaces and Jetty. It won’t be the best application out there, but enough to get started. Run ‘mvn jetty:run’ to start the application. Click here to download the actual project. In this case, we’ll be making a simple addressbook, with each…
-
Split condition
Intuitively it makes sense to group several statements in an if/else clause. In that case you only need to execute the check once. However, this is not always the cleanest solution, and it makes methods longer than they should be. For example, take the following piece of code. So, what’s wrong with this? It does…
-
Working with multiple screens in Java
When you want to set the location of a Java Window, you just call setLocation(int x, int y). But what if your screen isn’t big enough? Or when you want to display the window on a second screen? The desktop is represented by a virtual device, with physical screens providing a viewport onto that device.…
-
WAS Deploy Script
When you’re developing for IBM Websphere, you could update your application using the webinterface. But that is a bit slow, and you risk trashing your Websphere installation. You can also use a script. Below is a Windows batch file to do just that.
-
Installing and using Citrix under Linux Mint
Installing and using citrix under linux might be a bit more tricky than it may appear on first glance. Here are a few steps to make it work. 1. Remove old installation, if needed. 2. Download Receiver for Linux. Look for it here: http://www.citrix.com/go/receiver.html Make sure you have the correct version. This is probably under…
-
Troubleshooting Power-Line Communication
Power-Line Communication, turning the power-grid in your home into a computer network, works great! Until it doesn’t. The problem could be that the adapters can find each other, or that the connection is unstable. Here are some troubleshooting tips that could help with stabilizing the connection: – Set the network name to some custom name,…