Build docker image for macOS M1 docker buildx build --platform linux/arm64 --load -t rcore_lab . Explanation docker buildx build: This initiates the Docker Buildx build process. Docker Buildx is a CLI plugin that extends the functionality of Docker’s build command, allowing for advanced features like multi-platform builds, cache import/export, and more.
--platform linux/arm64: This flag specifies the target platform for the build. In this case, it is set to linux/arm64, which means the Docker image will be built for the ARM64 architecture on a Linux operating system.
How bad a comma could be in Python?
Though I have been using Python for a couple of years, mainly as a utility to help develop software, I am still surprised by Python from time to time. Sometimes is the Sytanx sugar making me realise how elegant a Python code could be, sometimes is the caveat annoying me.
Here is the story,
in the beginning, I had a code like the one below (for the demo purpose, I simplify the code here):
My motives for writing.
As the first post on my new site, it should tell something about my motives for writing.
Why do I write? Output as a way to learn. Inspired by Feynman’s techniques, I explain complex concepts or knowledge in simple words if I need to understand something deeply. As a programmer, I must learn, which I would love to do continuously. But I also care about how to learn fast and efficiently.
Though there are so many factors causing my procrastination, perfectionism is one of the primary reasons I find it difficult to start doing it.
We have so many decisions to make during the day; perfectionism makes me hesitate and consumes energy in my brain. Therefore, I have this pre-programming procedure to make my life easier and try to spend more time doing actual work.
Principle Less is more time values most Do not let perfectionism stop you from achieving.