Maven Helper
In case you are working with Maven, there is a really cool plugin for IntelliJ IDEA that may help you manage your dependencies and fixing conflicts. It is called Maven Helper. You can install it right from the site or you can find it on the Plugins sections on the IDE: Once you have it…
Manage your inner conflicts
If you are like me, you will try to keep all the dependencies of your projects up to date, but, if you do it blindly, sooner or later, you will probably run into problems. Each dependency that we include in our projects might link to other artifacts. If you use Maven as your dependency manager…
Leader election on k8s
The problem Sometimes there are situations on which you have an application and you need to run multiple instances of it, however there is some particular task (or set of tasks) that you would like only one instance to execute. The reasons may be many: to ensure consistency to ensure order of processing to avoid…
What is reflection?
If you are a Java developer you probably already heard this jargon, but do you really know what it is? Definition If you look for a definition online, you may find something like: Reflection is a feature in the Java programming language. It allows an executing Java program to examine or “introspect” upon itself, and manipulate…
@Primary – use wisely
On a previous post we revised how to use @Qualifier and how it allows you to disambiguate what Bean to inject, when there are several candidates. However, that is not the the only way you can tell Spring which candidate to take – you can also resort to @Primary. When you create a bean, you…
@Qualifier – when to use
The usage of @Qualifier is quite simple, although people not always get it right. Lets quickly recap when to use and when it is unnecessary. Single Candidate If you are trying to inject a Bean and you only have a single candidate of that type on your Spring Application Context, then there is no need…
My Experience with Netboot on Raspberry PIs
I became interested in learning more about netbooting since I heard about Tinkerbell. Tinkerbell is a tool that boots and provisions bare metal machines from the network. Actually that’s just a tiny bit of what Tinkerbell can do, but will leave that for later. If you’re interested, take a look at their docs, I think…
Touch ID on terminal
If you have Touch ID available on your machine and are tired of typing in your password each time you use sudo, use the following guide to enable Touch ID on your terminal. Edit /etc/pam.d/sudo Add the following line on top Additional steps for iTerm2 Go to Prefs -> Advanced -> Allow sessions to survive…
Maven auto-reload
Some time ago Jetbrains removed the maven auto-reload from IntelliJ. The community was quite upset (and rightfully so), so eventually it came back as an option. In order to enable it back go to the Maven window and choose Auto-Reload Settings… Then just change the reload option to Any changes Done!
Intellij: Increase performance / reduce footprint
1. Analyze Plugin Startup Performance Intellij can be a big consumer of resources (RAM, CPU) on your machine, and plugins can be one of the main responsible for these consumptions. If you go to Help > Diagnostic Tools > Analyze Plugin Startup Performance, you will get a list of all the loaded plugins at startup…
