Recent Posts

Work Behind Proxy

1 minute read

Work Behind Proxy Many easy tasks can’t be easily done if you work behind proxy. Snap sudo snap set system proxy.http=http://<username>:<password...

Java - Volatile or Synchronized

less than 1 minute read

Volatile There are two features when talking about thread-safe (Concurrency) Mutual Exclusion: It means that only one thread or process can execute a bl...

Ubuntu Powerline Setup

1 minute read

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awes...

Java Unit Test: JUnit5

1 minute read

Source JUnit5 Basics JUnit 4 & 5 Annotations Lifecycle/Hook Points For JUnit5, it’s @BeforeAll @AfterAll and @BeforeEach...

Input Unicode Character by Adb

less than 1 minute read

Source https://stackoverflow.com/questions/14224549/adb-shell-input-unicode-character adb shell input doesn’t support unicode character, there is an ope...

Output Gradle Test Result to Console

less than 1 minute read

Source https://stackoverflow.com/questions/3963708/gradle-how-to-display-test-results-in-the-console-in-real-time The gradle test output doesn’t make an...

UML Quick Reference - Class Diagram

less than 1 minute read

Source https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-class-diagram-tutorial/, Reference http://ifeve.com/uml-intro/ Class Diag...

Heroes 3 Tips

less than 1 minute read

兵种数量 几个(few):1-4 一些(sevral):5-9 一群(pack):10-19 许多(lots):20-49 很多(horde):50-99 大群(throng):100-249 大量(swarm):250-499 大批(zounds):500-999 无数(...

Java - Lambda

1 minute read

Lambda Before Java SE 8, anonymous classes were typically used to pass functionality to a method. This practice obfuscated source code, making it harder to ...

Andriod Log

1 minute read

I was thinking how to use log on Android properly, and can control it without re-compile your app. Here is what I found. Long story for short, you should do...