I'm passionate about programming, design, computer science and many other things. I'm Chinese. Dong is my surname and Yuxuan is the given name. The given name comes first for the Chinese. So I usually capitalize my surname to DONG in an English context to avoid confusion.
To contact me, you could leave a message on any page of this site or you can find me on Twitter.
Introduce the c2w utility.
Docker makes deployments of programs very handy. It makes a isolated container for your application and the environment it needs. However, things could become painful with Docker when you want to dismiss some isolatation. These things are sharing files with the host, especially handling permissions of shared files, and using static system data with large size like fonts. I have struggled few days to containerize my project with Docker and resulted some useful solutions.
Design rules that can make people print your web page with less pain.
Depending on how two processes exchange data, we need different pipe capacities to maximize performance.
An algorithm to remove both vertical and horizontal curves found by the seam carving algorithm from an image.
An algorithm to compare two text files by key columns without loading the whole file into the memory.
Discuss the best practice of handling errors while use Flask to build an API service.
Develop a SQLAlchemy to JSON encoder.
A very compact note on Bash programming for looking things up or quickly learning Bash by very experienced programmers. It supposes that you have basic understanding of Bash; Be familar with concepts like pipes and redirection. Be experienced with another programming language like C or Python; Use Bash to manipulate Unix systems but don’t program with it.
Flex layout uses 2 properties
align items in the cross-axis, by default, the vertical axis.
This article explains the difference between the two properties.
Introduce basic rules of HTTP caching and a practice in Apache httpd.
Access resources in other servers from your website.
Discuss the differences between macOS and common Unix systems, especially Linux.
Git is complicated to me. Write down for recalling.
Introduce how to write an autostarted service for Unix with
The famous FTP server program vsftpd has an option
chroot_local_user. If it’s set to
YES local users will be (by default) placed in a
chroot() jail in their home directory after login. Intuitively this would make the server more secure but the document of
vsftpd notes that there could be a security implication. This article explains the reason.
Introduce how to use Apache httpd from a minimal configuration file.
Concepts, configuration, common problems and solutions about encodings in MySQL.
This article discusses how to write daemons without service managers.
It’s also how service managers like
A very highly abstract guide to the file system of Liunx for application programmers, ignoring many difficult details. It aims to help application programmers not to make basic mistakes.
Discuss some common questions about how Flask handles errors.
Session is one of the hardest concept in SQLAlchemy that the official document has a special FAQ for it. However, as the document mentioned, there’re recommended patterns if you’re developing a web application. Those patterns have one core idea: Keep the session scope the same as the request scope.