原创 c++錯誤:fstream open無法打開文件
寫c++的時候遇到個問題 fstream fin("bmp.txt",ios::binary); if (!fin.is_open()) { cout << "不能打開文件" << endl; exit(EXIT_FA
原创 [錯誤集錦]wsl ubuntu18.04安裝python3-pip出現broken package問題
嘗試在ubuntu中使用命令 sudo apt-get install python3-pip 然而報錯 E: Unable to correct problems, you have held broken packages.
原创 [錯誤集錦] Virtualbox打開VM出現黑屏未響應
Virtualbox 打開vm,不一會兒i就死機,點擊關閉就直接未響應 檢查: 用 Virtualbox 6.0.12 ,增強功能包版本也是 6.0.12 看了log,沒有相關的error (有一個無法截屏得error) ER
原创 [錯誤集錦]qmk_toolbox之flash錯誤No device present
錯誤描述 >>> dfu-programmer.exe atmega32u4 erase --force dfu-programmer: no device present. >>> dfu-programmer.exe atme
原创 win10主機ssh訪問VM方法
事先需要確定安裝了openssh sudo apt-get install openssh-server grep -q 'PermitRootLogin yes' /etc/ssh/sshd_config || echo 'Pe
原创 [錯誤集錦]wsl打開vscode無法保存新建的文件(NoPermissions)
按着教程走,用戶身份(非超級用戶) code . 打開vscode,創建的py文件無法保存,報錯NoPermission。(和沒sudo一樣眼熟啊…) 本質還是權限問題 解決方法 在wsl的shell裏:(相當於到了win系統的
原创 [錯誤集錦]wsl用/mnt/無法訪問windows下地址目錄
之前wsl+ubuntu一直用/mnt/c進入windows目錄。現在換成wt+zsh,結果/mnt/c/usr直接到ubuntu目錄了 解決方法 直接進c即可:cd /c/Windows/system32
原创 hexo-abbrlink導致圖片不能顯示
在安裝了hexo-abbrlink後博客圖片無法正常顯示(用的是hexo-asset-image) 之前_config.yml中配置如下 permalink: archives/:abbrlink.html 在hexo g後時觀
原创 windows shortcut expand
windwos + shift + s 截圖工具 shift + F10 相當於explorer中的右鍵
原创 [錯誤集錦]解決hexoTypeError[ERR_INVALID_URL]
hexo g報錯👇主要是因爲某些插件升級後有bug,需要退版本 刪除node_modules 把穩定版本的package.json和package-lock.json複製到當前文件夾並覆蓋 npm install
原创 [錯誤記錄] ptvsd_launcher.py no such file..
之前用vscode得python用得好好的,突然今天報錯,說找不到ptvsd_launcher.py… 解決方法:參考StackOverflow上的這個帖子 大概就是版本回退就好啦~
原创 解決powershellh關閉重開後colortool失效
按照↓這個教程下載colortool換膚 https://zhuanlan.zhihu.com/p/56808199 但用colortool換了顏色後,重新打開還是藍屏… 解決方法 https://devblogs.micro
原创 解決中文Powershell 輸出亂碼
輸入 $OutputEncoding = New-Object -typename System.Text.UTF8Encoding 然而只改這個解決不了問題。。 輸入的文檔轉爲utf8 這纔是核心 cat .\train
原创 Mysql錯誤 unknown variable 'secure_file_priv'
之前導入txt失敗,報錯: ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execu
原创 vscode錯誤:launch:program' 'enter program name ,for example ...' does not exits
錯誤原因 我是在vscode中同時寫html和python,想運行py文件時,誤在html文本界面調試 .vscode是沒有launch.json的,但因爲之前有配置過c++的,所以運行html的時候給生成了一個launch.jso