vault backup: 2023-12-12 22:50:33

This commit is contained in:
grabbit 2023-12-12 22:50:33 +08:00
parent 9c1831729d
commit 84c697c0f9
3 changed files with 60 additions and 7 deletions

View File

@ -1 +1 @@
{"history":{"2023-07-28":{"words":5,"characters":54,"sentences":0,"pages":0,"files":5,"footnotes":0,"citations":0,"totalWords":673,"totalCharacters":4463,"totalSentences":28,"totalFootnotes":1628,"totalCitations":1628,"totalPages":2.1999999999999997},"2023-07-29":{"words":327,"characters":1836,"sentences":2,"pages":1.1,"files":9,"footnotes":0,"citations":0,"totalWords":1082,"totalCharacters":10236,"totalSentences":35,"totalFootnotes":0,"totalCitations":0,"totalPages":3.5},"2023-07-30":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-08-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2672,"totalCharacters":43999,"totalSentences":37,"totalFootnotes":0,"totalCitations":0,"totalPages":8.8},"2023-08-19":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-09-03":{"words":500,"characters":1088,"sentences":23,"pages":1.7,"files":11,"footnotes":0,"citations":0,"totalWords":3049,"totalCharacters":44853,"totalSentences":59,"totalFootnotes":31924,"totalCitations":31924,"totalPages":10.099999999999994},"2023-09-05":{"words":5,"characters":10,"sentences":0,"pages":0,"files":11,"footnotes":0,"citations":0,"totalWords":3054,"totalCharacters":44863,"totalSentences":59,"totalFootnotes":504,"totalCitations":504,"totalPages":10.100000000000001},"2023-09-09":{"words":3801,"characters":5678,"sentences":65,"pages":12.7,"files":16,"footnotes":0,"citations":0,"totalWords":7695,"totalCharacters":58444,"totalSentences":135,"totalFootnotes":0,"totalCitations":0,"totalPages":25.599999999999998},"2023-09-10":{"words":64,"characters":114,"sentences":2,"pages":0.19999999999999996,"files":17,"footnotes":0,"citations":0,"totalWords":7916,"totalCharacters":63690,"totalSentences":137,"totalFootnotes":6481,"totalCitations":6481,"totalPages":26.3},"2023-10-25":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7918,"totalCharacters":65864,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-11-22":{"words":0,"characters":0,"sentences":0,"pages":0,"files":17,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63694,"totalSentences":138,"totalFootnotes":135,"totalCitations":135,"totalPages":26.3},"2023-12-06":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63693,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3}},"modifiedFiles":{}}
{"history":{"2023-07-28":{"words":5,"characters":54,"sentences":0,"pages":0,"files":5,"footnotes":0,"citations":0,"totalWords":673,"totalCharacters":4463,"totalSentences":28,"totalFootnotes":1628,"totalCitations":1628,"totalPages":2.1999999999999997},"2023-07-29":{"words":327,"characters":1836,"sentences":2,"pages":1.1,"files":9,"footnotes":0,"citations":0,"totalWords":1082,"totalCharacters":10236,"totalSentences":35,"totalFootnotes":0,"totalCitations":0,"totalPages":3.5},"2023-07-30":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-08-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2672,"totalCharacters":43999,"totalSentences":37,"totalFootnotes":0,"totalCitations":0,"totalPages":8.8},"2023-08-19":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-09-03":{"words":500,"characters":1088,"sentences":23,"pages":1.7,"files":11,"footnotes":0,"citations":0,"totalWords":3049,"totalCharacters":44853,"totalSentences":59,"totalFootnotes":31924,"totalCitations":31924,"totalPages":10.099999999999994},"2023-09-05":{"words":5,"characters":10,"sentences":0,"pages":0,"files":11,"footnotes":0,"citations":0,"totalWords":3054,"totalCharacters":44863,"totalSentences":59,"totalFootnotes":504,"totalCitations":504,"totalPages":10.100000000000001},"2023-09-09":{"words":3801,"characters":5678,"sentences":65,"pages":12.7,"files":16,"footnotes":0,"citations":0,"totalWords":7695,"totalCharacters":58444,"totalSentences":135,"totalFootnotes":0,"totalCitations":0,"totalPages":25.599999999999998},"2023-09-10":{"words":64,"characters":114,"sentences":2,"pages":0.19999999999999996,"files":17,"footnotes":0,"citations":0,"totalWords":7916,"totalCharacters":63690,"totalSentences":137,"totalFootnotes":6481,"totalCitations":6481,"totalPages":26.3},"2023-10-25":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7918,"totalCharacters":65864,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-11-22":{"words":0,"characters":0,"sentences":0,"pages":0,"files":17,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63694,"totalSentences":138,"totalFootnotes":135,"totalCitations":135,"totalPages":26.3},"2023-12-06":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63693,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-12-12":{"words":54,"characters":209,"sentences":0,"pages":0.19999999999999996,"files":18,"footnotes":0,"citations":0,"totalWords":7971,"totalCharacters":63902,"totalSentences":138,"totalFootnotes":88,"totalCitations":88,"totalPages":26.5}},"modifiedFiles":{"Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md":{"words":{"initial":450,"current":504},"characters":{"initial":810,"current":1019},"sentences":{"initial":8,"current":8},"footnotes":{"initial":0,"current":0},"citations":{"initial":0,"current":0},"pages":{"initial":1.5,"current":1.7}}}}

View File

@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md",
"file": "Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md",
"mode": "source",
"backlinks": true,
"source": false
@ -94,7 +94,7 @@
"state": {
"type": "backlink",
"state": {
"file": "Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md",
"file": "Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -111,7 +111,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md",
"file": "Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -134,7 +134,7 @@
"state": {
"type": "outline",
"state": {
"file": "Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md"
"file": "Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md"
}
}
},
@ -191,6 +191,9 @@
},
"active": "3dfbffaec95c55c7",
"lastOpenFiles": [
"Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md",
"Projects - rabbit's/software/meteor capture/software/infra/FourFrameFormat文件协议.md",
"Projects - rabbit's/software/meteor capture/software/infra",
"Projects - rabbit's/software/meteor capture/2.功能分析.md",
"Projects - rabbit's/software/meteor capture/software/client side/流程图.excalidraw.md",
"Projects - rabbit's/software/meteor capture/software/client side/流程图.excalidraw.svg",
@ -201,7 +204,6 @@
"Excalidraw/Drawing 2023-07-29 01.06.32.excalidraw.md",
"Excalidraw/Drawing 2023-07-29 01.06.32.excalidraw.svg",
"Projects - rabbit's/software/ncmdump/ncmdump.md",
"Projects - rabbit's/software/meteor capture/1.流星抓拍、分析.md",
"system - misc/attachments/Pasted Image 20230729215310_475.png",
"system - misc/attachments/45830979-6430-45AD-B8C4-87E631DC49CC_1_105_c.jpeg",
"README.md",
@ -220,7 +222,6 @@
"learn/computer science/opencv/opencv3/学习OpenCV3.pdf",
"learn/computer science/opencv/opencv3/Drawing 2023-08-19 14.52.01.excalidraw.md",
"learn/computer science/opencv/opencv3/学习OpenCV3.md",
"learn/computer science/统计数据会说谎 ([美]达莱尔·哈夫) (Z-Library).epub",
"Projects - rabbit's/hardware/硬盘背板/硬盘背板PCB设计.md",
"learn/computer science/统计数据会说谎 ([美]达莱尔·哈夫) (Z-Library).md",
"Projects - rabbit's/software/HomeLab/异地组网-网络架构.md",

View File

@ -0,0 +1,52 @@
为确保文件头部的扩展性和通用性,可以采取以下设计策略:
### 1. 可扩展的魔数/文件标识符
- 使用一个独特的字节序列来标识文件类型,这可以帮助快速识别文件格式。
- 例如:`[0x4D, 0x54, 0x52, 0x4F]`(代表"Meteor Observation Data"的ASCII码
### 2. 版本号
- 包含主版本号和次版本号,以支持未来格式的改进和向后兼容性。
- 例如:`version_major: u16`, `version_minor: u16`
### 3. 动态头部大小
- 头部大小字段应指明头部的总字节长度,包括所有固定和可变长度的部分。
- 这允许头部结构随时间增长,而不会破坏旧版本的解析器。
### 4. 元信息字段
- 使用键值对结构来存储元信息,这样可以在不更改文件格式的情况下添加新的信息。
- 例如:`metadata: HashMap<String, String>`
### 5. 数据描述符
- 在头部中包含描述数据部分的字段,如数据类型、长度和格式。
- 例如:`data_descriptor: Vec<DataDescriptor>`
### 6. 可选字段
- 对于不是每次都需要的信息(例如特定设备信息或详细的环境数据),将其作为可选字段。
- 例如:`optional_fields: HashMap<String, OptionalField>`
### 7. 预留空间
- 在文件头部预留一定空间,以便未来添加新字段时可以使用。
- 例如:`reserved_space: [u8; 128]`
### 示例结构(伪代码)
文件头部 {
魔数: [u8; 4]
版本号: { 主版本号: u16, 次版本号: u16 }
头部大小: u32
元信息字段: HashMap<String, String>
数据描述符: Vec<DataDescriptor>
可选字段: HashMap<String, OptionalField>
预留空间: [u8; 128]
}
这种设计提供了足够的灵活性来适应未来可能的变化,同时保持了与旧版本的兼容性。通过使用动态大小的字段和键值对结构,可以在不更改整体文件格式的情况下轻松地扩展文件头部。