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

Excel – 比對不同表格資料

2022-09-232022-09-23 adminWindows

Loading

測試環境 Windows 10 , Excel 2016 參考文章 – https://officeguide.cc/excel-compare-two-excel-sheets-tutorial-examples/ Excel 這兩張表格的差異在哪裡,用肉眼比對很累,有什麼方式可以快速 […]

Read more

Linux – Systemd Service Type

2022-09-142022-11-25 adminLinux, RedHat / CentOS

Loading

透過自己寫 Systemd Unit Files 方式來取代傳統的 (crontab) cron table 啟動程式. 測試環境 CentOS 8 x86_64 (虛擬機) 寫了一支會定期 60 秒寫入時間資料到檔案的 c++ 程式. 編譯成可執行檔. 程式放到 /sbin/ 路徑. 開始編輯 S […]

Read more

SQL 語法 SELECT LIKE

2022-09-132022-09-13 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

SQL 語法 SELECT 的字串比對 (需注意資料庫字元編碼 Character Sets 與 文字排序 Collations ,請參考資料庫編碼 – https://benjr.tw/102156 ) 測試環境為 CentOS 7 x86_64 (虛擬機) LIKE 通常會搭配 % […]

Read more

Python – SQLite REGEXP SQL Query

2022-09-132023-02-17 adminLinux, RedHat / CentOS, SQLite

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Python 存取 SQLite 資料庫請參考 – https://benjr.tw/104703 當透過 Python 使用到 SQL 指令中的 REGEXP (正規表示式比對字串),但卻發生以下的錯誤訊息,參考文章 &#8 […]

Read more

Linux – Systemd Timers

2022-08-192023-10-31 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 參考文章 – https://wiki.archlinux.org/title/Systemd/Timers Systemd unit configuration 檔案以 .timer 為結尾的就是用於控制 .service 文件或事件,建議透 […]

Read more

Windows – PsExec

2022-07-272022-11-29 adminPowerShell, Windows

Loading

測試環境 Windows 10 (PsExec)-> Windows 10 (被控制端) Windows 10 (被控制端, IP:192.168.111.230) 這邊需要開啟可以在遠端執行端指令的權限. 防火牆 需開啟 檔案及印表機共用 權限,如下圖 新增 LocalAccountTokenFi […]

Read more

Linux – CentOS to CentOS Stream

2022-05-122024-11-22 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 7/8 x86_64 (虛擬機) 目前正在使用的 CentOS Linux 7 end of life 為 June 30 2024 , CentOS Linux 8 End Of Life (EOL) 為 December 31st, 2021,想要繼續更新 CentOS […]

Read more

Notepad++ – 取代 HTML 格式

2022-05-042022-05-04 adminWindows

Loading

測試環境 Windows 10 如何透過 Notepad++ 來取代掉文章內的 HTML 格式,範例如下. 可以透過 取代 Replace (Ctrl + H) 的 搜尋模式 / 規則運算式. 先把 <br> 換行字元換成 Windows 文字檔的 \r(carriage return) […]

Read more

MariaDB – max_allowed_packet size

2022-04-272023-09-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 遇到一個奇怪問題, LONGBLOB , LONGTEXT 字元上限為 4 GB (2^32 -1),使用 4 bytes 紀錄前面字元使用長度.但是實際使用只能到 16777216 (約 16M),下面來看一下是怎麼了. 先建立一個資料庫 (testdb […]

Read more

MariaDB – Generate auto increment column in select query

2022-04-272022-12-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 要如何在 SELECT 時多產生一個自動遞增列的欄位? 可以透過兩種方式. 先建立一個資料庫 (testdb) , 與資料表 (Index1) 資料格式為 Student VARCHAR(200). 建立學生名冊. @變數 要在 SELECT 的資料加上序 […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

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