Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

ImportError: Attempted Relative Import With No Known Parent Package

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

Symptom

ImportError: Attempted Relative Import With No Known Parent Package

Solution

The best solution is to run the Python script as a Python module. However, you have to add the directory …

Tips on Torchvision

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

https://pytorch.org/docs/stable/torchvision/index.html

Tips on MuMu App Player

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

  1. Neither MuMu App Player nor MuMu Game Assistant supports Hyper-V currently. As a matter of fact, all popular Android emulators does not support Hyper-v at this time (as of Aug 22 …

Tips on Pillow

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

PIL.Image.Image.crop

Notice that the bounding box is inclusive/EXCLUSIVE like the range function. PIL.Image.Image.crop does not accept a bounding box of zero size!

PIL.Image …

Debugging and Testing Tools for Windows

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

OCCT

OCCT is the most popular all-in-one stability check & stress test tool available. It generates heavy loads on your components while checking for errors, and will detect stability issues faster than …