Eclipse and Gradle
Importing an old Gradle project in Eclipse can be problematic. I get this error message when "import existing gradle build"Spring Boot plugin requires Gradle 4.0 or later. The current version is Gradle...
View ArticleZipkin and Sleuth distributed tracing
https://dzone.com/articles/microservices-part-6-distributed-tracing-with-sprihttps://zipkin.io/Sleuth concise presentation with example:and code is here...
View ArticleGradle and Nexus
download Gradle binariesmkdir /home/centos/gradleunzip -d /home/centos/gradle/ gradle-4.8-bin.zipexport PATH=$PATH:/home/centos/gradle/gradle-4.8/bin/gradle -versioncd gitclones/git clone...
View ArticleLearning Spring Boot second edition
Excellent book by Greg L. Turnquist - no blabla, just stuff. Much better than the incredibly verbose and blablaistic Spring in Action.Sample code here...
View Articletired of curl weird syntax? try httpie
https://httpie.org/https://github.com/jakubroztocil/httpiemuch more intuitive IMHO
View Articlersync in action
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vpsTo play in full safety, let's run tests in a docker container!docker run -dit --privileged...
View ArticleELK docker
http://elk-docker.readthedocs.io/you have to adjust permanently the max_map_count parameter:sysctl -w vm.max_map_count=262144(sysctl - configure kernel parameters at runtime)ls /proc/sys/vm to get list...
View ArticleSpring Boot and Netflix: Eureka Server
https://spring.io/blog/2015/01/20/microservice-registration-and-discovery-with-spring-cloud-and-netflix-s-eurekalet's start with an empty Eureka...
View ArticleSpring Boot Security 5 and Oauth2
https://github.com/jgrandja/springone2017-demoUltimate guide and...
View ArticleCDI and WELD suck
A @Stateless bean could not be injected because not found by WELDorg.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type PersistenceService with qualifiers...
View ArticleOracle DB Invalid Objects
Some usefuls commands to troubleshoot:select count(*) from USER_OBJECTS where OBJECT_TYPE = 'TABLE';select count(*) from user_objects where object_type='TYPE';select count(*) from user_tables;select *...
View Articleshell input validation
shell scripting STINKS, and to make it better we should at least make it more robust.For instance by validating input parametersArrays are a great and simple way to achieve this.array=(pippo pluto...
View ArticleNexus 3.10 as Python pypi proxy
sudo yum -y updatesudo yum -y install python-pippip --helppip -Vmkdir ~/.pipcd .pip/vi pip.confenter this:[global]index = http://localhost:8181/repository/pypi/index-url =...
View Articledocker latest update fails miserably
sudo journalctl -xemkdir /run/containerd/io.containerd.runtime.v2.task/docker/dockerd: file exists: unknownit seems a bug of the latest (nightly) release.... which was installed automatically by the...
View Articlebuilding .net applications on a docker image
The pain is that you can't run a Windows docker image on Linux. And Microsoft images with the .net libraries are all Windows.Like this one https://hub.docker.com/r/compulim/msbuild/BUT you can build a...
View ArticleNexus HTTP/1.1 407 Proxy Authentication Required
While trying to connect to https://repo.typesafe.com/typesafe/ivy-releases/ and https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ over a corporate proxy with these 2 sites whitelisted, we keep...
View ArticleNordVPN programmatic API
https://github.com/jjangsangy/nordvpn/blob/master/nordvpn/api.py'address': '/user/address','config': '/files/zipv2','nameserver': '/dns/smart','server': '/server','stats': '/server/stats','user':...
View ArticleNexus Maven repository migration
I need to migrate a Nexus 2.14 Maven repository to Nexus 3.10.Unfortunately the Nexus product doesn't care much about migrations... probably they believe that, once installed, their product is...
View ArticleEclipse Linux Tools (Docker Plugin) source code
https://wiki.eclipse.org/Linux_Tools_Project/Gitgit clone git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools.gitjars are installed NOT under the Eclipse installation folder, BUT...
View ArticleParsing command line arguments in Spring etc
lots of frameworks are reported here:https://stackoverflow.com/questions/367706/how-do-i-parse-command-line-arguments-in-java/but eventually I just want to do it using Spring...
View Article