Why 0.1 + 0.2 ≠ 0.3: A Deep Dive into IEEE 754 and Floating-Point ArithmeticYou can find the Chinese version at 從 IEEE 754 標準來看為什麼浮點誤差是無法避免的 Introduction When people first learn to code, they often encounter floating-point errors. If you haven't experienced this yet, you're very lucky! For example, in Python, 0.1 + 0.2 does...Jan 9, 2020·4 min read
Pushing Your Docker Images to Docker Hub: A Step-by-Step GuideYou can find the Chinese version at Docker 實戰系列:在 Docker Hub 上分享自己的 image. After reading the previous article on Dockerize Your App: An Introduction to Docker, You have learned how to write a Dockerfile and build your own image. But how to share the...Dec 10, 2017·3 min read
Dockerize Your App: An Introduction to DockerYou can find the Chinese version at Docker 實戰系列:一步一步帶你 dockerize 你的應用. Imagine this scenario, you have finished developing your application and are ready to deploy it to the remote machine. However, you find the server's distribution is not Ubuntu o...Dec 1, 2017·6 min read
Improving Node.js Server Efficiency with PM2 and ClusterYou can find the Chinese version at 使用 pm2 啟動 Node.js cluster 以提升效能. PM2 is a useful tool to manage Node.js processes, which allows us to set up the Node.js cluster to utilize the CPUs. In this post, I will introduce what PM2 is and why it is essent...Nov 28, 2017·4 min read
How VSCode Became the Ultimate Editor for Web DevelopersYou can find the Chinese version at 新一代的編輯器 — VSCode. There is a proverb that says, "If a workman wishes to do a good job, he must first sharpen his tools." For programmers, having a useful editor is crucial. Since many of my friends have asked me a...Nov 10, 2017·3 min read
Boost Productivity with tmux: Master Terminal SessionsYou can find the Chinese version of this article at 終端機 session 管理神器 - tmux. As a developer, you should be familiar with the Terminal. Whether you want to create git branches, run the scripts, or ssh to the remote machine, you will need to use the T...Nov 2, 2017·3 min read