Quantcast
Channel: 丁才軒討論站
Browsing all 72 articles
Browse latest View live

網路與網站知識 • 申請免費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

網路與網站知識 • SONY 網路電視出現: wifi 無法連上網際網路

SONY 網路電視出現:wifi 無法連上網際網路1. 測試wifi 連線成功, 但無法連至網際網路, 無法上網解決方法:1. 電源重插以重開 Android 系統2. 檢視[開始123],即電視初次設定3. 修正系統日期和時間及時區為正確值 (可能是時間錯誤造成的問題)4. 必要時重開機註: 用遙控器無法開啟電視時, 電源重插以重開 Android 系統 也有可能可以解決此問題統計資料: 發表於...

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

網路與網站知識 • 連接SSLVPN時使用cisco anyconnect會斷線(和Symantec相衝)

連接SSLVPN時使用cisco anyconnect會斷線是與Symantec Endpoint Protection 相衝之故.SSLVPN 主機為 sslvpn.chu.edu.tw, 為 Cisco 設備.中華大學的VPN使用windows 7時的說明文件(2020/10/17)以建議使用 cisco anyconnect 並暫時關掉Symantec Endpoint...

View Article

網路與網站知識 • 關閉CompatRunner, devicecensus, Wermgr.exe 產生的問題

1. Wermgr (回報錯誤用)[開始] [執行] servics.msc把 windows error reporting manangement (wermgr.exe) 停用即可2. devicecensus (收集設備訊息)(會佔用系統資源)(偶偶防毒軟體會問要不要允許連網)(可關閉)Task Scheduler Library(工作排程)(askschd.msc) >...

View Article

Python • Flowgorithm轉換成Python的數學函數相關問題

需於 Python 的程式碼開頭處加入引用模組,以免產生錯誤:CODE: import mathfrom math import *其中, Flowgorithm pi 會被轉換成 math.pi三角函數,例如:tan不會換成 math.tan, 保留使用 tanFlowgorithm:ToFixed(x,n)...

View Article


Python • 用於Code Judger的Markdown常用語法

數學式子可參考: 如何在 Markdown 輸入數學公式及符號 1. 程式碼,區域反白,固定寬度的文字 (可識別空白)(面版上有按鍵)CODE: ```文字資料```2. 內文裡的數學式,例如: x平方. 上標用 ^, 下標用 _CODE: $x^2$2. 獨立的數學式(前後分行),例如: x平方CODE: $$x^2$$3. 分數式子\frac{分子}{分母},例如: C轉F....

View Article

Image may be NSFW.
Clik here to view.

Python • MicroPython + ESP32-S 測試LED

本例使用 Mu Editor1. 連接 ESP32-S 板子 (本版使用 CH340 故需先安裝 CH340 驅動程式)(安信可 Ai-Think原廠)(NodeMCU-32S)2. 開啟 Mu Editor 會自動偵測到 ESP32, 並自動建議使用 MicroPython3. 選擇Mu Editor右下角的設定圖示, 選取 ESP Firmware flasher 準備燒錄...

View Article


Image may be NSFW.
Clik here to view.

Python • MicroPython + ESP32-S 測試LED和按鍵

本例使用 Thonny IDE功能為按下 ESP32板子接 IO0 點的按鍵時點亮 LEDCODE: import machineimport timeLED = machine.Pin(2, machine.Pin.OUT)BUT = machine.Pin(0, machine.Pin.IN)while True: but_status = BUT.value() if (but_status...

View Article

Image may be NSFW.
Clik here to view.

Python • ESP32 & EZ StartKit / micropython

測試: Button AESP32 & EZ StartKit+ micropythonCODE: from machine import Pin #使用外部模組功能的動作叫做匯入 (import),匯入的有類別或函式,這邊是匯入Pin類別import time #使用外部模組time功能led = Pin(2, Pin.OUT) #建立Pin物件,名稱叫led ,內建LED燈button...

View Article


Python • EZ Start Kit+ Button A/B 測試

參考: https://sites.google.com/site/wenyunoti ... authuser=0按鍵A, Kit+ 標號為 IO11, 對應 ESP32 對接為 GPIO 5 (即 Pin 5) ,初始值為 1 (BUTTON_UP) 按鍵B, Kit+ 標號為 IO15, 對應 ESP32 對接為 GPIO 36 (即 Pin 36) ESP32 內建 LED為 對接為...

View Article

Image may be NSFW.
Clik here to view.

Windows • 用google 試算表產生google表單的考題

用google 試算表(google sheet)產生google表單(google form)的考題使用 外掛程式(Add on): Form builder for google sheets首先在 google 試算表 (開啟google 試算表, 任意)中, [擴充功能(Add-on)]/[外掛程式]/[取得外掛程式], 搜尋: Form builder for google...

View Article

Windows • SPSS讀取Excel/CSV失敗的問題修護

1. 從google sheet轉存 Excel2. Excel 儲存 xlsx 或 xls3. 整理資料為供 SPSS 讀入的表格 (儲存格格式建議為 數值)4. Excel 轉存 CSV 檔時,常見額外多餘的空白而造成剖析失敗SPSS 開啟時產生錯誤:>錯誤. 指令名稱:GET DATA >(2063) 讀取表的資訊時發生錯誤。 >* 表名稱:"分析表"...

View Article
Browsing all 72 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>