John Liu Blog

Every drop counts

Automate email process

Note: When design Power Automate flow, for file path or folder path values, try not to pick from the dropdown list, but instead type in the actual name. When picking from the dropdown list, the designer will undercover save the actual internal physical ID of the location as well. If you then try to export the package and modify it for a different folder, it will be hard as the physical ID will no longer match with the one for the new location.

Reset Brother printer drum count

After replaced a new Brother printer tonner cartridge, the printer still displays “Replace Tonner” message. To get around this message: Open front cover of printer (to reveal the cartridge mechanism) and “Front Door Open” will flash on the display. Next, press STOP/EXIT and CLEAR at the SAME TIME (one quick press) Immediately after, press CLEAR once again. A menu called RESET MENU will appear. Arrow down to find your toner type TNR-STD Once you select the type of toner, PRESS OK Press the UP Arrow to confirm reset The Display should say “Accepted” Close the front cover Your printer should be ready to print!

Find out the actual public IP address

When in a corporate or home network, run the following powershell command to find out the actual public IP address your computer exposed to the Internet. Make sure all VPN are closed first. (Invoke-WebRequest -Uri "https://ipinfo.io/ip").Content Imports System.Net Module Module1 Sub Main() Dim client As New WebClient() Dim publicIp As String = client.DownloadString("https://api.ipify.org") Console.WriteLine($"Your public IP address is: {publicIp}") End Sub End Module Alternatively, you can simply browser to address https://ipinfo.

Disable Chrome incognito mode

To disable Google Chrome incognito mode, do the following in registry (create if not exist already): Under HKEY_LOCAL_MACHINE -> SOFTWARE -> Policies -> Google -> Chrome, create a DWord (32 bit) value key named IncognitoModeAvailability and set the value to be 1. This will disable the incognito mode. Set to 0 will enable it. Restart Google Chrome after setting change.

Wi-fi connection issue

When playing with Hyper-v, I somehow managed to break my local Wi-fi connection. The issue was that download speed is normal whereas upload speed is very slow (~0.6Mpbs) which caused web browser very slow and sometime error out. I initially thought might be firewall rules (I setup some new firewall rules). After using a physical cable connection, download/upload speed are as normal. Played with update/reinstall Wi-fi NIC driver with no luck.