原创 win10 自啓動 bat 2
windows 把bat轉爲服務 1.1) E:\selfstart\instsrv.exe selfcassandra E:\selfstart\srvany.exe E:\selfstart\instsrv.exe selfpiweb
原创 mysql5.7 創建用戶給數據庫某個網段訪問權限
CREATE USER 'test'@'192.168.%' IDENTIFIED BY 'pims20181214'; grant all privileges on test1.* to pims@'192.168.%' identi
原创 win10 bat自啓動1
bat自啓動 ,把bat放到下面目錄下 C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup win10下 C:\Prog
原创 關於winform combobox的使用
這個是最基本的使用,老忘記 private void initComProtocal() { ArrayList mylist = new ArrayList(); mylist.Add(n
原创 SuperSocket.ClientEngine使用
最近這2天在做winform程序,用到json,supersocket.client SerialPort json使用的是Newtonsoft.Json.dll ,SuperSocket.ClientEngine使用的是SuperS
原创 winform 程序混淆
做winform混淆,找了2天資源最後找到了ConfuserEx_bin很好用 參考下NET代碼混淆——開源.net 混淆器ConfuserEx介紹 上傳3個資源ConfuserEx_bin.zip IL Spy_2.3.0.0_CHS_
原创 html5播放flv
<!DOCTYPE html> <html lang="en"> <head> <title>video</title> <!-- Video.js --> <link href="https://unpkg.
原创 linux 刪除日誌
#!/bin/bash echo "bbb" >> /home/wz/logdel/aa.txt cd /home/wz/pims/pihome.0.0/log/archive pre7day=`date +"%Y%m%d" -d "-5
原创 android工程,包adb not found
今天遇到重新打開一個android工程,發現有問題,有很多什麼過期了,什麼disabled了,後來百度下,看到有人也遇到這個問題,就是plugin被禁止了很多,settings--->plugins 右邊有很多紅的,可是我別的工程沒有問題
原创 winform 線程中使用textbox
1)線程不帶參數 Thread objThread = new Thread(new ThreadStart(ExecuteSendConnectDevice)); objThread.IsBackground = true; objTh
原创 winform 中使用定時器Timer
1) int lostTime = 0; Object myobj = new object(); System.Timers.Timer timer = new System.Timers.Timer(); 2)啓動定時器 pub
原创 Activity as dialog使用
public class ActivityAsDialog extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle
原创 mysql8 You are not allowed to create a user with GRANT
mysql8 You are not allowed to create a user with GRANT 按照網上的做法update user host='%' where user='test'不行 創建用戶的時候就直接創建好對
原创 查看端口是否開放
tcpdump -vv -e -s 0 -X -A host 192.168.1.111 and tcp port 3306 在沒有telnet的情況下使用
原创 視圖在androidstudio中顯示不出來
總遇到androidstudio,視圖在androidstudio中顯示不出來,而且報Failed to load AppCompat ActionBar with unknown error,原因是styles.xml中默認的AppTh