春江暮客

The Lion and the Wolf

MISCELLANEOUS
The Lion and the Wolf

Benefits of Trade

MISCELLANEOUS
Benefits of Trade

Recently, I have been reading Gregory Mankiw's "Principles of Economics" and found it quite interesting. Here, I share one example that trade can benefit both parties, creating a win-win situation rather than one winner and one loser.

What is Logic and Common Logical Fallacies?

MISCELLANEOUS
What is Logic and Common Logical Fallacies?

Logic is used in most intelligent activities, but it is mainly regarded as a discipline in psychology, learning, philosophy, semantics, mathematics, inferential statistics, brain science, law, and computer science.

FREENOM Free Domains Can No Longer Be Successfully Registered

MISCELLANEOUS
FREENOM Free Domains Can No Longer Be Successfully Registered

Since the original domain registered on freenom expired and could no longer be used, I chose to go back to freenom to register a new domain for fun, but found that due to technical issues, the registration kept failing, and the domains below would be canceled.

Differences and Use Cases of Normalization and Standardization

MISCELLANEOUS
Differences and Use Cases of Normalization and Standardization

The term "normalization" is an informal expression in statistics, so the phrase "normalized data" can have multiple meanings. In most cases, normalizing data eliminates units of measurement, making it easier to compare data from different sources.

1024 International Programmer's Day: One Sentence to Prove You're a Programmer

MISCELLANEOUS
1024 International Programmer's Day: One Sentence to Prove You're a Programmer

Today, October 24th, is International Programmer's Day, a holiday recognized by many tech companies and software businesses globally. The origin of this festival is 1024, or 256, because it's 2 to the power of 8, and computers store data in binary, thus becoming Programmer's Day.

Grabbing Free Oracle Cloud Servers and Automating Deployment with Scripts

MISCELLANEOUS
Grabbing Free Oracle Cloud Servers and Automating Deployment with Scripts

Oracle Cloud recently opened registration for free usage of 2 1c1g cloud servers, databases, and other services. I registered immediately and chose Korea as the main region. Access speed from Shanghai is very fast. This post records the automation process for deploying servers using the OCI CLI.

Seamless Migration from WordPress to Fully Static Hugo Website

MISCELLANEOUS
Seamless Migration from WordPress to Fully Static Hugo Website

When evaluating the website, I found that a large portion of js, css, and other content was not fully utilized, but I didn't know how to efficiently combine or remove them. I also wanted to try a static blog, so I decided to migrate to a completely static blog system. Here, I chose Hugo as the new system.

Scraping Emojis with Scrapy and Building a Search Website Using Flask

MISCELLANEOUS
Scraping Emojis with Scrapy and Building a Search Website Using Flask

Today I chatted with a friend who said he bought emoji packs from Taobao. I don’t have many myself, but there are tons of emoji websites online — why not scrape them and build my own emoji search engine?

The Risky Experience of Using Baidu Cloud Acceleration and Cloudflare Together

MISCELLANEOUS
The Risky Experience of Using Baidu Cloud Acceleration and Cloudflare Together

Considering that Cloudflare’s free sites are really slow in China, and Baidu Cloud Acceleration in China uses Cloudflare technology, I thought using Baidu CDN would speed up domestic access to the site.

Customize, Modify, and Upload Your Own Docker Image

MISCELLANEOUS
Customize, Modify, and Upload Your Own Docker Image

Dockers can package applications along with their virtual containers and dependencies, allowing them to run on any Linux server. This helps achieve flexibility and portability, enabling applications to run anywhere, whether on public cloud, private cloud, or standalone machines.

Deploy Flask Python Web Service in Production Environment Using Gunicorn

MISCELLANEOUS
Deploy Flask Python Web Service in Production Environment Using Gunicorn

Today I logged into the server and found python using a very high percentage of CPU, then discovered it was caused by some small web tools made with Flask on this site. Finally understood why Flask warns not to deploy directly in production.