使用「Criss」倉庫 ( repositories ) 「Interface.jl」或「Interface.py」模組 ( module ),搭建可擴展的統計計算伺服器框架 ( scalable statistical calculation server frame ),借用第三方擴展模組 ( third-party extensions ( libraries or modules ) ),分別使用 Julia 或 Python 程式設計語言 ( computer programming language ) 各自獨立實現的竝立兩套方案算法 ( algorithm ) .
一. 其中「StatisticalServerJulia」項目,使用 Julia 程式設計語言 ( computer programming language ),借用第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「HTTP」「JSON」「LsqFit」「Interpolations」「DataInterpolations」「Roots」實現.
-
借用「
HTTP」模組,實現 http 協議 web 伺服器 ( Server ) 功能. -
借用「
JSON」模組,實現 Julia 原生數據類型字典 ( Base.Dict ) 對象 ( Object ) 與 JSON 字符串 ( String ) 對象 ( Object ) 之間,數據類型相互轉換. -
借用「
LsqFit」模組,實現自定義任意形式初等函數 ( Elementary Function ) 方程擬合 ( Fit ) 運算. -
借用「
Interpolations」和「DataInterpolations」模組,實現插值 ( Interpolation ) 運算. -
借用「
Roots」模組,實現任意形式自定義初等函數一元方程求根 ( Solving Equation ),即求解反函數 ( Inverse ) .
二. 其中「StatisticalServerPython」項目,使用 Python3 程式設計語言 ( computer programming language ),借用第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「numpy」「scipy」實現.
-
借用「
numpy」模組,實現基礎數學向量 ( Vector ) 運算. -
借用「
scipy」項目的優化模組「optimize」的「curve_fit」函數,實現自定義任意形式初等函數 ( Elementary Function ) 方程擬合 ( Fit ) 運算. -
借用「
scipy」項目的插值模組「interpolate」的「make_interp_spline」「BSpline」「interp1d」「UnivariateSpline」「lagrange」函數,實現插值 ( Interpolation ) 運算. -
借用「
scipy」項目的優化模組「optimize」的「root」函數,實現任意形式自定義初等函數一元方程求根 ( Solving Equation ),即求解反函數 ( Inverse ) .
一. 代碼脚本檔 ( script file ) : StatisticalServer/StatisticalServerJulia/src/Interface.jl , StatisticalServer/StatisticalServerPython/src/Interface.py
代碼脚本 ( Script ) 檔 : Interface.jl 或 Interface.py 是伺服器 ( Server ) 函數 ( Function ) , 具體功能是實現: 讀入 ( read ) 數據, 寫出 ( write ) 結果.
二. 代碼脚本檔 ( script file ) : StatisticalServer/StatisticalServerJulia/src/Interpolation_Fitting.jl , StatisticalServer/StatisticalServerPython/src/Interpolation_Fitting.py
代碼脚本 ( Script ) 檔 : Interpolation_Fitting.jl 和 Interpolation_Fitting.py 裏,可創建執行自定義運算規則的函數 ( Function ),用以執行讀入 ( read ) 數據具體的運算處理 ( calculator ) 功能, 即本例擬合(Fit)運算、插值(Interpolation)運算等,並返回 ( return ) 處理結果至檔 Router 的路由函數.
三. 代碼脚本檔 ( script file ) : StatisticalServer/StatisticalServerJulia/src/Router.jl , StatisticalServer/StatisticalServerPython/src/Router.py
代碼脚本 ( Script ) 檔 : Router.jl 或 Router.py 引用 ( Import ) 檔 Interpolation_Fitting.jl 或 Interpolation_Fitting.py 裏的執行自定義運算規則的函數 ( Function ),並將計算結果返回 ( return ) 至檔 Interface 的伺服器 ( Server ) 函數.
其中, 檔 Router.jl 或 Router.py 裏的 : do_data 函數 ( Function ) 是執行文檔 ( file ) 監聽伺服器 ( file_Monitor ) 讀入的數據分發路由 ( Router ) 功能.
其中, 檔 Router.jl 或 Router.py 裏的 : do_Request 函數 ( Function ) 是執行網路 ( web ) 伺服器 ( http_Server ) 讀入的從用戶端 ( http_Client ) 發送的請求 ( Request ) 數據的分發路由 ( Router ) 功能.
其中, 檔 Router.jl 或 Router.py 裏的 : do_Response 函數 ( Function ) 是執行網路 ( web ) 用戶端鏈接器 ( http_Client ) 接收到從伺服器 ( http_Server ) 回饋的響應 ( Response ) 數據 ( 運算處理結果 ) 的分發路由 ( Router ) 功能.
可自行修改行使路由 (Router) 功能的代碼脚本 ( script file ) 檔「Router.jl」「Router.py」内的 Julia 或 Python 代碼,同時需自行修改行使具體算法 ( Algorithm ) 功能的代碼脚本 ( script file ) 檔内的 Julia 或 Python 代碼,如此例的「Interpolation_Fitting.jl」「Interpolation_Fitting.py」檔,使二者相互因應協調,即可自定義擴展此統計運算伺服器「StatisticalServer」所能提供的計算方法 ( Server Respond ) 的選項.
四. 代碼脚本檔 ( script file ) : StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl , StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py
代碼脚本 ( Script ) 檔 : StatisticalAlgorithmServer.jl 或 StatisticalAlgorithmServer.py 是伺服器(Server)啓動入口,引用 ( Import ) 檔 Interface.jl 或 Interface.py 裏的伺服器 ( Server ) 讀入 ( read ) 待處理的原始數據, 然後, 實現數據分發路由 ( Router ) 功能, 可通過修改代碼脚本 ( Script ) 檔 : Router.jl 或 Router.py 裏的 : do_data 和 do_Request 兩個函數 ( Function ) , 實現自定義規則的數據分發運算處理並返回 ( return ) 運算結果, 然後再將運算結果, 通過引用 ( Import ) 檔 Interface.jl 或 Interface.py 裏的伺服器 ( Server ) 回饋寫出 ( write ) 結果返回 ( return ) 至用戶端 ( Client ) .
五. 檔案夾 ( folder ) : StatisticalServer/Julia/ , StatisticalServer/Python/
檔案夾 ( folder )「StatisticalServer/Julia/」爲微軟視窗系統 ( Windows10 x86_64 ) 程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 二進位可執行檔 ( julia.exe ) 的儲存位置,需自行下載後,將其解壓縮,保存至「C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe」路徑.
檔案夾 ( folder )「StatisticalServer/Python/」爲微軟視窗系統 ( Windows10 x86_64 ) 程式設計語言 ( Python3 ) 解釋器 ( Interpreter ) 二進位可執行檔 ( python.exe ) 的儲存位置,需自行下載後,將其解壓縮,保存至「C:/StatisticalServer/Python/Python311/python.exe」路徑.
六. 檔案夾 ( folder ) : StatisticalServer/html/
檔案夾 ( folder )「StatisticalServer/html/」爲使用瀏覽器 ( Browser ) 作爲用戶端 ( Client ) 時,統計運算伺服器「StatisticalServer」向用戶端瀏覽器 ( Browser ) 發送 ( Respond ) 的標準通用標記語言代碼脚本 ( .html ) 檔.
其中 :
代碼脚本檔「index.html」爲應用交互頁面,因應網址 ( Uniform Resource Locator , URL ) 爲 :
http://[::1]:10001/index.html
代碼脚本檔「administrator.html」爲管理頁面,因應網址 ( Uniform Resource Locator , URL ) 爲 :
http://[::1]:10001/administrator.html
逗號 ( Comma ) 分隔符檔 ( .csv )「calculated.csv」爲計算結果數據示例,是用戶端瀏覽器 ( Browser ) 應用交互頁面「index.html」計算結果表格内數據,單擊「保存運算結果數據文檔」按鈕 ( Button ) 後,從瀏覽器 ( Browser ) 應用交互頁面「index.html」計算結果表格内導出至本地硬盤 ( Disk , Read-Only Memory ) 存儲的數據文檔示例.
逗號 ( Comma ) 分隔符檔 ( .csv )「LogisticLog5PInputData.csv」爲待計算的原數據示例,是用戶端瀏覽器 ( Browser ) 應用交互頁面「index.html」待計算表格内的原數據,單擊「讀取待處理的數據文檔」按鈕 ( Button ) 後,從本地硬盤 ( Disk , Read-Only Memory ) 導入至瀏覽器 ( Browser ) 應用交互頁面「index.html」待計算表格内的數據文檔示例.
可自行修改標準通用標記語言代碼脚本 ( .html ) 檔「index.html」「SelectStatisticalAlgorithms.html」「InputHTML.html」「OutputHTML.html」内的 HTML , JavaScript , CSS 代碼,擴展交互頁面「index.html」内統計方法的連接 ( Browser Client Request ) 選項.
七. 代碼脚本檔 ( script file ) : StatisticalServer/StatisticsAlgorithmModule.bas , 微軟電子表格應用檔 ( Windows - Office - Excel - Visual Basic for Applications ) : StatisticalServer/Client.xlsm
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」可作爲用戶端 ( Client ) 連接統計運算伺服器「StatisticalServer」做 ( Client - Request ) 計算.
代碼脚本檔「StatisticsAlgorithmModule.bas」是微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」運行時,需導入的標準模組 ( Module ) 代碼(必須),可在此代碼脚本檔内,自行修改 Visual Basic for Applications , VBA 代碼,擴展統計方法的連接 ( Client Request ) 項.
Python3 Explain : Interface.py , StatisticalAlgorithmServer.py , Router.py , Interpolation_Fitting.py
計算機程式設計語言 ( Python ) 解釋器 ( Interpreter ) 與作業系統 ( Operating System ) 環境配置釋明 :
Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30
Interpreter: python-3.11.2-amd64.exe
Interpreter: Python-3.12.4-tar.xz
Operating System: Google-Pixel-7 Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 MSM8998-Snapdragon835-Qualcomm®-Kryo™-280
Interpreter: Python-3.12.4-tar.xz
Interpreter :
python - 3.12.4
程式設計 Python 語言解釋器 ( Interpreter ) 官方網站: https://www.python.org/
程式設計 Python 語言解釋器 ( Interpreter ) 官方下載頁: https://www.python.org/downloads/
程式設計 Python 語言解釋器 ( Interpreter ) 官方 GitHub 網站賬戶: https://github.com/python
程式設計 Python 語言解釋器 ( Interpreter ) 官方 GitHub 網站倉庫頁: https://github.com/python/cpython.git
程式設計 Python 語言統計算法 ( algorithm ) 借用第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 説明 :
Python - numpy 官方網站: https://numpy.org/
Python - numpy 官方手冊: https://numpy.org/doc/stable/
Python - numpy 官方 GitHub 網站倉庫頁: https://github.com/numpy/numpy.git
Python - scipy 官方網站: https://scipy.org/
Python - scipy 官方手冊: https://docs.scipy.org/doc/scipy/
Python - scipy 官方 GitHub 網站倉庫頁: https://github.com/scipy/scipy.git
Python - pandas 官方網站: https://pandas.pydata.org/
Python - pandas 官方手冊: https://pandas.pydata.org/docs/
Python - pandas 官方 GitHub 網站倉庫頁: https://github.com/pandas-dev/pandas.git
Python - openpyxl 官方網站: https://www.python-excel.org/
Python - openpyxl 官方手冊: https://openpyxl.readthedocs.io/en/stable/
Python - openpyxl 官方 PyPi 組織倉庫頁: https://pypi.org/project/openpyxl/
Python - openpyxl 發佈頁: https://foss.heptapod.net/openpyxl/openpyxl
Python - xlrd 官方手冊: https://xlrd.readthedocs.io/en/latest/?badge=latest
Python - xlrd 官方 GitHub 網站倉庫頁: https://github.com/python-excel/xlrd.git
Python - pillow 官方手冊: https://pillow.readthedocs.io/en/stable/?badge=latest
Python - pillow 官方 PyPi 組織倉庫頁: https://pypi.org/project/pillow/
Python - pillow 官方 GitHub 網站倉庫頁: https://github.com/python-pillow/Pillow.git
Python - pyarrow 官方手冊: https://arrow.apache.org/docs/3.0/_modules/pyarrow.html
Python - pyarrow 官方 PyPi 組織倉庫頁: https://pypi.org/project/pyarrow/
Python - matplotlib 官方網站: https://matplotlib.org/
Python - matplotlib 官方手冊: https://matplotlib.org/stable/
Python - matplotlib 官方 GitHub 網站倉庫頁: https://github.com/matplotlib/matplotlib.git
Python - statsmodels 官方手冊: https://www.statsmodels.org/stable/index.html
Python - statsmodels 官方 GitHub 網站倉庫頁: https://github.com/statsmodels/statsmodels.git
Python - sklearn 官方網站: https://scikit-learn.org/stable/
Python - sklearn 官方手冊: https://scikit-learn.org/stable/user_guide.html
Python - sklearn 官方 GitHub 網站倉庫頁: https://github.com/scikit-learn/scikit-learn.git
Python - sympy 官方網站: https://www.sympy.org/en/index.html
Python - sympy 官方手冊: https://docs.sympy.org/latest/index.html
Python - sympy 官方 GitHub 網站倉庫頁: https://github.com/sympy/sympy.git
使用説明:
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 )
控制臺命令列 ( bash ) 運行啓動指令 :
root@localhost:~# /usr/bin/python3 /home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=/home/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=/home/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
微軟視窗系統 ( Window10 x86_64 )
控制臺命令列 ( cmd ) 運行啓動指令 :
C:\StatisticalServer> C:/StatisticalServer/Python/Python311/python.exe C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=C:/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
控制臺啓動傳參釋意, 各參數之間以一個空格字符 ( SPACE ) ( 00100000 ) 分隔, 鍵(Key) ~ 值(Value) 之間以一個等號字符 ( = ) 連接, 即類比 Key=Value 的形式 :
-
(必), (自定義), 安裝配置的程式設計語言 ( Python ) 解釋器 ( Interpreter ) 環境的二進制可執行檔啓動存儲路徑全名, 預設值爲 :
C:/StatisticalServer/Python/Python311/python.exe -
(必), (自定義), 語言 ( Python ) 程式代碼脚本 ( Script ) 檔 (
StatisticalAlgorithmServer.py) 的存儲路徑全名, 預設值爲 :C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py注意, 因爲「
StatisticalAlgorithmServer.py」檔中脚本代碼需要加載引入「Interface.py」檔, 所以需要保持「StatisticalAlgorithmServer.py」檔與「Interface.py」檔在相同目錄下, 不然就需要手動修改「StatisticalAlgorithmServer.py」檔中有關引用「Interface.py」檔的加載路徑代碼, 以確保能正確引入「Interface.py」檔. -
(選), (鍵
configFile固定, 值C:/StatisticalServer/StatisticalServerPython/config.txt自定義), 用於傳入配置文檔的保存路徑全名, 預設值爲 :configFile=C:/StatisticalServer/StatisticalServerPython/config.txt -
(選), (鍵
interface_Function固定, 值file_Monitor自定義, [file_Monitor,http_Server,http_Client] 取其一), 用於傳入選擇啓動哪一種接口服務, 外設硬盤 ( Hard Disk ) 文檔 ( File ) 作橋, 外設網卡 ( Network Interface Card ) 埠 ( Port ) 作橋, 預設值爲 :interface_Function=file_Monitor
以下是當參數 : interface_Function 取 : http_Server 值時, 可在控制臺命令列傳入的參數 :
-
(選), (鍵
host固定, 值::0自定義, 例如 [::0,::1,0.0.0.0,127.0.0.1] 取其一), 用於傳入伺服器 (http_Server) 監聽的外設網卡 ( Network Interface Card ) 地址 ( IPv6 , IPv4 ) 或域名, 預設值爲 :host=::0 -
(選), (鍵
port固定, 值10001自定義), 用於傳入伺服器 (http_Server) 監聽的外設網卡 ( Network Interface Card ) 自定義設定的埠號 (1 ~ 65535), 預設值爲 :port=10001 -
(選), (鍵
Key固定, 賬號密碼連接符:固定, 值username和password自定義), 用於傳入自定義的訪問網站驗證 (Authorization) 用戶名和密碼, 預設值爲 :Key=username:password -
(選), (鍵
Is_multi_thread固定, 值False自定義, 例如 [True,False] 取其一), 用於判斷是否開啓多缐程 ( Threading ) 並發, 預設值爲 :Is_multi_thread=False -
(選), (鍵
number_Worker_process固定, 值0自定義), 用於傳入創建並發數目, 子進程 ( Sub Process ) 並發, 或者, 子缐程 ( Sub Threading ) 並發, 即, 可以設爲等於物理中央處理器 ( Central Processing Unit ) 的數目, 取 0 值表示不開啓並發架構, 預設值爲 :number_Worker_process=0 -
(選), (鍵
webPath固定, 值C:/StatisticalServer/html/自定義), 用於傳入伺服器 (http_Server) 啓動運行的自定義的根目錄 (項目空間) 路徑全名, 預設值爲 :webPath=C:/StatisticalServer/html/
以下是當參數 : interface_Function 取 : http_Client 值時, 可在控制臺命令列傳入的參數 :
-
(選), (鍵
host固定, 值::1自定義, 例如 [::1,127.0.0.1,localhost] 取其一), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的地址 ( IPv6 , IPv4 ) 或域名, 預設值爲 :host=::1 -
(選), (鍵
port固定, 值10001自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的埠號 (1 ~ 65535), 預設值爲 :port=10001 -
(選), (鍵
URL固定, 值/自定義, 例如配置爲http://[::1]:10001/index.html值), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的地址, 萬維網統一資源定位系統 ( Uniform Resource Locator ) 地址字符串, 預設值爲 :URL=/ -
(選), (鍵
Method固定, 值POST自定義, 例如 [POST,GET] 取其一), 用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的類型, 預設值爲 :Method=POST -
(選), (鍵
time_out固定, 值0.5自定義), 用於傳入設置鏈接超時自動中斷的時長,單位 ( Unit ) 爲秒 ( Second ), 預設值爲 :time_out=0.5 -
(選), (鍵
request_Auth固定, 賬號密碼連接符:固定, 值username和password自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的驗證 ( Authorization ) 的賬號密碼字符串, 預設值爲 :request_Auth=username:password -
(選), (鍵
request_Cookie固定, 其中Cookie名稱Session_ID可以設計爲固定,Cookie值request_Key->username:password可以設計爲自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的Cookies值字符串, 預設值爲 :request_Cookie=Session_ID=request_Key->username:password
Julia Explain : Interface.jl , StatisticalAlgorithmServer.jl , Router.jl , Interpolation_Fitting.jl
計算機程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 與作業系統 ( Operating System ) 環境配置釋明 :
Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30
Interpreter: julia-1.10.10-win64.exe
Interpreter: julia-1.10.10-linux-x86_64.tar.gz
Operating System: Google-Pixel-7 Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 MSM8998-Snapdragon835-Qualcomm®-Kryo™-280
Interpreter: julia-1.10.10-linux-aarch64.tar.gz
注意,
程式代碼脚本檔 Interface.jl 裏, 函數 http_Server, http_Client 使用了第三方模組 HTTP.jl , JSON.jl 擴展包 ( packages ) ,
程式代碼脚本檔 StatisticalAlgorithmServer.jl 和 Router.jl 裏, 函數 do_data, do_Request, do_Response 使用了第三方模組 JSON.jl 擴展包 ( packages ) ,
所以, 需事先安裝配置成功, 加載導入之後, 才能正常運行.
首先在作業系統 ( Operating System ) 控制臺命令列窗口 ( bash, cmd ) 啓動程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 進入語言 ( Julia ) 的運行環境 :
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 控制臺命令列 ( bash ) 運行啓動指令 :
root@localhost:~# /usr/julia/julia-1.10.10/bin/julia --project=/home/StatisticalServer/StatisticalServerJulia/
微軟視窗系統 ( Window10 x86_64 ) 控制臺命令列 ( cmd ) 運行啓動指令 :
C:\StatisticalServer> C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe --project=C:/StatisticalServer/StatisticalServerJulia/
然後, 在程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 運行環境下, 安裝配置第三方擴展包 ( packages ) :
程式設計語言 ( Julia ) 的第三方擴展模組 HTTP.jl 安裝配置説明 :
julia> using Pkg
julia> Pkg.add("HTTP")
程式設計語言 ( Julia ) 的第三方擴展模組 HTTP.jl 加載導入説明 :
julia> using HTTP
程式設計語言 ( Julia ) 的第三方擴展模組 JSON.jl 安裝配置説明 :
julia> using Pkg
julia> Pkg.add("JSON")
程式設計語言 ( Julia ) 的第三方擴展模組 JSON.jl 加載導入説明 :
julia> using JSON
Interpreter :
Julia - 1.10.10
程式設計 Julia 語言解釋器 ( Interpreter ) 官方網站: https://julialang.org/
程式設計 Julia 語言解釋器 ( Interpreter ) 官方下載頁: https://julialang.org/downloads/
程式設計 Julia 語言解釋器 ( Interpreter ) 官方 GitHub 網站賬戶: https://github.com/JuliaLang
程式設計 Julia 語言解釋器 ( Interpreter ) 官方 GitHub 網站倉庫頁: https://github.com/JuliaLang/julia.git
程式設計 Julia 語言解釋器 ( Interpreter ) 第三方擴展模組 ( module ) ( packages ) 托管網站官方手冊: https://julialang.org/packages/
程式設計 Julia 語言解釋器 ( Interpreter ) 官方 General.jl 模組 GitHub 網站倉庫頁: https://github.com/JuliaRegistries/General.git
程式設計 Julia 語言統計算法 ( algorithm ) 借用第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 説明 :
Julia - HTTP 官方 GitHub 網站倉庫頁: https://github.com/JuliaWeb/HTTP.jl.git
Julia - JSON 官方 GitHub 網站倉庫頁: https://github.com/JuliaIO/JSON.jl.git
Julia - LsqFit 官方手冊: https://julianlsolvers.github.io/LsqFit.jl/latest/
Julia - LsqFit 官方 GitHub 網站倉庫頁: https://github.com/JuliaNLSolvers/LsqFit.jl.git
Julia - Interpolations 官方手冊: https://juliamath.github.io/Interpolations.jl/stable/
Julia - Interpolations 官方 GitHub 網站倉庫頁: https://github.com/JuliaMath/Interpolations.jl.git
Julia - DataInterpolations 官方手冊: https://docs.sciml.ai/DataInterpolations/stable/
Julia - DataInterpolations 官方 GitHub 網站倉庫頁: https://github.com/SciML/DataInterpolations.jl.git
Julia - Roots 官方手冊: https://juliamath.github.io/Roots.jl/stable/
Julia - Roots 官方 GitHub 網站倉庫頁: https://github.com/JuliaMath/Roots.jl.git
Julia - ForwardDiff 官方手冊: https://juliadiff.org/ForwardDiff.jl/stable/
Julia - ForwardDiff 官方 GitHub 網站倉庫頁: https://github.com/JuliaDiff/ForwardDiff.jl.git
Julia - Optim 官方手冊: https://julianlsolvers.github.io/Optim.jl/stable/
Julia - Optim 官方 GitHub 網站倉庫頁: https://github.com/JuliaNLSolvers/Optim.jl
Julia - JuMP 官方網站: https://jump.dev/
Julia - JuMP 官方手冊: https://jump.dev/JuMP.jl/stable/
Julia - JuMP 官方 GitHub 網站倉庫頁: https://github.com/jump-dev/JuMP.jl.git
Julia - Symbolics 官方手冊: https://docs.sciml.ai/Symbolics/stable/
Julia - Symbolics 官方 GitHub 網站倉庫頁: https://github.com/JuliaSymbolics/Symbolics.jl.git
Julia - Gadfly 官方手冊: https://gadflyjl.org/stable/
Julia - Gadfly 官方 GitHub 網站倉庫頁: https://github.com/GiovineItalia/Gadfly.jl.git
Julia - Plots 官方手冊: https://docs.juliaplots.org/stable/
Julia - Plots 官方 GitHub 網站倉庫頁: https://github.com/JuliaPlots/Plots.jl.git
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaIO」項目官方 GitHub 網站賬戶: https://github.com/JuliaIO
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaWeb」項目官方 GitHub 網站賬戶: https://github.com/JuliaWeb
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaData」項目官方 GitHub 網站賬戶: https://github.com/JuliaData
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaPlots」項目官方 GitHub 網站賬戶: https://github.com/JuliaPlots
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「GiovineItalia」項目官方 GitHub 網站賬戶: https://github.com/GiovineItalia
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaMath」項目官方 GitHub 網站賬戶: https://github.com/JuliaMath
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaNLSolvers」項目官方 GitHub 網站賬戶: https://github.com/JuliaNLSolvers
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「SciML」項目官方 GitHub 網站賬戶: https://github.com/SciML
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaDiff」項目官方 GitHub 網站賬戶: https://github.com/JuliaDiff
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuMP」項目官方 GitHub 網站賬戶: https://github.com/jump-dev
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaSymbolics」項目官方 GitHub 網站賬戶: https://github.com/JuliaSymbolics
程式設計 Julia 語言第三方擴展模組 ( third-party extensions ( libraries or modules ) ) : 「JuliaHub」項目官方 GitHub 網站賬戶: https://juliahub.com/
使用説明:
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 )
控制臺命令列 ( bash ) 運行啓動指令 :
root@localhost:~# /usr/julia/julia-1.10.10/bin/julia -p 4 --project=/home/StatisticalServer/StatisticalServerJulia/ /home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt interface_Function=http_Server webPath=/home/StatisticalServer/html/ host=::0 port=10001 key=username:password number_Worker_threads=1 isConcurrencyHierarchy=Tasks readtimeout=0 connecttimeout=0
微軟視窗系統 ( Window10 x86_64 )
控制臺命令列 ( cmd ) 運行啓動指令 :
C:\StatisticalServer> C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe -p 4 --project=C:/StatisticalServer/StatisticalServerJulia/ C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configFile=C:/StatisticalServer/StatisticalServerJulia/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 key=username:password number_Worker_threads=1 isConcurrencyHierarchy=Tasks readtimeout=0 connecttimeout=0
控制臺啓動傳參釋意, 各參數之間以一個空格字符 ( SPACE ) ( 00100000 ) 分隔, 鍵(Key) ~ 值(Value) 之間以一個等號字符 ( = ) 連接, 即類比 Key=Value 的形式 :
-
(必), (自定義), 安裝配置的程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 環境的二進制可執行檔啓動存儲路徑全名, 預設值爲 :
C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe -
(必), (自定義), 語言 ( Julia ) 程式代碼脚本 ( Script ) 檔 (
StatisticalAlgorithmServer.jl) 的存儲路徑全名, 預設值爲 :C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl注意, 因爲「
StatisticalAlgorithmServer.jl」檔中脚本代碼需要加載引入「Interface.jl」檔, 所以需要保持「StatisticalAlgorithmServer.jl」檔與「Interface.jl」檔在相同目錄下, 不然就需要手動修改「StatisticalAlgorithmServer.jl」檔中有關引用「Interface.jl」檔的加載路徑代碼, 以確保能正確引入「Interface.jl」檔. -
(選), (鍵
configFile固定, 值C:/StatisticalServer/StatisticalServerJulia/config.txt自定義), 用於傳入配置文檔的保存路徑全名, 預設值爲 :configFile=C:/StatisticalServer/StatisticalServerJulia/config.txt -
(選), (鍵
interface_Function固定, 值file_Monitor自定義, [file_Monitor,http_Server,http_Client] 取其一), 用於傳入選擇啓動哪一種接口服務, 外設硬盤 ( Hard Disk ) 文檔 ( File ) 作橋, 外設網卡 ( Network Interface Card ) 埠 ( Port ) 作橋, 預設值爲 :interface_Function=file_Monitor
以下是當參數 : interface_Function 取 : http_Server 值時, 可在控制臺命令列傳入的參數 :
-
(選), (鍵
number_Worker_threads固定, 值0自定義), 用於傳入創建並發數目, 子進程 ( Sub Process ) 並發, 或者, 子缐程 ( Sub Threading ) 並發, 即, 可以設爲等於物理中央處理器 ( Central Processing Unit ) 的數目, 取0值表示不開啓並發架構, 預設值爲 :number_Worker_threads=0 -
(選), (鍵
host固定, 值::0自定義, 例如 [::0,::1,0.0.0.0,127.0.0.1,localhost] 取其一), 用於傳入伺服器 (http_Server) 監聽的外設網卡 ( Network Interface Card ) 地址 ( IPv6 , IPv4 ) 或域名, 預設值爲 :host=::0 -
(選), (鍵
port固定, 值10001自定義), 用於傳入伺服器 (http_Server) 監聽的外設網卡 ( Network Interface Card ) 自定義設定的埠號 (1 ~ 65535), 預設值爲 :port=10001 -
(選), (鍵
key固定, 賬號密碼連接符:固定, 值username和password自定義), 用於傳入自定義的訪問網站驗證 (Authorization) 用戶名和密碼, 預設值爲 :key=username:password -
(選), (鍵
isConcurrencyHierarchy固定, 值Tasks自定義, 例如 [Tasks,Multi-Threading,Multi-Processes] 取其一), 用於選擇並發種類, 多進程 ( Process ) 並發, 或者, 多缐程 ( Threading ) 並發, 或者, 多協程 ( Tasks ) 並發, 當取值為多缐程Multi-Threading時,必須在啓動 Julia 解釋器之前,在控制臺命令行修改環境變量 :export JULIA_NUM_THREADS=4(Linux OSX)或set JULIA_NUM_THREADS=4(Windows)來設置預創建多個缐程, 預設值爲 :isConcurrencyHierarchy=Tasks -
(選), (鍵
webPath固定, 值C:/StatisticalServer/html/自定義), 用於傳入伺服器 (http_Server) 啓動運行的自定義的根目錄 (項目空間) 路徑全名, 預設值爲 :webPath=C:/StatisticalServer/html/ -
(選), (鍵
readtimeout固定, 值0自定義), 用於傳入客戶端請求數據讀取超時中止時長,單位 ( Unit ) 爲秒 ( Second ), 取0值表示不做判斷是否超時, 預設值爲 :readtimeout=0
以下是當參數 : interface_Function 取 : http_Client 值時, 可在控制臺命令列傳入的參數 :
-
(選), (鍵
host固定, 值::1自定義, 例如 [::1,127.0.0.1,localhost] 取其一), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的地址 ( IPv6 , IPv4 ) 或域名, 預設值爲 :host=::1 -
(選), (鍵
port固定, 值10001自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的埠號 (1 ~ 65535), 預設值爲 :port=10001 -
(選), (鍵
URL固定, 取值自定義, 例如配置爲http://[::1]:10001/index.html值), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的地址, 萬維網統一資源定位系統 ( Uniform Resource Locator ) 地址字符串, 預設值爲 :URL="" -
(選), (鍵
proxy固定, 取值自定義, 例如配置爲http://[::1]:10001/index.html值), 當用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求時, 若需要代理轉發, 用於傳入轉發代理服務器的地址, 萬維網統一資源定位系統 ( Uniform Resource Locator ) 地址字符串, 預設值爲 :proxy="" -
(選), (鍵
requestMethod固定, 值POST自定義, 例如 [POST,GET] 取其一), 用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的類型, 預設值爲 :requestMethod=POST -
(選), (鍵
readtimeout固定, 值0自定義), 用於傳入服務端響應數據讀取超時中止時長,單位 ( Unit ) 爲秒 ( Second ), 取0值表示不做判斷是否超時, 預設值爲 :readtimeout=0 -
(選), (鍵
connecttimeout固定, 值0自定義), 用於傳入客戶端請求鏈接超時中止時長,單位 ( Unit ) 爲秒 ( Second ), 取0值表示不做判斷是否超時, 預設值爲 :connecttimeout=0 -
(選), (鍵
Authorization固定, 賬號密碼連接符:固定, 值username和password自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的驗證 ( Authorization ) 的賬號密碼字符串, 預設值爲 :Authorization=username:password -
(選), (鍵
Cookie固定, 其中Cookie名稱Session_ID可以設計爲固定,Cookie值request_Key->username:password可以設計爲自定義), 用於傳入用戶端連接器 (http_Client) 向外設網卡 ( Network Interface Card ) 發送請求的Cookies值字符串, 預設值爲 :Cookie=Session_ID=request_Key->username:password
微軟視窗系統 ( Windows10 x86_64 ) 使用 Batchfile 代碼脚本檔「startServer.bat」啓動統計運算伺服器「StatisticalServer」 :
使用説明:
Window-cmd : startServer.bat
微軟視窗系統 ( Windows10 x86_64 )
控制臺命令列 ( cmd ) 運行啓動指令 :
C:\StatisticalServer> C:/Windows/System32/cmd.exe C:/StatisticalServer/startServer.bat C:/StatisticalServer/config.txt
控制臺啓動傳參釋意 :
-
(必), (固定), 微軟視窗作業系統 ( Window10 x86_64 ) 控制臺命令列窗口的二進制可執行檔 (
cmd.exe) 啓動存儲路徑全名, 作業系統 ( Window10 x86_64 ) 固定存儲在路徑爲 :C:/Windows/System32/cmd.exe -
(必), (自定義), 微軟視窗系統 ( Windows10 x86_64 ) 批處理程式代碼脚本 ( .bat ) 檔 (
startServer.bat) 的存儲路徑全名, 預設值爲 :C:/StatisticalServer/startServer.bat -
(選) (值
C:/StatisticalServer/config.txt自定義), 用於傳入配置文檔的保存路徑全名, 配置文檔裏的橫向列首可用一個井號字符 (#) 注釋掉, 使用井號字符 (#) 注釋掉之後,該橫向列的參數即不會傳入從而失效, 若需啓用可刪除橫向列首的井號字符 (#) 即可, 注意橫向列首的空格也要刪除, 每一個橫向列的參數必須頂格書寫, 預設值爲 :C:/StatisticalServer/config.txt
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 使用 Shell 代碼脚本檔「startServer.sh」啓動統計運算伺服器「StatisticalServer」 :
使用説明:
Android-Termux-Ubuntu-bash : startServer.sh
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 )
控制臺命令列 ( bash ) 運行啓動指令 :
root@localhost:~# /bin/bash /home/StatisticalServer/startServer.sh configFile=/home/StatisticalServer/config.txt executableFile=/bin/julia interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
控制臺啓動傳參釋意, 各參數之間以一個逗號 ( Comma ) 字符 ( , ) 分隔, 鍵(Key) ~ 值(Value) 之間以一個等號字符 ( = ) 連接, 即類比 Key=Value 的形式 :
-
(必), (固定), 谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 控制臺命令列窗口的二進制可執行檔 (
bash) 啓動存儲路徑全名, 作業系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 固定存儲在路徑爲 :/bin/bash -
(必), (自定義), 谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 批處理程式代碼脚本 ( .sh ) 檔 (
startServer.sh) 的存儲路徑全名, 預設值爲 :C:/StatisticalServer/startServer.sh -
(選), (鍵
configFile固定, 值/home/StatisticalServer/config.txt自定義), 用於傳入配置文檔的保存路徑全名, 配置文檔裏的橫向列首可用一個井號字符 (#) 注釋掉, 使用井號字符 (#) 注釋掉之後,該橫向列的參數即不會傳入從而失效, 若需啓用可刪除橫向列首的井號字符 (#) 即可, 注意橫向列首的空格也要刪除, 每一個橫向列的參數必須頂格書寫, 預設值爲 :configFile=/home/StatisticalServer/config.txt -
(選), (鍵
executableFile固定, 值/bin/julia自定義, 例如 [/bin/julia,/bin/python3] 可自定義取其一配置), 用於傳入選擇啓動哪一種程式語言編寫的接口服務, 計算機 ( Computer ) 程式 ( Programming ) 設計 Julia 語言, 計算機 ( Computer ) 程式 ( Programming ) 設計 Python 語言, 預設值爲 :executableFile=/bin/julia -
(選), (鍵
interpreterFile固定, 值-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/自定義, 且可爲空, 即取interpreterFile=的形式, 亦可不傳入該參數), 用於傳入程式設計語言 ( Julia, Python3 ) 解釋器 ( Interpreter ) 環境的二進制可執行檔, 於作業系統控制臺命令列 ( Operating System Console Command ) 使用指令啓動時傳入的運行參數, 若爲多參數, 則各參數之間用一個逗號 ( Comma ) 字符 (,) 連接, 批處理程式脚本startServer.sh已設計爲可自動將逗號 ( Comma ) 字符 (,) 替換爲空格字符 (SPACE) (00100000), 然後再傳入程式設計語言 ( Julia, Python3 ) 解釋器 ( Interpreter ) 的運行環境, 預設值爲 :interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ -
(選), (鍵
scriptFile固定, 值/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl自定義, 例如 [/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl,/home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py] 可自定義取其一配置), 用於傳入程式 ( Programming ) 設計語言 ( Julia, Python3 ) 代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的存儲路徑全名, 預設值爲 :scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl -
(選), (鍵
configInstructions固定, 取值自定義, 且可爲空, 即取configInstructions=的形式, 亦可不傳入該參數), 用於傳入程式 ( Programming ) 設計語言 ( Julia, Python3 ) 代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的運行參數, 若爲多參數, 則各參數之間用一個逗號 ( Comma ) 字符 (,) 連接, 批處理程式脚本startServer.sh已設計爲可自動將逗號 ( Comma ) 字符 (,) 替換爲空格字符 (SPACE) (00100000), 然後再傳入代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的運行環境, 預設值爲 :configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
c2exe.c
程式設計 C 語言, 使用 FILE *fstream = popen("shell Code Script", "r") 函數, 創建子進程 ( Sub Process ), 並在子進程 ( Sub Process ) 運行外部二進制可執行檔 ( julia.exe, python.exe, ), 功能與批處理檔 startServer.sh 類似.
使用説明:
微軟視窗系統 ( Windows10 x86_64 ) 使用二進位可執行檔「StatisticalServer.exe」啓動統計運算伺服器「StatisticalServer」 :
微軟視窗系統 ( Windows10 x86_64 )
Windows10 x86_64 Compiler :
Minimalist GNU on Windows ( MinGW-w64 ) mingw64-8.1.0-release-posix-seh-rt_v6-rev0
控制臺命令列 ( cmd ) 運行編譯指令 :
C:\StatisticalServer> C:\MinGW64\bin\gcc.exe C:/StatisticalServer/c/c2exe.c -o C:/StatisticalServer/StatisticalServer.exe
控制臺命令列 ( cmd ) 運行顯示中文字符指令 :
C:\StatisticalServer> chcp 65001
控制臺命令列 ( cmd ) 運行啓動指令 :
C:\StatisticalServer> C:/StatisticalServer/StatisticalServer.exe configFile=C:/StatisticalServer/config.txt executableFile=C:/StatisticalServer/Julia/Julia-1.10.10/julia.exe interpreterFile=-p,4,--project=C:/StatisticalServer/StatisticalServerJulia/ scriptFile=C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=C:/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 ) 使用二進位可執行檔「StatisticalServer.exe」啓動統計運算伺服器「StatisticalServer」 :
谷歌安卓系統 之 Termux 系統 之 烏班圖系統 ( Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 )
Android-11 Termux-0.118 Ubuntu-22.04 Arm64-aarch64 Compiler :
gcc v9.3.0 , g++ v9.3.0
控制臺命令列 ( bash ) 運行編譯指令 :
root@localhost:~# /bin/gcc /home/StatisticalServer/c/c2exe.c -o /home/StatisticalServer/StatisticalServer.exe
控制臺命令列 ( bash ) 運行啓動指令 :
root@localhost:~# /home/StatisticalServer/StatisticalServer.exe configFile=/home/StatisticalServer/config.txt executableFile=/bin/julia interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
控制臺啓動傳參釋意, 各參數之間以一個逗號 ( Comma ) 字符 ( , ) 分隔, 鍵(Key) ~ 值(Value) 之間以一個等號字符 ( = ) 連接, 即類比 Key=Value 的形式 :
-
(必), (自定義), 計算機 C 語言 ( Computer Programming C Language ) 程式設計 ( Programming ) 代碼檔 (
c2exe.c), 使用編譯器 ( Compiler ), 經過編譯之後, 轉換爲二進制可執行檔 ( .exe ), 啓動運行指令存儲路徑全名, 例如可自定義配置爲 :C:/StatisticalServer/StatisticalServer.exe -
(選) (值
C:/StatisticalServer/config.txt自定義), 用於傳入配置文檔的保存路徑全名, 配置文檔裏的橫向列首可用一個井號字符 (#) 注釋掉, 使用井號字符 (#) 注釋掉之後,該橫向列的參數即不會傳入從而失效, 若需啓用可刪除橫向列首的井號字符 (#) 即可, 注意橫向列首的空格也要刪除, 每一個橫向列的參數必須頂格書寫, 預設值爲 :C:/StatisticalServer/config.txt -
(選), (鍵
executableFile固定, 值/bin/julia自定義, 例如 [/bin/julia,/bin/python3] 可自定義取其一配置), 用於傳入選擇啓動哪一種程式語言編寫的接口服務, 計算機 ( Computer ) 程式 ( Programming ) 設計 Julia 語言, 計算機 ( Computer ) 程式 ( Programming ) 設計 Python 語言, 預設值爲 :executableFile=/bin/julia -
(選), (鍵
interpreterFile固定, 值-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/自定義, 且可爲空, 即取interpreterFile=的形式, 亦可不傳入該參數), 用於傳入程式設計語言 ( Julia, Python3 ) 解釋器 ( Interpreter ) 環境的二進制可執行檔, 於作業系統控制臺命令列 ( Operating System Console Command ) 使用指令啓動時傳入的運行參數, 若爲多參數, 則各參數之間用一個逗號 ( Comma ) 字符 (,) 連接, 代碼文檔c2exe.c已設計爲可自動將逗號 ( Comma ) 字符 (,) 替換爲空格字符 (SPACE) (00100000), 然後再傳入程式設計語言 ( Julia, Python3 ) 解釋器 ( Interpreter ) 的運行環境, 預設值爲 :interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ -
(選), (鍵
scriptFile固定, 值/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl自定義, 例如 [/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl,/home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py] 可自定義取其一配置), 用於傳入程式 ( Programming ) 設計語言 ( Julia, Python3 ) 代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的存儲路徑全名, 預設值爲 :scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl -
(選), (鍵
configInstructions固定, 取值自定義, 且可爲空, 即取configInstructions=的形式, 亦可不傳入該參數), 用於傳入程式 ( Programming ) 設計語言 ( Julia, Python3 ) 代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的運行參數, 若爲多參數, 則各參數之間用一個逗號 ( Comma ) 字符 (,) 連接, 代碼文檔c2exe.c已設計爲可自動將逗號 ( Comma ) 字符 (,) 替換爲空格字符 (SPACE) (00100000), 然後再傳入代碼脚本 ( Script ) 檔 (StatisticalAlgorithmServer.jl,StatisticalAlgorithmServer.py) 的運行環境, 預設值爲 :configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
Compiler :
Minimalist GNU on Windows ( MinGW-w64 ) : mingw64-8.1.0-release-posix-seh-rt_v6-rev0
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 官方網站: https://www.mingw-w64.org/
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 官方下載頁: https://www.mingw-w64.org/downloads/
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 作者官方 GitHub 網站賬戶: https://github.com/niXman
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 官方 GitHub 網站倉庫: https://github.com/nixman/mingw-builds.git
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 官方 GitHub 網站倉庫預編譯二進制檔下載頁: https://github.com/niXman/mingw-builds-binaries/releases
程式設計 C 語言 gcc, g++ 編譯器 ( Compiler ) 之 MinGW-w64 預編譯二進制檔下載頁: https://sourceforge.net/projects/mingw-w64/
一. 可使用谷歌 ( Google - Chromium ) 或火狐 ( Mozilla - Firefox ) 瀏覽器 ( Browser ) 作爲用戶端 ( Client ) 連接統計運算伺服器「StatisticalServer」打開交互介面.
打開應用頁面「index.html」可在地址欄 ( Browser address bar ) 輸入網址 ( Uniform Resource Locator , URL ) :
http://username:password@[::1]:10001/index.html?Key=username:password
打開管理頁面「administrator.html」可在地址欄 ( Browser address bar ) 輸入網址 ( Uniform Resource Locator , URL ) :
http://username:password@[::1]:10001/administrator.html?Key=username:password
交互頁面「index.html」可視化數據圖表,使用第三方擴展包,百度 ( Baidu ) 公司開發的基於 JavaScript 程式設計語言的開源可視化圖表庫「Apache - ECharts」實現.
可自行修改標準通用標記語言代碼脚本 ( .html ) 檔「index.html」「SelectStatisticalAlgorithms.html」「InputHTML.html」「OutputHTML.html」内的 HTML , JavaScript , CSS 代碼,擴展交互頁面「index.html」内統計方法的連接 ( Browser Client Request ) 選項.
二. 可使用項目空間内的微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」作爲用戶端 ( Client ) 連接統計運算伺服器「StatisticalServer」做 ( Client - Request ) 計算.
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」打開之後,菜單欄 ( Excel menu bar ) 之 :
-
「
加載項 ( Excel Add-in )」 → 「統計運算 ( Statistics )」 → 「人機交互介面 ( operation panel )」,爲連接統計運算伺服器「StatisticalServer」做 ( Client - Request ) 計算的操作面板. -
「
加載項 ( Excel Add-in )」 → 「統計運算 ( Statistics )」 → 「統計運算 ( Statistics server )」,爲從微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔 (Client.xlsm) 内,通過創建子進程 ( Sub Process ) 調用微軟視窗系統 ( Windows10 x86_64 ) 控制臺命令列 (cmd.exe) 應用,啓動統計運算伺服器「StatisticalServer」的運行指令.
其中,項目空間内的代碼脚本檔「StatisticsAlgorithmModule.bas」是微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」運行時,需導入的標準模組 ( Module ) 代碼(必須),可在此代碼脚本檔内,自行修改 Visual Basic for Applications , VBA 代碼,擴展統計方法的連接 ( Client Request ) 項.
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用檔「Client.xlsm」轉換 JSON 字符串類型的變量 ( JSON - String Object ) 與微軟電子表格字典類型的變量 ( Windows - Office - Excel - Visual Basic for Applications - Dict Object ) 數據類型,借用微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用的第三方擴展類模組「VBA-JSON : JsonConverter.bas」實現.
三. 也可自行選擇其他程式設計語言編寫用戶端鏈接器 ( Client ) 應用,連接統計運算伺服器「StatisticalServer」做 ( Client - Request ) 計算,比如,使用 JavaScript 語言的 NW.js , Electron 解析器等製作用戶端交互介面,或使用 C 語言的 GNU Image Manipulation Program - GIMP Toolkit , GTK+ 圖形框架等製作用戶端交互介面,然後,使用 Julia 或 Python 語言的統計運算伺服器「StatisticalServer」作爲後端行使數據計算功能,這樣即可實現類似跨語言混合編程的效果.
使用自行製作的用戶端鏈接器 ( Client ) 時,連接統計運算伺服器「StatisticalServer」做 ( Client - Request ) 計算,可使用如下網址 ( Uniform Resource Locator , URL ) :
- 連接統計運算伺服器「
StatisticalServer」做 ( Client - Request ) 插值 ( Interpolation ) 計算,使用網址 ( Uniform Resource Locator , URL ) :
http://[::1]:10001/Interpolation?Key=username:password&algorithmUser=username&algorithmPass=password&algorithmName=BSpline(Cubic)&algorithmLambda=0.0&algorithmKei=2.0&algorithmDi=1.0&algorithmEith=1.0
- 連接統計運算伺服器「
StatisticalServer」做 ( Client - Request ) 多項式 ( 3 階 ) 方程 ( Polynomial ( Cubic ) ) 模型擬合 ( Fit ) 計算,使用網址 ( Uniform Resource Locator , URL ) :
http://[::1]:10001/Polynomial3Fit?Key=username:password&algorithmUser=username&algorithmPass=password&algorithmName=Polynomial3Fit
- 連接統計運算伺服器「
StatisticalServer」做 ( Client - Request ) 邏輯 4 , 5 參數模型 ( 4 , 5 - parameter logistic curve ) 擬合 ( Fit ) 計算,使用網址 ( Uniform Resource Locator , URL ) :
http://[::1]:10001/LC5PFit?Key=username:password&algorithmUser=username&algorithmPass=password&algorithmName=LC5PFit
用戶端 ( Client - Request ) 發送 POST 請求的數據爲 JSON 字符串 ( JSON String ) 類型,數據格式可類比如下 :
Request - POST =
{
"trainXdata" : [
0.0,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
8.0,
9.0,
10.0,
],
"trainYdata_1" : [
100.0,
200.0,
300.0,
400.0,
500.0,
600.0,
700.0,
800.0,
900.0,
1000.0,
1100.0
],
"trainYdata_2" : [
98.0,
198.0,
298.0,
398.0,
498.0,
598.0,
698.0,
798.0,
898.0,
998.0,
1098.0
],
"trainYdata_3" : [
102.0,
202.0,
302.0,
402.0,
502.0,
602.0,
702.0,
802.0,
902.0,
1002.0,
1102.0
],
"weight" : [
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0
],
"Pdata_0" : [
90.0,
4.0,
1.0,
1210.0,
1.0
],
"Plower" : [
"-Infinity",
"-Infinity",
"-Infinity",
"-Infinity",
"-Infinity"
],
"Pupper" : [
"+Infinity",
"+Infinity",
"+Infinity",
"+Infinity",
"+Infinity"
],
"testYdata_1" : [
150.0,
200.0,
250.0,
350.0,
450.0,
550.0,
650.0,
750.0,
850.0,
950.0,
1050.0
],
"testYdata_2" : [
148.0,
198.0,
248.0,
348.0,
448.0,
548.0,
648.0,
748.0,
848.0,
948.0,
1048.0
],
"testYdata_3" : [
152.0,
202.0,
252.0,
352.0,
452.0,
552.0,
652.0,
752.0,
852.0,
952.0,
1052.0
],
"testXdata" : [
0.5,
1.0,
1.5,
2.5,
3.5,
4.5,
5.5,
6.5,
7.5,
8.5,
9.5
],
"trainYdata" : [
[100.0, 98.0, 102.0],
[200.0, 198.0, 202.0],
[300.0, 298.0, 302.0],
[400.0, 398.0, 402.0],
[500.0, 498.0, 502.0],
[600.0, 598.0, 602.0],
[700.0, 698.0, 702.0],
[800.0, 798.0, 802.0],
[900.0, 898.0, 902.0],
[1000.0, 998.0, 1002.0],
[1100.0, 1098.0, 1102.0]
],
"testYdata" : [
[150.0, 148.0, 152.0],
[200.0, 198.0, 202.0],
[250.0, 248.0, 252.0],
[350.0, 348.0, 352.0],
[450.0, 448.0, 452.0],
[550.0, 548.0, 552.0],
[650.0, 648.0, 652.0],
[750.0, 748.0, 752.0],
[850.0, 848.0, 852.0],
[950.0, 948.0, 952.0],
[1050.0, 1048.0, 1052.0]
]
}
伺服器 ( Server - Respond ) 響應 POST 請求的數據格式爲 JSON 字符串 ( JSON String ) 類型,數據格式可類比如下 :
Respond - body =
{
"Coefficient" : [
100.007982422761,
42148.4577551448,
1.0001564001486,
4221377.92224082
],
"Coefficient-StandardDeviation" : [
0.00781790123184812,
2104.76673086505,
0.0000237490808220821,
210359.023599377
],
"Coefficient-Confidence-Lower-95%" : [
99.9908250045862,
37529.2688077105,
1.0001042796499,
3759717.22485611
],
"Coefficient-Confidence-Upper-95%" : [
100.025139840936,
46767.6467025791,
1.00020852064729,
4683038.61962554
],
"Yfit" : [
100.008980483748,
199.99155580718,
299.992070696316,
399.99603100866,
500.000567344017,
600.00431688223,
700.006476967595,
800.006517272442,
900.004060927778,
999.998826196417,
1099.99059444852
],
"Yfit-Uncertainty-Lower" : [
99.0089499294379,
198.991136273453,
298.990136898385,
398.991624763274,
498.99282487668,
598.992447662226,
698.989753032473,
798.984266632803,
898.975662941844,
998.963708008532,
1098.94822805642
],
"Yfit-Uncertainty-Upper" : [
101.00901103813,
200.991951293373,
300.993902825086,
401.000210884195,
501.007916682505,
601.015588680788,
701.022365894672,
801.027666045591,
901.031064750697,
1001.0322361364,
1101.0309201882
],
"Residual" : [
0.00898048374801874,
-0.00844419281929731,
-0.00792930368334055,
-0.00396899133920669,
0.000567344017326831,
0.00431688223034143,
0.00647696759551763,
0.00651727244257926,
0.00406092777848243,
-0.00117380358278751,
-0.00940555147826671
],
"testData" : {
"Ydata" : [
[150.0, 148.0, 152.0],
[200.0, 198.0, 202.0],
[250.0, 248.0, 252.0],
[350.0, 348.0, 352.0],
[450.0, 448.0, 452.0],
[550.0, 548.0, 552.0],
[650.0, 648.0, 652.0],
[750.0, 748.0, 752.0],
[850.0, 848.0, 852.0],
[950.0, 948.0, 952.0],
[1050.0, 1048.0, 1052.0]
],
"test-Xvals" : [
0.500050586546119,
1.00008444458554,
1.50008923026377,
2.50006143908055,
3.50001668919562,
4.49997400999207,
5.49994366811569,
6.49993211621922,
7.49994379302719,
8.49998194168741,
9.50004903674755
],
"test-Xvals-Uncertainty-Lower" : [
0.499936310423273,
0.999794808816128,
1.49963107921017,
2.49927920023971,
3.49892261926065,
4.49857747071072,
5.4982524599721,
6.4979530588239,
7.49768303155859,
8.49744512880161,
9.49724144950174
],
"test-Xvals-Uncertainty-Upper" : [
0.500160692642957,
1.00036584601127,
1.50053513648402,
2.5008235803856,
3.50108303720897,
4.50133543331854,
5.50159259771137,
6.50186196458511,
7.50214864756277,
8.50245638268284,
9.50278802032924
],
"Xdata" : [
0.5,
1.0,
1.5,
2.5,
3.5,
4.5,
5.5,
6.5,
7.5,
8.5,
9.5
],
"test-Yfit" : [
149.99283432168886,
199.98780598165467,
249.98704946506768,
349.9910371559672,
449.9975369446911,
550.0037557953037,
650.0081868763082,
750.0098833059892,
850.0081939375959,
950.002643218264,
1049.9928684998304
],
"test-Yfit-Uncertainty-Lower" : [],
"test-Yfit-Uncertainty-Upper" : [],
"test-Residual" : [
[0.000050586546119],
[0.00008444458554],
[0.00008923026377],
[0.00006143908055],
[0.00001668919562],
[-0.00002599000793],
[-0.0000563318843],
[-0.00006788378077],
[-0.0000562069728],
[-0.00001805831259],
[0.00004903674755]
]
}
}
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用,轉換 JSON 字符串類型的變量 ( JSON - String Object ) 與微軟電子表格字典類型的變量 ( Windows - Office - Excel - Visual Basic for Applications - Dict Object ) 時,使用的第三方擴展類模組「VBA-JSON」説明 :
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用第三方擴展類模組 VBA-JSON 官方 GitHub 網站倉庫: https://github.com/VBA-tools/VBA-JSON.git
百度 ( Baidu ) 公司開發的基於 JavaScript 程式設計語言的開源可視化圖表庫「Apache - ECharts」説明 :
基於 JavaScript 程式設計語言的開源可視化圖表庫「Apache - ECharts」官方網站: https://echarts.apache.org/zh/index.html
基於 JavaScript 程式設計語言的開源可視化圖表庫「Apache - ECharts」官方手冊: https://echarts.apache.org/handbook/zh/get-started/
基於 JavaScript 程式設計語言的開源可視化圖表庫「Apache - ECharts」官方 GitHub 網站倉庫頁: https://github.com/apache/echarts.git
計算機程式設計 C 語言「GIMP Toolkit , GTK+」圖形框架説明 :
計算機程式設計 C 語言「GIMP Toolkit , GTK+」圖形框架官方網站: https://www.gtk.org/
計算機程式設計 C 語言「GIMP Toolkit , GTK+」圖形框架官方手冊: https://www.gtk.org/docs/
谷歌 ( Google - Chromium ) 或火狐 ( Mozilla - Firefox ) 瀏覽器 ( Browser ) 的官方網站 ( Uniform Resource Locator , URL ) 鏈接 :
火狐 ( Mozilla - Gecko - Firefox ) 瀏覽器官方網站: https://www.mozilla.org/zh-TW/
火狐 ( Mozilla - Gecko - Firefox ) 瀏覽器官方手冊: https://firefox-source-docs.mozilla.org/setup/windows_wsl_build.html
火狐 ( Mozilla - Gecko - Firefox ) 瀏覽器官方 GitHub 網站倉庫頁: https://github.com/mozilla/gecko-dev.git
谷歌 ( Google - Chromium ) 瀏覽器官方 GitHub 網站倉庫頁: https://github.com/chromium/chromium.git
微軟電子表格 ( Windows - Office - Excel - Visual Basic for Applications ) 應用 Microsoft Office Excel Professional 2019 的官方網站 ( Uniform Resource Locator , URL ) 鏈接 :
作業系統 ( Operating system ) 之 Microsoft Windows 官方網站: https://www.microsoft.com/zh-tw/windows
電子表格應用 Microsoft Office Excel 官方下載頁: https://www.microsoft.com/zh-tw/download/office
電子表格應用 Microsoft Office Excel 2019 官方説明頁: https://learn.microsoft.com/zh-tw/deployoffice/office2019/overview
開箱即用 ( out of the box ) ( portable application ) 已配置第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 的程式設計語言 ( computer programming language ) : Julia 解釋器 ( Interpreter ) 和 Python 解釋器 ( Interpreter ) 運行環境的壓縮檔 ( .7z ) 的 百度網盤(pan.baidu.com) 下載頁: https://pan.baidu.com/s/1MZMNeeRz02zpEzSV0xcFBA?pwd=cy8g
提取碼:cy8g
開箱即用 ( out of the box ) ( portable application ) 檔 :
- 壓縮檔 :
Julia-1.10.10-Window10-AMD_FX8800P_x86_64.7z
壓縮檔「Julia-1.10.10-Window10-AMD_FX8800P_x86_64.7z」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 程式設計語言 ( Julia ) 解釋器 ( Interpreter ) 二進位可執行檔 ( julia-1.10.10-win64.exe ) 開箱即用 ( out of the box ) ( portable application ) 免安裝版,需自行下載解壓縮,將其保存至檔案夾 ( folder ) : StatisticalServer/Julia/ 内,最終完整路徑應爲「StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe」
- 壓縮檔 :
Python-3.11.2-Window10-AMD_FX8800P_x86_64.7z
壓縮檔「Python-3.11.2-Window10-AMD_FX8800P_x86_64.7z」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 程式設計語言 ( Python ) 解釋器 ( Interpreter ) 二進位可執行檔 ( python-3.11.2-amd64.exe ) 開箱即用 ( out of the box ) ( portable application ) 免安裝版,需自行下載解壓縮,將其保存至檔案夾 ( folder ) : StatisticalServer/Python/ 内,最終完整路徑應爲「StatisticalServer/Python/Python311/python.exe」
- 壓縮檔 :
StatisticalServerJulia-Julia1.10.10-Window10-AMD_FX8800P_x86_64.7z
壓縮檔「StatisticalServerJulia-Julia1.10.10-Window10-AMD_FX8800P_x86_64.7z」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 統計運算伺服器 'StatisticalServerJulia' 開箱即用 ( out of the box ) ( portable application ) 版,已配置計算機程式設計語言 ( computer programming language ) : Julia 解釋器 ( Interpreter ) 運行此統計運算伺服器 'StatisticalServerJulia' 項目所需的第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 的運行環境,可自行下載解壓縮,將其保存至檔案夾 ( folder ) : StatisticalServer/StatisticalServerJulia/ 内,再因應協調配置壓縮檔「Julia-1.10.10-Window10-AMD_FX8800P_x86_64.7z」之後,即可使用如下指令啓動運行統計運算伺服器「StatisticalServerJulia」項目 :
C:\StatisticalServer> C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe -p 4 --project=C:/StatisticalServer/StatisticalServerJulia/ C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configFile=C:/StatisticalServer/StatisticalServerJulia/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 key=username:password number_Worker_threads=1 isConcurrencyHierarchy=Tasks readtimeout=0 connecttimeout=0
- 壓縮檔 :
StatisticalServerPython-Python3.11.2-Window10-AMD_FX8800P_x86_64.7z
壓縮檔「StatisticalServerPython-Python3.11.2-Window10-AMD_FX8800P_x86_64.7z」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 統計運算伺服器 'StatisticalServerPython' 開箱即用 ( out of the box ) ( portable application ) 版,已配置計算機程式設計語言 ( computer programming language ) : Python 解釋器 ( Interpreter ) 運行此統計運算伺服器 'StatisticalServerPython' 項目所需的第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 的運行環境,可自行下載解壓縮,將其保存至檔案夾 ( folder ) : StatisticalServer/StatisticalServerPython/ 内,再因應協調配置壓縮檔「Python-3.11.2-Window10-AMD_FX8800P_x86_64.7z」之後,即可使用如下指令啓動運行統計運算伺服器「'StatisticalServerPython`」項目 :
C:\StatisticalServer> C:/StatisticalServer/StatisticalServerPython/Scripts/python.exe C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=C:/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
或者 :
C:\StatisticalServer> C:/StatisticalServer/Python/Python311/python.exe C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=C:/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
- 壓縮檔 :
StatisticalServer-Window10-AMD_FX8800P_x86_64.7z
壓縮檔「StatisticalServer-Window10-AMD_FX8800P_x86_64.7z」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 統計運算伺服器 'StatisticalServer' 開箱即用 ( out of the box ) ( portable application ) 版,已配置計算機程式設計語言 ( computer programming language ) : Julia 解釋器 ( Interpreter ) 和 Python 解釋器 ( Interpreter ) 運行此統計運算伺服器 'StatisticalServer' 項目所需的第三方擴展模組 ( third-party extensions ( libraries or modules ) ) 的運行環境,可自行下載解壓縮,將其保存至根目錄 ( Root Directory ) : C: 内,即可使用如下指令啓動運行統計運算伺服器「'StatisticalServer'」項目 :
程式設計語言 ( computer programming language ) : Julia 實現,使用如下指令:
C:\StatisticalServer> C:/StatisticalServer/Julia/Julia-1.10.10/bin/julia.exe -p 4 --project=C:/StatisticalServer/StatisticalServerJulia/ C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configFile=C:/StatisticalServer/StatisticalServerJulia/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 key=username:password number_Worker_threads=1 isConcurrencyHierarchy=Tasks readtimeout=0 connecttimeout=0
程式設計語言 ( computer programming language ) : Python 實現,使用如下指令:
C:\StatisticalServer> C:/StatisticalServer/StatisticalServerPython/Scripts/python.exe C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=C:/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
或者 :
C:\StatisticalServer> C:/StatisticalServer/Python/Python311/python.exe C:/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=C:/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=C:/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
使用批處理脚本「startServer.bat」啓動,使用如下指令 :
C:\StatisticalServer> C:/Windows/System32/cmd.exe C:/StatisticalServer/startServer.bat C:/StatisticalServer/config.txt
使用二進位可執行檔「StatisticalServer.exe」啓動,使用如下指令 :
C:\StatisticalServer> C:/StatisticalServer/StatisticalServer.exe configFile=C:/StatisticalServer/config.txt executableFile=C:/StatisticalServer/Julia/Julia-1.10.10/julia.exe interpreterFile=-p,4,--project=C:/StatisticalServer/StatisticalServerJulia/ scriptFile=C:/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=C:/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
- 壓縮檔 :
google-pixel-2_android-11_termux-0.118_arm64_ubuntu-22.04_arm64_StatisticalServer.tar.gz
壓縮檔「google-pixel-2_android-11_termux-0.118_arm64_ubuntu-22.04_arm64_StatisticalServer.tar.gz」爲谷歌安卓作業系統 ( Operating System: Google-Pixel-7 Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 MSM8998-Snapdragon835-Qualcomm®-Kryo™-280 ) 統計運算伺服器「'StatisticalServer'」項目源代碼脚本,可自行下載將其移動至 Android-Termux-Ubuntu 系統的檔案夾 ( folder ) : /home/ 内,然後再使用如下指令解壓縮 :
root@localhost:~# tar -zxvf /home/google-pixel-2_android-11_termux-0.118_arm64_ubuntu-22.04_arm64_StatisticalServer.tar.gz
最終應保存爲檔案夾 ( folder ) : /home/StatisticalServer/ 形式.
然後,再使用如下指令修改批處理 ( Bash ) 脚本「startServer.sh」和二進位可執行檔「StatisticalServer.exe」的權限爲所有用戶可運行 :
root@localhost:~# chmod 777 /home/StatisticalServer/startServer.sh
root@localhost:~# chmod 777 /home/StatisticalServer/StatisticalServer.exe
使用如下指令修改參數配置文檔「/home/StatisticalServer/config.txt」「/home/StatisticalServer/StatisticalServerJulia/config.txt」「/home/StatisticalServer/StatisticalServerPython/config.txt」和代碼脚本檔 ( Script file ) 「/home/StatisticalServer/StatisticalServerJulia/src/Interface.jl」「/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl」「/home/StatisticalServer/StatisticalServerJulia/src/Router.jl」「/home/StatisticalServer/StatisticalServerJulia/src/Interpolation_Fitting.jl」「/home/StatisticalServer/StatisticalServerPython/src/Interface.py」「/home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py」「/home/StatisticalServer/StatisticalServerPython/src/Router.py」「/home/StatisticalServer/StatisticalServerPython/src/Interpolation_Fitting.py」的權限爲所有用戶可讀可寫 :
root@localhost:~# chmod 666 /home/StatisticalServer/config.txt
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerJulia/config.txt
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerPython/config.txt
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerJulia/src/Interface.jl
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerJulia/src/Router.jl
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerJulia/src/Interpolation_Fitting.jl
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerPython/src/Interface.py
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerPython/src/Router.py
root@localhost:~# chmod 666 /home/StatisticalServer/StatisticalServerPython/src/Interpolation_Fitting.py
然後,即可使用如下指令啓動運行統計運算伺服器「'StatisticalServer'」項目 :
程式設計語言 ( computer programming language ) : Julia 實現,使用如下指令:
root@localhost:~# /usr/julia/julia-1.10.10/bin/julia -p 4 --project=/home/StatisticalServer/StatisticalServerJulia/ /home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt interface_Function=http_Server webPath=/home/StatisticalServer/html/ host=::0 port=10001 key=username:password number_Worker_threads=1 isConcurrencyHierarchy=Tasks readtimeout=0 connecttimeout=0
程式設計語言 ( computer programming language ) : Python 實現,使用如下指令:
root@localhost:~# /usr/bin/python3 /home/StatisticalServer/StatisticalServerPython/src/StatisticalAlgorithmServer.py configFile=/home/StatisticalServer/StatisticalServerPython/config.txt interface_Function=http_Server webPath=/home/StatisticalServer/html/ host=::0 port=10001 Key=username:password Is_multi_thread=False number_Worker_process=0
使用 Shell 語言脚本「startServer.sh」啓動,使用如下指令 :
root@localhost:~# /bin/bash /home/StatisticalServer/startServer.sh configFile=/home/StatisticalServer/config.txt executableFile=/bin/julia interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
使用二進位可執行檔「StatisticalServer.exe」啓動,使用如下指令 :
root@localhost:~# /home/StatisticalServer/StatisticalServer.exe configFile=/home/StatisticalServer/config.txt executableFile=/bin/julia interpreterFile=-p,4,--project=/home/StatisticalServer/StatisticalServerJulia/ scriptFile=/home/StatisticalServer/StatisticalServerJulia/src/StatisticalAlgorithmServer.jl configInstructions=configFile=/home/StatisticalServer/StatisticalServerJulia/config.txt,interface_Function=http_Server,webPath=/home/StatisticalServer/html/,host=::0,port=10001,key=username:password,number_Worker_threads=1,isConcurrencyHierarchy=Tasks
- 二進位可執行檔 :
StatisticalServer-Window10-AMD_FX8800P_x86_64.exe
二進位可執行檔「StatisticalServer-Window10-AMD_FX8800P_x86_64.exe」爲微軟視窗作業系統 ( Operating System: Acer-NEO-2023 Windows10 x86_64 Inter(R)-Core(TM)-m3-6Y30 ) 統計運算伺服器「'StatisticalServer'」項目内 C 語言源代碼檔「'StatisticalServer/c/c2exe.c'」使用 Window10 - MinGW-w64 - gcc 編譯器,編譯之後得到的二進位可執行檔,可自行下載保存至檔案夾 ( folder ) : C:/StatisticalServer/ 内,使用如下指令將其重命名 :
C:\StatisticalServer> rename C:/StatisticalServer/StatisticalServer-Window10-AMD_FX8800P_x86_64.exe C:/StatisticalServer/StatisticalServer.exe
- 二進位可執行檔 :
StatisticalServer_google-pixel-2_android-11_termux-0.118_ubuntu-22.04-LTS-rootfs_arm64.exe
二進位可執行檔「StatisticalServer_google-pixel-2_android-11_termux-0.118_ubuntu-22.04-LTS-rootfs_arm64.exe」爲谷歌安卓作業系統 ( Operating System: Google-Pixel-7 Android-11 Termux-0.118 Ubuntu-22.04-LTS-rootfs Arm64-aarch64 MSM8998-Snapdragon835-Qualcomm®-Kryo™-280 ) 統計運算伺服器「'StatisticalServer'」項目内 C 語言源代碼檔「'StatisticalServer/c/c2exe.c'」使用 Ubuntu 22.04 - gcc 編譯器,編譯之後得到的二進位可執行檔,可自行下載保存至檔案夾 ( folder ) : /home/StatisticalServer/ 内,使用如下指令將其重命名 :
root@localhost:~# /home/StatisticalServer/StatisticalServer_google-pixel-2_android-11_termux-0.118_ubuntu-22.04-LTS-rootfs_arm64.exe /home/StatisticalServer/StatisticalServer.exe
再使用如下指令修改其權限爲所有用戶可運行 :
root@localhost:~# chmod 777 /home/StatisticalServer/StatisticalServer.exe
即可.