Ben Chuanlong Du's Blog

It is never too late to learn.

Misc Tips in Daily Life

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

Insurance

Internet Service

  1. Century Link is a very bad one! The speed is slow. Service people are irresponsible. I have problem to use SSH and NX services.

  2. Time Warner is not …

Tips on OpenCV

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

Installation

You can install OpenCV for Python using the following commands.

:::bash
sudo apt-get install libsm6 libxrender-dev
pip3 install opencv-python

If you use xinstall, you can install OpenCV for Python with the following single command.

:::bash
xinstall --sudo cv -ic

Tips and Traps

Tips on WSL 2

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

Installation & Update

Run the following command in an command window with administrator privileges to install WSL 2.

wsl --install

Run the following command to check the version of WSL.

wsl -l …

Baidu Yun Tips

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

  1. Baidu cloud is a good backup solution but not a good synchronization solution. Do not try to synchronize your devices via Baidu cloud.

Alternatives

Tampermonkey + Greasy Fork

References

https://github.com …

Query and Monitor OS Information using osquery

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

  1. List all tables.

    .\osqueryi .tables

  2. Check the schema of a table (e.g., "process").

    .\osqueryi ".schema processes"

Querying System Information

.\osqueryi.exe "select * from system_info"

Querying Docker

Please refer to Manage …

Tips on AnBox

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

  1. AnBox CANNOT be run on macOS.

  2. There was a limited support of ARM-only app on x86-based Linux OS. However, Android 11+ images are capable of running ARM apps on x86-based machines …