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 »
Angular has support for internationalisation with the @ngx-translate/core module. This and a needed loader can be installed via With this done you need to create a folder src/assets/i18n and place your language json file like en.json in it. Now the translation module and service needs to be configured. Open your app.module.ts file and add the
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 »
In the last weeks I dig deeper into Angular and how to structure such an application properly incl. the tools needed. So I want to share my first steps I take starting a new Angular app: Prettier What is Prettier? An opinionated code formatter Supports many languages Integrates with most editors Has few options Installation
First steps for a new angular application Read More »
As a big fan of postgresql I’m following latest releases based on the stable updates channel. But every time a new major release comes our you end up with two running instances on your machine and you have to upgrade your data from the old to the new one. Here some steps how I did
Upgrade postgresql 13 to 14 Read More »
While creating my new homepage on https://mbo.dev I was looking for a command line tool to optimise images. Best tool for the job seemed to be imagemagic in combination with mozjpeg. Here the command I used which brought the images down very very much: The quality may change but I couldn’t see the difference without
Optimize JPEGs for web Read More »
I installed a raid1 with two 3.5″ sata disks in one of my machines. Instead of using mdadm as usual I decided to go with btrfs this time. Here the commands I used for that (as root): This was already working properly and I was able to copy my data on the newly created raid.
btrfs raid1 with two 3.5″ sata disks under ubuntu 20.04 lts Read More »