Update docs and sort content
BIN
public/mdImages/IMG-20250104114645360.png
Normal file
After Width: | Height: | Size: 198 KiB |
BIN
public/mdImages/IMG-20250104114645478.gif
Normal file
After Width: | Height: | Size: 5.2 MiB |
BIN
public/mdImages/IMG-20250104114646165.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
public/mdImages/IMG-20250104114646168.png
Normal file
After Width: | Height: | Size: 352 KiB |
BIN
public/mdImages/IMG-20250104114646194.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
public/mdImages/IMG-20250104114646201.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
public/mdImages/IMG-20250104114646207.png
Normal file
After Width: | Height: | Size: 260 KiB |
BIN
public/mdImages/IMG-20250104114646390.png
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
public/mdImages/IMG-20250104114646393.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
public/mdImages/IMG-20250104114646397.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
public/mdImages/IMG-20250104114646406.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
public/mdImages/IMG-20250104114646408.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
public/mdImages/IMG-20250104114646412.png
Normal file
After Width: | Height: | Size: 310 KiB |
BIN
public/mdImages/IMG-20250104114646414.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
public/mdImages/IMG-20250104114646416.png
Normal file
After Width: | Height: | Size: 319 KiB |
BIN
public/mdImages/IMG-20250104114646427.png
Normal file
After Width: | Height: | Size: 620 KiB |
BIN
public/mdImages/IMG-20250104114646433.png
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
public/mdImages/IMG-20250104114647084.png
Normal file
After Width: | Height: | Size: 230 KiB |
BIN
public/mdImages/IMG-20250104114647089.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
public/mdImages/IMG-20250104114647134.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
public/mdImages/IMG-20250104114647137.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
1
public/mdImages/IMG-20250104114647138.svg
Normal file
After Width: | Height: | Size: 166 KiB |
BIN
public/mdImages/IMG-20250104114650176.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
public/mdImages/IMG-20250104114650568.png
Normal file
After Width: | Height: | Size: 222 KiB |
BIN
public/mdImages/IMG-20250104114651080.png
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
public/mdImages/IMG-20250104114651984.png
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
public/mdImages/IMG-20250104114652496.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
public/mdImages/IMG-20250104114718280.pdf
Normal file
BIN
public/mdImages/IMG-20250104114718484.pdf
Normal file
BIN
public/mdImages/IMG-6A0336B734F0EE31210D7823E19C9BC2.png
Normal file
After Width: | Height: | Size: 160 KiB |
BIN
public/mdImages/IMG-E0E27B1E55C89D98FD34F1BF53CD0C65.png
Normal file
After Width: | Height: | Size: 11 KiB |
56
src/content/note/141.环形链表.md
Normal file
@ -0,0 +1,56 @@
|
||||
---
|
||||
title: 141.环形链表
|
||||
date: 2023-09-12T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 算法
|
||||
- 链表
|
||||
- leetcode
|
||||
platform: leetcode
|
||||
number: 141
|
||||
leetcode-url: 'https://leetcode.cn/problems/linked-list-cycle/'
|
||||
toAstro: true
|
||||
slug: 141-ring-chained-tables
|
||||
description: >-
|
||||
该内容描述了一个用于检测链表中是否存在环的算法。算法通过使用两个指针,一个慢指针和一个快指针,在链表中移动。如果链表中存在环,快指针最终会追上慢指针;否则,快指针会先到达链表的末尾。算法首先检查链表的头节点是否为空或其下一个节点是否为空,如果是,则返回false,表示没有环。然后,算法进入一个循环,每次循环中慢指针前进一步,快指针前进两步。如果快指针变为null或其下一个节点为null,则返回false,表示没有环。如果循环中快指针与慢指针相遇,则返回true,表示链表中存在环。
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
---
|
||||
|
||||
# 141.环形链表
|
||||
|
||||
```ts
|
||||
/*
|
||||
* @lc app=leetcode.cn id=141 lang=typescript
|
||||
*
|
||||
* [141] 环形链表
|
||||
*/
|
||||
|
||||
// @lc code=start
|
||||
/**
|
||||
* Definition for singly-linked list.
|
||||
* class ListNode {
|
||||
* val: number
|
||||
* next: ListNode | null
|
||||
* constructor(val?: number, next?: ListNode | null) {
|
||||
* this.val = (val===undefined ? 0 : val)
|
||||
* this.next = (next===undefined ? null : next)
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
||||
function hasCycle(head: ListNode | null): boolean {
|
||||
if (head === null || head.next === null) return false
|
||||
let slow = head
|
||||
let fast = head.next
|
||||
while (slow !== fast) {
|
||||
if (fast === null || fast.next === null) return false
|
||||
slow = slow.next
|
||||
fast = fast.next.next
|
||||
}
|
||||
return true
|
||||
}
|
||||
// @lc code=end
|
||||
```
|
||||
|
||||

|
16
src/content/note/142.环形链表-ii.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: 142.环形链表-ii
|
||||
date: 2023-09-13T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 算法
|
||||
platform: leetcode
|
||||
leetcode-url: 'https://leetcode.cn/problems/linked-list-cycle-ii/description/'
|
||||
toAstro: true
|
||||
slug: 142-ring-linked-tables-ii
|
||||
description: 题目“142.环形链表-ii”指的是一个关于数据结构中环形链表的问题,特别是针对环形链表中特定节点的查找或操作问题。
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
---
|
||||
|
||||
# 142.环形链表 -ii
|
@ -1,19 +1,17 @@
|
||||
---
|
||||
title: 2023-02-11 星期六
|
||||
title: '2023-02-11'
|
||||
slug: diary-2023-02-11
|
||||
date: 2023-02-11T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
2023年2月11日星期六,菜单包括外婆菜炒蛋搭配土豆箜饭,饮料为冰糖加柠檬片。当天的计划包括使用tailwind编写样式,学习Photoshop或Figma操作以制作视频封面模板,以及进行AI
|
||||
Hanser的相关工作。
|
||||
rinId: 22
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-02-11 星期六
|
||||
|
23
src/content/note/2023-02-21.md
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
title: '2023-02-21'
|
||||
slug: diary-2023-02-21
|
||||
date: 2023-02-21T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
description: >-
|
||||
在2023年2月21日的内容中,讨论了数组元素索引为何从0开始编号的问题。根据地址计算公式,索引实际上代表了内存地址的偏移量,首个元素的地址偏移量为0,因此索引从0开始是合理的。文章中还提供了一张图示,进一步解释了这一概念。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-02-21 星期二
|
||||
|
||||
## 数组
|
||||
|
||||
[4.1. 数组(Array) - Hello 算法 (hello-algo.com)](<https://www.hello-algo.com/chapter_array_and_linkedlist/array/#411>)
|
||||
**为什么数组元素索引从 0 开始编号?** 根据地址计算公式,**索引本质上表示的是内存地址偏移量**,首个元素的地址偏移量是 0 ,那么索引是 0 也就很自然了。
|
||||
|
||||

|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2023-09-08 星期五
|
||||
title: '2023-09-08'
|
||||
slug: diary-2023-09-08
|
||||
date: 2023-09-08T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
@ -7,13 +7,11 @@ tags:
|
||||
- 日记
|
||||
- 歌词
|
||||
- hanser
|
||||
published: true
|
||||
description: 2023年9月8日星期五的记录中提到了一段关于直播的内容,强调不需要背负任何负担,只需带着空行囊和彼此即可。
|
||||
rinId: 24
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-08 星期五
|
||||
|
@ -1,17 +1,15 @@
|
||||
---
|
||||
title: 2023-09-09 星期六
|
||||
title: '2023-09-09'
|
||||
slug: diary-2023-09-09
|
||||
date: 2023-09-09T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 2023年9月9日星期六的日程安排包括已完成的项目升级和游泳,以及待完成的nextjs+node运行时脚本测试。
|
||||
rinId: 25
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-09 星期六
|
||||
|
@ -1,18 +1,16 @@
|
||||
---
|
||||
title: 2023-09-10 星期日
|
||||
title: '2023-09-10'
|
||||
slug: diary-2023-09-10
|
||||
date: 2023-09-10T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
2023年9月10日,某博客讨论了其支持的模板语法,指出虽然功能丰富,但使用起来感觉不够灵活且学习成本较高。文章中提出疑问,低代码是否是一种高效但可能过于简化的编程方式。
|
||||
rinId: 26
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-10 星期日
|
||||
|
@ -1,19 +1,17 @@
|
||||
---
|
||||
title: 2023-09-12 星期二
|
||||
title: '2023-09-12'
|
||||
slug: diary-2023-09-12
|
||||
date: 2023-09-12T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
- 健身
|
||||
published: true
|
||||
description: >-
|
||||
今天的任务包括完成多项链表相关的编程题目,其中已完成的有“86.分隔链表”和“141.环形链表”,未完成的有“142.环形链表-ii”和“160.相交链表”。此外,已完成的任务还包括在Obsidian中链接外部代码文件。健身方面,进行了跑步、椭圆机和器械锻炼,并计划下次带拖鞋以便洗完澡后直接穿回家。
|
||||
rinId: 27
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-12 星期二
|
||||
@ -24,9 +22,9 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
## 今天要做的事情
|
||||
|
||||
- [ ] 刷题回顾
|
||||
- [x] [86.分隔链表](https://notes.kazoottt.top/03-领域/编程/算法/记录/86.分隔链表)
|
||||
- [x] [141.环形链表](https://notes.kazoottt.top/03-领域/编程/算法/记录/141.环形链表)
|
||||
- [ ] [142.环形链表-ii](https://notes.kazoottt.top/03-领域/编程/算法/记录/142.环形链表-ii)
|
||||
- [x] [86.分隔链表](/notes/86-separated-chained-tables)
|
||||
- [x] [141.环形链表](/notes/141-ring-chained-tables)
|
||||
- [ ] [142.环形链表-ii](/notes/142-ring-linked-tables-ii)
|
||||
- [ ] [[160.相交链表]]
|
||||
- [x] [[obsidian链接外部代码文件]]
|
||||
|
||||
|
@ -1,12 +1,11 @@
|
||||
---
|
||||
title: 2023-09-13 星期三
|
||||
title: '2023-09-13'
|
||||
slug: diary-2023-09-13
|
||||
date: 2023-09-13T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
- todo
|
||||
published: true
|
||||
description: >-
|
||||
On September 13, 2023, the individual focused on several tasks including
|
||||
reviewing coding problems, specifically completing the "141.环形链表" and planning
|
||||
@ -24,7 +23,7 @@ description: >-
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-13 星期三
|
||||
@ -35,19 +34,19 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
## 今天要做的事情
|
||||
|
||||
- [ ] 刷题回顾
|
||||
- [x] [141.环形链表](https://notes.kazoottt.top/03-领域/编程/算法/记录/141.环形链表)
|
||||
- [ ] [142.环形链表-ii](https://notes.kazoottt.top/03-领域/编程/算法/记录/142.环形链表-ii)
|
||||
- [x] [141.环形链表](/notes/141-ring-chained-tables)
|
||||
- [ ] [142.环形链表-ii](/notes/142-ring-linked-tables-ii)
|
||||
- [ ] [[160.相交链表]]
|
||||
|
||||
## 打卡
|
||||
|
||||
wakatime 数据:
|
||||

|
||||

|
||||
|
||||
## React-noiton-x
|
||||
|
||||
今天一直在看 react-noiton-x 的问题,因为博客里依赖了这个库的搜索接口,而该接口虽然在源代码里更新了,但是最新一次打包是二月份
|
||||

|
||||

|
||||
|
||||
所以尝试自己从源代码打包一份,然后新发一个版本给自己使用。
|
||||
|
||||
@ -64,12 +63,12 @@ wakatime 数据:
|
||||
|
||||
然后继续折腾了一下博客,接入了 sentry,
|
||||
之前的 giscus 评论区的样式是比较怪异的(即使切换了主题,背景色还是白色),今天做成适配的了。不过这个切换有些生硬,后续要加个过渡
|
||||

|
||||

|
||||
|
||||
## 健身
|
||||
|
||||
状态不好,没去健身房,在家踩了椭圆机,3-11 档阻力交叉 30 分钟
|
||||
|
||||
=、= 感觉该换手表了,突然发现这个手表表盘市场都不兼容了
|
||||

|
||||

|
||||

|
||||

|
||||
|
@ -1,18 +1,17 @@
|
||||
---
|
||||
title: 2023-09-14 星期四
|
||||
title: '2023-09-14'
|
||||
slug: diary-2023-09-14
|
||||
date: 2023-09-14T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
今天是2023年9月14日,星期四。今天的计划包括打卡和健身。健身内容包括跑步20分钟和使用器械30分钟,虽然9点去健身房时间有点紧张。此外,已经下单了一款新手表,预计下周五到货。感觉自己的背部似乎直了一些。还提到了一种快速获取telegram
|
||||
chatId并实现消息通知的方法。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-14 星期四
|
||||
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-09-15 星期五
|
||||
title: '2023-09-15'
|
||||
slug: diary-2023-09-15
|
||||
date: 2023-09-15T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 2023年9月15日星期五的日程包括修复notion-blog中vercel og的问题,并进行打卡记录。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-15 星期五
|
||||
@ -22,4 +21,4 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 打卡
|
||||
|
||||
[修复了notion-blog中vercel og的问题](https://notes.kazoottt.top/05-临时/01-草稿箱/修复了notion-blog中vercel og的问题)
|
||||
[修复了notion-blog中vercel og的问题](/notes/fixed-issue-with-vercel-og-in-notion-blog)
|
||||
|
@ -1,18 +1,17 @@
|
||||
---
|
||||
title: 2023-09-17 星期日
|
||||
title: '2023-09-17'
|
||||
slug: diary-2023-09-17
|
||||
date: 2023-09-17T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
- 健身
|
||||
published: true
|
||||
description: >-
|
||||
2023年9月17日,个人日记记录了当天的活动和任务。白天主要在休息,晚上进行了健身活动,包括30分钟的椭圆机训练和30分钟的器械训练。健身后回家泡脚,并在此期间编写了一个油猴脚本,用于直播间管理增强,已完成弹窗样式修改和response拦截及第一页数据填充,后续计划实现滚动加载后的数据填充。此外,还记录了两个待处理的事项:屏蔽推特黄推和使用shot.so进行图片美化。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-17 星期日
|
||||
@ -32,7 +31,7 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
一边泡脚一边写了一个油猴脚本,具体如下。
|
||||
|
||||
[直播间管理增强脚本](https://notes.kazoottt.top/05-临时/01-草稿箱/直播间管理增强脚本)
|
||||
[直播间管理增强脚本](/notes/live-streaming-room-management-enhancement-script)
|
||||
今日完成:
|
||||
|
||||
弹窗样式修改
|
||||
@ -40,7 +39,7 @@ response 拦截 + 第一页数据填充
|
||||
后面要做的事:
|
||||
|
||||
实现滚动加载后,填充对应的数据
|
||||

|
||||

|
||||
|
||||
## Inbox
|
||||
|
||||
|
@ -1,12 +1,11 @@
|
||||
---
|
||||
title: 2023-09-24 星期日
|
||||
title: '2023-09-24'
|
||||
slug: diary-2023-09-24
|
||||
date: 2023-09-24T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
- 翻译
|
||||
published: true
|
||||
description: >-
|
||||
今天的任务包括翻译YouTube视频《Monorepos - How the Pros Scale Huge Software Projects //
|
||||
Turborepo vs
|
||||
@ -14,7 +13,7 @@ description: >-
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-09-24 星期日
|
||||
@ -26,6 +25,6 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 打卡
|
||||
|
||||
[Monorepos - How the Pros Scale Huge Software Projects // Turborepo vs Nx](https://www.youtube.com/watch?v=9iU_IE6vnJ8) 的翻译然后 [投稿](https://www.bilibili.com/video/BV1uz4y1V7cb/?spm_id_from=..search-card.all.click&vd_source=729e6f70ca3cee328ccece68cb2bbd30)
|
||||
[Monorepos - How the Pros Scale Huge Software Projects // Turborepo vs Nx](<https://www.youtube.com/watch?v=9iU_IE6vnJ8>) 的翻译然后 [投稿](<https://www.bilibili.com/video/BV1uz4y1V7cb/?spm_id_from=..search-card.all.click&vd_source=729e6f70ca3cee328ccece68cb2bbd30>)
|
||||
|
||||
## Inbox
|
||||
|
@ -1,17 +1,16 @@
|
||||
---
|
||||
title: 2023-10-06 星期五
|
||||
title: '2023-10-06'
|
||||
slug: diary-2023-10-06
|
||||
date: 2023-10-06T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
今天的任务包括给手表充电和录制关于如何使用MessAuto和iMessage实现iPhone和mac信息同步及自动复制验证码的视频,并计划将视频发布到B站和小红书上。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-06 星期五
|
||||
|
26
src/content/note/2023-10-07.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: '2023-10-07'
|
||||
slug: diary-2023-10-07
|
||||
date: 2023-10-07T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
description: 2023年10月7日星期六的计划包括国庆期间的厦门和杭州旅行,以及当天的打卡和待办事项。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-07 星期六
|
||||
|
||||
<!-- start of weread -->
|
||||
<!-- end of weread -->
|
||||
|
||||
## 今天要做的事情
|
||||
|
||||
[2023 国庆厦门和杭州之行](/posts/national-day-trip-to-xiamen-and-hangzhoupicture-bed-version)
|
||||
|
||||
## 打卡
|
||||
|
||||
## Inbox
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-10-10 星期二
|
||||
title: '2023-10-10'
|
||||
slug: diary-2023-10-10
|
||||
date: 2023-10-10T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 今天的计划包括阅读vite文档,并进行打卡和处理inbox事项。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-10 星期二
|
||||
@ -20,7 +19,7 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 今天要做的事情
|
||||
|
||||
[从零开始阅读vite文档](https://notes.kazoottt.top/05-临时/01-草稿箱/从零开始阅读vite文档)
|
||||
[从零开始阅读vite文档](/notes/reading-vite-documentation-from-scratch)
|
||||
|
||||
## 打卡
|
||||
|
||||
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-10-18 星期三
|
||||
title: '2023-10-18'
|
||||
slug: diary-2023-10-18
|
||||
date: 2023-10-18T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 今天的日程包括图片上传测试和打卡活动,同时有一个待处理的inbox事项。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-18 星期三
|
||||
|
26
src/content/note/2023-10-19.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: '2023-10-19'
|
||||
slug: diary-2023-10-19
|
||||
date: 2023-10-19T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
description: 2023年10月19日星期四的日程包括发布xlsx util工具包,该工具能够根据输入的列索引返回如A、B等实际列名。此外,还包括打卡和处理inbox事项。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-19 星期四
|
||||
|
||||
<!-- start of weread -->
|
||||
<!-- end of weread -->
|
||||
|
||||
## 今天要做的事情
|
||||
|
||||
xlsx util 发包,实现输入列的索引,输出 A B 这样真实的列名
|
||||
|
||||
## 打卡
|
||||
|
||||
## Inbox
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-10-21 星期六
|
||||
title: '2023-10-21'
|
||||
slug: diary-2023-10-21
|
||||
date: 2023-10-21T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 2023年10月21日星期六的日程安排包括打卡和处理inbox事务。具体打卡内容通过一张图片展示,而inbox的具体内容未详细说明。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-21 星期六
|
||||
@ -22,6 +21,6 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 打卡
|
||||
|
||||

|
||||

|
||||
|
||||
## Inbox
|
||||
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-10-22 星期日
|
||||
title: '2023-10-22'
|
||||
slug: diary-2023-10-22
|
||||
date: 2023-10-22T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 今天的计划包括防抖技术的学习和打卡任务,同时还有待处理的邮件。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-22 星期日
|
||||
@ -20,7 +19,7 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 今天要做的事情
|
||||
|
||||
[防抖](https://notes.kazoottt.top/05-临时/01-草稿箱/防抖)
|
||||
[防抖](/notes/anti-shake)
|
||||
|
||||
## 打卡
|
||||
|
||||
|
28
src/content/note/2023-10-28.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: '2023-10-28'
|
||||
slug: diary-2023-10-28
|
||||
date: 2023-10-28T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
description: >-
|
||||
Today's schedule includes learning from the dom-to-image topic, with a note on
|
||||
weread content in the inbox.
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-10-28 星期六
|
||||
|
||||
## 今天要做的事情
|
||||
|
||||
[What I learn from dom-to-image](/notes/what-i-learn-from-dom-to-image)
|
||||
|
||||
## 打卡
|
||||
|
||||
## Inbox
|
||||
|
||||
<!-- start of weread -->
|
||||
<!-- end of weread -->
|
@ -1,16 +1,15 @@
|
||||
---
|
||||
title: 2023-11-06 星期一
|
||||
title: '2023-11-06'
|
||||
slug: diary-2023-11-06
|
||||
date: 2023-11-06T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: 2023年11月6日,星期一,记录了当天的打卡情况,显示Wakatime的使用时间较长,给人留下了深刻印象。此外,还提到了inbox,但未详细说明内容。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-11-06 星期一
|
||||
@ -19,7 +18,7 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
## 打卡
|
||||
|
||||

|
||||

|
||||
今天的 wakatime 有点恐怖了
|
||||
|
||||
## Inbox
|
||||
|
@ -1,18 +1,17 @@
|
||||
---
|
||||
title: 2023-11-16 星期四
|
||||
title: '2023-11-16'
|
||||
slug: diary-2023-11-16
|
||||
date: 2023-11-16T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
今天是2023年11月16日,星期四。今天的主要任务是开始学习web3,特别是参加了一个名为solidity_bootcamp的在线课程,该课程由open
|
||||
build提供。此外,还记录了学习笔记,但具体内容未在提供的材料中详细说明。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-11-16 星期四
|
||||
@ -23,7 +22,7 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
开始学习 web3,上周报名的 open build 的 solidity_bootcamp 开营了。
|
||||
|
||||
[solidity_bootcamp学习笔记](https://notes.kazoottt.top/03-领域/编程/web3/solidity_bootcamp学习笔记)
|
||||
[solidity_bootcamp学习笔记](/notes/soliditybootcamp-study-notes)
|
||||
|
||||
## Inbox
|
||||
|
||||
|
@ -1,17 +1,16 @@
|
||||
---
|
||||
title: 2023-11-17 星期五
|
||||
title: '2023-11-17'
|
||||
slug: diary-2023-11-17
|
||||
date: 2023-11-17T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
published: true
|
||||
description: >-
|
||||
今天的任务清单中,已完成的是下午去办理港澳通行证,而未完成的是准备公司评级的材料和学习web3基础知识。此外,今天的日程中还包括打卡和查看inbox,但没有具体的事项列出。
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 2023-11-17 星期五
|
||||
|
32
src/content/note/2024-03-05 刷题.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
description: >-
|
||||
内容中提到了两个编程问题及其相关注意事项。首先,对于“两数之和”问题,指出了在JavaScript代码中,如果`numberToIndexMap[targetNumber]`的值为0时,使用`!==
|
||||
undefined`进行判断可能会导致错误的结果,建议使用`in`操作符来检查对象属性是否存在。其次,提到了“删除有序数组中的重复项”问题,强调了需要原地删除重复元素,即不使用额外的空间。
|
||||
slug: 2024-03-05-brush-questions
|
||||
toAstro: true
|
||||
date: 2024-07-11T02:17:53.454Z
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
title: 2024-03-05 刷题
|
||||
---
|
||||
|
||||
# 2024-03-05 刷题
|
||||
|
||||
需要注意的是
|
||||
|
||||
[1. 两数之和](<https://leetcode.cn/problems/two-sum/>)
|
||||
|
||||
```js
|
||||
if (numberToIndexMap[targetNumber] !== undefined) {
|
||||
const targetNumberIndex = numberToIndexMap[targetNumber]
|
||||
return [targetNumberIndex, i]
|
||||
}
|
||||
```
|
||||
|
||||
这里的写法,如果 `numberToIndexMap[targetNumber] = 0` 的话, if 也会判断为 false,所以不能这么写。
|
||||
|
||||
要么写成 `numberToIndexMap[targetNumber] !== undefined` 要么写成 `if (targetNumber in numberToIndexMap)`
|
||||
|
||||
[26. 删除有序数组中的重复项](<https://leetcode.cn/problems/remove-duplicates-from-sorted-array/>)
|
||||
|
||||
请你 **[原地](<http://baike.baidu.com/item/%E5%8E%9F%E5%9C%B0%E7%AE%97%E6%B3%95>)** 删除重复出现的元素
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-03-05 星期二
|
||||
title: '2024-03-05'
|
||||
slug: diary-2024-03-05
|
||||
date: 2024-03-05T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
@ -8,22 +8,21 @@ tags:
|
||||
description: >-
|
||||
今天的主要任务包括完成Python学习至day15和刷题,已完成的任务有Python学习和刷题。未完成的任务包括整理周一和周二的资讯、进行多线程批量测试、解决Python的AttributeError问题以及JetBrains
|
||||
IDE的terminal无法打开问题。此外,还帮助前部门面试了一位前端候选人。明天计划继续处理未完成的任务,并记录了2024年3月5日的文件路径信息。
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 今天要做的事情
|
||||
|
||||
- [x] python 看到 day15 [python100 1-15](https://notes.kazoottt.top/03-领域/编程/后端/python/python100 1-15)
|
||||
- [x] python 看到 day15 [python100 1-15](/notes/learn-python)
|
||||
- [x] 刷题
|
||||
- [ ] 整理周一和周二的资讯
|
||||
- [ ] 多线程批量跑测试
|
||||
- [ ] [[AttributeError module 'select' has no attribute 'epoll']]
|
||||
- [ ] [[jerbrains的ide打不开terminal]]
|
||||
- [ ] [2024-03-05 刷题](https://notes.kazoottt.top/03-领域/编程/算法/记录/2024-03-05 刷题)
|
||||
- [ ] [2024-03-05 刷题](/notes/2024-03-05-brush-questions)
|
||||
|
||||
# 打卡
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-03-06 星期三
|
||||
title: '2024-03-06'
|
||||
slug: diary-2024-03-06
|
||||
date: 2024-03-06T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
@ -9,11 +9,10 @@ description: >-
|
||||
今天的工作主要集中在解决错误和提交代码上,成功地向autogen和notionnext提交了pull
|
||||
request,其中autogen的请求已被合并。同时,开通了notion
|
||||
ai,并迁移了部分本地内容到博客上。此外,收到了购买的时尚小物品,感到非常满意。遗憾的是,今天没有进行学习和刷题。计划早点休息,为明天做准备。
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
# 今天要做的事情
|
||||
@ -30,11 +29,11 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
买的时尚小垃圾到了,挺喜欢的。
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
今天的不足之处是没有学习也没有刷题。
|
||||
|
||||
|
@ -11,7 +11,6 @@ date_modified: 2025-02-19T13:08:36.000Z
|
||||
title: 2024-10-21 11分17秒 使用飞书来记账
|
||||
date: 2025-02-19T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
published: true
|
||||
toAstro: true
|
||||
astroType: null
|
||||
category: 碎片
|
||||
|
@ -11,7 +11,6 @@ date_modified: 2025-02-19T13:09:10.000Z
|
||||
title: 2024-10-25 13分02秒 Vintage Camera Lab
|
||||
date: 2025-02-16T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
published: true
|
||||
toAstro: true
|
||||
astroType: null
|
||||
category: 碎片
|
||||
|
@ -13,7 +13,6 @@ date_modified: 2025-02-19T13:08:11.000Z
|
||||
title: 2024-10-25 13分11秒 Tapedeck
|
||||
date: 2024-10-25T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
published: true
|
||||
toAstro: true
|
||||
astroType: null
|
||||
category: 碎片
|
||||
|
@ -9,7 +9,6 @@ date_modified: 2025-02-19T13:11:13.000Z
|
||||
title: 2024-10-28 18分05秒 craft收费
|
||||
date: 2025-02-19T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
published: true
|
||||
toAstro: true
|
||||
astroType: null
|
||||
category: 碎片
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-11-26 星期二
|
||||
title: '2024-11-26'
|
||||
slug: diary-2024-11-26
|
||||
date: 2024-11-26T00:00:00.000Z
|
||||
day_of_week: 星期二
|
||||
@ -11,11 +11,10 @@ tags:
|
||||
description: >-
|
||||
今天是milklove宣布二搭、三搭的日子。根据截图,牛奶爱情已经发展到了很幸福的阶段。有许多视频和 GIFs
|
||||
表示了他们之间的亲密度和甜蜜。虽然没有具体详细信息,但可以看出这对人是非常恩爱的。在这里汇总了一些关键的视频和截图,展示了milklove的幸福感和关怀。
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
很幸福的一天,今天是 milklove 宣布二搭、三搭的日子。
|
||||
@ -24,32 +23,32 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
在这里汇总一下今天的一些视频。
|
||||
|
||||
[截修](https://weibo.com/7101901680/P28tdryDc#comment)
|
||||
[截修](<https://weibo.com/7101901680/P28tdryDc#comment>)
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
[幸福的具象化](https://weibo.com/6083416567/P28jkx9MS#comment)
|
||||
[幸福的具象化](<https://weibo.com/6083416567/P28jkx9MS#comment>)
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
[girl rule cut](https://weibo.com/1750538651/P27NfAOja#comment)
|
||||
[girl rule cut](<https://weibo.com/1750538651/P27NfAOja#comment>)
|
||||
|
||||
[亲亲](https://weibo.com/1825971940/P288xfVxF#comment)
|
||||
[亲亲](<https://weibo.com/1825971940/P288xfVxF#comment>)
|
||||
|
||||

|
||||

|
||||
|
||||
[二搭 预告片 婉司姬](https://weibo.com/1753015991/P27pq9oJU#comment)
|
||||
[二搭 预告片 婉司姬](<https://weibo.com/1753015991/P27pq9oJU#comment>)
|
||||
|
||||

|
||||

|
||||
|
||||
[二搭 预告片 弯弯字幕组](https://weibo.com/7392264056/P27lQtUnd#comment)
|
||||
[二搭 预告片 弯弯字幕组](<https://weibo.com/7392264056/P27lQtUnd#comment>)
|
||||
|
||||

|
||||

|
||||
|
||||
[Findwichh推介会汇总](https://weibo.com/6613951279/P29c7fgx9#comment)
|
||||
[Findwichh推介会汇总](<https://weibo.com/6613951279/P29c7fgx9#comment>)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-11-27 星期三
|
||||
title: '2024-11-27'
|
||||
slug: diary-2024-11-27
|
||||
date: 2024-11-27T00:00:00.000Z
|
||||
day_of_week: 星期三
|
||||
@ -10,28 +10,27 @@ description: >-
|
||||
windsurf 赠送了试用的天数,个人发现 windsurf 的 cursor 自动补全速度比其他软件快且更智能。然而,volview 中的 store
|
||||
信息难以理解,而 Crop2D.vue 的文件内容未能解释明了。此外,安装 canvas 时遇到错误,需要参考 node-canvas 的 Windows
|
||||
安装指导解决问题。
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
windsurf 赠送了试用的天数
|
||||
|
||||

|
||||

|
||||
|
||||
个人感觉 cursor 的自动补全速度比 windsurf 快和智能很多
|
||||
|
||||
volview 也这么多 store,谁能看懂...
|
||||
|
||||

|
||||

|
||||
|
||||
`src\components\tools\crop\Crop2D.vue`
|
||||
|
||||
啥意思
|
||||
|
||||

|
||||

|
||||
|
||||
安装 canvas 的时候报错:
|
||||
|
||||
@ -41,4 +40,4 @@ error C1083: 无法打开包括文件: “cairo.h”: No such file or directory
|
||||
|
||||
解决方法:
|
||||
|
||||
[Installation: Windows · Automattic/node-canvas Wiki · GitHub](https://github.com/Automattic/node-canvas/wiki/Installation:-Windows)
|
||||
[Installation: Windows · Automattic/node-canvas Wiki · GitHub](<https://github.com/Automattic/node-canvas/wiki/Installation:-Windows>)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-11-28 星期四
|
||||
title: '2024-11-28'
|
||||
slug: diary-2024-11-28
|
||||
date: 2024-11-28T00:00:00.000Z
|
||||
day_of_week: 星期四
|
||||
@ -11,14 +11,13 @@ description: >-
|
||||
Configure Runtime
|
||||
Arguments",然后添加“disable-hardware-acceleration”:true,实验发现它确实有助于提高工作效率。但是,如果你的
|
||||
SonarLint 占用内存过高,就会导致卡顿问题。此外,你还遇到了 vite-plugin-checker 的错误,解决方法是安装或重新安装 uv。
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
[x.com](https://x.com/vikingmute/status/1858781019492790315)
|
||||
[x.com](<https://x.com/vikingmute/status/1858781019492790315>)
|
||||
|
||||
```
|
||||
打开这个禁止硬件加速的选项可以让 VSCode 快很多倍,Cusror 这种基于 VSCode 的也可以,不知道什么原理,应该是针对低端显卡或者集成显卡的机器比较有效?但是我试了一下确实感觉快了一些,我是 M3 的 macbook,大家可以试试看效果怎样?
|
||||
@ -33,7 +32,7 @@ SonarLint 内存占用高,卡顿
|
||||
|
||||
---
|
||||
|
||||
[vite-tsconfig-paths](https://www.npmjs.com/package/vite-tsconfig-paths#vite-tsconfig-paths) 踩坑
|
||||
[vite-tsconfig-paths](<https://www.npmjs.com/package/vite-tsconfig-paths#vite-tsconfig-paths>) 踩坑
|
||||
|
||||
```
|
||||
error when starting dev server:
|
||||
@ -49,9 +48,9 @@ Ensure the project either has "type": "module" set or that the Vite config is re
|
||||
|
||||
# Claude MCP can't connect to SQLite MCP serve
|
||||
|
||||

|
||||

|
||||
|
||||
[Reddit - Dive into anything](https://www.reddit.com/r/ClaudeAI/comments/1h0my0y/comment/lz5w7ar/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)
|
||||
[Reddit - Dive into anything](<https://www.reddit.com/r/ClaudeAI/comments/1h0my0y/comment/lz5w7ar/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button>)
|
||||
|
||||
解决方法:install or reinstall uv
|
||||
|
||||
@ -65,8 +64,8 @@ brew install uv
|
||||
|
||||
我怎么这么久了才开始玩(谢谢酱紫表的安利)
|
||||
|
||||

|
||||

|
||||
|
||||
[GitHub - ollama/ollama: Get up and running with Llama 3.2, Mistral, Gemma 2, and other large language models.](https://github.com/ollama/ollama?tab=readme-ov-file)
|
||||
[GitHub - ollama/ollama: Get up and running with Llama 3.2, Mistral, Gemma 2, and other large language models.](<https://github.com/ollama/ollama?tab=readme-ov-file>)
|
||||
|
||||
[GitHub - AugustDev/enchanted: Enchanted is iOS and macOS app for chatting with private self hosted language models such as Llama2, Mistral or Vicuna using Ollama.](https://github.com/AugustDev/enchanted)
|
||||
[GitHub - AugustDev/enchanted: Enchanted is iOS and macOS app for chatting with private self hosted language models such as Llama2, Mistral or Vicuna using Ollama.](<https://github.com/AugustDev/enchanted>)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-11-29 星期五
|
||||
title: '2024-11-29'
|
||||
date: 2024-11-29T00:00:00.000Z
|
||||
day_of_week: 星期五
|
||||
author: KazooTTT
|
||||
@ -13,15 +13,14 @@ description: >-
|
||||
在使用ECharts时,Canvas和SVG两个渲染器的选择主要取决于软硬件环境、数据量和功能需求。在需要优化性能的问题场景下,尝试结合实验来确定使用哪种渲-render器更合适。
|
||||
只有在你熟悉用canvas手搓图表时,你才能在网页上创建这种图。 最近的工作包括编辑器图片上传重构、移动端应用程序的开发以及学习VTK和图形学。
|
||||
slug: diary-2024-11-29
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
qube 如何集成到 github:
|
||||
[GitHub Integration | Mapping your organization into SonarQube - YouTube](https://www.youtube.com/watch?v=6zvBuZr8CeI)
|
||||
[GitHub Integration | Mapping your organization into SonarQube - YouTube](<https://www.youtube.com/watch?v=6zvBuZr8CeI>)
|
||||
|
||||
Image HTTP code 409 is in use. Delete the container that's using it and try again.
|
||||
先删除 container 再删除 volume
|
||||
@ -32,25 +31,25 @@ Image HTTP code 409 is in use. Delete the container that's using it and try agai
|
||||
|
||||
windows 有没有像 macos 一样的窗口管理工具,loop raycast 之类的
|
||||
|
||||
[Adobe Express](https://new.express.adobe.com/tools/convert-to-svg)
|
||||
[Adobe Express](<https://new.express.adobe.com/tools/convert-to-svg>)
|
||||
|
||||
covnert image to svg (需要登录)
|
||||
|
||||

|
||||

|
||||
|
||||
[Canvas vs. SVG - 最佳实践 - 使用手册 - Apache ECharts](https://echarts.apache.org/handbook/zh/best-practices/canvas-vs-svg/)
|
||||
[Canvas vs. SVG - 最佳实践 - 使用手册 - Apache ECharts](<https://echarts.apache.org/handbook/zh/best-practices/canvas-vs-svg/>)
|
||||
|
||||
> [!note]
|
||||
> 选择哪种渲染器,我们可以根据软硬件环境、数据量、功能需求综合考虑。
|
||||
>
|
||||
> - 在软硬件环境较好,数据量不大的场景下,两种渲染器都可以适用,并不需要太多纠结。
|
||||
> - 在环境较差,出现性能问题需要优化的场景下,可以通过试验来确定使用哪种渲染器。比如有这些经验:
|
||||
> - 在需要创建很多 ECharts 实例且浏览器易崩溃的情况下(可能是因为 Canvas 数量多导致内存占用超出手机承受能力),可以使用 SVG 渲染器来进行改善。大略的说,如果图表运行在低端安卓机,或者我们在使用一些特定图表如 [水球图](https://ecomfe.github.io/echarts-liquidfill/example/) 等,SVG 渲染器可能效果更好。
|
||||
> - 在需要创建很多 ECharts 实例且浏览器易崩溃的情况下(可能是因为 Canvas 数量多导致内存占用超出手机承受能力),可以使用 SVG 渲染器来进行改善。大略的说,如果图表运行在低端安卓机,或者我们在使用一些特定图表如 [水球图](<https://ecomfe.github.io/echarts-liquidfill/example/>) 等,SVG 渲染器可能效果更好。
|
||||
> - 数据量较大(经验判断 > 1k)、较多交互时,建议选择 Canvas 渲染器。
|
||||
|
||||
我什么时候可以做到用 canvas 手搓这种图
|
||||
|
||||

|
||||

|
||||
|
||||
最近可以做的事情:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-11-30 星期六
|
||||
title: '2024-11-30'
|
||||
date: 2024-11-30T00:00:00.000Z
|
||||
day_of_week: 星期六
|
||||
author: KazooTTT
|
||||
@ -11,11 +11,10 @@ description: >-
|
||||
如果存在占用特定端口的程序,请使用命令“lsof -i :<PORT>”识别端口对应的进程ID(PID),再使用命令“kill -9
|
||||
<PID>”终止该进程。也可以使用更方便的方式“kill -9 $(lsof -t -i :<PORT>)”,即直接杀死占用端口的进程。
|
||||
slug: diary-2024-11-30
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
vscode extention 启动时间
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-12-11 星期三
|
||||
title: '2024-12-11'
|
||||
date: 2024-12-11T00:00:00.000Z
|
||||
day_of_week: 星期三
|
||||
author: KazooTTT
|
||||
@ -11,33 +11,32 @@ description: >-
|
||||
的变化感到困惑。虽然我耐下了心理压力,能清晰地理解项目里的复杂数据流转,但是写文档还是头昏眼花,一时起走神来。除了上周加班外,我也试用了
|
||||
react-scan 和安卓视频下载软件,好看的个人主页让我感动。
|
||||
slug: diary-2024-12-11
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
终于没有那么忙了,上周忙成狗了,加班加的 wakatime 时长直接进入全球前 100 了
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
上周在忙什么?主要是做 vtk.js 的开发花了很多时间,不然后续的需求查漏补缺我不会做的这么着急。
|
||||
|
||||
对于 vtk.js 的掌握程度还是太低了,甚至连 polydata 的变化要怎么写都是临时掌握的。不过好在上周耐心理了一下项目里复杂的数据流转,清晰了很多。
|
||||
|
||||

|
||||

|
||||
|
||||
然后今天主要再写文档,写得头昏眼花的,好容易走神。
|
||||
|
||||
---
|
||||
|
||||
react-scan 让页面的 rerender 一眼便知 [React Scan](https://react-scan.com/),试了下确实好用(比浏览器的开发者工具里面的 rerender 监视器好用),后面项目优化有事做了。
|
||||
react-scan 让页面的 rerender 一眼便知 [React Scan](<https://react-scan.com/>),试了下确实好用(比浏览器的开发者工具里面的 rerender 监视器好用),后面项目优化有事做了。
|
||||
|
||||
安卓的视频下载软件 [GitHub - JunkFood02/Seal: 🦭 Video/Audio Downloader for Android, based on yt-dlp, designed with Material You](https://github.com/JunkFood02/Seal)
|
||||
安卓的视频下载软件 [GitHub - JunkFood02/Seal: 🦭 Video/Audio Downloader for Android, based on yt-dlp, designed with Material You](<https://github.com/JunkFood02/Seal>)
|
||||
|
||||
好看的个人主页 [CAICAI - A Product Manager](https://www.caicai.me/)
|
||||
好看的个人主页 [CAICAI - A Product Manager](<https://www.caicai.me/>)
|
||||
|
||||

|
||||

|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-12-12 星期四
|
||||
title: '2024-12-12'
|
||||
date: 2024-12-12T00:00:00.000Z
|
||||
day_of_week: 星期四
|
||||
author: KazooTTT
|
||||
@ -12,11 +12,10 @@ description: >-
|
||||
这一天的碎片化记录,包含了对深Seek
|
||||
API和其新版聊天功能的感想,以及工作、生活中的各种感受和体验。作者在这段时间内进行了一些个人思考和记录,包括购买了智能工具Diagen,感受到了一种计算收益的模式,并且在思考自己的精神层面,希望能够创作出更能让自己满意的作品。
|
||||
slug: diary-2024-12-12
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
之前只用过 deepseek 的 api,这几天的 deepseek 的 chat 用的比较多,发现两者都挺好用的
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2024-12-19 星期四
|
||||
title: '2024-12-19'
|
||||
date: 2024-12-19T00:00:00.000Z
|
||||
day_of_week: 星期四
|
||||
author: KazooTTT
|
||||
@ -7,11 +7,10 @@ tags:
|
||||
- 日记
|
||||
description: null
|
||||
slug: diary-2024-12-19
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
## 值得记录的事情
|
||||
@ -24,9 +23,9 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
今天写好了一个 [合并多个PDF](/notes/merge-pdfs) 的小项目,写完之后用了合并功能在微信读书已经看上了杂货铺的中文翻译✌️
|
||||
|
||||
[PDF文件合并工具 - 在线免费合并PDF文档](https://pdf.kazoottt.top/)
|
||||
[PDF文件合并工具 - 在线免费合并PDF文档](<https://pdf.kazoottt.top/>)
|
||||
|
||||

|
||||

|
||||
|
||||
## 碎片化记录(基于 n8n + rss + 飞书 webhook 生成)
|
||||
|
||||
|
@ -7,11 +7,10 @@ tags:
|
||||
- 日记
|
||||
description: null
|
||||
slug: diary-2024-12-23
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
学习 unity day01
|
||||
@ -30,4 +29,4 @@ date_modified: 2025-01-22T05:39:24.000Z
|
||||
|
||||
不管怎么样实践和学习总是没错,不要抵触新的事物,先做一个垃圾出来至少也算是做出来了。
|
||||
|
||||

|
||||

|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 2025-01-06 星期一
|
||||
title: '2025-01-06'
|
||||
date: 2025-01-06T00:00:00.000Z
|
||||
day_of_week: 星期一
|
||||
author: KazooTTT
|
||||
@ -9,11 +9,10 @@ tags:
|
||||
- 压力
|
||||
description: null
|
||||
slug: diary-2025-01-06
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-06T12:11:06.000Z
|
||||
date_modified: 2025-01-22T05:39:24.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
最近一直都很忙,忙到有时候怀疑自己从上海回成都是否是好的决定。
|
||||
|
@ -2,23 +2,18 @@
|
||||
title: 2025-W07
|
||||
date: 2025-02-16T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Draft
|
||||
tags:
|
||||
- 周报
|
||||
- 工具
|
||||
- 生活
|
||||
- 工作
|
||||
- 职业规划
|
||||
finished: true
|
||||
published: true
|
||||
category: 周报
|
||||
slug: 2025-W07
|
||||
description: null
|
||||
toAstro: true
|
||||
astroType: post
|
||||
date_created: 2025-02-10T08:14:42.000Z
|
||||
date_modified: 2025-02-19T03:44:22.000Z
|
||||
date_modified: 2025-02-19T17:26:39.000Z
|
||||
---
|
||||
|
||||
日期范围:2025-02-10 - 2025-02-16
|
||||
@ -36,26 +31,26 @@ date_modified: 2025-02-19T03:44:22.000Z
|
||||
在之前也有一些个人的碎碎念: [碎片-2025-02-11 12时32分](/notes/fragmented-notes-2025-02-11-12-32-42)
|
||||
|
||||
> [!quote]
|
||||
很羡慕和佩服那些拥有热爱并且为之付出的人 感觉自己没什么持久的热爱,很多时候只是因为受他人影响选择了目前的工作。
|
||||
>
|
||||
> 很羡慕和佩服那些拥有热爱并且为之付出的人 感觉自己没什么持久的热爱,很多时候只是因为受他人影响选择了目前的工作。
|
||||
>
|
||||
> 也有人说不要把工作看得多重要,只是挣钱的途径。但实际上工作占据一天中很多时间,如果体验糟糕,那么还是会觉得一天过得挺糟糕的。
|
||||
>
|
||||
>
|
||||
> 很多时候都没弄清楚自己的行动意图
|
||||
>
|
||||
>
|
||||
> 之前一直说希望可以远程工作,可以离家近一点。但是只是下意识的说辞,回到成都后,回家频率更高,也是往离家更近的方向靠,但是并没多开心。所以我期望的或许不是要离家近。
|
||||
>
|
||||
>
|
||||
> 也说过离开上家公司的原因之一是流程太繁琐,层层审批,有时候互相推脱找不到负责人,推进一件事情过于困难。但换了公司后,确实更加扁平化,不再有所谓的工单和流程,面临的是另外的不愉快。随意指派的任务,不合理的排期,让我依然觉得心累。
|
||||
>
|
||||
>
|
||||
> 比起接下一份工作,是更希望自己可以弄清楚自己喜欢什么,擅长什么,工作体验与工资比例相对合理的公司是我的目标吗,求稳定还是求待遇,以及自己能否找到这样的工作,如果不能找到还能怎么办
|
||||
>
|
||||
>
|
||||
> 不然面临的又是匆忙决定然后又后悔然后又想离开
|
||||
>
|
||||
>
|
||||
> 真的好迷茫啊
|
||||
>
|
||||
> 我一直都觉得我是情绪驱动类,有上头的事物可以高强度投入其中。
|
||||
>
|
||||
> 我的快乐很大部分都是追星带来的,真的会因为新消息开心很久,期盼很久。所以之前说我不知道我喜欢什么,准确来说是我不知道我能把什么爱好和我的工作对应上。
|
||||
>
|
||||
>
|
||||
> 我一直都觉得我是情绪驱动类,有上头的事物可以高强度投入其中。
|
||||
>
|
||||
> 我的快乐很大部分都是追星带来的,真的会因为新消息开心很久,期盼很久。所以之前说我不知道我喜欢什么,准确来说是我不知道我能把什么爱好和我的工作对应上。
|
||||
>
|
||||
> 感觉能利用好情绪驱动的话是优势,利用不好就是劣势吧
|
||||
|
||||
所以在春节期间以及回来后的一周内,我想了很多。回想起自己喜欢什么,擅长什么,想要什么,以及自己到底想要过什么样的生活。也做了一些咨询。其中很关键的一点是这样一句话:
|
@ -12,7 +12,6 @@ date_modified: 2025-02-19T13:11:26.000Z
|
||||
title: 241029 1144 vite环境变量
|
||||
date: 2025-02-19T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
published: true
|
||||
toAstro: true
|
||||
astroType: null
|
||||
category: 碎片
|
||||
|
67
src/content/note/86.分隔链表.md
Normal file
@ -0,0 +1,67 @@
|
||||
---
|
||||
title: 86.分隔链表
|
||||
date: 2023-09-13T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 算法
|
||||
- 链表
|
||||
- leetcode
|
||||
- 待优化
|
||||
- todo
|
||||
platform: leetcode
|
||||
number: 86
|
||||
leetcode-url: 'https://leetcode.cn/problems/partition-list/description/'
|
||||
toAstro: true
|
||||
slug: 86-separated-chained-tables
|
||||
description: >-
|
||||
该内容描述了一个TypeScript函数`partition`,用于将一个单链表分割成两部分:一部分包含所有小于给定值x的节点,另一部分包含所有大于或等于x的节点。函数首先创建两个新的链表头节点`small`和`large`,分别用于存储小于x和大于等于x的节点。通过遍历原链表,将节点值小于x的节点添加到`small`链表,将节点值大于等于x的节点添加到`large`链表。最后,将`large`链表连接到`small`链表的尾部,并返回`small`链表的头节点。此方法在内存使用上还有优化空间。
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
---
|
||||
|
||||
# 86.分隔链表
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* Definition for singly-linked list.
|
||||
* class ListNode {
|
||||
* val: number
|
||||
* next: ListNode | null
|
||||
* constructor(val?: number, next?: ListNode | null) {
|
||||
* this.val = (val===undefined ? 0 : val)
|
||||
* this.next = (next===undefined ? null : next)
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
||||
function partition(head: ListNode | null, x: number): ListNode | null {
|
||||
let small = new ListNode(-1),
|
||||
smallP = small,
|
||||
large = new ListNode(-1),
|
||||
largeP = large
|
||||
|
||||
while (head) {
|
||||
if (head.val < x) {
|
||||
smallP.next = {
|
||||
val: head.val,
|
||||
next: null,
|
||||
}
|
||||
smallP = smallP.next
|
||||
} else {
|
||||
largeP.next = {
|
||||
val: head.val,
|
||||
next: null,
|
||||
}
|
||||
largeP = largeP.next
|
||||
}
|
||||
head = head.next
|
||||
}
|
||||
largeP.next = null
|
||||
smallP.next = large.next
|
||||
return small.next
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
可以看出内存还有很大的优化空间
|
30
src/content/note/AI大局.md
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
slug: present-conditions
|
||||
toAstro: true
|
||||
description: >-
|
||||
基础大模型在实际应用中面临两大挑战:终端客户对高昂算力成本的接受度以及大模型在垂直行业任务中的表现不足。为解决这些问题,大模型通常会通过领域特定数据或知识库进行训练和优化,以形成适用于垂直领域的行业大模型或业务大模型。此外,一些企业还有深度定制和私有化部署的需求,需要在行业大模型的基础上,进一步加入企业专有数据进行训练或微调,以构建企业级大模型。
|
||||
category: AI
|
||||
title: AI大局
|
||||
date: 2023-09-04T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 基础大模型
|
||||
- 产业应用
|
||||
- 机器学习
|
||||
finished: false
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:16.000Z
|
||||
---
|
||||
|
||||
# 大局
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
基础大模型落地面临两大难题,一是终端客户对算力成本的接受能力,二是大模型虽擅长通用领域问题,但往往在垂直行业任务中表现欠佳。因此,基础大模型会通过领域数据或专属知识库进行训练和调优,形成垂直领域的行业大模型或业务大模型;此外,部分企业还具有深度定制、私有化部署的需求,需要在行业大模型基础上,进一步加入企业专有数据进行训练或微调,形成企业级大模型。
|
||||
|
||||
[2023 年中国 AIGC 产业全景报告 | 艾瑞咨询 - 实时互动网](<https://www.nxrte.com/zixun/31964.html>)
|
||||
|
||||
中间层
|
||||
应用层
|
28
src/content/note/AI相关名词.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: AI相关名词
|
||||
date: 2024-02-28T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- ai
|
||||
- 深度学习
|
||||
finished: false
|
||||
toAstro: true
|
||||
slug: ai-related-words
|
||||
description: >-
|
||||
SOTA(State of the
|
||||
Art)代表在特定任务中表现最佳的方法或模型,尤其在计算机视觉领域,常指最先进的深度学习技术。扩散模型作为深度生成模型的新SOTA,在性能上超越了传统的基准和基线。研究论文通常以超越现有基线/基准为目标,通过实验数据评估其性能提升。基线强调一套方法,而基准则侧重于如精确度、召回率等可量化的最高指标。
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:11.000Z
|
||||
---
|
||||
|
||||
# AI 相关名词
|
||||
|
||||
#ai #深度学习
|
||||
|
||||
SOTA 是 state of the art 的缩写,指在特定任务中目前表现最好的方法或模型。它代表着最前沿、
|
||||
|
||||
最先进、目前最高水平的意思。在计算机视觉等领域,SOTA 通常指代最先进的深度学习模型或方法,在各种基准测试中取得最好的性能表现
|
||||
|
||||
Benchmark 和 baseline 则是指最基础的比较对象。研究论文通常以超越现有的 baseline/benchmark 为动机,实验数据需要以它们为基准来评估是否有提高。Baseline 强调一套方法,而 benchmark 更偏向于当前最高的指标,如 precision、recall 等可量化的指标
|
||||
|
||||
> 扩散模型(diffusion models)是深度生成模型中新的 SOTA [扩散模型爆火,这是首篇综述与Github论文分类汇总 | 机器之心](<https://www.jiqizhixin.com/articles/2022-09-13-5>)
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
date_created: 2025-01-31T13:07:18.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
date_modified: 2025-02-19T17:22:51.000Z
|
||||
slug: blender-macos-steam-version-limitations
|
||||
tags:
|
||||
- Blender
|
||||
@ -15,9 +15,6 @@ title: Blender on macOS - Steam Version Limitations for Apple Silicon Devices
|
||||
date: 2025-01-31T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Technical Note
|
||||
status: Published
|
||||
finished: true
|
||||
published: true
|
||||
category: 3D Modeling
|
||||
toAstro: true
|
||||
---
|
||||
|
@ -0,0 +1,65 @@
|
||||
---
|
||||
slug: bloomberg-welcomes-intra-firm-chatbots-to-ib
|
||||
title: 'Bloomberg Welcomes Intra-Firm Chatbots to IB '
|
||||
tags:
|
||||
- 翻译
|
||||
category: 阅读笔记-阅读和翻译
|
||||
description: >-
|
||||
彭博社宣布推出新的Instant Bloomberg (IB)附加服务——IB
|
||||
Connect,其中包括公司内部聊天机器人服务。这项服务允许彭博终端用户将专有聊天机器人集成到IB聊天室中,促进内部信息的共享和商业智能的发现。客户可以使用提供的软件开发工具包定制聊天机器人,以适应其独特的技术堆栈和工作流程。此外,IB
|
||||
Connect支持两种类型的聊天机器人:问答式和通知型,分别用于提供可操作的情报和关键事件的及时通知。这一创新旨在帮助客户推进数字化转型战略,提高协作工作流程的效率。
|
||||
date: 2023-11-09T10:26:54.033Z
|
||||
toAstro: true
|
||||
date_created: 2024-12-17T05:34:45.000Z
|
||||
date_modified: 2025-02-19T03:44:11.000Z
|
||||
---
|
||||
|
||||
# 彭博社欢迎公司内部聊天机器人加入国际商业银行
|
||||
|
||||
[原文:Bloomberg Welcomes Intra-Firm Chatbots to IB](<https://www.bloomberg.com/company/press/bloomberg-welcomes-intra-firm-chatbots-to-ib/>)
|
||||
|
||||
2023 年 11 月 09 日
|
||||
**_ 客户可使用公司内部聊天机器人推动数字化转型和协作工作流程 _**
|
||||
|
||||
彭博社今天宣布推出一项新的 Instant Bloomberg (IB) 附加服务,以支持客户的数字化转型计划。IB Connect:IB Connect:公司内部聊天机器人服务使彭博终端用户能够将专有聊天机器人添加到所有用户都是同一公司成员的 IB 聊天室中。
|
||||
|
||||
客户可以调用公司内部聊天机器人,自动将其内部系统中的重要信息显示在 IB 中,与同事共享,并促进内部商业智能的可发现性。
|
||||
|
||||
**IB Connect** 是一套服务,使彭博终端用户能够将 IB 与公司内部工作流程工具无缝集成,帮助简化与同事的协作。
|
||||
|
||||
**IB Connect:公司内部聊天机器人**是一项新的 IB Connect 服务,在客户适用的 IB 聊天室与其内部系统之间提供双向集成。它使用自然语言处理为客户的非结构化 IB 数据提供结构和上下文,并将丰富的信息提供给客户的公司内部聊天机器人。
|
||||
每个客户都可以使用提供的软件开发工具包来构建和定制自己的 IB Connect:行内聊天机器人,以满足其公司独特的技术堆栈和内部用户工作流程,并与彭博社的 API 协议保持一致。
|
||||
|
||||
**ING 金融市场战略工程主管 Pieter van Gaa**l 说:"ING 的金融市场前台战略工程团队一直致力于改善客户体验。人们已经开始期待即时访问,我们认为他们对金融市场的体验也应如此。
|
||||
我们使用聊天机器人已经有一段时间了,我们发现 Instant Bloomberg 中新增的公司内部聊天机器人非常适合我们的需求 "。
|
||||
|
||||
**Bardin Hill Investment Partners 的执行信贷主管兼投资组合经理 Philip Raciti** 说:" 在彭博社推出公司内部聊天机器人之前,我们一直在寻找一种方法,以一种可用于深度分析的结构从不同来源获取数据,并能随着时间的推移扩展功能。
|
||||
我们认为 Intra-Firm Chatbots 是弥合数据鸿沟的重要一步,因为它提供了一个简单、高附加值的工具,促进了彭博社与我们内部系统之间的实时数据连接。Bardin Hill 实施的公司内部聊天机器人帮助我们直接访问最大的信息孤岛,同时提高流程效率。
|
||||
|
||||
**罗杰 - 伯奇(Roger Birch),产品主管:彭博国际银行通信与协作系统产品主管 Roger Birch** 说:" 我们将继续投资于创新,使我们的客户能够进一步推进其数字化转型战略,并从使用 IB 中获取更多价值。
|
||||
IB Connect 服务集(包括公司内部聊天机器人)将帮助我们的客户创建信息超回路,并从根本上提高协作工作流程的效率。"
|
||||
|
||||
彭博社目前通过 IB Connect 支持两种类型的客户聊天机器人功能:**公司内问答聊天机器人**和**公司内通知聊天机器人**。
|
||||
|
||||
**问答式公司内部聊天机器人**通过 IB Connect 与客户系统之间的双向通信获取可操作的情报,以回答指向公司内部聊天机器人的聊天询问。
|
||||
用户可以查询其专有系统中的各种数据,然后这些聊天机器人可以直接在聊天室中生成内容(链接、表格、可视化丰富数据)。
|
||||
这些与问答 Intrafirm 聊天机器人的简单互动可帮助用户及其队友高效地传递信息,并为他们的交流增加更多价值。
|
||||
|
||||
当发生关键事件或满足特定市场条件时,**通知型 Intrafirm 聊天机器人**会及时、主动地发出警报,并提供有意义的商业情报,而不会转移对正在进行的团队交流的注意力。
|
||||
|
||||
这样,用户就能在已经开展协作的 IB 环境中接收关键更新。例如,可以为交易前、执行中和交易后的工作流程发送分析、库存或订单状态更新通知。
|
||||
|
||||
**关于 Instant Bloomberg(IB):**
|
||||
IB 帮助彭博终端用户与金融市场和彼此之间实时连接,在安全的环境中交流想法、分享可操作的信息并优化通信工作流程。
|
||||
彭博还提供其他服务,使客户能够将 IB 与公司内部应用程序无缝集成,帮助简化与同事的协作。
|
||||
|
||||
**关于彭博终端:**
|
||||
四十多年来,彭博终端通过为资本市场带来透明度和创新,彻底改变了金融服务行业。
|
||||
彭博终端受到全球最具影响力的决策者的信赖,提供实时的新闻、数据、见解和交易工具,帮助我们的客户将知识转化为行动。
|
||||
|
||||
**关于彭博社**
|
||||
彭博社是商业和金融信息领域的全球领导者,提供可信赖的数据、新闻和见解,为市场带来透明度、效率和公平性。
|
||||
公司通过可靠的技术解决方案帮助连接全球金融生态系统中具有影响力的社区,使我们的客户能够做出更明智的决策并促进更好的合作。欲了解更多信息,请访问 Bloomberg.com/company 或申请演示。
|
||||
|
||||
**媒体联系方式**
|
||||
Robert Madden, <rmadden29@bloomberg.net>, +1 (646) 807-2213
|
43
src/content/note/CSS随用随记.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
title: CSS随用随记
|
||||
date: 2022-11-15T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- css
|
||||
- 前端
|
||||
- 刷题
|
||||
slug: css-on-the-go
|
||||
toAstro: true
|
||||
description: >-
|
||||
本文介绍了CSS中的一些关键技巧,包括使用伪类选择器来设置HTML模块中特定li标签的背景颜色,以及如何为div元素添加后伪元素并设置其样式。此外,还讨论了浮动和清除浮动的概念,并提供了一个实际的编程练习链接,帮助读者更好地理解和应用这些CSS技术。
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:10.000Z
|
||||
---
|
||||
|
||||
# CSS 随用随记
|
||||
|
||||
## 1. 请将 Html 模块中 Ul 列表的第 2 个 Li 标签和第 4 个 Li 标签的背景颜色设置成 "rgb(255, 0, 0)"
|
||||
|
||||
关键词:伪类选择器
|
||||
|
||||
```css
|
||||
ul li:nth-child(2n) {
|
||||
background: rgb(255, 0, 0);
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
## 2. 请给 Html 模块的 Div 元素加一个后伪元素,且后伪元素的宽度和高度都是 20px,背景颜色为 "rgb(255, 0, 0)"
|
||||
|
||||

|
||||
|
||||
## 3. [浮动和清除浮动*牛客题霸*牛客网 (nowcoder.com)](<https://www.nowcoder.com/practice/88bcbaee954349f5a8810bfa94ee61a8?tpId=260&tqId=2200196&ru=%2Fexam%2Foj&qru=%2Fta%2Ffront-quick-study%2Fquestion-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DHTML%2FCSS%26topicId%3D260>)
|
||||
|
||||
请将类为 "left" 的 div 元素和类为 "right" 的 div 元素在同一行上向左浮动,且清除类为 "wrap" 的父级 div 元素内部的浮动。
|
||||
|
||||
关键词:清除浮动
|
||||
|
||||
TODO:
|
||||
|
||||
<a href='/2022/11/15/清除浮动/'>CSS | 清除浮动</a>
|
@ -0,0 +1,24 @@
|
||||
---
|
||||
slug: can-brain-science-help-us-break-bad-habits
|
||||
tags:
|
||||
- 摘抄
|
||||
description: >-
|
||||
研究表明,通过调整环境来隐藏诱惑,可以有效提高自控力。一项实验发现,当孩子们看不到面前的棉花糖时,他们能坚持的时间比看到棉花糖时更长。这表明自控力并非仅是个人内在品质,而是受环境影响的。因此,通过微调环境,我们或许能模仿那些看起来更有自制力的人。
|
||||
category: 阅读笔记-阅读和翻译
|
||||
date: 2024-01-07T00:00:00.000Z
|
||||
title: Can Brain Science Help Us Break Bad Habits
|
||||
toAstro: true
|
||||
date_created: 2024-12-02T03:03:24.000Z
|
||||
date_modified: 2025-02-19T03:44:11.000Z
|
||||
---
|
||||
|
||||
# Can Brain Science Help Us Break Bad Habits?
|
||||
|
||||
原文:
|
||||
[Can Brain Science Help Us Break Bad Habits? | The New Yorker](<https://www.newyorker.com/magazine/2019/10/28/can-brain-science-help-us-break-bad-habits>)
|
||||
翻译:
|
||||
[研究表明,依靠意志力改掉坏习惯是徒劳无功的 \[译\] | 宝玉的分享](<https://baoyu.io/translations/life/can-brain-science-help-us-break-bad-habits>)
|
||||
|
||||
> 研究者比较了两种情况:一种是孩子们能看到面前的棉花糖;另一种则是知道棉花糖在那儿,但看不到它。结果显示,面对可见诱惑时,孩子们平均只能坚持六分钟,但如果把诱惑藏起来,他们能坚持十分钟。对 Wood 而言,这说明自控力“并非内在品质,而是我们所处环境的反映。”通过微调环境,我们也许能够模仿那些看起来更有自制力的人。
|
||||
|
||||
> 成功的自控,实际上来自于有效隐藏诱惑
|
@ -2,14 +2,10 @@
|
||||
title: ChainForge简单介绍
|
||||
date: 2024-05-22T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- llm
|
||||
- chainforge
|
||||
- 工具
|
||||
finished: true
|
||||
published: true
|
||||
category: AI
|
||||
slug: chainforge-intro
|
||||
description: >-
|
||||
@ -26,7 +22,6 @@ description: >-
|
||||
environments.
|
||||
NotionID-notionnext: 40ec4f8d-2030-4ce1-b8c7-c1c9f56ef55b
|
||||
link-notionnext: 'https://kazoottt.notion.site/ChainForge-40ec4f8d20304ce1b8c7c1c9f56ef55b'
|
||||
rinId: 8
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:16.000Z
|
||||
|
107
src/content/note/CommonJS简介.md
Normal file
@ -0,0 +1,107 @@
|
||||
---
|
||||
title: CommonJS简介
|
||||
date: 2023-10-17T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- commonjs
|
||||
- JavaScript
|
||||
- node
|
||||
toAstro: true
|
||||
slug: introduction-to-commonjs
|
||||
description: >-
|
||||
CommonJS是一种模块规范,主要用于Node.js服务器端JavaScript应用程序。它通过`require`函数导入模块,通过`module.exports`或`exports`导出模块内容。在`package.json`文件中,通过设置`"type"`字段为`"commonjs"`来指定模块格式。CommonJS不支持浏览器环境,是Node.js中模块管理的基础。
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-01-22T05:39:22.000Z
|
||||
---
|
||||
|
||||
# CommonJS 简介
|
||||
|
||||
## 什么是 Commonjs
|
||||
|
||||
commonjs 是 module 的一种类型(规范)
|
||||
|
||||
## 使用场景
|
||||
|
||||
> CommonJS is mainly used in server-side JS apps with Node, as browsers don't support the use of CommonJS.
|
||||
|
||||
CommonJS 主要用于带有 Node 的服务器端 JS 应用程序,因为浏览器不支持使用 CommonJS。
|
||||
|
||||
## 如何使用
|
||||
|
||||
### package.json
|
||||
|
||||
> The "type" field defines the module format that Node.js uses for all .js files that have that package.json file as their nearest parent.
|
||||
|
||||
`"type"` 字段定义 Node.js 用于所有将该 `package.json` 文件作为其最近父级的 `.js` 文件的模块格式。
|
||||
|
||||
在 package 中不需要显示定义 type(type 的可选项是 commonjs 和 module),一般是需要用到 ESM 的时候才去定义 module。
|
||||
|
||||
package 的影响范围是当前文件夹以及子文件夹的所有 js 文件。(ts 会被 ts 编译器转化为 js 代码)
|
||||
|
||||
### 语法
|
||||
|
||||
导入:require 导出:module.exports
|
||||
|
||||
举个例子:
|
||||
|
||||
```jsx
|
||||
// 导出两个函数
|
||||
exports.add = function (a, b) {
|
||||
return a + b
|
||||
}
|
||||
|
||||
exports.multiply = function (a, b) {
|
||||
return a * b
|
||||
}
|
||||
```
|
||||
|
||||
```jsx
|
||||
// 引入 math 模块
|
||||
var math = require("./math")
|
||||
|
||||
// 使用 math 模块中的函数
|
||||
var sum = math.add(5, 3)
|
||||
var product = math.multiply(4, 6)
|
||||
|
||||
console.log("Sum:", sum)
|
||||
console.log("Product:", product)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
批量导入导出:
|
||||
|
||||
```jsx
|
||||
// 定义多个实用函数
|
||||
function add(a, b) {
|
||||
return a + b
|
||||
}
|
||||
|
||||
function subtract(a, b) {
|
||||
return a - b
|
||||
}
|
||||
|
||||
// 将这些函数添加到一个对象中并导出该对象
|
||||
module.exports = {
|
||||
add,
|
||||
subtract,
|
||||
}
|
||||
```
|
||||
|
||||
```jsx
|
||||
// main.js
|
||||
|
||||
// 引入 utils 模块
|
||||
var utils = require("./utils")
|
||||
|
||||
// 使用 utils 模块中的函数
|
||||
var sum = utils.add(5, 3)
|
||||
var difference = utils.subtract(8, 2)
|
||||
|
||||
console.log("Sum:", sum)
|
||||
console.log("Difference:", difference)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
参考:
|
36
src/content/note/Cta Button是什么.md
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
link: 'https://kazoottt.notion.site/Cta-Button-71da9f4b9152422fa99acfef23f0eaca'
|
||||
notionID: 71da9f4b-9152-422f-a99a-cfef23f0eaca
|
||||
slug: whats-cta-button
|
||||
toAstro: true
|
||||
description: >-
|
||||
CTA按钮,即Call to
|
||||
Action按钮,是网页、广告或应用程序中的重要设计元素,用于鼓励用户执行特定动作,如注册、购买或下载等。这些按钮通常设计醒目,包含清晰的文本和明确的指示,以吸引用户注意力并促使他们采取期望的行动。CTA按钮广泛应用于网站、广告、社交媒体和移动应用中,是数字营销和用户互动的关键组成部分。
|
||||
tags:
|
||||
- CTA 按钮设计
|
||||
- CTA Button
|
||||
- User Interaction
|
||||
- 数字营销
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:10.000Z
|
||||
title: Cta Button是什么
|
||||
---
|
||||
|
||||
# Cta Button 是什么
|
||||
|
||||
[React Navbar - Flowbite](<https://www.flowbite-react.com/docs/components/navbar#navbar-with-cta-button>)
|
||||
|
||||
CTA(Call to Action)按钮是网页、广告或应用程序中的一个设计元素,旨在鼓励用户执行特定的动作或行为。这个按钮通常包含明确的文本或图标,目的是引导用户完成某项任务,如注册、订阅、购买、下载、分享内容等。CTA 按钮的设计和文本通常是精心制定的,以吸引用户的注意力,并激发他们的兴趣,促使他们采取所期望的行动。
|
||||
|
||||
CTA 按钮通常具有醒目的颜色、清晰的文本和明确的指示,以便用户能够轻松地理解要采取的行动。它们在网站、广告、社交媒体帖子、电子邮件营销和移动应用中都广泛使用,是数字营销和用户互动的关键元素之一。
|
||||
|
||||
一些常见的 CTA 按钮示例包括:
|
||||
|
||||
1. " 注册 " 按钮,用于引导用户创建账户。
|
||||
2. " 购买 " 按钮,用于鼓励用户购买产品或服务。
|
||||
3. " 了解更多 " 按钮,引导用户深入了解某一主题或产品。
|
||||
4. " 下载 " 按钮,用于鼓励用户下载应用程序、电子书或其他资源。
|
||||
5. " 分享 " 按钮,用于鼓励用户分享内容到社交媒体平台。
|
||||
6. " 订阅 " 按钮,引导用户订阅新闻简报、博客或电子邮件通讯。
|
||||
|
||||
CTA 按钮的设计和位置在用户体验和转化率方面非常重要,因此它们通常是设计和营销策略的核心组成部分。
|
25
src/content/note/LLM.md
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
slug: llm
|
||||
toAstro: true
|
||||
description: >-
|
||||
本文介绍了大型语言模型(LLM)中的`temperature`参数如何影响模型的输出结果。当`temperature`值较低时,模型输出更确定的结果;而当该值较高时,模型可能产生更多样化或更具创造性的输出。此外,文章还提供了学习与AI沟通的资源链接,包括Learn
|
||||
Prompting和Prompt Engineering Guide。
|
||||
tags:
|
||||
- LLM
|
||||
- temperature
|
||||
- random,prompt engineering,生成型语言模型
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:10.000Z
|
||||
title: LLM
|
||||
---
|
||||
|
||||
# LLM
|
||||
|
||||
TODO
|
||||
|
||||
`temperature` 的参数值越小,模型就会返回越确定的一个结果。如果调高该参数值,大语言模型可能会返回更随机的结果,也就是说这可能会带来更多样化或更具创造性的产出。
|
||||
|
||||
[欢迎 | Learn Prompting: Your Guide to Communicating with AI](<https://learnprompting.org/zh-Hans/docs/intro>)
|
||||
[提示工程指南 | Prompt Engineering Guide<!-- -->](<https://www.promptingguide.ai/zh>)
|
||||
|
||||
arxiv.org/abs/2201.11903
|
@ -2,37 +2,33 @@
|
||||
title: MUV家元旦24H限定食堂 - 汇总网站
|
||||
date: 2025-01-06T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- 项目
|
||||
- milklove
|
||||
- 同人
|
||||
- milkpansa
|
||||
- loverrukk
|
||||
finished: true
|
||||
published: true
|
||||
category: 项目
|
||||
slug: milklovemuv
|
||||
description: null
|
||||
toAstro: true
|
||||
date_created: 2025-01-06T02:02:35.000Z
|
||||
date_modified: 2025-02-19T03:43:53.000Z
|
||||
date_modified: 2025-02-19T17:22:55.000Z
|
||||
---
|
||||
|
||||
[MUV家元旦24H限定食堂 - 汇总](<https://milklovemuv.com/>)
|
||||
|
||||
## 介绍
|
||||
|
||||
方便后续回顾,写了一个 [#muv家元旦24h限定食堂#](<https://s.weibo.com/weibo?q=%23muv%E5%AE%B6%E5%85%83%E6%97%A624h%E9%99%90%E5%AE%9A%E9%A3%9F%E5%A0%82%23>) 的汇总网站。
|
||||
方便后续回顾,写了一个 [#muv家元旦24h限定食堂#](<https://s.weibo.com/weibo?q=%23muv%E5%AE%B6%E5%85%83%E6%97%A624h%E9%99%90%E5%AE%9A%E9%A3%9F%E5%A0%82%23>) 的汇总网站。
|
||||
|
||||
点击卡片内的微博图标可以跳转到对应的微博,点击蓝色的外链图标可以直接跳转至查看文章或者视频的平台。
|
||||
点击卡片内的微博图标可以跳转到对应的微博,点击蓝色的外链图标可以直接跳转至查看文章或者视频的平台。
|
||||
|
||||
非常感谢各位老师的产出
|
||||
|
||||

|
||||
|
||||
---
|
||||
---
|
||||
|
||||
## 开发
|
||||
|
||||
|
@ -1,23 +1,18 @@
|
||||
---
|
||||
date_created: 2025-02-06T03:59:39.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
date_modified: 2025-02-19T17:26:45.000Z
|
||||
title: Obsidian Web Clipper 离线阅读同人作品
|
||||
date: 2025-02-06T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- obsidian
|
||||
- web-clipper
|
||||
- 离线阅读
|
||||
- 同人作品
|
||||
finished: false
|
||||
published: false
|
||||
category: 软件
|
||||
slug: obsidian-web-clipper-offline-reading-fanfics
|
||||
description: null
|
||||
toAstro: true
|
||||
astroType: post
|
||||
---
|
||||
|
||||
作为一个经常阅读同人作品的人来说,我使用过许多方法,有使用 raindrop 保存链接的,也有使用 epubkit 把同人作品转换成 epub 格式然后上传到微信读书或者 apple books 上进行阅读的。
|
||||
@ -38,7 +33,7 @@ astroType: post
|
||||
table dateformat(published, "yyyyMMdd") as "发布时间"
|
||||
from "Clippings"
|
||||
where contains(tags, "替换为你要筛选的标签")
|
||||
sort published desc
|
||||
sort published desc
|
||||
```
|
||||
|
||||

|
63
src/content/note/Page Visibility API.md
Normal file
@ -0,0 +1,63 @@
|
||||
---
|
||||
title: Page Visibility API
|
||||
date: 2024-05-22T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- document
|
||||
- mdn
|
||||
- html
|
||||
- pagevisibility
|
||||
toAstro: true
|
||||
slug: page-visibility-api
|
||||
description: >-
|
||||
The Page Visibility API is a web API related to the Document object, designed
|
||||
to determine whether the current document is visible to users. It is
|
||||
particularly useful for pausing and resuming animations and videos when the
|
||||
user switches to a different tab, thereby conserving system resources and
|
||||
battery life. Additionally, it can enhance user interaction by dynamically
|
||||
changing the page title based on visibility status, such as changing the title
|
||||
to "你快回来" when the tab is not in focus. The API is supported by various
|
||||
resources and discussions, including those on GitHub and articles by experts
|
||||
like Ruan Yifeng, ensuring its compatibility and practical application in web
|
||||
development.
|
||||
NotionID-notionnext: 3bd51bf2-356f-4059-9d12-e8321d422a49
|
||||
link-notionnext: >-
|
||||
https://kazoottt.notion.site/Page-Visibility-API-3bd51bf2356f40599d12e8321d422a49
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T17:22:50.000Z
|
||||
---
|
||||
|
||||
# Page Visibility API
|
||||
|
||||
[Page Visibility API - Web APIs | MDN](<https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API>)
|
||||
|
||||
这是一个与 Domcument 有关的 API,主要用来判断当前的 document 是否可见。
|
||||
|
||||
具体的用途:
|
||||
|
||||
- **暂停/恢复动画和视频**:当用户切换到其他标签页时,暂停正在播放的视频或动画,节省系统资源和电量。当用户返回该页面时,再恢复播放。
|
||||
- 为用户交互提供一些多样性,例如我们切换到其他的 tab 页的时候,博客对应的 tab 的标题变成了“你快回来”。
|
||||
|
||||
```js
|
||||
document.addEventListener("visibilitychange", function () {
|
||||
if (document.visibilityState === "hidden") {
|
||||
document.title = "你快回来"
|
||||
} else {
|
||||
document.title = "原始标题"
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
## 协议以及相关的讨论
|
||||
|
||||
[GitHub - w3c/page-visibility: Page Visibility](<https://github.com/w3c/page-visibility>)
|
||||
|
||||
[Editorial: remove note about hidden being 'historical' by marcoscaceres · Pull Request #64 · w3c/page-visibility · GitHub](<https://github.com/w3c/page-visibility/pull/64>)
|
||||
|
||||
## 其他的资料
|
||||
|
||||
[Page Lifecycle API 教程 - 阮一峰的网络日志](<https://www.ruanyifeng.com/blog/2018/11/page_lifecycle_api.html>)
|
||||
|
||||
[Page Visibility API 教程 - 阮一峰的网络日志](<https://www.ruanyifeng.com/blog/2018/10/page_visibility_api.html>)
|
||||
|
||||
[使用 Page Visibility API | Articles | web.dev](<https://web.dev/articles/pagevisibility-intro>) 这篇文章很好地实现了兼容性
|
@ -2,16 +2,12 @@
|
||||
title: Perplexity系列产品
|
||||
date: 2024-09-04T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- AI
|
||||
- 搜索引擎
|
||||
- Perplexity
|
||||
- Playground
|
||||
- 播客
|
||||
finished: true
|
||||
published: true
|
||||
category: 软件
|
||||
slug: perplexity-productions-intro
|
||||
description: 概述Perplexity系列产品,包括搜索引擎、Playground和播客,重点介绍其功能和区别。
|
||||
|
@ -4,15 +4,11 @@ title: >-
|
||||
Playback forcibly
|
||||
date: 2024-05-25T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Draft
|
||||
tags:
|
||||
- focusee
|
||||
- obs
|
||||
- VirtualSoundCard
|
||||
- BlackHole2ch
|
||||
finished: true
|
||||
published: true
|
||||
slug: >-
|
||||
possible-causes-and-solutions-for-focusee-switching-system-audio-to-speaker-playback-forcibly-en
|
||||
description: >-
|
||||
@ -24,11 +20,10 @@ description: >-
|
||||
NotionID-notionnext: 80f19b4c-d207-45a0-bbbb-39641a9dc330
|
||||
link-notionnext: >-
|
||||
https://kazoottt.notion.site/Possible-Causes-and-Solutions-for-Focusee-Switching-System-Audio-to-Speaker-Playback-forcibly-80f19b4cd20745a0bbbb39641a9dc330
|
||||
rinId: 39
|
||||
category: 软件
|
||||
toAstro: true
|
||||
date_created: 2024-12-02T03:03:21.000Z
|
||||
date_modified: 2025-02-19T03:44:22.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
# Possible Causes and Solutions for Focusee Switching System Audio to Speaker Playback Forcibly
|
||||
|
18
src/content/note/React设计原理阅读.md
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
slug: react-design-principles-reading
|
||||
toAstro: true
|
||||
description: >-
|
||||
React设计原理的核心概念是将用户界面(UI)定义为状态(state)的函数(f),即UI =
|
||||
f(state)。这一公式简洁地表达了React如何通过状态的变化来更新界面的工作原理。
|
||||
tags:
|
||||
- React设计原理
|
||||
- UI设计原理
|
||||
- 状态管理
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:10.000Z
|
||||
title: React设计原理阅读
|
||||
---
|
||||
|
||||
# React 设计原理阅读
|
||||
|
||||
UI = f(state)
|
@ -2,8 +2,6 @@
|
||||
title: Reasons Not to Recommend Purchasing Focusee for macOS Users
|
||||
date: 2024-06-20T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- macOS
|
||||
- Focusee
|
||||
@ -12,8 +10,6 @@ tags:
|
||||
- Software
|
||||
- Review
|
||||
- Refund
|
||||
finished: true
|
||||
published: true
|
||||
category: 软件
|
||||
slug: focusee-macos-review-en
|
||||
description: >-
|
||||
@ -23,10 +19,9 @@ description: >-
|
||||
NotionID-notionnext: c692f30c-bcbc-48fd-9739-19e23a3e1e40
|
||||
link-notionnext: >-
|
||||
https://kazoottt.notion.site/Reasons-Not-to-Recommend-Purchasing-Focusee-for-macOS-Users-c692f30cbcbc48fd973919e23a3e1e40
|
||||
rinId: 40
|
||||
toAstro: true
|
||||
date_created: 2024-12-02T03:03:21.000Z
|
||||
date_modified: 2025-02-19T03:44:22.000Z
|
||||
date_modified: 2025-02-19T17:22:54.000Z
|
||||
---
|
||||
|
||||
# Reasons Not to Recommend Purchasing Focusee for macOS Users
|
||||
|
@ -2,16 +2,12 @@
|
||||
title: Share My Incorrect Usage Cases of Zustand
|
||||
date: 2024-12-17T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- zustand
|
||||
- selector
|
||||
- store
|
||||
- react-scan
|
||||
- 最小粒度原则
|
||||
finished: true
|
||||
published: true
|
||||
category: null
|
||||
slug: share-my-incorrect-usage-case-of-zustand-en
|
||||
description: >-
|
||||
@ -27,7 +23,6 @@ description: >-
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:15.000Z
|
||||
astroType: post
|
||||
---
|
||||
|
||||
## What is Zustand?
|
31
src/content/note/Telegram bot推荐 VidDlPBot.md
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
title: Telegram bot推荐 VidDlPBot
|
||||
date: 2024-06-26T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- Telegram
|
||||
- 视频下载
|
||||
- VidDlPBot
|
||||
- Twitter
|
||||
- TikTok
|
||||
- YouTube
|
||||
- Instagram
|
||||
slug: telegram-bot-recommendation-viddlpbot
|
||||
description: 推荐一款Telegram bot——VidDlPBot,可以轻松下载Twitter、TikTok、YouTube、Instagram的视频,操作简便。
|
||||
category: 软件
|
||||
toAstro: true
|
||||
date_created: 2024-12-17T05:34:45.000Z
|
||||
date_modified: 2025-02-19T03:44:14.000Z
|
||||
---
|
||||
|
||||
# Telegram Bot 推荐 VidDlPBot
|
||||
|
||||

|
||||
|
||||
目前已支持 Twitter、TikTok、YouTube、Instagram
|
||||
|
||||
添加 bot 之后,直接输入要下载的链接给 bot,它就会返回下载好的视频给你了。超级方便。gemoo
|
||||
|
||||
教学视频:
|
||||
|
||||
[如何快速下载视频(手机端同理)\[telegram bot推荐#1\]\_哔哩哔哩\_bilibili](<https://www.bilibili.com/video/BV1dGgkecEr7/>)
|
67
src/content/note/What I learn from dom-to-image.md
Normal file
@ -0,0 +1,67 @@
|
||||
---
|
||||
slug: what-i-learn-from-dom-to-image
|
||||
toAstro: true
|
||||
description: >-
|
||||
This article explores the dom-to-image library, detailing the author's
|
||||
experience with it, particularly in handling CORS issues when generating
|
||||
images from DOM nodes. The author shares their journey of diving into the
|
||||
source code to understand the library's functionality and to find alternative
|
||||
solutions to CORS problems. They also discuss the structure of the project's
|
||||
directory and highlight the importance of the README file and the main source
|
||||
file, `src/dom-to-image.js`.
|
||||
tags:
|
||||
- dom-to-image
|
||||
- CORS解决方案
|
||||
- DOM转化
|
||||
- Image生成
|
||||
- 前端开发
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:10.000Z
|
||||
title: What I learn from dom-to-image
|
||||
---
|
||||
|
||||
# What I Learn from Dom-to-image
|
||||
|
||||
the github repo url is below:
|
||||
|
||||
[GitHub - tsayen/dom-to-image: Generates an image from a DOM node using HTML5 canvas](<https://github.com/tsayen/dom-to-image>)
|
||||
|
||||
## Why I want to Read the Source Code of This Project?
|
||||
|
||||
I use this lib to generate the image of mgclub post content. And When I use it, I found that it will throw out error because of [CORS](<https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>).
|
||||
Finally, I convert the images to base64 in the server side to solve the problem.
|
||||
But I wonder how the lib realize the function and how can I solve the CORS in other way.
|
||||
So I start reading the source code of the project.
|
||||
|
||||
## RoadMap
|
||||
|
||||
## README
|
||||
|
||||
the `README.md` is a good choice to start.
|
||||
it tells me
|
||||
|
||||
1. what dom-to-image it is and what can it do
|
||||
2. install
|
||||
3. the way to use it (pass in Dom node and render options)
|
||||
4. how it works (svg foreignObject)
|
||||
|
||||
## Directory Structure
|
||||
|
||||
```plain text
|
||||
├── Gruntfile.js // dev and build config
|
||||
├── LICENSE // open source litcence
|
||||
├── README.md
|
||||
├── bower.json // bower config
|
||||
├── bower_components // for bower enable
|
||||
├── dist // output
|
||||
├── karma.conf.js // test
|
||||
├── node_modules
|
||||
├── package.json
|
||||
├── spec // test
|
||||
├── src // *the main file
|
||||
└── test-lib
|
||||
```
|
||||
|
||||
So we should read the `src/dom-to-image.js` mainly.
|
||||
|
||||
[dom-to-image源代码解析](/notes/source-code-analysis-of-dom-to-image)
|
@ -2,21 +2,16 @@
|
||||
title: __dirname is not defined in ES module scope
|
||||
date: 2024-05-29T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Published
|
||||
tags:
|
||||
- nodejs
|
||||
- 前端
|
||||
- esm
|
||||
- module
|
||||
finished: true
|
||||
published: true
|
||||
category: 前端
|
||||
slug: dirname-is-not-defined-in-es-module-scope
|
||||
NotionID-notionnext: 543bfc66-a416-4704-92be-9a93fed191a8
|
||||
link-notionnext: >-
|
||||
https://kazoottt.notion.site/__dirname-is-not-defined-in-ES-module-scope-543bfc66a416470492be9a93fed191a8
|
||||
rinId: 14
|
||||
description: >-
|
||||
# ES Module 问题:__dirname 不定义 在使用
|
||||
TypeScript创建的ESM文件中,遇到__dirname不定义的问题通常是因为使用了module的语法,应该改为ESM的写法。两种解决方法分别是改为module的写法和改为ESM的写法。
|
||||
|
187
src/content/note/agent-protocol代码阅读.md
Normal file
@ -0,0 +1,187 @@
|
||||
---
|
||||
title: agent-protocol代码阅读
|
||||
date: 2023-12-23T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Agent Protocol
|
||||
- agent
|
||||
toAstro: true
|
||||
slug: agent-protocol-code-study
|
||||
description: >-
|
||||
本文详细介绍了一个名为Agent Protocol的JavaScript & TypeScript
|
||||
SDK,该库旨在统一agent的规范,使不同agent之间的通信更为便捷。文章首先提供了库的文档和源代码地址,并解释了其主要功能和结构。接着,详细描述了库的入口点、目录结构以及如何使用tsup进行打包。此外,还深入探讨了库中包含的各种方法,如创建任务、列出任务ID、获取任务详情等,并解释了这些方法的内部逻辑和使用方式。最后,文章通过一个示例展示了如何使用Agent
|
||||
Protocol启动服务,并详细解释了启动过程中的每一步。
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:11.000Z
|
||||
---
|
||||
|
||||
# Agent-protocol
|
||||
|
||||
下面我们先来看一下这个库的代码
|
||||
文档地址:
|
||||
|
||||
[JavaScript & TypeScript Agent Protocol SDK - Agent Protocol](<https://agentprotocol.ai/sdks/js>)
|
||||
源代码地址:
|
||||
|
||||
[js](<https://github.com/AI-Engineer-Foundation/agent-protocol/tree/main/packages/sdk/js>)
|
||||
|
||||
这个库的作用是什么?
|
||||
|
||||
统一 agent 的规范,让不同的 agent 之间通信更加容易。
|
||||
|
||||
## 入口和目录结构
|
||||
|
||||
这个库使用的是 tsup 来打包。
|
||||
|
||||
```js
|
||||
import { defineConfig } from "tsup"
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["src/index.ts"],
|
||||
target: "node16",
|
||||
platform: "node",
|
||||
format: "cjs",
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
dts: true,
|
||||
loader: {
|
||||
".yml": "text",
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
在自定义 Loader 的时候有这样一行代码:
|
||||
|
||||
```javascript
|
||||
loader: {
|
||||
'.yml': 'text',
|
||||
}
|
||||
```
|
||||
|
||||
表示了 Tsup 的加载器配置。这个配置指定了当 Tsup 打包你的应用时,如何处理特定文件类型(在这种情况下是.yml 文件)。
|
||||
|
||||
具体来说,这个配置告诉 Tsup 在处理.yml 文件时使用 text loader。也就是说遇到 yml 文件的时候,直接把它作为纯文本文件加载到你的应用中,不进行特殊的编译或转换。
|
||||
|
||||
然后整个项目的结构如下:
|
||||
|
||||

|
||||
其中 model 和 yml.d.ts 是用来定义类型的。
|
||||
|
||||
然后这个库的入口为 index.ts(从 tsup 的配置中也能看出来), 因此只导入了 agent 和 model 模块,因此可以看出 api 是只在 agent 里面用的。
|
||||
|
||||
所以层级是:
|
||||
|
||||
index.ts --> agent.ts --> api.ts
|
||||
|
||||
最后导出的内容为:
|
||||
|
||||
```typescript
|
||||
export {
|
||||
type TaskInput,
|
||||
type Artifact,
|
||||
type StepInput,
|
||||
type StepOutput,
|
||||
type Step,
|
||||
type StepRequestBody,
|
||||
type Task,
|
||||
type TaskRequestBody,
|
||||
type StepHandler,
|
||||
type TaskHandler,
|
||||
StepResultWithDefaults as StepResult,
|
||||
createAgentTask,
|
||||
listAgentTaskIDs,
|
||||
getAgentTask,
|
||||
listAgentTaskSteps,
|
||||
executeAgentTaskStep,
|
||||
getAgentTaskStep,
|
||||
}
|
||||
|
||||
export { v4 } from "uuid"
|
||||
|
||||
export default Agent
|
||||
```
|
||||
|
||||
## 具体的方法
|
||||
|
||||
对于 Type 我们可以先不看,直接看后面的方法
|
||||
|
||||
### 对于 StepResultWithDefaults
|
||||
|
||||
这里是对于 StepResul 的一个初始化
|
||||
|
||||
### 对于 createAgentTask
|
||||
|
||||
这个方法的作用是:Creates a task for the agent. 为代理创建任务。
|
||||
|
||||
输入是任务的信息 输出是全局的任务列表
|
||||
内部的逻辑是:
|
||||
|
||||
跑一遍 taskHandler(从 Agent 外部传进来的)
|
||||
|
||||
然后获取到 stepHandler
|
||||
最后把任务的信息和 stepHandler 添加到全局的任务列表的最后
|
||||
|
||||
### 对于 listAgentTaskIDs
|
||||
|
||||
Lists all tasks that have been created for the agent.
|
||||
列出为代理创建的所有任务。
|
||||
|
||||
这里的逻辑很简单,就是去遍历全局的 tasks 把它的用 uuid 创建的 task_id 给取出来放到一个数组里
|
||||
|
||||
### 对于 getAgentTask
|
||||
|
||||
Get details about a specified agent task.
|
||||
获取指定代理任务的详细信息。
|
||||
|
||||
传入 task_id,获取 task item 的信息(也就是 task 和 stephandler 的信息)
|
||||
|
||||
### 对于 listAgentTaskSteps
|
||||
|
||||
Lists all steps for the specified task.
|
||||
列出指定任务的所有步骤。
|
||||
|
||||
根据 task_id 来查询这个 task 的所有的步骤 id
|
||||
|
||||
### 对于 executeAgentTaskStep
|
||||
|
||||
Execute a step in the specified agent task.
|
||||
执行指定代理任务中的一个步骤。
|
||||
|
||||
传入 taskId
|
||||
获取到对应的所有的任务
|
||||
执行 stephandler,获取到结果
|
||||
然后创建一个 step,把任务的 id ,step 执行结果给存进去
|
||||
最后把这个 step 给添加到一个全局的 step_list 的最后
|
||||
|
||||
### 对于 getAgentTaskStep
|
||||
|
||||
Get details about a specified task step.
|
||||
输入 task 和 step 的 id,查询这个 step 具体的信息
|
||||
|
||||
### 然后是最后的 Agent
|
||||
|
||||
它有一个静态的方法 taskHandler
|
||||
|
||||
和对外提供服务的接口化的方法 start()
|
||||
它把上述所有的方法都用 express 给构建成了服务
|
||||
|
||||
## 如何使用?
|
||||
|
||||
[minimal.ts](<https://github.com/AI-Engineer-Foundation/agent-protocol/blob/main/packages/sdk/js/examples/minimal.ts>)
|
||||
`Agent.handleTask(taskHandler).start()`
|
||||
|
||||
使用 Agent.handleTask(taskHandler).start() 来启动服务,过程中发生了什么
|
||||
|
||||
`Agent.handleTask(taskHandler).start()` 这一行代码的目的是通过调用 `Agent` 类的静态方法 `handleTask` 来创建一个 `Agent` 实例,然后立即调用该实例的 `start` 方法来启动服务。让我解释这个过程中发生的事情:
|
||||
|
||||
1. `Agent.handleTask(taskHandler)`:首先,`Agent.handleTask` 是一个静态方法,它接受两个参数,第一个参数是 `taskHandler`(任务处理程序),第二个参数是一个部分代理配置。这个方法的目的是创建一个新的 `Agent` 实例,并将 `taskHandler` 和代理配置传递给该实例的构造函数。实际上,这一步返回了一个 `Agent` 实例。
|
||||
2. `.start()`: 一旦 `Agent.handleTask(taskHandler)` 返回一个 `Agent` 实例,紧接着调用了 `start()` 方法。这个方法用于启动代理服务。
|
||||
|
||||
- 在内部调用 `createApi(config)`,是用于创建代理的 API。
|
||||
|
||||
总结起来,`Agent.handleTask(taskHandler).start()` 这一行代码的作用是:
|
||||
|
||||
1. 创建一个代理实例,该实例具有指定的任务处理程序和配置信息。
|
||||
2. 启动代理服务,并根据提供的或默认的端口号监听客户端请求。
|
21
src/content/note/agent合集.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
slug: agent-collection
|
||||
toAstro: true
|
||||
description: >2-
|
||||
探索ICLR 2024年基于大型语言模型(LLM)的智能代理论文合集,该合集收录了最新的研究成果,为研究者和开发者提供了丰富的资源和灵感。
|
||||
slug: iclr-2024-llm-based-agent-论文合集 tags: ICLR 2024, LLM-based Agent, 论文合集,
|
||||
人工智能研究 description: 本合集汇集了ICLR
|
||||
2024年关于基于大型语言模型的智能代理的最新研究论文,为人工智能领域的研究者和开发者提供了一个宝贵的资源库。
|
||||
tags:
|
||||
- Agent
|
||||
- ICLR 2024
|
||||
- LLM
|
||||
- 机器人
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:11.000Z
|
||||
title: agent合集
|
||||
---
|
||||
|
||||
# Agent 合集
|
||||
|
||||
[ICLR 2024 LLM-based Agent论文合集](<https://www.aminer.cn/topic/65409b681512231370cbf681>)
|
70
src/content/note/ant design pro i18n-remove报错.md
Normal file
@ -0,0 +1,70 @@
|
||||
---
|
||||
title: ant design pro i18n-remove报错
|
||||
date: 2024-02-13T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- antd
|
||||
- eslint
|
||||
- bugFix
|
||||
toAstro: true
|
||||
slug: ant-design-pro-i18n-remove
|
||||
link: >-
|
||||
https://kazoottt.notion.site/ant-design-pro-i18n-remove-6e2a745902ca4600ae306437f0cd1a9f
|
||||
notionID: 6e2a7459-02ca-4600-ae30-6437f0cd1a9f
|
||||
description: >-
|
||||
在执行ant design
|
||||
pro的i18n-remove任务时,遇到了一个报错,错误信息显示环境键“es2022”未知。解决方法是注释掉.eslintrc.js文件中的extends部分。此问题在GitHub的ant-design/ant-design-pro仓库的Issue#10620中有详细讨论。
|
||||
date_created: 2025-01-04T03:34:08.000Z
|
||||
date_modified: 2025-02-19T03:44:15.000Z
|
||||
category: 前端
|
||||
---
|
||||
|
||||
# Ant Design pro i18n-remove 报错
|
||||
|
||||
报错日志:
|
||||
|
||||
```
|
||||
* 正在执行任务: pnpm run i18n-remove
|
||||
|
||||
> ant-design-pro@6.0.0 i18n-remove /Users/kazoottt/GitHub/KazooTTT/toolkit
|
||||
|
||||
> pro i18n-remove --locale=zh-CN --write
|
||||
|
||||
✔ 📦 load all locale file and build ts
|
||||
|
||||
✔ ✂️ format routes
|
||||
|
||||
⠋ ✂️ remove locale for src/components/Footer/index.tsx./Users/kazoottt/GitHub/KazooTTT/toolkit/node_modules/.pnpm/@eslint+eslintrc@0.4.3/node_modules/@eslint/eslintrc/lib/shared/config-validator.js:175
|
||||
|
||||
throw new Error(message);
|
||||
|
||||
^
|
||||
|
||||
Error: .eslintrc.js » /Users/kazoottt/GitHub/KazooTTT/toolkit/node_modules/.pnpm/@umijs+lint@4.0.52_eslint@8.34.0_jest@29.4.3_styled-components@6.1.8_stylelint@14.8.2_typescript@4.9.5/node_modules/@umijs/lint/dist/config/eslint/index.js:
|
||||
|
||||
Environment key "es2022" is unknown
|
||||
|
||||
|
||||
```
|
||||
|
||||
也就是
|
||||
|
||||
> Environment key "es2022" is unknown
|
||||
|
||||
这里报错了
|
||||
|
||||
解决方法:注释掉 extends 这里
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
// extends: [require.resolve('@umijs/lint/dist/config/eslint')],
|
||||
globals: {
|
||||
page: true,
|
||||
REACT_APP_ENV: true,
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## 参考
|
||||
|
||||
[yarn run i18n-remove报错🐛 \[BUG\] · Issue #10620 · ant-design/ant-design-pro · GitHub](<https://github.com/ant-design/ant-design-pro/issues/10620>)
|
25
src/content/note/antd switch组件错误使用案例.md
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
title: antd switch组件错误使用案例
|
||||
date: 2024-10-12T00:00:00.000Z
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- bug
|
||||
description: >-
|
||||
antd的switch组件错误使用案例:当使用到antd的[switch](<https://ant-design.antgroup.com/components/switch-cn>)组件时,需要注意其api的使用。典型情况是,将checked状态与mode关联起来,并在mode变化时触发回调,然而,这种写法会导致切换switch时不会触发回调,而是等待-checked状态改变时才触发。正确的方法是使用onClick事件而不是onChange,这样可以让切换switch时触发回调。
|
||||
slug: antd-switch-component-misuse-example
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T03:44:53.000Z
|
||||
date_modified: 2025-02-19T03:44:15.000Z
|
||||
---
|
||||
|
||||
# antd switch 组件错误使用案例
|
||||
|
||||
在使用 antd 的 [switch](<https://ant-design.antgroup.com/components/switch-cn>) 的时候,我错误地使用了 api
|
||||
|
||||
``` tsx
|
||||
<Switch checked={mode === 1} onChange={handleModeChange} />
|
||||
```
|
||||
|
||||
这里的 onChange 是 cheked 变化的时候触发的回调,如果想要切换 Switch 的时候触发回调,应该使用 onClick,而不是 onChange。
|
||||
|
||||

|