Dennis Blog

Welcome to Dennis's Grocery!!!
- Sharing techs 🌟 
- Sharing recipes 🌟
- Sharing happy times 🌟

Create Python Bindings with Cython

Background Foreign function interface As we know, many operating systems only provide C API for system calls. This statement is not quite correct, but we assume this is right because we usually interact with operating systems via C API directly or indirectly. Have you ever thought about that why non-C language can interact with operating systems? Before we discuss this question, we need to know some knowledge of foreign function interface (FFI)....

July 8, 2022 Β· Dennis Xie

Multi-Stage Builds of Docker

Background What can we do if we should merge several Docker images to a single Docker image for some reason? Solution We can use multi-stage builds of Docker. Multi-stage builds Problem solved by multi-stage builds It’s very common to have different images for building, testing, and production. Different images contain different tools. Building images may contain building tools such as GCC, Gradle, and so on. Testing images may contain perf tools, analysis tools, and so on....

June 21, 2022 Β· Dennis Xie

Hugo Integrity Problem

The problem of integrity When you maintain your Hugo project both on Windows and Linux/macOS, you may get this error. The problem is caused by the default EOL character. The different EOL characters in the file will produce different SHA-256 hash codes. So what needs to do is to force the files to have LF or CRLF at the end of the line. Solution We can use git to ensure this....

June 9, 2022

Testpage

First Test Blog This is my first test blog page

June 8, 2022