Category Archives: workday

HTTPS Tomcat

Here are some notes from install and run HTTPS Tomcat on digitalocean inpired by Mavi’s blog. on digitalocean: Ubuntu 18.04 x64 Memory:1GB, vCPU:1, SSD_Disk:25GB, Transfer:1TB, price:$5/mo Hostname:ubuntu18 IP:1.2.3.4 on my DNS provider web: Edit DNS A records for example.com and … Continue reading

Posted in workday | Leave a comment

CSV: How to sort by several columns in Java8

CSV_SortByThreeColumns.java package example.stream; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.Comparator; import java.util.stream.Stream; /** * Let’s say there is a comma delimited file with the first line describing column names: * Name, State, Years of experience * Here is how … Continue reading

Posted in Java8, workday | Leave a comment

CSV: How to skip the first line in Java8

CSV_SkipFirstLine.java package example.stream; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.stream.Stream; /** * Let’s say there is a comma delimited file with the first line describing column names. * In this example a person name and state. * Here is … Continue reading

Posted in Java8, workday | Leave a comment

Handy notepad in Chrome tab or window

There is nice option to create editable tab on window in Chrome browser with URL like this: data:text/html, <html contenteditable> It is possible to save it into the file after pressing CTRL+<S>

Posted in workday | Leave a comment

Bubble tent to look at stars

Hmm, maybe bubble tent is right idea for fidget weather of Minnesota. One could be warm and look at stars, maybe even observe by telescope.

Posted in workday | Leave a comment

SVG: Elliptical arc path

Scalable Vector Graphics allows elliptical paths. Here is rendered image, which can help to realize meaning of the parameters. In case below all elipses and circles are have end points [0,0] and [70.71, 70.71]. Second point is on the circle … Continue reading

Posted in workday | Leave a comment

find a files with -maxdepth and -mindepth

Unix utility find allows many arguments. Here is how one can limit searched directories. Arguments -maxdepth and -mindepth should be used first before let’s say -name or -type. Let’s created four sub directories to investigate how it works: $ mkdir … Continue reading

Posted in workday | Leave a comment

Eclipse weather

Weather for Solar eclipse on August 21, 2017 across USA determined how people could experience such rare event.

Posted in workday | Leave a comment

Eclipse August 21, 2017

Eclipse on August 21, 2017 will be visible in Minnesota only as a partial eclipse. Total eclipse can be visible south of Minnesota, probably good place to go will be places in Nebraska, Kansas or Missouri. Totality will be around … Continue reading

Posted in workday | Leave a comment

Sexagesimal one character digits

Sexagesimal (base 60) is a numeral system with sixty as its base. In some form with help of decimal digits ┬áis used for measuring time, angles, and geographic coordinates. There are no special symbols for it’s digits like in binary … Continue reading

Posted in workday | Leave a comment