Accessing a VMware NAT Virtual Machine from Another PC: Networking, SSH Authentication, and Troubleshooting

This article records how I connected a second Windows computer to a Linux virtual machine running in VMware, including the port conflict and SSH authentication issues I encountered. Both computers are connected to the same home Wi-Fi network. PC1 runs VMware Workstation, and PC2 connects to the VM over SSH. Once SSH works, I use VS Code Remote-SSH for remote development. Prerequisites PC1: Windows with VMware Workstation installed. The Linux VM uses a NAT network.

Apache_Kafka_Architecture_Topology

本文沿着一条订单数据链路,理解 Kafka 如何接收、保存、处理和分发数据,以及各个组件为什么要分工。 Kafka and components: Apache Kafka 是一个分布式事件流平

Emacs Eglot Python config

How to config The config is very sample just show as below. Prerequisites One of the python server need to be installed, for example I chosed the pyright 1 $ pip install pyright Emacs Elisp 1 2 3 4 5 (use-package eglot :config (add-to-list 'eglot-server-programs '(python-mode . ("pyright-langserver" "--stdio"))) (add-hook 'python-mode-hook 'eglot-ensure))

String-leetcode

Leetcode Questions about String 14.longest-common-prefix.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 class Solution { public String longestCommonPrefix(String[] strs) { // flower,flow,fly if (strs.length == 0) { return null; } String prefix = strs[0]; int lengths = strs.length; for (int i = 1; i < lengths; i++) { while (strs[i].indexOf(prefix) != 0) { prefix = prefix.substring(0, prefix.length()-1); } } return prefix; } } 125.

Bubble, Insertion and Selection Sort

Bubble Sort Bubble Sort is a simple sorting algorithm. It compares two adjacent elements and swap them until all elements are in order. It’s not suitable for large data set as its time complexity are of (n2). 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 public class BubbleSort { public static void sort(Comparable[] a){ for(int i = a.