Knowledge Basement

Linux, Java, Open Source related how-to articles. Expert tutorials on system administration, programming, security, and DevOps best practices.

153 Articles
9+ Topics

Latest Articles

Java

How to Write Obfuscated Java Code

To some people obfuscating programming code, including Java, means: Job security. If no one can understand their code, they are irreplaceable. Smartness. They are so...

Read Article
Java

Reducing Streams in Java

Java 8 introduced streams, among other things, and one of my favourite features is the reduce() method. It combines a stream into a single method....

Read Article
Java

Build A Java Project With Maven

Using Maven to maintain and build your Java projects has a lot of advantages including automatically resolving dependencies, running tests and packaging. In this article...

Read Article
Java

Terminate Java Thread

The best way to terminate a Java thread is with a switch such as a boolean property, .e.g abort. As soon as a condition is...

Read Article
Java

How to Parse Time in Java

To parse time in Java, the most trouble-free and programatic way is using the parse method of the LocalTime class like this: import java.time.LocalTime; import...

Read Article
Middleware

How To Configure SSL In Tomcat

To secure the communication and increase the level of privacy to and from your Tomcat servlet container you should use SSL. Usually there's an Apache...

Read Article