https://avatars.githubusercontent.com/u/6058558

程式狂想筆記

使用 Docker 架設 Motioneye 試用小記

原本想研究MieszkoMakuch/pi-security-camera: University project: Smart security camera on raspberry pi with email notifications and web interface,來當做監視器,但前置作業就要先搞好 OpenCV,最近看到 HomeLab.001 樹莓派ARM架構升級版 ODROID N2 搭建多功能服務器 這篇提到 Motioneye (影像監視) ,看介紹感覺都符合我要使用的。

Raspberry PI 攝影機計畫之新手簡單架設 HLS 和 RTSP Server

glob 搜尋匹配規則

常常看到一堆人搜尋會用到**/*.php(ex: ./gitignore),這看起來不向正規化,最近再用 VSCODE 再找類似正規畫套用查詢,結果發現 vscode 查詢適用 glob 。 No regular expression support for files to include in search. · Issue #36882 · microsoft/vscode 網路上教學 Gulp 學習筆記 - Glob 篇 | 格物致知 感覺是大坑,裡面還滿詳細的,有用到進階在學。 排除方法 沒有找到在前面排除方法,但有找到在中間排除。但我看這種方法還是少用,像是 VSCode 有排除選項可以選。 /src/**/!(els)/*.scss 參考:Any way to ignore/exclude a file or folder? · Issue #24 · mysticatea/cpx 後來發現可以做到,/**/!(xxx.js)要這樣設定才有效,這樣!(/**/xxx.js)沒效 Glob online tester globstar Linux 想說怎麼沒法用,原來預設關閉。 Globstar: New Bash Globbing Option | Linux Journal Java 语言 Glob 语法规则 感覺能跟這個搭配Remove a Specific Element from an Array in Bash – Linux Hint,可以做到 exlcude 功能。

HTML5 History API 筆記

參考:操控瀏覽器歷史紀錄 - Web APIs | MDN 上/下一頁API 往前往後歷史紀錄可以用 back(), forward(), 和 go() 的方法。 1 2 window.history.back(); window.history.forward(); 移置特定頁面 移動到特定的歷史紀錄 你可以用 go() 方法來從頁面的 session history 紀錄中載入特定紀錄,以目前頁面的相對位置而定(目前的頁面想當然爾是 index 0)。 1 2 window.history.go(-1); window.history.go(1); 其它 1 var numberOfEntries = window.history.length; 加入和修改歷史紀錄 pushState() 方法範例 1 2 var stateObj = { foo: "bar" }; history.pushState(stateObj, "page 2", "bar.html"); replaceState() 方法 1 2 var stateObj = { foo: "bar" }; history.replaceState(stateObj, "page 2", "bar.html"); popstate 事件 1 2 3 4 5 6 7 8 9 10 window.