原创 搜不到WiFi
筆記本電腦搜不到自己家裏的WiFi,手機可以搜索到自己家裏的WiFi,也可以搜到周圍人家的WiFi,有線可以鏈接路由器: 登陸路由器 tplogin.cn 或者192.168.1.1 打開無線/WiFi設置 將裏面的信道設置 默認改爲1
原创 git 刪除誤上傳的文件
1 找到要刪除文件的節點 git log 路徑+file 2 回退到自己提交之前的節點 git reset xxx節點id 路徑+file 3 git commit --amend 4 上庫 git push xxxxx
原创 git pull 更新代碼時失敗
更新代碼: git pull --rebase 報錯不能更新 沒有找到文件 分支路徑不對 1 查看分支 git branch 2 找到自己的主線路徑 xxxpath git checkout xxxpat
原创 Linux上的GetTickCount函數
#include <time.h> // 返回自系統開機以來的毫秒數(tick) unsigned long GetTickCount() { struct timespec ts; clock_gettime(CLOCK
原创 SF: Unsupported manufacturer ff
isvp_t20# sf probe SF: Unsupported manufacturer ff Failed to initialize SPI flash at 0:0 --->probe spend 6 ms flash 壞了
原创 undefined reference to `__ctype_b_loc'
xxx.a(libbbb.so): undefined reference to `__ctype_b_loc' xxx.a(libbbb.so): undefined reference to `__ctype_tolower_loc'
原创 Ubuntu vim 裏添加永久行號
沒有安裝vim 先安裝vim: sudo apt-get install vim 然後到sudo gedit /etc/vim/vimrc 後面加 set nu
原创 i2c i2c-0: i2c_xx_irq 441, I2C transfer error, ABORT interrupt
檢測sensor的時鐘腳24M 電壓腳正常1.8V 2.8V 檢測sensor的驅動和實際sensor型號是否匹配
原创 VMware Workstation 打開失敗
提示:此主機支持Intel VT-x,但Intel VT-x處於禁用狀態。 重啓PC電腦,進入BIOS系統設置中,將 處理器虛擬化技術 由禁用改爲啓用。保存,重啓電腦。
原创 用libcurl庫POST上傳圖片 用表單方式
int Post_Data_By_LibCurl(char *file_path, char *filename) { char url[256] = {0}; struct curl_httppost *Form
原创 虛擬機Linux(Redhat)minicom 提示 cannot open /dev/ttyUSB0
1. minicom是 Linux裏一個串口調試工具,Redhat安裝minicom: yum install minicom 2. minicom -s 在serial port set裏面, 按a鍵 修改串口 /dev/
原创 Relocations in generic ELF (EM: 8)
Relocations in generic ELF (EM: 8) xxx.o: error adding symbols: File in wrong format collect2: error: ld returned 1 exi
原创 git push時報錯remote rejected
1 查看上傳記錄 git reflog 2 回退到最後一次成功提交的節點 git reset --hard xxx節點id 3 git commit --amend 4 git push xxxx
原创 mmcblk0: error -1 sending status command, aborting
[ 349.289402] end_request: I/O error, dev mmcblk0, sector 60907 [ 350.442026] mmcblk0: error -1 sending status comman
原创 打開虛擬機失敗
提示:該虛擬機似乎正在使用中。獲取所有權限或者取消。 找到安裝虛擬機的文件夾位置,將裏面後綴名爲 .lck的文件刪除或者改成後綴不是 .lck的文件,然後重新打開虛擬機OK。