2025年8月3日 星期日

在windows中用Visual Studio Code開啟Claude AI

在windows10/11中用Visual Studio Code開啟Claude AI,
可以直接用Claude寫code.


前置作業, 要先安裝好wsl在windows作業系統裡.

1. 到要給Claude操作的目錄下.


2025年5月25日 星期日

[Linux] User space 函式庫

●Delay 
#include <unistd.h>
usleep(100000); // 延遲 100,000 微秒 = 100 毫秒

●Delay 
#include <time.h>
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 100 * 1000000L; // 100 毫秒
nanosleep(&ts, NULL);

2025年5月11日 星期日

[網路] 如何判斷Bandwidth


2.4G
HT Capabilities Bit 1(Supported Channel Width Set)
0: 20, 1: 20/40


如果Supported Channel Width Set,有可能是20或40
所以要再看Secondary Channel Offset


STA Channel Width   Secondary Channel Offset說明
0    0     使用 20 MHz
1    1(Above)     使用 40 MHz,副頻道在上面
1    3(Below)     使用 40 MHz,副頻道在下面