Category Archives: workday

base64

Base64 encoding is widely used and there are nice online tools, for example https://www.base64decode.org/. On command line could be convenient choice to use openssl with argument base64 to encode or two arguments base64 -d to decode. Tool reads from stdin, … Continue reading

Posted in workday | Leave a comment

go: interface example

Go is fresh fast relatively new language. One of the key to utilize it’s power are interfaces. Here is example of the geometry interfaces. See https://play.golang.org/p/nQ_ylb2jXKS package main import ( “fmt” “math” ) //https://www.mathsisfun.com/area.html type geometry interface { area() float64 … Continue reading

Posted in golang, workday | Leave a comment

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