Maven project basic

This is a note for starting maven project from creating project to running application with configuration for external library dependencies. Environment Mac OS Monterey 12.0 Java 17.0.1 2021-10-19 LTS Apache Maven 3.8.3 1. Generate project structure 1 mvn archetype:generate -DgroupId=io.hommalab.app -DartifactId=multiplication-client -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false This generates project structures as below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 log4j-sample ├── pom.

Check valine comment system and glitch visitor badge

I considered changing comment system to valine from utterances. As a conclusion, I decided to remain in utterances (the reason will be followed), I leave some findings about valine as a comment system for hugo website. Environment Mac OS Monterey 12.0 hugo v0.88.1+extended darwin/arm64 BuildDate=unknown Hugo LoveIt Theme 2.0.10 What is valine valine is a Leancloud based no back end comment system. I found valine when I checked how Hugo LoveIt theme generates page view count for each article.

Count number of character from git history

Sometime I want to count the number of word in text for each git commit history. Solution (TBD) I tweaked a command suggested in Stackoverflow command works though I need to check the accuracy in counting Japanese language though. 1 2 3 4 5 for commit in `git rev-list --all`; do git log -n 1 --pretty="%ad %H" $commit; git archive $commit | tar -x -O | wc -c; done Output:

Maven compile cannot find existing packages

When I setup java project using thrift, maven build fails because that cannot find thrift generated java sources. This is a memo for how I fix the configuration for goal of compile in maven. Environment Mac OS Monterey 12.0 Java 17.0.1 2021-10-19 LTS Apache Maven 3.8.3 Problem When I build java project by maven, mvn install raised error. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 $ mvn clean install package -e .

Interplay F blues with Sonic Pi

Environment MacOS Monterey 12.0, M1 Apple silicon Sonic Pi v3.3.1 on Mac, for live coding Garageband v10.4.4, for getting guitar sound from audio interface into Mac with sound source Backgroud music version 0.4.0 snapshot, a virtual sound interface app for screen recording with computer internal sound Interplay F blues with Sonic Pi 1 min version {{/< instagram CV_fL7GhZBh >/}} From scratch (full movie in 23 min.) Sources drums Swing rate is 0.

Trim image borders by imagemagick

When converting image format from png to jpeg, imagemagick (convert command)add margin border with bold black color automatically. Environment MacOS Monterey 12.0, M1 Apple silicon Version: ImageMagick 7.1.0-12 Q16-HDRI arm Problem Getting screenshot by Command + Shift + 5 in OSX, it allows to get a screenshot for a specific window like: (Screenshot) IACDriverProperties.pngIAC Driver Properties " (Screenshot) IACDriverProperties.png Above image contains transparent background. Converting .png to .