The Rabbit And The Turtle — By Charles Zhu, my 6 years old son

Whenever there is a programming speed competition, Python usually goes to the bottom. Some said that is because Python is an interpretation language. All interpretation language is slow. But we know that Java is also a kind of language, its bytecode is interpreted by JVM. …

An easy way to create and manage VMs in Linux, Windows and macOS with the same commands in pure terminal

Virtual Boring Machine by Charles Zhu, my 6yo son

WSL/WSL2 is a phenomenal tool in Windows, it just so much empowers Windows users to use Linux, Sometimes I feel Windows is the best desktop to run Linux. But what about Linux/Ubuntu and macOS, is there anything similar to WSL of Windows?

Then I found Multipass from canonical, the same…

Zsh with themes and plugins, by Andrew Zhu

Bash is good, but Zsh is even better. Zsh won’t boost your productivity 10x times, but you may feel like that. And the themes for Zsh can make the command terminal a beautiful place to stay.

Once started using ZSH, I can’t go back to Bash anymore.

Here are my…

Use the latest PyQT6 or PySide6 to build a cross-platform desktop application in Apple Silicon chip

I am using Python in my beloved M1 Macbook Air. Thinking, can I use Python to build a GUI desktop application in the little power machine? After some errors and trials, I found a way out, and it shall also work for you.

Install Python

Make sure you have the M1 native…

A journey of applying Regular Expressions in one of our projects, and the lessons I learned.

Image from Unsplash by Joshua Sortino

Imagine for a moment that you have gigabytes — or even terabytes — of text data in front of you. Now suppose that from all that data, you must extract specific text in a fuzzy pattern in a limited amount of processing time. How would you proceed?

In the Azure…

Understand how the U.S. Debt system works and figure out the real limitations of the U.S. debt size.

Image from by Mauri Karlin

When the news says “Congress soon must raise the debt ceiling again.” and “It will be almost the 100th time it has done so”.

I am wondering, while Congress passes the bill again and again, can they do this forever? or is there a “true” debt ceiling? …

Create an async sleep function without using Python Thread, use async and await without the dependence of asyncio

Threads, image from, credit to
John Anvik

The Python async/await(with asyncio) is so fast and promising. It looks and feels like the future. When we take a bit look down into it, the whole async/await stuff is built upon yield and generator/coroutine.

But Python coroutine is bizarre, weird, and strange, the more I use it the more…

Use Python’s synchronous, multi-threading, queue, and asyncio event loop to make 100 HTTP requests and see which solution performs the best.

Who dives faster? by Charles Zhu, my 6yo boy

It is easy to send a single HTTP request by using the requests package. What if I want to send hundreds or even millions of HTTP requests asynchronously? This article is an exploring note to find my fastest way to send HTTP requests.

The code is running in a Linux(Ubuntu)…

Andrew Zhu

Data Scientist @ Microsoft Redmond,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store