Ben Chuanlong Du's Blog

It is never too late to learn.

Comparison of Collections in C++ and Java

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

Plain Old Array

  1. The length/size of array is as in the declaration. Each element of the array is initialized to the default value (null for object).

  2. Array in Java does …

Alternatives to Docker Containers

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

  1. LXD and Multipass are alternatives to Docker container. Docker is more lightweight than LXD which is more lightweight than Multipass (Docker < LXD < Multipass).

  2. Neither Docker nor LXD requires a CPU which …

Tips on Redash

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

Creating a new query runner (data source)

https://discuss.redash.io/t/creating-a-new-query-runner-data-source-in-redash/347

Tips on arp-scan

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

Installation

Ubuntu

wajig install arp-scan

Mac

brew install arp-scan

Usage

sudo arp-scan -l

sudo arp-scan -l -I network_interface

Docstring in Python

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

Tips and Traps

  1. I personal prefer the sphnix style as it is concise and work well with type annotation.

  2. Improperly escaped \n in docstring causes darglint fail to parse the docstring …

Tips on Darglint

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

Tips and Traps

  1. It is suggested that you avoid using darglint directly, but instead you can use flake8 which will automatically call darglint if it exists.

  2. Improperly escaped \n causes darglint …