LeetCode 1496: Path Crossing [EASY] zhijie, February 5, 2024June 10, 2024 Path Crossing – LeetCode Given a string path, where path[i] = ‘N’, ‘S’, ‘E’ or ‘W’, each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path specified by path. Return true if the path crosses itself at any point, that is, if at any… Continue Reading
Blog Synology Notification on Discord zhijie, January 15, 2024 To setup Synology notification on Discord here is what we need to do. First we need to have a existing discord server to send notification to. Create a discord server or use an existing one that you have. Next create / reuse an existing channel for notification. Right click on… Continue Reading
Blog ZSH Setup for MacOS zhijie, November 2, 2023November 2, 2023 Looking to enhance your MacOS terminal experience? Oh My Zsh is a popular framework for ZSH customization. Part 1: Checking for ZSH installation Before we install ZSH lets us verify that ZSH is installed on your MacOS. Installing OMZ and ZSH This command will download and run the installation script…. Continue Reading
Blog Automatically Archive Gmail Labels with Google Scripts zhijie, September 30, 2023September 30, 2023 I enjoy having a clean inbox and I am currently using Google Scripts to clean up my inbox. Here is the URL to Google’s App Script: My Projects – Apps Script (google.com) Documentations This is the main documentation used to create this script: Documentation to Gmail Service: Gmail Service | … Continue Reading
MacOS MacOS mouse acceleration and natural scrolling fix. zhijie, September 15, 2023September 30, 2023 I love MacOS, but there are just some design decisions just does not work with how I like to use my PC. This is what I have installed in my MacOS to customize it to my liking. All I need is isolated setting between TouchPad and Mouse. Unfortunately, MacOS does… Continue Reading
Smart Home Energy monitoring with LocalTuya zhijie, August 28, 2023September 30, 2023 For Tuya plugs / extensions added via LocalTuya in Home Assistant, the power used are not available for Home Assistant to use for the energy dashboard. This is because, the stats provided is in Watts. The energy dashboard requires kWh in order to be used. Here is how you can… Continue Reading
Smart Home Aqara E1 wireless 2 Gang Switch zhijie, September 26, 2022August 28, 2023 I wanted to look into the viability of Aqara as my home main smart home system. One of the devices that came out recently is the Aqara E1 switch. I wanted to know if this would work with Aqara M2 Hub global or Home Assistant with Zigbee Adapter (CC2531). There… Continue Reading
Hello WordPress, Goodbye Ghost zhijie, September 25, 2022August 28, 2023 After experiencing technical issues with my Ghost docker during migration to my Synology, I have made the decision to switch to WordPress as my preferred blogging platform. One of the appealing features of WordPress is its robust editor, which I find to be suitable for my needs. Additionally, the availability… Continue Reading