Spring boot multiple profiles


Development java web applications with spring is comes in handy considerably when developing production (and fast non production software). I mean, just adding an application.properties with the below can make it very simple to use several profiles, for each development (since Spring Boot 1.3):


And then setting on the mvn’s pom.xml the profiles:

				<activeByDefault>false</activeByDefault> <!-- here if false or true -->
                                <!-- <activeByDefault>true</activeByDefault> -->

And then you have a series of application-*.properties files, mandatorily pattern application-{custom_suffix}.properties, which is place on src/main/resources/application-*.properties, like src/main/resources/application-test.properties, where you will define the properties:

# AUTO-CONFIGURATION - set false for those which is not required
#spring.autoconfigure.exclude= # Auto-configuration classes to exclude.

Interesting logging.config seems to be found in the server deployment, not in the application sources. We can use JAVA_OPTS=”$JAVA_OPTS -Dlogfile.name=test_file_name” to set a file name on runtime:

#appender.R.fileName = ${sys:logfile.name}
appender.R.fileName = ${filename}

reading about fusion energy


I’ve seen recently an amazing number of startups that aim to achieve production ready energy generation with fusion energy. It is very exciting, and the number of Canadian companies (or Canadian people behind it), very interesting and really exciting! Some of those have very short term goals, like Zap Energy

However, I’ve started to go deep on the understand of this (as much as possible, during holidays, with not such much technical books). There are several books and I’ve just started, but here is a short list.

I’ve started with a brand new book, The Fairy Tale of Nuclear Fusion (2021), by L.J. Reinders. Based from one of the comments on the video. Well, I’m still on chapter six and it is very well written, but very critical in regards to any timeline for this to be achieved. It is very critical and it seems an honest view, i.e. no assumptions were made and the writer indeed searched before coming to an conclusion, then wrote the book (not the other way around). But clearly the author has a very hard instance on the over-promises some scientists made with goals.

My interested started more because of the recent discoveries (public ones) and because of this video, by Sabine Hossenfelder. Later I’ve seen a couple comparing Tokamak VS Stellarator, VS Inertial confinement, ITER vs JET vs fusion. There is a lot of hard core (deep) information out there, one just need to look for it, and where to do it.