How to Change Docker's Virtual Network Subnet?

Docker is a popular container technology that lets developers and operations staff deploy and run applications in different environments. Docker uses virtual networks to connect containers to the host and to each other. By default, Docker creates a virtual network named bridge that uses the 172.17.0.0/16 subnet, which means container IP addresses range from 172.17.0.1 to 172.17.255.254. This subnet can conflict with the IP addresses of the host or other network devices, causing network communication problems. So sometimes we need to change Docker's virtual network subnet to avoid IP address conflicts.

Publishing Files to MinIO with GitLab CI/CD

GitLab CI/CD is GitLab's continuous integration and continuous delivery service. It helps developers automatically run a series of tasks after every commit, such as compiling, testing, packaging and deploying. MinIO is a high-performance object storage service that offers an Amazon S3-compatible API and supports features like distributed deployment, fault tolerance and encryption. This article shows how to use GitLab CI/CD to publish generated files to MinIO, creating a simple yet efficient automated workflow.

[Notes] Encoding Video with FFmpeg on an NVIDIA GPU

1. Background

I recently needed to encode H.265 video efficiently. Software encoding and decoding with FFmpeg is fairly slow, so I wanted to speed up the encoding process with the GPU.

2. Setting Up the Environment

  1. Make sure your graphics card is on this list: https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new
  2. Download and install the CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
  3. Have the latest FFmpeg downloaded: https://ffmpeg.org/download.html
  4. Run the following command to list all available hardware accelerators
ffmpeg -hwaccels

Here you can see that CUDA, which we need, is already available.

How to Fix the ESC Key Not Working on macOS 13

1. Symptoms

Some macOS users find that the ESC key suddenly stops working, with no response from either an external keyboard or the on-screen keyboard.

2. Solution

Method 1:

  1. Press command+Space, search for Terminal, and open it.
  2. Enter the following command and press Return.
kill -9 $(pgrep Siri)

Method 2:

  1. Open Launchpad and click "Other".

How to install Visual Studio Code Server

一、Features

To solve some problems in the local development environment, we can use access to the Server version of Visual Studio Code through a browser, as in the following cases.

  • Environmental differences: For example, the three major platforms of Windows, Mac, and Linux have various differences, which can be resolved after the unified development platform.
  • Dependency problem: After configuring the environment on a development machine, there is no need to configure another machine, and the new machine can be directly accessed and used.

Here we choose to use the web version of Visual Studio Code because it is more versatile, can be used on any platform, and is relatively simple.