Guide to Physically Crossing the Wall to Singapore During the Pandemic

“The difficulty of living abroad is smaller than imagined, but the determination needed to go abroad is greater than imagined” –@FreiheitYu The author wrote this article in early 2021, and there may be discrepancies due to the relaxation and tightening of immigration policies, for reference only. Preface This is a very struggling and bumpy experience. Under the situation of the pandemic, I still chose to come out from my country

About me

About me Welcome! I am Xiantang. This is my personal website, where I blog about things I learn or think about in my daily life. I hope you like it. My personal telegram channel is https://t.me/xiantang. I like programming and can use many languages, such as: Golang https://github.com/cosmtrek/air is my main language currently. Scala https://github.com/xiantang/redislimiter I have written some services. Python https://github.com/xiantang/Spider I have written some crawlers. Java https://github.com/xiantang/JerryMouse I have written a simple web container.

Soft Skills: A Guide for Lower-Level Employees in Big Companies

“I found that many articles and interviews are about how to get into big companies, but actually surviving in big companies is also a skill” Preface The author recently changed jobs, chose to follow his heart, and did not continue to work in the previous company. Taking advantage of the recent resignation, I quickly calmed down and output my previous experience. Although I only stayed in the previous company for almost a year (the previous company referred to in this article is a certain company), I still learned some of the working methods and processes of big companies.

Soft Skills: How do I acquire knowledge and information?

​ “We are all hunters in the wilderness of the information age, surviving in the vast wilderness of information.” - “Why Become an Information Predator” ​ In the era of mobile internet with information explosion, every internet giant is trying to build their own “information cocoon”, trying to recommend you some things you are interested in, and gradually your life will be shackled in a cocoon-like cage. As a [hacker] who yearns for freedom, naturally, he cannot be restricted by such a cage.

Implementation of Distributed Token Bucket Algorithm

What is the Token Bucket Algorithm? The token bucket algorithm is a rate limiting algorithm, which is the opposite implementation of the leaky bucket algorithm. The leaky bucket algorithm leaks at a certain frequency rate, and our requests can be imagined as the faucet above. The token bucket algorithm, on the other hand, periodically puts tokens into the bucket, and each request will get a token from the token bucket. If there are no tokens in the bucket, the request is rejected or blocked until a token can be obtained.