原创 ssh Tunnel

當WebService服務器和目標主機不在同一個網域時,可以通過ssh tunnel的功能把遠端WebService通過jumpstation映射到目標主機同一網域的服務器上面。 如:ssh -N [email protected] -L 1

原创 c++ read/write excel

https://readxl.tidyverse.org/index.html http://brechtsanders.github.io/xlsxio/ http://www.pudn.com/Download/item/id/256

原创 c++獲取文件編碼格式

int GetFileEncoding(char* filename) { ifstream fs; char buff[512]; fs.open(filename, ios::binary); if (!fs) { s

原创 soap錯誤碼和獲取處理錯誤碼的詳細信息

gsoap頁面:https://www.genivia.com/doc/guide/html/index.html soap客戶端用戶登錄返回值錯誤代碼表(ERROR CODE) SOAP_EOF -1 Unexpected end of

原创 Linux檢查某個目錄是否已經被mount

執行命令:mountpoint -q /mnt echo $?,如果輸出是0,表示已經被moun 點贊 收藏 分享 文章舉報 surayang 發佈了43 篇原創文章 · 獲贊

原创 pyinstaller參數介紹以及總結詳解

pyinstaller參數介紹以及總結詳解 來源:https://www.jb51.net/article/165251.htm 一、pyinstaller相關參數   -F, –onefile 打包一個單個文件,如果你的代碼都寫在一個.

原创 Python selenium ElementNotVisibleException: Message: element not visible

對於這種情況,可以用 driver_path = r".\tool\chromedriver.exe" driver = webdriver.Chrome(executable_path=driver_path) driver.get

原创 CentOS 7 yum 不能安裝package

CentOS7 使用yum安裝時出現下面的錯誤: [root@localhost Downloads]# yum install ncurses-devel Loaded plugins: fastestmirror, langpack

原创 CentOS7.5 cannot find file libudev.h

最近在CentOS 7.5 上編譯時,缺少libudev.h文件: 可以使用以下方法查詢rpm包:yum provides */libudev.h 然後使用yum install安裝。

原创 Centos7安裝Qt5.9,啓動qtcreator報錯: undefined symbol: FT_Get_Font_Format

./qtcreator: symbol lookup error: /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefi

原创 Vim for Python setup

CentOS 7 sudo yum install git cscope ctags-etags vim-X11 Ubuntu 16 sudo apt-get install exuberant-ctags cscope vim-gt

原创 遠端連接PostgreSQL數據庫

在服務器上裝了一PostgreSQL的數據庫,在本地使用其他用戶(非postgres)連接數據庫時,總是報錯,一直連不上,修改PostgreSQL安裝目錄下的data文件夾中的pg_hba.conf和postgresql.conf文件。

原创 Python_網絡爬蟲(新浪新聞抓取)

https://www.cnblogs.com/zengbojia/p/7220190.html

原创 Linux比較兩個文件夾

Linux比較兩個文件夾工具: diff [root@~]# diff -urNa dir1 dir2   -a Treat all files as text and compare them line-by-line, even i

原创 清除python文件運行後產生的pyc文件

在windows下可用如下代碼清除: @echo off for /r . %%a in (*.pyc) do ( del /a /f "%%a" echo %%a ) for /r . %%a in (__pycache