原创 PyQt/PySide's qwindows.dll qwindowsvistastyle.dll is corrupted by UPX

Windows 10 64-bits Python 3.8.10 64-bits PySide2 5.15.2 PyInstaller 4.3 UPX 4.1.0 it raises: "This application failed t

原创 離線安裝Python庫

將系統已安裝的包按照需要的格式打包 pip freeze >requirements.txt 下載離線包 pip download -d packages -r requirements.txt 安裝離線包 pip install --no

原创 遷移SVN倉庫到Git

git svn clone http://???/svn/??? --authors-file=authors-transform.txt cat authors-transform.txt svn_username = git_usern

原创 firmware file rtl_bt/rtl8761b_fw.bin not found

Ubuntu安裝RTL8761B驅動 # Download rtl8761b_config and rtl8761b_fw from https://github.com/Realtek-OpenSource/android_hardwar

原创 Ubuntu徹底禁用Software updater更新提醒

最好的辦法是刪除update-notifier sudo apt-get remove update-notifier 參考鏈接

原创 重置剪切板緩存,拯救假死的剪切板

點擊Win鍵+R鍵打開Run窗口。 在窗口中輸入cmd /c “echo off | clip” 。(您可以直接拷貝這段命令) 點擊確定按鈕。

原创 Cortex-M4的快速memcpy,根據數據對齊情況自動優化,速度爲普通memcpy的1.3到5.2倍

代碼:https://github.com/gamesun/memcpy_fast memcpy_fast與memcpy速度比較 測試方法 memcpy_fast(dest + a, src + b, TEST_BUFF_SIZE + c)

原创 iOS開發中,修改ASIHTTPRequest源碼,禁止在POST時URL編碼

通過ASIHTTPRequest庫進行POST時,會對POST的文本內容進行encodeURL,而且ASIHTTPRequest自身並沒有配置項可以關閉這個轉換。 本文提供一個方法關閉encodeURL 1. 找到ASIFormDataRe

原创 Python + winpcap抓包和發包

winpcapy Python的winpcapy庫可以簡單地實現收發Layer2層(數據鏈路層,以太網)數據。  winpcapy主頁:https://github.com/orweis/winpcapy 安裝 pip install w

原创 Ubuntu 16.04 安裝CP210x,CH340驅動

CH340 https://github.com/juliagoda/CH341SER CP210x 因爲源碼版本不是linux-source-4.15.0-91-generic,導致error,一個臨時辦法是修改Makefile中的版本號

原创 火狐Firefox 52.90版是最後一個支持WinXP和Vista的版本

Firefox 52.90版是最後一個支持 Windows XP 和 Windows Vista 的升級版。(參考:https://support.mozilla.org/zh-CN/kb/firefox-windows-xp-vista)

原创 Python標準組件ConfigParser配置文件解析器,保存配置時支持大寫字母的方法

雖然自己已經改用xml作爲配置文件首選格式了,但是有時候還是需要解析ini、cfg文件(爲了兼容早期版本或者其他作者的軟件)。 基本上Python自帶的ConfigParser足夠應對了,但是美中不足的是,configparser.RawC

原创 Git for Windows,TortoiseGit支持WinXP的最後版本及下載方法

TortoiseGit兼容Windows XP和Windows Server 2003的最後版本: TortoiseGit 1.8.16.0 (https://download.tortoisegit.org/tgit/1.8.16.0/

原创 Python網絡開發中,通過winpcap收發Layer2層數據

winpcapy Python的winpcapy庫可以簡單地實現收發Layer2層(數據鏈路層,以太網)數據。  winpcapy主頁:https://github.com/orweis/winpcapy 安裝 pip install w