Quantcast
Channel: 丁才軒討論站
Browsing latest articles
Browse All 30 View Live

網路與網站知識 • OCS 電子郵件範本

email_templates_default: email 範本的修改控制權設定若要新增範本則需新增資料,例如:# email_id, email_key, can_disable, can_edit, from_role_id, to_role_id38, SUBMISSION_PAPER_ACCEPT_ORAL, 0, 1, 128, 4096CODE: SELECT * FROM...

View Article



Windows • Word編頁

分隔目錄和本文的方法:版面配置/分隔設定/插入[分節符號], 產生不同章節.即可設定不同的表頭和表尾.可以設定本文有編頁碼,而目錄等使用不同的編碼方式或不顯示頁碼.一般常用的分頁符號是用於[同一節].統計資料: 發表於 由 dtchang — 2021-06-20, 10:48

View Article

Windows • 重新安裝Visual Studio Code (VS code)

解除安裝 VS code 時會保留先前的設定和擴充套件, 故出問題的設定依然難解.解除完整的 VS code,並重新安裝,從頭來.1. 解除 VS code2. 刪除或更名目錄 C:\Users\[安裝的使用者,如:Administrator]\.vscode 3. 刪除或更名目錄 C:\Users\[安裝的使用者,如:Administrator]\AppData\Roaming\Code4....

View Article

Windows • Visual Studio Code (VS code)設定C/C++的組態問題

launch.json: 一般放置於專案目錄下, 不可和不同程式語言混用同一個貝錄,以免發生載入錯亂例如: python 檔和 C/C++ 檔需使用不同的 launch.json (或許可以同一個launch.json裡設定二種語言?)--------------CODE: { // 使用 IntelliSense 以得知可用的屬性。 // 暫留以檢視現有屬性的描述。 // 如需詳細資訊,請瀏覽:...

View Article

網路與網站知識 • apache 系統重裝記錄

apache V11 版本才可以和 php 5.6 版本配合使用.1. 需要VC 2012 套件, 否則會出現 MSVC110.dll 遺失的錯誤2. VC15版本(使用VC 2015套件)和可和 php 7 版本配合. 但使用php 7 時,原先 php 5.6 程式碼需修改3. 使用 RAMDISK N: 儲存 session 資料統計資料: 發表於 由 dtchang —...

View Article


網路與網站知識 • 申請免費SSL CA的記錄和資料,並安裝於 Apache Win32

使用: https://letsencrypt.osfipin.com/申請方法: 備好一個 email 帳號, 如: gmail 等都可以, 但 *.edu.tw 是不行的.選擇: RSA 直接產生和下載 SSL 相關檔案即可使用期限: 每三個月檔案:private.pem 私用fullchain.crt : chain.crt + certificate.crt 組合檔apache...

View Article

網路與網站知識 • apache + php 設定

apache conf/httpd.conf 設定時, 需先設定 PHPIniDir 和優先載入 php5ts.dll (thread-safe DLL?).不然會產生函式庫無法載入的錯誤 (php_error log 可能看到 startup 0 的錯誤)CODE: PHPIniDir "C:/php-5.6.40"LoadFile...

View Article

網路與網站知識 • 使用 openssl 產生憑證

用openssl 產生各式檔案時,可以預先在 openssl.conf 設定好.執行過程需要的資訊,其中:COMMON NAME 為網域名稱(FQDN),如: star.im.chu.edu.twpass 為自設密碼其餘為組織和機關的名稱和城市資料step 1: 產生私用key (private key)(常用檔名: private.pem 或 server.key)(長度可用: 4096 或...

View Article


網路與網站知識 • apache rotate log (windows) 設定

按日將log分檔 (apache24通用)其中一般的log/error 設定於 httpd.conf 中而有關ssl 的log 則設定於 httpd_ssl.conf 中以下示範apache的安裝路徑為 D:/Apache2.2CODE: #ErrorLog "logs/error.log"ErrorLog "|bin/rotatelogs.exe -l...

View Article


網路與網站知識 • apache 2.4 windows 版 mpm_winnt 設定

https://codertw.com/%E7%A8%8B%E5%BC%8F% ... 80/620817/apache 2.4 lounge 較新版使用 mpm_winnt 模組 mpm_winnt.c是專門針對Windows NT優化的MPM(多路處理模組),它使用一個單獨的父程序產生一個單獨的子程序,在這個子程序中輪流產生多個執行緒來處理請求。也就是說mpm_winnt只能啟動父子兩個程序,...

View Article

網路與網站知識 • jQueryMobile 無法正常顯示

系統使用 iQueryMobile, 當使用 http://... 連線時正常運作.但是使用 https://... 時無法正確套用外掛的 google api,這是使用 google 要求使用安全連線之故,即需使用CODE: https://ajax.googleapis.com//... 不可使用CODE: http://ajax.googleapis.com//...統計資料: 發表於 由...

View Article

網路與網站知識 • 來此加密 SSL 證書更新

1. 登入 https://letsencrypt.osfipin.com/2. 申請新證書3. 驗證,選取方式為: http4. 點擊下載驗證檔,並上傳至 .well_known/acme-challenge 下 (不可用自建的方式以免錯誤)5. 上傳後點擊測試和申請驗證6. 下載新證書統計資料: 發表於 由 dtchang — 2022-03-02, 17:56

View Article

網路與網站知識 • php mail() 的相關設定

1. 使用: fake sendmail for bugzilla/windows 安裝於: c:/wamp/sendmail 需設定 senmail.ini (含error log) 中華大學主機相關設定: 不使用sslCODE: smtp_server=mail.chu.edu.tw; smtp port (normally 25)smtp_port=25; SMTPS (SSL)...

View Article


Python • 使用Notepad++快速在每一行前面加入 #

1. 按 Ctrl+H2. 尋找內容: ^3. 取代為: #4. 搜尋模式: [v]規則運算式5. 執行 [全部取代]即可例如:CODE: #Function Main# ... h:身高(cm), w:體重(kg), bmi:BMI值# Declare Integer h# Declare Integer w# Declare Real bmi# # Output "請輸入身高(cm)?"#...

View Article
Browsing latest articles
Browse All 30 View Live




Latest Images