Rhino,Nashorn(在 Java 15 已经不可用了)
分类:work
免费开源可商用CMS系统推荐
RK3399配置build.prop
准备
1.启动root模式
adb root
2.重新挂载文件系统
adb remount
3.拷贝文件
adb pull /system/build.prop
修改
1.修改硬件屏幕方向
ro.sf.hwrotation=0
2.修改屏幕分辨率
persist.sys.framebuffer.main=1920×1080
3.隐藏虚拟按键
qemu.hw.mainkeys=1
配置
1.覆盖文件
adb push build.prop /system
参考链接:
【转】[RK3399—Android7.1] 默认屏幕显示方向
转载自:[RK3399—Android7.1] 默认屏幕显示方向
/system/build.prop
文件中 ro.sf.hwrotation=0
这里可以90、180、270
修改后同步,重启,可调整默认旋转方向。
镜像直接默认修改:device/rockchip/rk3399/build.prop 中 ro.sf.hwrotation=0 属性
NFC之PN532使用
1.唤醒PN532:
PC->PN532: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 03 fd d4 14 01 17 00 PN532->PC: 00 00 FF 00 FF 00 00 00 FF 02 FE D5 15 16 00
2.获取卡UID,也就是卡的唯一ID号,全球就这一个(理论上)
PC->PN532: 00 00 FF 04 FC D4 4A 02 00 E0 00
匹配手机号码及运营商校验
JAVA合并多个byte[]为一个byte[]
private static byte[] byteMergerAll(byte[]... args) { int length_byte = 0; for (byte[] b : args) { length_byte += b.length; } byte[] all_byte = new byte[length_byte]; int countLength = 0; for (byte[] b : args) { System.arraycopy(b, 0, all_byte, countLength, b.length); countLength += b.length; } return all_byte; }
参考链接:
SOCKET通信
CRC算法相关资料
树莓派相关网站
安装vim编辑器 sudo apt-get install vim
编辑文件 /etc/dhcpcd.conf,在文件末尾增加 interface wlan0 inform 192.168.2.188
sudo apt-get install android-tools-adb
sudo systemctl enable ssh sudo systemctl start ssh