Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

Programming Language

Python – re 模組的 Regular Expression 語法

2023-02-172023-02-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentSO 8 (虛擬機) 在 Python 可以透過 re 模組來使用 Regular Expression (正規表達式) 來處理資料, 常用的 re 函數請參考 – https://benjr.tw/105370 , 這邊來看一下常用 Regular Expressi […]

Read more

SQLite – User-Defined Functions

2023-02-152023-02-16 adminLinux, Python, RedHat / CentOS, SQLite

Loading

測試環境為 CentSO 8 (虛擬機) SQLite 無法像是 MySQL 或是 MariaDB 使用者自訂函數 ( User-Defined Functions ) ,不過我們可以透過 SQLite 的 extensions – https://github.com/nalgeon/ […]

Read more

Python – 內建 CSV 模組 & Read , Write 方法

2023-02-032023-05-22 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) 這邊看一下 Python 內建的 CSV 模組,參考範例 – https://shengyu7697.github.io/python-write-csv-file/ Writer 先來看一下 Writer 的方法. csvwriter.write […]

Read more

Python – Export SQLite AS CSV File

2023-02-022023-02-03 adminPython, SQLite

Loading

測試環境為 CentOS8 (虛擬機) 怎麼透過 Python 把 SQLiet 的資料匯出成 CSV 格式(CommSeparated Values 以逗號做區隔)的檔案. 我這邊有一個 SQLite 的檔案,裡面有一個資料表 cpu_meminfo 用來記錄目前 CPU 與 MEM 的使用率 ( […]

Read more

Python – psutil (Disk , NetWork)

2023-02-022023-02-02 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) Python 的 psutil (python system and process utilities) 套件是一個可以跨平台讀取系統 關於 CPU 與 memory 請參考 – https://benjr.tw/105251 , disks 與 […]

Read more

Python – psutil (CPU , MEM)

2023-01-312023-02-02 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) Python 的 psutil (python system and process utilities) 套件是一個可以跨平台讀取系統 CPU 與 memory (這邊說明), 其他如 disks 與 network 請參考 – https:// […]

Read more

PowerShell – Invoke-WebRequest

2022-11-292022-11-29 adminPowerShell, Windows

Loading

測試環境 Windows 10 平時在 Linux 環境下會使用 curl (簡易文字版瀏覽器) , 在 Windows 下可以透過 PowerShell 的 Invoke-WebRequest 指令. 如果只需要看 Content ,可以透過以下方式. 如果是要看該網站有提供那些連結,可以透過以下 […]

Read more

Python – 執行 MySQL Stored Procedure

2022-11-232022-11-24 adminLinux, MariaDB, Mysql, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 在 Python 中要怎麼去執行 MySQL(MariaDB) 的 Stored Procedure , 參考文章 https://pynative.com/python-mysql-execute-stor […]

Read more

Python – TextBlob 的 拼字檢查 Spelling Correction

2022-11-222023-05-19 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) TextBlob 的 拼字檢查 是它綜多功能的其中一種,參考文章 – https://textblob.readthedocs.io/en/dev/quickstart.html#spelling-correction 首先安裝 t […]

Read more

Excel Power Query – Excel.Workbook & Excel.CurrentWorkbook

2022-11-102022-11-10 adminPower Query, Windows

Loading

測試環境 Windows 10 + Excel 2016 透過 Excel 的 Power Query 下面指令可以讀取到 Excel 的表格資料(資料須先做成表格). Excel.CurrentWorkbook – https://learn.microsoft.com/zh-tw/p […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Linux – GitLab
  • MariaDB – Remove repeated words in string
  • Python
  • MariaDB – Thread Pool
  • MariaDB – Condition Group

近期留言

  • 「MMM」於〈Windows – Fio〉發佈留言
  • 「UQA」於〈Linux – EFI 的磁碟分區〉發佈留言
  • 「[mysql] | 飛狼實驗室[wp]」於〈MariaDB 資料庫 – 使用者密碼〉發佈留言
  • 「菜单加密码」於〈Windows command – BCDEdit〉發佈留言
  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
Powered by WordPress | Theme: Astrid by aThemes.