Lin Minquan's Blog

Experience technology to change life

How to Fix Windows Laptop Heating Issue When Lid is Closed

Background Many Windows laptop users have encountered the issue where the laptop continues to heat up and the battery drains quickly even after closing the lid. This is often caused by the laptop not entering sleep or hibernate mode correctly. This article will introduce several effective solutions to help you completely resolve the laptop heating issue when the lid is closed. References: YouTube Video Tutorial Bilibili Video Tutorial Method 1: Unplug the Charger Before Closing the Lid This is the simplest and most effective solution! Read more →

Building a Pytest Enabled Docker Image Using Python Base Image

Attempting to create a Docker image based on Python and install the dependencies required for Pytest. Windows systems require installing WSL2 and Docker Desktop. Create a file called Dockerfile in the project root directory with the following content: FROM python:3.12.11-slim RUN apt-get update && apt-get install -y curl unzip wget # Install Java (required for Allure) RUN apt-get install -y default-jre-headless # Install Allure Report RUN wget https://github.com/allure-framework/allure2/releases/download/2.32.0/allure_2.32.0-1_all.deb && \ dpkg -i allure_2. Read more →

3HK Prepaid SIM Validity Extension Logic

3HK prepaid SIM cards have an annoying feature - they don’t simply extend the validity period based on your current remaining days. If your remaining validity period already exceeds the extension days, then the extension days will be ignored. For example, if your current remaining validity is 100 days and you top up HK$20, your validity period won’t be extended by 30 days, but will remain at 100 days. Let’s say I top up over two hundred HK dollars on July 1, 2025. Read more →

Observations from My Second Trip to Japan

Still very clean. Trash cans are still scarce. Restrooms are way better than Hong Kong’s. Second-hand smoke control is excellent, fewer smokers than in Hong Kong. Tokyo isn’t very crowded. Saw a homeless person in Tokyo at night. On the train, there was a foreigner holding a child, but no one offered their seat. Later when I saw an empty seat, I called him over to sit down. Prices are expensive. Read more →

How to Apply for a Japan Multiple Entry Visa in Hong Kong

VFS Global appointment email receipt. Need to print it. Passport photo taken within 6 months (3.5*4.5cm, white background). I took it in Shenzhen when I was there, 25 RMB, and the staff did some retouching. Hong Kong ID card original and photocopy. The photocopy should be 1:1 scale. Only the front side is needed. Passport original and photocopy. Personal information page and the page before it - just put them in the scanner and print both together. Read more →

How to Stress Test EMQX

In Alibaba Cloud’s Hong Kong region, spin up a few 2-core 4GB preemptible instances (formerly known as spot instances), install Docker, and then use emqx-bench for stress testing. docker run -it emqx/emqtt-bench:latest conn -c 30000 -i 10 -h IP-ADDRESS -p 1883 docker run: Run a Docker container. -it: Run the container in interactive mode and connect to the terminal. emqx/emqtt-bench:latest: Use the latest version of the emqtt-bench tool image provided by EMQX. Read more →