Skip to content

Commit 54a712e

Browse files
committed
update
1 parent 2841c37 commit 54a712e

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ Read the [NOTICE](./NOTICE) file distributed with this work for additional infor
344344
- [EMMC](hardware/emmc.md)
345345
- [固件 (Firmware)](hardware/firmware.md)
346346
- [Home Assistant](hardware/home-assistant.md)
347+
- [红外测温仪](hardware/ir-thermometer.md)
347348
- [ET X08 鼠标](hardware/mouse-et-x08.md)
348349
- [网件 R6900 刷梅林固件](hardware/netgear-R6900-asuswrt-merlin.md)
349350
- [网络交换机](hardware/network-switch.md)
@@ -469,6 +470,7 @@ Read the [NOTICE](./NOTICE) file distributed with this work for additional infor
469470
- [用环境变量替换文本内容 envsubst](linux/envsubst.md)
470471
- [exfat](linux/exfat.md)
471472
- [ExtFS (Extended File System)](linux/ext-fs.md)
473+
- [fakeroot](linux/fakeroot.md)
472474
- [快速删除文件](linux/fast-delete-files.md)
473475
- [快速创建大文件](linux/fast-generate-large-file.md)
474476
- [快速删文件](linux/fast-remove-files.md)
@@ -614,6 +616,7 @@ Read the [NOTICE](./NOTICE) file distributed with this work for additional infor
614616

615617
- [lua 没有 continue 关键字](lua/continue.md)
616618
- [lua 错误处理](lua/error.md)
619+
- [lua 正则](lua/regex.md)
617620

618621
[`⬆ 返回目录`](#toc)
619622

@@ -797,6 +800,7 @@ Read the [NOTICE](./NOTICE) file distributed with this work for additional infor
797800
- [堆外内存](others/off-heap-memory.md)
798801
- [原码, 反码, 补码](others/one_complement-and-two_complement.md)
799802
- [如何打开超大文件](others/open-huge-file-with-editor.md)
803+
- [Ubnt EdgeRouter X (er-x) 刷 OpenWRT](others/openwrt-with-ubnt-edgerouter-x.md)
800804
- [Protocol Buffers](others/protocal-buffers.md)
801805
- [正则表达式的小技巧](others/regexp-tricks.md)
802806
- [Markdown 里写反引号](others/reverse-quote-in-markdown.md)

hardware/ir-thermometer.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# 红外测温仪
2+
3+
## 电烙铁测温不准
4+
5+
我使用优利德 UTI260B 测温发现,即使我将电烙铁的设置温度在 350 度,测温仪显示烙铁头温度最高在 170 度左右。
6+
7+
后来发现是热成像仪的设置问题。有两个原因:
8+
9+
1. 发射率设置不对,我的设置发射率是 1.0 就太高了。电烙铁应该在 0.5~0.7
10+
2. UTI260B 有个测温挡位的设置,「高增益」对应 15°C~150°C,「低增益」对应 150°C~550°C。我的设置是高增益,所以温度上不去。
11+
12+
## 红外测温常见物体发射率对照表
13+
14+
发射率与红外光谱带宽相关,
15+
根据 [UTI260B 使用手册](https://meters.uni-trend.com.cn/static/upload/file/20240131/1706670652432702.pdf)可知它的红外光谱带宽:8~14µm
16+
17+
- [福禄克知识中心 - 红外发射率 — 金属](https://www.flukeprocessinstruments.com.cn/cn/service-and-support/knowledge-center/infrared-technology/irt/%E5%8F%91%E5%B0%84%E7%8E%87-%E9%87%91%E5%B1%9E)
18+
- [福禄克知识中心 - 红外发射率 — 非金属](https://www.flukeprocessinstruments.com.cn/cn/service-and-support/knowledge-center/infrared-technology/irt/%E5%8F%91%E5%B0%84%E7%8E%87-%E9%9D%9E%E9%87%91%E5%B1%9E)
19+
20+
| 材料名称 | 规格 | 发射率 |
21+
|----------|--------------|-----------|
22+
|| 氧化 | 0.20-0.40 |
23+
|| 抛光 | 0.02-0.04 |
24+
|| 氧化 | 0.40-0.80 |
25+
|| 抛光 | 0.02-0.05 |
26+
| 人体皮肤 | | 0.98 |
27+
| 石墨 | 氧化 | 0.20-0.60 |
28+
| 塑胶 | 透明度>0.5mm | 0.95 |
29+
| 塑胶 | | 0.85-0.95 |
30+
| 橡胶 | | 0.95 |
31+
| 黄金 | | 0.01-0.10 |
32+
|| 氧化 | 0.60-0.09 |
33+
|| 氧化 | 0.70-0.90 |
34+
| 混凝土 | | 0.95 |
35+
| 石棉 | | 0.95 |
36+
| 水泥 | | 0.96 |
37+
| 石膏 | | 0.80-0.90 |
38+
| 土壤 | | 0.90-0.98 |
39+
| 沥青 | | 0.95 |
40+
| 灰泥 | | 0.89-0.91 |
41+
| 陶器 | | 0.95 |
42+
|| | 0.93-0.96 |
43+
| 木材 | | 0.90-0.95 |
44+
| 木炭 | 粉末 | 0.96 |
45+
| 大理石 | | 0.94 |
46+
| 纺织品 | | 0.90 |
47+
| 漆器 | | 0.80-0.95 |
48+
| 漆器 | 无光泽 | 0.97 |
49+
|| 颜色 | 0.94 |
50+
| 碳胶 | | 0.90 |
51+
| 沙子 | | 0.90 |
52+
| 肥皂泡 | | 0.75-0.80 |
53+
| 泥土 | | 0.92-0.96 |
54+
|| | 0.93 |
55+
| 沙砾 | 餐具 | 0.95 |
56+
|| | 0.83-0.90 |
57+
| 玻璃 | | 0.85-0.92 |
58+
|| | 0.96-0.98 |
59+
| 纺织品 | | 0.95 |

lua/regex.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# lua 正则
2+
3+
## 问题:无法匹配带有 - 的文本
4+
5+
例子
6+
7+
```lua
8+
s='neo-tree filesystem'
9+
s.find('^neo-tree') -- 返回 nil
10+
```
11+
12+
这是因为 [6.4.1 – Patterns](https://www.lua.org/manual/5.4/manual.html#6.4.1) 记录着:
13+
14+
> a single character class followed by '-', which also matches sequences of zero or more characters in the class. Unlike '*', these repetition items will always match the shortest possible sequence;
15+
16+
所以 `-` 是特殊字符,如果要匹配文本 `-`,就需要转义,用 `%-` 去匹配文本 `-`
17+
18+
```lua
19+
s='neo-tree filesystem'
20+
s.find('^neo%-tree') -- 返回 1 8
21+
```

0 commit comments

Comments
 (0)