download zipped/gz file and unzip and use in java

 Example code for downloading a zipped file and unzipping in java public static void main (String[] args) throws Exception { String mmdb = "https://someaddress/ somefile.gz" ; String zipFilename = " somefile .gz" ; if (!Files. exists (Path. of (zipFilename))) { System. out .println(mmdb) ; Files. copy ( new URL(mmdb).openStream() , Paths. get (zipFilename)) ; try (GZIPInputStream gis = new GZIPInputStream( new FileInputStream(Path. of (zipFilename).toFile()))) { Files. copy (gis , Path. of ( dbFileName )) ; } } SpringApplication. run (Application. class, args) ; }

Scotland bike rides for 2021

Barra to Lewis Cumbernauld to Calanais Standing Stones

linux mint install jdk 15

 I have been using linux mint 20.1 and I needed to install java 15 but when I search I could not find proper commands, here they are sudo apt-get install wget apt-transport-https gnupg wget -qO - | sudo apt-key add - echo "deb focal main" | sudo tee /etc/apt/sources.list.d/adoptopenjdk.list sudo apt-get update sudo apt-cache search adoptopenjdk sudo apt install adoptopenjdk-15-hotspot   adoptopenjdk is openjdk delivery system, details in case for different linux versions redhat or opensuse check

last year I decided to start answering in stack overflow

not going bad so far.

my long time running haproxy quarkus spring boot and go server statusses

 I set up this around 2 years ago. and here it is a screen shot, it has been working for 350 days. looks like GO is the clear winner here in this list :) you can see the code of quarkus and go here