小打小闹
小龍16
中年大叔
展开
-
windows的USB插拔事件日志
目的:セキュリティ強化_USB挿抜ログ バッチファイル作成: 監視機能↓ WindowsでUSBを指す時にログ生成して出力するもの方案1:https://triton.casey.jp/portable/usblogview/ usblogviewダウンロードした、使える方案2: → 有料になるため廃棄https://prtimes.jp/main/html/rd/p/000000017.000017223.html LB USBロック Plus 2019年7月31日をもちまし原创 2020-12-18 12:58:19 · 3906 阅读 · 1 评论 -
airtest 自动化测试
・从官网http://airtest.netease.com/下载最新版的airtest 安装・Python环境构筑(不赘述)・airtest的参考文档:https://airtest.readthedocs.io/zh_CN/latest/all_module/airtest.core.api.html 例:keyevent("KEYCODE_2") 输入数字2 snapshot(filename=path+"//No.6.air//test.png" ,...原创 2020-12-18 12:57:04 · 264 阅读 · 0 评论 -
ubuntu can not find ifconfig
ubuntu环境中 打开cmd 终端sudo apt-get install net-tools -y原创 2019-02-28 13:27:07 · 390 阅读 · 0 评论 -
Map集合根据key或者value排序
前几天开发项目,需要用到这一个小的技巧点,原以为,自己put进去的会根据自己put时顺序自己拍好的,没想到,Map集合会变乱的。。 //hashmap降順ソート private static List<Map.Entry<String, String>> hashMapSort(HashMap<String, String> k_v) {...原创 2018-10-31 14:18:28 · 3158 阅读 · 1 评论 -
NodeJs判断字符串是否为空
判断字符串是否为空var str = "";if(str.trim()!==""){ console.log("非空"); }else{console.log( "空"); }原创 2017-08-24 13:56:36 · 13513 阅读 · 2 评论 -
android studio Error occurred during initialization of VM Could not reserve enough space
改小一点就好了原创 2017-08-27 19:36:01 · 1092 阅读 · 0 评论 -
对String的浅向理解
import java.lang.reflect.Field;public class test { public static void main(String[] args) throws Throwable, SecurityException { // TODO Auto-generated method stub String ss = "Hello原创 2017-08-23 10:03:13 · 236 阅读 · 0 评论 -
Android错误之(Android 6.0)Unable to add window android.view.ViewRootImpl$W@d4521e8 -- permission denied
引入项目时已经加入了权限—> 但还是报错— android6.0添加了运行时权限,因此在使用弹出框的地方加入如下代码: public void checkPermission() { if (Build.VERSION.SDK_INT >= 23) { if (!Settings.canDrawOverlays(MainActivity.原创 2017-08-22 18:09:41 · 8714 阅读 · 0 评论 -
Error:Cause: peer not authenticated
导入别人的项目时出现这个错误----->Error:Cause: peer not authenticated自己的平台的版本。。。。原创 2017-08-18 17:35:22 · 1211 阅读 · 0 评论 -
Eclipse中 sysout 按alt+/为什么不出System.out.println();
1、myeclpse–>Preferences–>General–>Keys 删掉word completion的快捷键设置alt+/ 【这个跟ContentAssist起冲突了】2、把Content Assist的快捷键由ctrl+space改成alt+/原创 2017-08-18 10:22:57 · 1668 阅读 · 0 评论