学习笔记
王老急888
这个作者很懒,什么都没留下…
展开
-
chalk 5.x版本导致webpack打包backend报错
webpack打包backend报错,查了一下是chalk升级了最新版本5.2.0。然后再重新安装4.x最新版本。原创 2022-12-15 16:26:40 · 569 阅读 · 2 评论 -
BarTender,女子车欠亻牛!
可以通过Print portal打印,BarTender,女子车欠亻牛!可以通过rest api。原创 2022-10-11 20:48:39 · 238 阅读 · 0 评论 -
在raspberry上装ubuntu
用micro HDMI转HDMI线连接显示器。将TF卡插入Raspberry TF卡槽。4g,准备安装一个ubuntu玩玩。将鼠标、键盘的USB接头插入USB口。Type-C电源适配器接入电源。原创 2022-08-26 18:54:28 · 368 阅读 · 0 评论 -
macOS上安装nrfutil
在mac上安装nrfutilmacOS版本已经为12.4的Monterey显示python版本为3.10.5。参考文档:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_intro.html执行命令貌似OK了原创 2022-07-08 14:12:19 · 448 阅读 · 0 评论 -
QPE API主要接口简介
获取标签数据getTagData (QPE 7.0 or higher){ "code":"0", "status":"Ok", "command":"http://192.168.100.6:8080/qpe/getTagData", "message":"Tag data", "responseTS":1646620578061, "version":"1.0", "formatId":"defaultLocationAndInfo", "format原创 2022-03-07 10:41:57 · 361 阅读 · 0 评论 -
Nginx学习笔记
Nginx ifhttps://nginx.org/en/docs/http/ngx_http_rewrite_module.html#ifa variable name; false if the value of a variable is an empty string or “0”;Before version 1.0.1, any string starting with “0” was considered a false value.comparison of a variable原创 2022-02-13 21:39:10 · 1005 阅读 · 0 评论 -
macOS安装python 3
访问https://www.python.org/downloads/macos/,我的MPB是intel CPU,点击macOS 64-bit universal2 installer下载。下载完成直接安装pkg。前一段时间装的,没怎么用。今天一下发现不工作?搜了一下说是macOS升级把python 2删掉了。本人macOS当前Monterey。打开输入命令:注意:是python3不是python哦!新建一个。新建一个执行...原创 2022-01-27 19:00:24 · 1272 阅读 · 0 评论 -
LandingSite eTag Biscuit 1核芯固件升级指南
本文主要介绍COREAIOT版本固件的LandingSite eTag Biscuit 1的升级方法。进入DFU状态通过CCS打开CCS,信标列表、工作模式,选择要升级的标签,发送消息,消息内容:ff 01 00 00通过程序发送const COREAIOT_DFU = { value: 255, ext: [1, 0, 0]};通过nRF Connect升级参考。根据LS_DFU关键字过滤。选择要你的固件。升级。测试验证http://192.168.100.7:444原创 2022-01-27 15:41:11 · 320 阅读 · 0 评论 -
[Hello Quuppa] 从云端下载项目文件
一般情况下,LandingSite已经帮你分配了从云服务下载项目文件打开QSP,选择下拉菜单Project -> Download porject from cloud。登录输入Username(用户名)、Password(密码),2-factor auth code(验证码)留空,点击Retrieve project infos。你会看到很多条项目信息,在Filter by输入关键字,例如project key的后4位,就可以看到对应你的project key的项目文件。选择你的p原创 2022-01-24 12:26:58 · 310 阅读 · 0 评论 -
HP LaserJet MFP M132snw打印机配置
HP从https://support.hp.com/cn-zh/drivers/selfservice/hp-laserjet-pro-mfp-m132-series/9365375/model/12088984下载安装 HP Easy Start原创 2022-01-19 17:40:40 · 1493 阅读 · 0 评论 -
LandingSite wxTag
LandingSite wxTag#mermaid-svg-yEQMPFM8FAqbCpAu .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-yEQMPFM8FAqbCpAu .label text{fill:#333}#mermaid-svg-yEQMPFM8FAqbCpAu .node rect,#merm原创 2022-01-18 23:51:55 · 458 阅读 · 0 评论 -
升级macOS Monterey后git出错
升级了macOS Monterey后发现git clone不能用了?通过git --version命令,报错xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun。原创 2022-01-18 23:20:57 · 1395 阅读 · 3 评论 -
微信小程序上线笔记
微信小程序入口https://mp.weixin.qq.com/。一个邮箱绑定一个微信小程序?解绑还要对公转账?小程序调用的接口必须是HTTPS,并且设置白名单。版本要先上传,提交审核,好在审核比较快,我当日下午1点提交,5点就通知审核通过了。...原创 2022-01-18 13:32:01 · 158 阅读 · 0 评论 -
微信小程序开发笔记
./utils/async.jsconst wxLogin = async function (code) { return new Promise((resolve, reject) => { wx.login({ success(resp) { resolve(resp.code) }, fail: reject }) })}const w原创 2022-01-14 17:05:52 · 329 阅读 · 0 评论 -
Quuppa offline
Offlinehttps://quuppa.com/product-documentation/manuals/q/QPE/topics/offline_module_update.html原创 2022-01-12 14:17:27 · 81 阅读 · 0 评论 -
Smartphone Navigation
Smartphone NavigationApp or Wechat mini-program.#mermaid-svg-CX2wFmGfAKJcxNGK .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-CX2wFmGfAKJcxNGK .label text{fill:#333}#mermaid-svg-C原创 2022-01-12 11:50:06 · 177 阅读 · 0 评论 -
Upload QPE data to cloud
DataSender & DataReceiverDataSender (“DS”) and DataReceiver (“DR”) are a pair of modules to upload QPE data to cloud.#mermaid-svg-JeVgdt9mDorL27hd .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;colo原创 2022-01-11 12:34:07 · 457 阅读 · 0 评论 -
jwt axios client and koa server
client (axios)yarn add jsonwebtokenSample codeimport axios from 'axios';import jwt from 'jsonwebtoken';const dataReceiver = axios.create({ baseURL: 'http://localhost:3200/', timeout: 3 * 1000,});const secret = 'your_secret';// Add a request原创 2022-01-11 01:25:11 · 253 阅读 · 0 评论 -
BLE AoA Location System Cxmparation (Quuppa v.s. COREAIOT)
BLE AoA Location System Comparison (Quuppa v.s. COREAIOT)Both Quuppa Intelligent Location System (“QILS”) and COREAIOT system are made of three parts, locators, positioning engine and tags.ModuleQUUPPACOREAIOTPosition EngineQPE[1]CLE[2]Lo原创 2022-01-06 15:39:37 · 345 阅读 · 0 评论 -
[vuetify] 失去焦点时将文本框格式化
失去焦点时格式化时间到HH:mm格式。<template> <v-text-field label="Clock Out at" v-model="clockOutAt" @blur="formatTime" /></template><script>const TIME_REGEX = /^(\d+):(\d+)$/;export default { methods: { formatTime(e) { let el =原创 2022-01-03 22:14:08 · 598 阅读 · 0 评论 -
阿里云ECS上用docker容器启动nginx
阿里云上安装docker、docker-compose并用docker容器启动nginx。安装docker官方文档参考https://docs.docker.com/engine/install/ubuntu/安装docker-compose官方文档参考https://docs.docker.com/compose/install/。sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-com原创 2022-01-02 23:19:20 · 1175 阅读 · 0 评论 -
阿里云SSH远程登录
阿里云免费试用ECS一个月的服务,整一个试一下。购买过程几乎是一键创建,在实例里可以看到已经创建好的实例。第一个问题?登录密码是啥?操作中,没有任何一个地方提示设密码?猜了一下,要先创建安全组先(实践证明,是的)。创建,绑定,然后自动下载一个x.pem文件。(后面查阅官方文档,官方建议将x.pem放到~/.ssh目录。)然后迫不及待打开Terminal,执行命令ssh -i xxx.pem root@x.x.x.x报错.pem太too open。通过以下命令让.pem文件不那么open。c原创 2022-01-02 20:51:04 · 660 阅读 · 0 评论 -
Vuetity水平垂直居中
Vuetify水平垂直居中,通过v-layout、v-flex以及v-container的fill-height属性。<template> <v-container class="fill-height"> <v-layout align-center align-content-center> <v-flex> <v-container> <v-row class="text-原创 2021-12-31 22:36:56 · 1425 阅读 · 0 评论 -
LandingSite Smartools password reset
Visit the URL below in browser:http://localhost/api/backend/password/yourpassword{ "code":0, "message":"OK", "password":{ "salt":"8O5ax1E", "encrypted":"6507cd41df36680b25f2775dbc48ef67cbbc4def" }}Execute the SQL in adminerupdate Users set pa原创 2021-12-31 14:02:07 · 2518 阅读 · 0 评论 -
Nordic nRF52832申报要素
国内芯片短缺,只好从海外进口一批Nordic Semiconductor的nRF52832芯片。申报要素不知道怎么填写,根据老师的建议,最终按照以下要素申报:--品牌类型境外品牌出口享惠情况不适用于进口报关单用途用于主动式电子标签的主控芯片功能蓝牙信号发送与接收以及信号控制是否封装封装是否蚀刻蚀刻是否切割切割品牌Nordic/北欧半导体型号nRF52832-QFAA-R是否量产否海关代码:HS code:原创 2021-12-28 17:27:20 · 2623 阅读 · 0 评论 -
核芯物联Command ‘cle‘ not found错误处理
核芯CoreAIOT CLE设备错误。Command ‘cle’ not found先要sudo su切换到root用户,然后再执行。sudo su# enter pwd# ...cle service start ./xxx.cpa原创 2021-12-27 12:03:43 · 176 阅读 · 0 评论 -
QPE 7.x Troubleshooting
QPE 7.x Troubleshooting点击Do file sync按钮,执行文件同步时,报错:The projectKey has no license or Qxx locators with subscription(s)貌似是QSP 7.x的bug,需要先在QSP通过Set ID manually手工设定Locator ID。QSP操作完成需要Save并且Submit。然后QPE再做Do file sync。...原创 2021-12-21 19:23:45 · 102 阅读 · 0 评论 -
Quuppa Q17基站蓝灯闪烁故障处理
Quuppa LD-6L或Q17 Locator指示灯蓝灯闪烁表示Locator在Deployment模式。可以通过QPE界面查看QPE模式。Deployment模式截图Tracking模式如果QPE里设置的是Tracking,仍有部分Locator是蓝灯闪烁,可能是基站被移动过,系统自动将Locator设置为Deployment。重新校准,或者可以通过命令将基站设为Tracking模式。http://qpe:8080/qpe/setLocatorMode?mode=track&loc原创 2021-12-09 11:49:11 · 626 阅读 · 3 评论 -
Koa, Koa-static, Koa-views, pug, materialize
写了一个生成license模块,包括前端和后端,不想前后端分离两个模块,最终采用以下技术实现。koakoa-routerkoa-bodykoa-statickoa-viewspugMaterializeStepscd ~/Workspacemkdir helloworldcd helloworldyarn inityarn add koayarn add @koa/routeryarn add koa-viewsyarn add koa-staticyarn add k原创 2021-12-04 02:19:16 · 364 阅读 · 0 评论 -
LandingSite eTags Comparison
LandingSite eTagNameModelDimensionsWeight(g)Description[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-G48EUSfx-1638188926283)(http://mail.landingsite.cn/attachment/download_docstore?fileID=b651a4cb-4515-4f40-ba3d-c9ddaec33127#pic_center)]Biscu原创 2021-11-29 20:29:31 · 267 阅读 · 0 评论 -
Quuppa在线文档链接
Q17 Locator安装文档原创 2021-11-29 10:32:04 · 249 阅读 · 0 评论 -
核心物联蓝牙AoA基站常见故障排查
首先看灯如果灯不亮,请检查供电。如果是PoE供电,检查PoE网线。*如果是Mini USB供电,检查USB供电线。如果灯亮,参考以下表格:指示灯状态说明绿色快闪启动中红色快闪未获取IP地址绿色慢闪已获取IP地址绿色常亮工作中...原创 2021-11-27 22:13:58 · 450 阅读 · 0 评论 -
Set Quuppa Locators to Fixed IP address (with DHCP server)
Set Quuppa Locators to Fixed IP addressBy default, the Quuppa locators use dynamic IP address assigned by DHCP server.But in some cases, it is required to set them to fixed IP address for some reasons.Followed are the instructions of set Quuppa locators原创 2021-11-22 15:39:27 · 1820 阅读 · 0 评论 -
Excel Date与JavaScript Date之间的转换
Excel Datehttps://support.microsoft.com/en-us/office/date-systems-in-excel-e7fe7167-48a9-4b96-bb53-5612a800b487Excel Date to Javascript Dateclass DateFormat { static parseXSLTDate(d) { return new Date((d - 25569) * 86400000); }}export default原创 2021-10-21 23:26:42 · 387 阅读 · 0 评论 -
上海社保金额精确计算公式
公司的社保金额用自己的excel表格拉出来的数值总是与税务局的《社会保险费缴纳通知书》不一致,网上搜了半天,没有说的清楚的。几个所谓社保计算器,计算的都不对。目前积累的经验:公司单位缴纳除了“工伤保险费”部分外“四舍五入”到“角”,工伤保险费“见分进角”。个人缴纳部分“见分进角”。“四舍五入”到“角”公式为ROUND(a1,1),“见分进角”公式ROUNDUP(ROUNDDOWN(A1, 2), 1)。...原创 2021-11-14 14:09:59 · 1893 阅读 · 0 评论 -
eCard JW-C1809A固件升级步骤
需要设备:LD-6L Locator(NOT a Focusing Locator!)USB升压线笔记本电脑一台(本文用Macbook Pro)TP-Link AC设置TP-Link AC浏览器访问[http://192.168.1.1]进入TP-Link AC管理界面,输入管理密码后进入管理配置界面。LAN端口设置将AC的LAN端口设为手工,IP地址192.168.100.1。修改后路由器会重启。DHCP服务器开启DHCP,将地址池开始地址设为192.168.100.150,结束原创 2021-11-09 16:20:21 · 605 阅读 · 0 评论 -
Hello, Sequelize
Order.js static associate() { //this.hasMany(Invoice); this.belongsTo(Party, { foreignKey: 'party1', as: 'p1' }); this.belongsTo(Party, { foreignKey: 'party2', as: 'p2' }); }Party.js static associate() { //this.hasMany(Order, { as:原创 2021-10-21 01:33:27 · 121 阅读 · 0 评论 -
通过Vue-CLI添加Vuetifyjs CSS不生效
通过vue-cli创建的vue项目,yarn build后,通过nginx提供服务,vuetify的css死活无法加载,这个问题困扰了我两天!Nginx配置worker_processes 1;events { worker_connections 10240;}http { include /usr/local/etc/nginx/mime.types; default_type application/octet-stream; server {原创 2021-10-19 02:34:56 · 1455 阅读 · 0 评论 -
Hello,Vuex!
store/index.jsimport Vue from 'vue';import Vuex from 'vuex';import backend from '../axios/backend';Vue.use(Vuex);export default new Vuex.Store({ state: { latestYear: 2020, }, mutations: { latestYearUpdated(state, y) { state.lates原创 2021-10-18 16:53:02 · 76 阅读 · 0 评论 -
Hello, Vue CLI
See https://cli.vuejs.org/zh/.vue.config.jsmodule.exports = { assetsDir: 'src/assets', transpileDependencies: ['vuetify', 'vue-echarts', 'resize-detector'], pages: { index: { entry: 'src/main.js', title: 'Your Title Here', },原创 2021-10-16 22:54:11 · 71 阅读 · 0 评论