Optimise PNG for web
I was looking for a method to optimise my png files for the web and came up with the following command: Convert is a simple but very mighty imagemagick command.
Optimise PNG for web Read More »
I was looking for a method to optimise my png files for the web and came up with the following command: Convert is a simple but very mighty imagemagick command.
Optimise PNG for web Read More »
Sometimes, especially during debugging, it would be helpful to mark single lines in the log in colours. There is a simple way to achieve this with Spring Boot and logback. With this dependency in place you can extend your logger to achieve this. Here a sample setup: This allows you to mark a resource in
Spring Boot coloured log lines Read More »
Spring Boot contains a quite nice configuration for logback with color coding and good readability. But it lacks logging MDC (Mapped Diagnostic Context) content. I tried around and found a way to append MDC to every logged line by setting the console pattern in my application.properties/yml under logging.pattern.console to Without any MDC set this adds
Spring Boot log MDC Read More »
On macs you can open multiple projects in tabs instead of single windows with IntelliJ thanks to an OS functionality. Set the System Preferences > General > Prefer tabs to always. Then try to open multiple projects in IntelliJ. You will see them opening in tabs :) I haven’t found this functionality under Windows or
IntelliJ project tabs on macOS BigSur and Monteray Read More »
The file list in projects gets quite long most of the time but most of those files aren’t really used on a daily base. The FoldableView plugin allows you to just hide these files behind a dropdown menu. So they’re still there and easily accessible if you need them but hidden during normal work. In
IntelliJ FoldableView Plugin – Default patterns Read More »
It’s quite easy to mix up spring-boot-start-cache with 2nd level caching in hibernate. In this post I want to take down how to enable both and being able to run tests from within intellij and gradle (which isn’t the default if you just follow most tutorials). To have proper dependencies for this i added the
My latest IntelliJ installation didn’t come with a command line idea command so I wrote a short script and put it to /usr/local/bin/idea on my local machine. This will only work on a mac. If you’re facing the lack of the command as well you need to find the path to your idea.sh and put
IntelliJ 2020.3 cli command – run idea from your shell again Read More »
I’m a big fan of the IntelliJ .http/.rest files but only being able to run them from within the IDE was not very satisfying. So I was looking for a way to run them from the cli as well and found https://github.com/restcli/restcli. This project offers a cli tool named rest-cli that is able to run
IntelliJ .http/.rest cli support Read More »
Recently I was wondering why my shell is taking so long to show a prompt and was able to track it to nvm – node version manager. The check which version to use as default takes quite long so I was looking for a solution that allows me to keep nvm functionality and have a
nvm slows down shell startup Read More »
In my latest experiments I upgraded a project to Java 15 and received exceptions during the build from jacoco that state that the used Java version isn’t supported. Here the exceptions stacktrace I received: Especially “Unsupported class file major version 59” is a good indicator that Java 15 isn’t supported yet. To get around that
gradle jacoco plugin with java 15 Read More »