- 博客(118)
- 资源 (8)
- 收藏
- 关注
原创 EasyClick易点云测程序包android.content不存在
java混合项目或插件项目,会报此错误解决方法第一步,项目libs文件夹,找到android.jar,右键,添加为库第二步,点确定
2021-05-30 14:10:21
976
4
原创 EasyClick易点云测 base64加解密
/** * @author Mr_老冷 QQ:1920712147 * @date 20210515 */laoleng = {}laoleng.Bytes = {}laoleng.String = {}/** * @description base64解密,返回bytes * @param {String} str "YWJj" * @return {bytes[]} bytes */laoleng.Bytes.base64Decode = function (str) { .
2021-05-15 14:07:12
1126
原创 easyclick 判断数组是否不为空
/** * @author Mr_老冷 QQ1920712147 * @description 判断数组是否不为空 * @param arr 数组 * @return {boolean} */function isNotEmptyArray(arr) { if (!arr) return false return arr.length !== 0;}let res = getLastNotification("com.x", 100)if (isNotEmptyAr.
2021-04-24 17:16:05
341
1
原创 easyclick rSwipe 二指仿真滑动
插件用法//单指滑动//默认方法rSwipe.rndSwipe(200, 700, 200, 200)//调整步进,默认0.08rSwipe.step = 0.05rSwipe.rndSwipe(200, 700, 200, 200)//调整调整随机时间,默认50-100rSwipe.rndSwipe(200, 700, 200, 200, 50, 80)//调整超时时间rSwipe.rndSwipe(200, 700, 200, 200, 50, 80, 1000)//双指滑.
2021-04-15 15:58:52
2116
原创 easyclick联众打码
联众模块lzdm.js/** * @author Mr_老冷 QQ1920712147 * @description 联众打码初步封装 **/function LZDM() { this._url = "https://v2-api.jsdama.com/upload" this._errurl = "https://v2-api.jsdama.com/report-error" this._captchaId = "" //软件ID this._sof
2021-04-07 12:03:30
1183
原创 easyclick打开应用详情页
function openAppSetting(pkgName) { return utils.openActivity({ "action": "android.settings.APPLICATION_DETAILS_SETTINGS", "uri": "package:" + pkgName });}openAppSetting("com.tencent.mm")
2021-04-07 11:34:20
1347
原创 easyclick 默认浏览器打开网址
/*** @author Mr_老冷 QQ:1920712147 *@description 默认浏览器打开网址 * @param {string} url 网址链接 * @return {boolean} */function openUrl(url) { utils.openActivity({ action: "android.intent.action.VIEW", uri: url, })}...
2021-04-06 21:02:54
715
原创 easyclick中getRunningPkg替代
/** * @author Mr_老冷 QQ:1920712147 * @description getRunningPkg替代 * @return {null|*|string} */function getRunningPkgEx() { let node = bounds(100, 200, device.getScreenWidth(), device.getScreenHeight() - 100).getOneNodeInfo(0) return node ? nod.
2021-04-06 21:00:20
406
原创 easyclick判断数据类型,优化typeof
/** * @author Mr_老冷 QQ:1920712147 * @description 判断数据类型 * @param arg{any} * @return {string|null|undefined} */function typeOf(arg) { if (arg === null) return null if (arg === undefined) return undefined return arg.constructor.name}let .
2021-04-06 20:58:32
287
原创 2021Easyclick从入门到提高,踩坑必备
2021Easyclick从入门到提高,踩坑必备https://www.bilibili.com/video/BV1vz4y1S7gd
2021-01-27 22:11:58
3137
原创 PaddleHub ubuntu /usr/bin/hub命令不存在
ubuntu20新手入坑paddle,输入hub时提示apt安装,随安装,后发现装的是git的hub工具,不是PaddleHub,安装PaddleHub,卸载hub,发现hub命令已不可用/usr/bin/hub不存在,反复重装PaddleHub无法解决解决方法如下//更新linux本地数据库#updatedb//搜索hub文件#loacate /hub/home/xue/.local/bin/hub//创建软连接#sudo link /home/xue/.local/.
2020-12-27 20:16:38
1782
原创 ubuntu linux终端下查看电池状态
upower --dump | grep --color=never -E "state|to\ full|to\ empty|percentage"结果: state: chargingtime to full: 3.2 hourspercentage: 6%
2020-09-11 21:53:10
5556
2
原创 redis-cli导出数据
需要导出redis中某条数据,本来写了api的,数据太大了,有点慢,直接用下面命令代替导出echo 'lrange xx 0 -1' | redis-cli > out.txt下载(依赖 lrzsz 包)sz out.txt
2020-07-27 15:53:51
2356
原创 python request返回乱码 转码报错gbk codec cant decode byte 0xaf
由于对方服务器编码是gbk,request.get时乱码,用encode("gbk")报错'gbk' codec can't decode byte0xaf试了几种方法解决不了后面想到request可以直接设置返回值编码r = request.get(url)r.encoding = 'utf-8'乱码解决了....
2020-06-10 02:41:15
1098
原创 lua table.insert报错 bad argument #2 to table (number expected, got string)
lua报错代码实例:local k= 'text="123sdf圣达菲s | 1232" asdf'local a = {}print(k:gsub("123",""))table.insert(a,k:gsub("123",""))text="sdf圣达菲s | 2" asdf 2bad argument #2 to 'table' (number expected, got string)原因在于,lua的table.insert 本来接收3个参数, table,po...
2020-06-03 14:05:41
7155
原创 Cydia提取deb插件安装包
cydia里下载安装你需要的插件安装成功,不要选择返回springboard,链接电脑的爱思助手找到路径/private/var/mobile/Library/Caches/com.saurik.Cydia/archives里面的deb文件就是你需要的安装包如果提示找不到路径,先在cydia里搜apple file conduit"2" 的一个插件,粉色图标安装后,重新插拔下手机即可...
2020-05-31 15:30:52
10054
原创 redis启动失败FATAL CONFIG FILE ERRO net.ipv4.tcp_fin_timeout Bad directive or wrong number of arguments
闲着无聊 给家用备机的ubuntu apt upgrade了一下,结果redis用不了了*** FATAL CONFIG FILE ERROR ***May 13 03:10:47 xue-backup redis-server[2925]: Reading the configuration file, at line 89May 13 03:10:47 xue-backup redis-server[2925]: >>> 'net.ipv4.tcp_fin_timeout=60
2020-05-13 03:26:49
935
原创 homebrew无法安装报错curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
mac安装brew一直报错找了很多方法不行,进入官网看到有linux版安装方法,试了下,成功了cd /usr/local/Homebrewcurl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C Homebrewgit reset --hard origin/master安装成功后敲...
2020-04-12 04:26:40
1836
原创 服务器关机后supervisor意外报错supervisor.sock no such file/supervisor.sock refused connection/no such process
centos忘记续费关机了,supervisor托管的web服务器一直起不起来网上找了一堆教程和例子,发现都无法解决,即使修改到了/var/run下也不行,一直循环报错supervisor.sock no such filesupervisor.sock refused connectionno such process检查了conf文件也没发现哪里有写错折腾一个小时,无意...
2020-03-29 22:33:29
312
原创 python后台执行shell
osx: 10.15python: 3.6.5airetest ios需要执行两部shell命令,且需要一直执行,借用python来后台执行#coding:utf-8import subprocess, timeclass Shell(object): def __init__(self, cmd): self.cmd = cmd se...
2020-03-08 04:31:14
2888
原创 mac shell执行xcode/xcodebuild踩坑记录
osx: 10.15xcode: 10xcode路径:/Users/mac/Downloads/Xcode10.app1.执行xcodebuild,直接报错xcodebuildxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Deve...
2020-03-08 02:54:16
3956
原创 macOSX图色自动脚本pyautogui踩坑
osx版本 10.15python3 3.6.51.安装pyautoguipython3-mpipinstallpyautogui
2020-03-07 00:35:03
1946
4
转载 Linux 下高并发系统内核优化
转载自https://www.cnblogs.com/heping1314/p/11214638.html,仅作为留存使用1) 优化 Linux 文件打开最大数:vi /etc/security/limits.conf* soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535为了防...
2019-12-02 14:22:08
331
原创 goland重命名后配置编译报错 Module doesn't exist in project
goland重命名后配置编译报错 Module doesn't exist in project此为goland迁移项目时Module文件未修改完全导致找到项目目录 .idea文件夹找到modules.xml右键编辑将module节点的文件路径名改为新的项目文件名,保存退出进入goland,运行-->编辑配置Module项默认为none,改为与项目名相同的文件名...
2019-11-05 04:10:11
7626
原创 ubuntu18安装redis后未开机启动Could not connect to Redis at 127.0.0.1:6379: Connection refused解决办法
阿里云ubuntu18安装redis后,apt install redis-serverredis-cli提示Could not connect to Redis at 127.0.0.1:6379: Connection refused最终发现是两方面导致:1. ubuntu18未将redis加入到systemctl中sudo systemctl enable redis-s...
2019-11-03 04:17:27
1235
原创 go json.Marshal序列化/解析失败的一种情况
读取mysql返回struct体数据printf时可以打印通过json解析一直为空经过多方测试发现是struct内部变量命名时被写成了小写开头猜测:go定义内部变量/函数时,小写开头为私有,大写开头为公有,print不受影响,但调用受影响...
2019-10-22 15:33:42
2335
原创 go:cannot find main module;see 'go help modules'报错无法运行
新入手go,一通乱七八糟设置被坑以后,突然无法编译gogo:cannot find main module;see 'go help modules'经过几天的摸索,最终发现了问题所在go modules导致如果你确定你需要此功能cd进入项目目录输入go mod init或在上层目录输入go mod init project_name如果你不知道这是什么,方法...
2019-09-12 07:09:26
27650
9
原创 ubuntu18 usb网卡网速只有10M解决方法
手上有个win10平板,经折腾,刷成了ubuntu18,但自带的wifi经千辛万苦驱动起来后,内网ping值高达200+,遂购买usb网卡一张,ping值降到2以内,可以接受,但是网速只有10m,无法接受一.修改网卡参数1.1 查询网卡名ip addr或ifconfig均可xue@xue-EZpad6:~$ ip addr2: enx00e04c3603d8: <BROA...
2019-06-25 14:51:29
5882
原创 python3 AttributeError: module 'string' has no attribute 'uppercase'
string.lowercasestring.uppercase均已取消使用string.ascii_upperrcasestring.ascii_lowercase替代
2019-06-08 02:39:53
3274
2
原创 python3 PIL提示TypeError: string argument expected, got 'bytes'
用BytesIO替代StringIO即可解决问题from io import BytesIOout = BytesIO()image.save(out, format='JPEG')
2019-06-08 02:34:50
2906
1
转载 基于python3.x,使用Tornado中的torndb模块操作数据库
转载自https://www.cnblogs.com/venz-seventeen/p/7818806.html目前Tornado中的torndb模块是不支持python3.x,所以需要修改部分torndb源码即可正常使用已修改文件下载网址:https://download.csdn.net/download/mr_oldcold/111901131、开发环境介绍操作系统:win1...
2019-05-19 18:24:49
857
原创 lua require绝对路径文件时 module not found解决方法
lua进行require绝对路径时,会从package.path中进行遍历print(package.path)会得到类似下面的结果:--> "lualibs/p4ulibs/?.lua;lualibs/?.lua;lualibs/?/?.lua;lualibs/?/init.lua;"故我们可以通过对package.path修改, 来让lua对我们的个人路径进行包含 假...
2018-12-23 01:58:21
21594
3
转载 Lua调试:getinfo详解
转载自:https://www.cnblogs.com/heyongqi/p/6816274.html getinfo是调试Lua程序时一个很重要很常见的函数,主要用于获取函数调用的基本信息。这个函数的难点在于各个参数的含义。下面一一介绍。一、函数简介:1.原型:getinfo(level, arg)2.调用:debug.getinfo(level, arg)3.返回值:返回...
2018-12-23 01:51:25
10411
转载 使用WMIC永久设置你的环境变量
转载自https://www.cnblogs.com/killerlegend/p/3405484.html以下为正文关于wmic,引用一下这位哥们儿的话http://technet.microsoft.com/en-us/library/bb742610.aspx:WMIC扩展WMI(Windows Management Instrumentation,Windows管理规范),提供...
2018-12-19 14:53:47
1755
转载 LuaAuxLib 按键精灵lua库
基本命令触摸命令KeyPress --(virtual_key, 0)=KeyPress --(virtual_key, 1)=KeyDown --(virtual_key, 2)=KeyUpSwipe --(x1,y1,x2,y2,time)=Swipe...
2018-11-21 19:07:21
9517
1
原创 (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on
访问redis报错127.0.0.1:6379> spop test(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Pl...
2018-11-04 00:13:36
414
原创 ubuntu安装mysql并开启远程接入设置密码
安装sudo apt install mysql-server开启远程接入vim /etc/mysql/mysql.conf.d/mysqld.cnf找到bind-address注销本地进入mysql输入下面三句sqluse mysql;update user set host = '%' where user = 'root';flush privileges;完成...
2018-07-13 10:19:10
330
原创 ubuntu16 安装redis并开启远程接入
安装sudo apt install redis-server开启远程接入sudo vim/etc/redis/redis.conf找到bind 127.0.0.1注销代码#bind 127.0.0.1保存退出sudo /etc/init.d/redis-server restart完成
2018-07-13 10:13:06
1240
EasyClick易点云测安卓/IOS脱机版 http远程调试内网穿透工具,即开即用
2023-02-04
Notepad++二进制/16进制显示插件HexEditor
2016-11-05
仿mac的dock条,非常好用
2018-08-15
回收站去除WPS"找回清空的文件"标志批处理
2016-11-18
python3.x的torndb.py
2019-05-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅