Ben Chuanlong Du's Blog

It is never too late to learn.

Producer Consumer Pattern in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://www.youtube.com/watch?v=tEwNXnAmc9c Producer Consumer Pattern - With Java Example

Understand DSL in Kotlin

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Kotlin DSL in under an hour by Anton Arhipov

https://www.youtube.com/watch?v=0DJqr4FZ6f0

Kotlin tutorial : How to use Function Literal with Receiver in Kotlin | Kotlin 101

https://www …

Tips on ssh-keygen

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use the following command to generate new RSA keys without prompt questions.

ssh-keygen -q -y -t rsa -N '' -f ~/.ssh/id_rsa

GCP Compute Engine VM Instances

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

GCP

GCP c2 and c3 VMs are good choices according to performance per price. It's even cheaper than customized VM types with reduced memories! GCP c2 VMs are compute optimized and are ideal for CPU intensive workloads. Note that GCP c2 spot VMs are even cheaper than AWS t2.nano VMs if you can stand your VM being preempted.