Programming is an alias of thinking.
Usages, traps, workarounds, and practices of
Many experienced hackers have great ideas about the technology like a cool algorithm. However, they don’t like to work on the code they think is trivial, for example, making the algorithm a Web service or writing a GUI for it. This will increase the threshold to enjoy the result and make less people understand their work, thus I wrote the c2w utility to convert any CLI program to a web service.
Web pages can be temporary. To permanently save valuable documents, people may print your web pages to PDF files or papers. However, most web pages don’t consider what they should look like while be printed. CSS provides the
@media print selector to customize styles on papers. We should make use of it to have good reading experience for both screens and papers.
Depending on how two processes exchange data, we need different pipe capacities to maximize performance.
Discuss some differences between macOS and common Unix systems to help Unix users get familiar with macOS sooner.
A highly abstract guide to the file system of Liunx for application programmers, ignoring many difficult details.
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.
Nowadays most modern web applications are developed as SPAs. The server provides only the API which is often in the JSON format instead of rendering HTML. Flask as a great Python web framework can also be used to build the API service but its infrastructures for handling errors are designed for traditional web sites thus we need a usage pattern to make building API services using Flask more convenient.