原创 查詢sick編碼器型號是否支持hiperface接口方法,軟件支持所有帶此接口sick編碼器

以SEK37-HFB0-K02爲例 去sick官網查如下 https://www.sick.com/cn/zh/search?text=SEK37-HFB0-K02      

原创 XFTP問題解決Inconsistency detected by ld.so: dl-version.c: 230: _dl_check_map_versions:

Inconsistency detected by ld.so: dl-version.c: 230: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed! X

原创 python 協程示例源碼 單線程高效處理生產者與消費者問題 yield用法

 示例0:單線程高效處理生產者與消費者問題 yield用法 def consume(): while True: # consumer 協程等待接收數據 number = yield # yie

原创 c語言linux TCP長連接 socket收發範例 斷開自動重連

 改進1:加入接收超時。可以做別的事,等有接收才響應 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <st

原创 python+selenium+chrome QQ空間批量點贊源碼 方法:模擬自動操作

1.先客戶端登上qq。運行代碼,自動登錄  2.循環(點贊,滾動) 感覺沒有c#寫的好,但是比C#簡單。qq空間不太穩定,可能是網絡不行 電信丟包率40%. 運行日誌: /Users/xiaohuangrenruanjian/Pycha

原创 C語言用sscanf把16進制src字符串轉爲16進制數組dest 比如:“1234” 轉爲 {0x12,0x34}

改進:轉換後可以放在原數組裏,以節約資源。 #include <stdio.h> #include <stdlib.h> #include <string.h> //把16進制src字符串轉爲16進制數組dest 比如:“1234” {

原创 燒arm linux內核 修改靜態ip 使用puty.exe連串口 RS232連shell調試 能ping通ip,ping不通域名

1.燒arm linux內核 插入SD卡 上電,不斷按空格直到出U-boot run xflash 等安裝完,重啓OK 2.修改靜態ip vi /etc/network/interfaces 同一網段 iface eth0 inet st

原创 c語言 Linux CURL發送Http get請求 帶參數

我要請求的是 http://fs.ccic365.com/ccic-fs/IOT/updateData.shtml?sn=111111111&dataTime=2019-01-24 10:45:04&dataList=["1_1_25.4

原创 C語言溫度負數

#include <stdio.h> #include <stdlib.h> #include<string.h> int main(int argc,char *argv[]) { float temp=65519;

原创 mysql查看正在執行的sql語句和查看已經執行的歷史sql語句

一、mysql查看正在執行的sql語句  show processlist; 二、mysql查看已經執行的歷史sql語句(方法:開啓日誌模式) SET GLOBAL log_output = 'TABLE';SET GLOBAL gene

原创 data.db sqlite3數據庫文件不全提示The database disk image is malformed,xftp5的問題,關了重新上傳就OK。運行linux arm4.7軟件同樣。

data.db sqlite3數據庫文件不全提示The database disk image is malformed,xftp5的問題,關了,重新上傳就OK。   運行linux arm4.7軟件,運行提示No such file o

原创 特別要注意strtok分割處理後原字符串str會變,變成第一個子字符串。求動態字符串長度不能用sizeof,可以使用strlen()+1

#include <string.h> #include <stdio.h>   int main () {    char str[80] = "This is - www.wjsou.com - website";    const

原创 python mongodb數據庫增刪改查

地址,端口 數據庫,集合,域。  增insert #!/usr/bin/python3 import pymongo myclient = pymongo.MongoClient("mongodb://localhost:270

原创 C語言字符串追加字符串函數appendchar 刪除字符deletechar

:追加  #include <stdio.h> #include <stdlib.h> #include <string.h> void appendchar(void *source, void *des, int source_

原创 C語言提示multiple definition of displayPC以爲是重複定義 ,實際原因是變量在頭文件中不能初始化

  在a.h頭文件中定義變量temp並初始化,即顯式初始化。int temp = 0; a.c b.c文件中都包含了a.h頭文件,則在編譯時會出現:multiple definition of `temp’的錯誤。