Author: Zeyu

  • How gitsubmodules (actually) work

    Gitsubmodules is probably one of the most confusing features git has to offer. Forget about the infamous rebases, I’m not even sure about how Gitsubmodules should be called. So, is it “Git submodules” or “Gitsubmodules”? But here are some quick answers that might help you get started with this feature. The basics When you first […]

  • Using Poetry to Manage Your Python Packages

    Python is a great language for tinkering around. It’s quick and easy to implement your ideas into code, but it’s not always easy to turn your code into sharable packages. One of the most popular package manager is pip, and it relies on the PyPI repository. If you want to share your package with an […]

  • A Checklist for When “The Website Just Doesn’t Work”

    We’ve all come across this frustrating moment, that nothing more than a simple “it doesn’t work” is provided. And you have 1 hour to fix it. Does it really not work? It might be a good idea to figure out if the claim truly holds. Can the website be accessed on your laptop? Can the […]

  • The GIL and Thread Safety

    What are your thoughts on multi-threading in Python? A common interview question Like many veteran Python programmer, you probably already know the answer: because of the Global Interpreter Lock, (in the context of the CPython interpreter) Python actually doesn’t run more than one thread at any given moment. You’ll probably also go on and talk […]

  • Z Function

    Dreams and Hopes You are a new computer science graduate, besides a big student loan balance, you also have the big dream of joining a famous tech company and become a software engineer. You crafted your LinkedIn profile: you connected with your uncle who runs a catering service; you debated on if you should list […]

  • A Handy Guide for HTTP Status Codes

    Hopefully this simple graph can sort you out.

  • Things to watch out for when creating a swarm-wide network

    Relying on Docker’s network documentation we know that there are the following types of networks offered by Docker. Name Description bridge For standalone containers to talk to each other. host Only for swarm services. No isolation between host and container, and the container uses host’s network directly. overlay Allows swarm services on different nodes to […]

  • Notes on Traefik via Docker

    Here are some profound knowledge I’ve gathered so far: Using Traefik to route its own traffic is absolutely workable, you just need to: make sure Traefik itself is discoverable by Traefik, and setup certificate using tls.certresolver, and setup basic auth if insecure mode is not enabled, it seems to be required. Understand that a 404 […]

  • Why I am making this blog

    There’s absolutely one reason: I’m trying to get Traefik to work with WordPress as an arbitrary exercise to figure out how to have Traefik handle the certificates and routing. So far, it seems to be working.

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!