原创 Python Logging Setup
import logging LOG_FMT = '[%(levelname)s] %(asctime)s: %(message)s' LOG_DATE_FMT = '%Y-%m-%d %H:%M:%S' logging.basicCo
原创 PowerShell連接查詢Oracle數據庫
PowerShell連接查詢Oracle數據庫 $USER = 'USER' $PASSWD = 'PASSWD' $SERVER = 'SERVER' $DB = 'DB' # create connection object Add
原创 Deploy Python Django Web Application with UWSGI and Nginx
1. Install Packages 2. Configure uWSGI 2.1 Loading configuration files 2.2 Magic variables 2.3 Placeholders 2.4 Plac
原创 PowerShell訪問Oracle、SQL Server數據庫,導出到CSV文件
PowerShell訪問Oracle、SQL Server數據庫,導出到CSV文件 # query oracle # connect info # sql # parameters # scalar result # return an
原创 PowerShell play with Outlook & Excel
PowerShell play with Outlook & Excel Search, download attachments in Outlook $outlook = New-Object -ComObject Outlook.A
原创 TeraData Basics
TeraData Basics 持續更新中。。 插圖畫得很辛苦 1. Basic concept 1.1 Parallel Processing AMP(Access Module Processor) 1.2 Linear
原创 程序員的數學系列(一)
第1章 0的故事 10進制 2進制 指數法則 0所起的作用 第2章 邏輯 兼顧完整性和排他性 邏輯非 邏輯與 邏輯或 異或 相等 蘊含—若A則B 德·摩根定律 三值邏輯的德·摩根定律 本章小結 邏輯的各種表現形式 第3章
原创 PowerShell讀取JSON配置文件
使用Get-Content和ConvertFrom-Json讀取JSON配置文件,以下是示例代碼: // settings.json { "RUN_DATE": null, "xl": { "xlWBATWorksheet
原创 Purge Data
Purge Data From IBM Knowledge Center Purging is a process of moving records from the base or main database table to t
原创 Nginx configuration for vue-router in history mode
Nginx configuration for vue-router in history mode Here’s how I did it according to the official document location / {