原创 File "/usr/bin/pip3", line 9, in from pip import main ImportError: cannot import name
File “/usr/bin/pip3”, line 9, in from pip import main ImportError: cannot import name ‘main’ https://askubuntu.com
原创 rebase in git
相信對於很多使用git的用戶來說, rebase 和 merge像兩個惡夢一樣, 到底應該是從哪個branch rebase/merge 到哪個branch? rebase和merge又有什麼區別? 我先回答一下第一問題: 如
原创 關於vertical layout不能水平居中對齊的原因
vertical layout只管垂直分佈, 所以如果其中某個widget不能水平對齊, 則創建一個qWidget, 然後在qWidget裏面把widget水平對齊,
原创 find empty files or non-empty files in a folder
The case is when I run condor, I will get some .out, .error files. if there are errors, the .error file will not be
原创 install java 11 on ubuntu16
sudo apt-get install openjdk-11-jdk-headless then check the folder /usr/lib/jvm/java-11-openjdk-amd64/bin make sur
原创 '&' and 'and' difference in python
idx_b = data[:,1] == 0 and data[:,4] == 1 用and會提示錯誤, 因爲and 最終只給定一個bool值, 要麼用.all() 或 .any() 所以這裏用& 是正確, 會給定一個bool值
原创 search element in list and narray
Python List index() The index() method searches an element in the list and returns its index. In simple terms, the
原创 QTextEdit 不允許輸入文字
禁用keyPressEvent void ImageEdit::keyPressEvent(QKeyEvent *event) { // qDebug() << "keypressed"; if ((event
原创 ffmpeg命令
extract_command = 'ffmpeg -i ' + merged_4_video_name + ' -start_number 0 ' + merged_fold + '/%08d.png'
原创 BadZipfile: File is not a zip file
try: pip install --no-cache-dir <package_name>, it will work https://stackoverflow.com/questions/34889056/trying-to
原创 undo the local changes
引用自https://docs.gitlab.com/ee/topics/git/numerous_undo_possibilities_in_git/ At this point there are 3 options to u
原创 git .gitignore file does not work
https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git git rm -r --cached . git add . 點贊
原创 解決PyCharm調試查看變量時一直顯示collecting data並報錯Timeout waiting for response且看不到任何內容
問題描述 如題,在用PyCharm進行Python代碼調試查看具體變量時,會隨機遇到一直顯示collecting data,到最後報錯Timeout waiting for response,在界面中看不到變量內部的內容
原创 git branch commands
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging $ git checkout -b iss53 Switched to a new
原创 git merge two branches
say i have two branches: condor and master Then I do some changes on master where I edited on my laptop, then apply