UDP issue on Docker for WSL 2

Latest update (11/3/2021) To simplify the deploying process, I try to use a docker-compose to initialize the docker environment by the following script: But with this script, C++ program running in docker host can no longer bind to the 9090 port. After hours of trying, I found that udp package can be sent from docker …

Fix Un-allowed DMA capable bus/device(s) detected

Windows 8 and later has a function named “Device encrypt”, it allows windows to enable bitlocker for local disk automatically and unlock it at startup. But if you are using a DIY rig or changed/added some hardware to your OEM machine, then this feature might be broken. So, we need to add those devices to …

Set up LNMP environment in WSL 2 with Docker on Windows

Web development on Windows used to be annoying, since the web environment has to be deploy on a remote server or a VM. But with the release of WSL 2 and the integration of the docker backend, thing goes simple now. Before doing that… This post assume that you have already got a WSL 2 …

Compiling & installing the latest OpenCV

Since apt doesn’t support 3-party components and might not install the latest version of OpenCV sometimes, installing OpenCV by building yourself might be helpful in some case. On Ubuntu Firstly, install all the packages that essential for building. The following packages contain libraries that OpenCV depends on, but do not include GPU acceleration and ML …