High Altitude Oolong
2021/3/30
bookmark: read file in C++, sleep in C++
›
How to read in file in C++ read file contents into a string in C++ C++ sleep (use chrono)
2021/3/24
curl download file, get progress and ...
›
ref: extract download progress from curl output 他的command 是.. $ curl --progress-bar http://127.0.0.1/test.tar.bz2 -o test.tar.bz2 2...
2021/3/23
follow ..build static linked ffmpeg.
›
ref: build static ffmpeg 就 download libx264 跟 ffmpeg 的 source.. 然後 config 要讓 ffmpeg 找到 pi@ubuntu:~/ffempg-static/libx264-git$ ./...
2021/3/19
do .. while(0) not in macro
›
do { ... ... } while(0); 一般的說明都是在 MACRO 定義,因為後面那個 ';' 的關係。 如果不是在 macro 。這樣寫有什麼好處呢? 這一篇 有說.. 因為在 while() 中,所以 break 有用,就可以...
2021/3/14
iPhone 與 PC 傳送檔案
›
iOS 的 Documents 很方便,可以取代Files 的功能,同時還內建 http file server, 和 sendanywhere 很像,藉由 https://docstransfer.com/ 的一個 4 位數的數字,讓 desktop browser 連到...
2021/3/5
log .. translate stat to mmcblk
›
列出 root 的 maj/min id: stat -C "%D" / b309 取出字串的最後兩個 characters: str=abcd echo "${str: -2}" cd 合起來... majmin=`stat -...
go StdinPipe and shell script
›
因為要做一個 翻譯script,連接 go 程式和系統 程式,所以要做這個測試。 大概是原 go 程式 (客戶的),exec.Command ("a_program"). 然後我們是 embedded system,沒有 a_program,而是自己寫的 ...
‹
›
首頁
查看網路版