In Java, the try/catch block is the alternative to handle exceptions properly and avoid the application to crash. It has useful features like multi check, finally or try-with-resources statements.
Continue readingDocker cheat sheet
Very helpful article with a summary of the most common and useful docker commands. Grouped by categories to find what we need.
Continue readingPKCS 11 Provider across multiple Java versions
A cross version approach to create SunPKCS11 providers to interact with smart cards. Supports version Java 5 to Java 18 at this moment.
Continue readingBehavior of the Iterator size method in Scala
The iterator is a useful structure to iterate over collections (List, Set, Map, Seq). But it you uses the method size, you might notice an strange behavior, the iterator seems to be empty.
Let’s understand why.
JDBI and the Specification Pattern
JDBI is a library to access to relation data in Java, it doesn’t provide support for the Specification Pattern, but with some classes and code we can implement it and use it.
Continue readingHow to enable Metric-Server in Docker-desktop
Docker desktop allow you to have a Kubernetes installation in your local machine, by default it provides most of the features required by a developer. […]
Continue readingHow to get the current directory path of a JAR in Java
Let’s learn about different approaches and concerns when we want to find the current directory where a JAR file is running….
Continue readingBash Scripting cheat sheet
As a Full Stack Developer, sometimes I need to create bash scripts to automate some processes. This article contains a lot of useful commands for creating bash scripts.
Continue readingHow to set environment variable in MacOS
Environment variables (env-vars) are used to save system-wide value and those values can be accessed later by the system itself, the user, processes or applications. […]
Continue readingSpring Data JPA and the Specification Pattern
Spring Data JPA provides support to the Specification pattern that will help us to reduce the amount of methods in our repository improving the readability and maintainability of the code.
Continue reading