Talking about lambda functions in java using example

2021-04-10 13:04:15 - No Comments

We look into lambda functions in java using example code and understand what functions could help you with. Java has many new concepts that could help you, and lambda is just one of them. For example, you could create Suppliers that give you a value, Consumers that use a value, and then functional interfaces.

Read more →

Writing a custom log4j appender in java, using RabbitMQ

2021-03-28 23:03:46 - No Comments

We look into writing a custom log4j appender in java and how to send you to log messages with an appender to RabbitMQ. Writing a custom appender is challenging due to performance considerations.

Read more →

Looking at logrotate in debian and timers in general.

2021-03-22 00:03:05 - No Comments

We look into logrotate on Debian and figure out how timers actually work with a system with cron installed and configured. This was a bit of a gotcha for me, so hopefully, this will help you when you configure logrotate and want to use the timers in Debian to set a correct time.

Read more →

Looking into java service provider interface (SPI). Learning by example.

2021-03-15 00:03:19 - No Comments

I took a look at the service provider interface in java. This is a needed interface to build simple services using easy building blocks to extend and improve programs or libraries. We will create one example and also look into some tools that use this interface already.

Read more →

How to create a video in java

2021-03-08 00:03:44 - No Comments

In this tutorial, I go through how to create a video in java. Using the framework Xuggle we can create a video file containing a stream of images. But you can use any BufferedImage to create these frames, so this library is super flexible and even support audio.

Read more →

A quick tutorial on using JSON-simple parsing JSON documents in java

2021-03-01 00:03:32 - No Comments

This simple tutorial will show you how to parse JSON in java using JSON-simple from Google. JSON-simple is a bit old now but very stable and tested by large and small companies. I use this framework every day, so making a tutorial was a no-brainer.

Read more →

Looking into Apache Common CLI

2021-02-22 00:02:42 - No Comments

I write a lot of small java applications and need a good command line interpreter. Apache Common CLI helps me keep track of options and arguments. Apache have a lot of great tools in their tool chain and even if some of them are common they have a great track record of usability.

Read more →

Validation using schematron in java by example

2021-02-15 00:02:42 - No Comments

We write a simple example in java to run a validation using Schematron. The framework Schematron is a way to do easy validation of XML documents and create output that is easily readable by someone working with these documents.

Read more →

Back to the basics – Java By Example (Invoice)

2021-02-08 00:02:43 - No Comments

In this video, I get back to the basics and show you how to use the code from my series Java By Example to read data from an excel spreadsheet in order to populate your invoice PDF.

Read more →

My first look into herddb clustering.

2021-02-01 00:02:24 - No Comments

I try to create a herddb using zookeeper and bookkeeper. I talk about the challenges I found and what the current state of the project is in my opinion.

Read more →

How to a build debian package

2021-01-25 00:01:42 - No Comments

We look into how to build a Debian package from source after we have done some patching of a bug that we needed to solve in the original package. Debian is a great system with good tools for building packages.

Read more →

My quick review of the slim 4 framework

2021-01-18 00:01:40 - No Comments

We look into the slim framework version 4 and do a quick review. I looked into the slim framework back in 2019 and this is a revisit where I review the changes and see if the latest version 4 has improved from the earlier slim releases.

Read more →