Blogs
使用IPAD的APP建立Python、django …
前言 這是一篇簡短筆記,記錄我用來開發 django 的軟體 iSH iSH 基於 alpine os,可以用來執行一些 linux 指令 利用 apk add 來安裝 alpine 的軟體 apk add --no-cache python3 apk add --no-cache py3-pip pip install virtualenv==16.7.12 --no-cache-dir virtualenv [venvdir] 進入虛擬環境 source [venvdir]/bin/activate 在虛擬環境中安裝 django pymysql pip install django …
C/C++:0~9字元(char)轉成整 …
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. char a = '4'; int ia = a - '0'; /* check here if ia is bounded by 0 and 9 */ Refer Convert char to int in C and C++ - Stack Overflow
C/C++:自訂 Debug 訊息
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. #include <stdarg.h> #include <stdio.h> #define COLOR_X "\033[0m" #define COLOR_I "\033[92m" #define COLOR_D "\033[96m" #define COLOR_W …
C++:常用 Filesystem library …
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 紀錄下目前用過的功能 路徑表示 filesystem::path path 列出目錄(資料夾)的內容 filesystem::directory_iterator(path) 取得最後寫入時間 filesystem::last_write_time() 取出檔名 path.filename() 取出副檔名 path.filename().extension() …
XAMPP+ gmail STMP
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 前言 最近在做一個可以偵測自己網站是否異常的小程式,為了可以讓網頁發送通知給我,所以就開始研究一個會自動發信件的程式。 目前找到最快的方案就是使用PHP自帶的寄信函數 — mail,從官方文件來看,要測試寄信功能這應該是最快的方式。 一般電腦瀏覽器不支援直接執行PHP,如果要執行就要安裝Apache網頁伺服器來執行PHP程式,不過現在有像XAMPP這種整合程式,基本上要架設 …
Window CMD 常用指令
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 檔案 cd:移動當前資料夾路徑 dir:顯示目錄結構 /B:只顯示檔名 /A-D:只顯示檔案 /A:D:只顯示目錄 md or makedir rd or rmdir:刪除資料夾 rm /s /S:除指定目錄本身之外,也移除裡面的所有目錄和檔案。 用於移除樹狀目錄結構。 /Q:安靜模式,有 /S 時,刪除目錄樹結構不再要求確認 copy:複製檔案 xcopy:複製目錄、 …