2022年10月15日 星期六

[Linux] /dev

/dev是device的縮寫


● /dev/sda

SCSI device, SCSI(Small Computer System Interface)是電腦連接周邊裝置的介面 eq. 硬碟,光碟機,NVMe...


● /dev/ttyUSB0


● /dev/ttyS0

UART
stty -F /dev/ttyS0 -a 讀baud rate
echo "test UART" > /dev/ttyS0


Linux /dev目錄詳解和Linux系統各個目錄的作用

2022年10月5日 星期三

[其他] 淨水器DIY / NSF認證

紀錄一下最近研究淨水器的心得,先從3M淨水器講起.

●3us-max-s01h(台版) / 3us-max-s01(美版)

此型號是3M通過NSF認證的淨水器,其中型號中有s的是淨水系統,包含支架,水管...等.

若只要單獨濾心的型號是: 3us-max-f01h(台版) / 3us-max-f01(美版).

台版和美版一模一樣,唯一差別是台版型號多了一個h(有寫信問過美國3M原廠).

台版官方售價為台幣9280元(含安裝).
美版在亞馬遜官方賣場售價為美金47.35元,約台幣1500元(不含安裝),運費約美金20-30元.

2022年10月2日 星期日

[Git] 情境

Your branch is ahead of 'origin/master' by 3 commits

git reset --hard origin/master

branch diverged

git pull --rebase

git pull後overwritten

1. git stash (把修改過的檔案收起來)
2. git pull
3. git stash pop (再拿出來)

2022年8月11日 星期四

[應用程式] Source Insight

快捷鍵

  • F3: search上一個
  • F4: search下一個
  • F5: 跳指定行 = Ctrl+G
  • F10: 向右縮排

調整所有字體
1. Options → File Type Options
2. C → Screen Font


































其他設定
  • 背景顏色: Options → preference → windows background → color
  • 用快捷鍵按highlight的方法:
    改成按F1
    1. Options → Key assignments
    2. 刪掉Help: Help...  的keystrokes: F1
    3. 在View: Highlight Word 的keystrokes加上F1





#SourceInsight#SourceInsight教學#SourceInsight快捷鍵#SourceInsight快速鍵

2022年8月9日 星期二

[C] Big-Endian vs. Little-Endian

Big-Endian:

資料放到記憶體中時會把最高位元組會放在最低的記憶體位址上.














Little-Endian:

則反,他會把最高位元組放在最高的記憶體位址上.















2022年7月19日 星期二

2022年7月11日 星期一

[應用程式] sublime

標記

標記指定行: Ctrl +F2
尋找標記處: F2

eq. 標記第五行後,前面會出現符號.

排除(exclude)特定檔案或資料夾方式


  • 檔案
    "file_exclude_patterns": ["*.d", "*.cmd"]
  • 資料夾
    "folder_exclude_patterns":[".git"]

跳到指定行數

ctrl + G