QML调用C++程序

摘要: QML调用C++程序 1. 添加C++,MouseMemory文件(.h,.cpp) 2. 在main.cpp文件添加, qmlRegisterType<MouseMemory>("MouseMemory",1,0,"MouseMemory"); #第一个MouseMemory 为C++类型,第二个 阅读全文
posted @ 2023-02-20 08:30 少杨 阅读(61) 评论(0) 推荐(0)

制作docker php5.6的镜像

摘要: docker pull centos Docker run -it --name="centos-test" centos yum install wget # 报错在后面有处理的方法 https://lnmp.org/ lnmp环境安装 wget http://soft.vpser.net/lnm 阅读全文
posted @ 2023-01-19 17:11 少杨 阅读(225) 评论(0) 推荐(0)

android studio 导出 release aar

摘要: 阅读全文
posted @ 2022-10-14 18:05 少杨 阅读(42) 评论(0) 推荐(0)

TPM 2.0 - could not load "libtss2-tcti-tabrmd.so.0"

摘要: 报错: TPM 2.0 - could not load "libtss2-tcti-tabrmd.so.0" 解决:sudo apt install libtss2-tcti-tabrmd0 阅读全文
posted @ 2022-07-14 13:31 少杨 阅读(1055) 评论(0) 推荐(0)

linux 网络操作 route iptables ufw

摘要: linux 网络操作 route iptables ufw sudo ufw status sudo ufw allow ssh sudo ufw allow http sudo ufw deny http sudo ufw disable/enable 网关操作 route add default 阅读全文
posted @ 2022-07-07 22:25 少杨 阅读(95) 评论(0) 推荐(0)

redis geo 做距离计算排序分页

摘要: redis geo 做距离计算排序分页 // 添加经纬度和店铺id geoadd store_list lng lat store_id 计算距离排序和生成临时文件 georadius store_list lng lat 100000000 m storedist store_tmp 获取分页 Z 阅读全文
posted @ 2022-04-20 22:29 少杨 阅读(887) 评论(0) 推荐(0)

微信h5支付报错 商家参数格式有误,请联系商家解决

摘要: 商家参数格式有误,请联系商家解决 当前调起H5支付的referer为空导致,一般是因为直接访问页面调起H5支付,请按正常流程进行页面跳转后发起支付,或自行抓包确认referer值是否为空 解决:就把 H5支付链接 加到 a href 上,点击就可以测试支付了 来源:https://blog.csdn 阅读全文
posted @ 2022-04-07 11:53 少杨 阅读(1441) 评论(0) 推荐(0)

Mac下Virtual Box 6.1 Host-Only 网络配置 没有虚拟网卡

摘要: Virtual Box 6.1 mac下 Virtual Box Host-Only 没有 vboxnet0 点击 tools -> 右边的三杆,点 Network 可以添加,修改,删除 虚拟网卡 阅读全文
posted @ 2022-03-12 16:51 少杨 阅读(164) 评论(0) 推荐(0)

VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory.

摘要: macOS VirtualBox Bridged Adapter 不能用 I'm running macOS High Sierra 10.13.1 and VirtualBox 5.2.2. This worked for me: Grant permission to VirtualBox un 阅读全文
posted @ 2021-10-28 14:46 少杨 阅读(1051) 评论(0) 推荐(0)

H5点击复制到粘贴板

摘要: H5点击复制到粘贴板 功能场景 h5页面需要点击复制内容,到手机的粘贴板。 运用插件clipboard 插件下载地址:clipboard官网 插件使用 //html部分 <div class="btn">点我复制</div> <input id="title1" type="text" value= 阅读全文
posted @ 2021-08-20 20:58 少杨 阅读(570) 评论(0) 推荐(0)