TONG-H
Timeline
CAT-TV

0803i set up a small fish tank as a CAT TV for hello. i bought some fish and shrimp online, they are really tiny, barely bigger than a mosquito. but hello doesn’t seems interesting in them at all. I can’t believe a cat wouldn’t enjoy watching a group of fish swimming around. It makes me wonder if he can even see such small fish. but cats are supposed to have good eyesight. let’s just wait and s...

13032025-08-032025-08-24
2025-08

0803 learn from deepwiki-open code and go though rag process CAT-TV 0810-0817 develop a mcp serve to migrate project from a inner-bundle framework to vite learn playwright, and trigger it in that mcp serve for testing i‘v learned much about mcp server and playwright. there should be a blog to record this. but the company project is closely involved i guess the test part powered by playwright c...

11292025-08-012025-08-24
AI 实践-DeepWiki-open 为项目生成 wiki 文档

背景 有一些仓库的 readme 文件很草率,如果作为一个新人去接手一个仓库,看完 readme 连这个仓库的作用都不知道,需要多花时间看代码才能理解这个仓库的功能。但换个角度,作为一个开发人员,大部分时候都会疏于去写文档。 DeepWiki是专门解决这个问题的,用于为 github/gitlab 仓库生成全面详细文档,但这是个闭源项目,且能集成的平台有限https://docs.devin.ai/integrations/gh DeepWiki-open 是 DeepWiki 的一个开源实现 基于 adalflow, 支持本地部署,以及结合 ollama 使用本地模型 支持基于仓库像模型提问 技术调研在决定使用deepwiki之前有了解过一些其他的方式 cursor + rule 只用一个rule,不会深入代码比较浅,适合当readme文件 通过不通的 rule 来生成不同的...

71.9k2025-07-202025-08-04
AI practice-use `cursor` to migrate features from an old project to a new one.

backgroundI’ve got to migrate pages from an old project to a new one. i’m totally new to the code, whether the old or the new project. so my principle is to keep it safe and stay stable, and to minimize my verification work as much as i can. the two projects are based on different tech stacks. Old: React 15, Webpack, jQuery, internal ui framework New: React 16.8+ and TypeScript and Redux, Vite...

23692025-07-202025-08-04
在富文本编辑器中处理图文资源

背景功能是在富文本编辑器创建/编辑一些图文内容, 图文图文, “文”没什么需要操心的, 主要是“图” 。 图乍一看好像也没什么担心的, 但是用户行为大概率不会按照期望去做。, 有图片上传按钮,但是用户可能会粘贴或者拖拽,刚开始暂时都还能显示, 只是个别会因为跨域或者验证限制什么的会无法显示。但这从外部来的 src 链接不是自己服务器的, 指不定什么时候就失效了。所以理想情况还是要下载存储到服务器。 富文本编辑器是基于 wangeditor, 用户添加图片的行为主要是 菜单栏上传按钮, 合法流程, 没什么操心的 复制粘贴图片, 截图然后粘贴, 或者从文件夹拖拽图片进编辑器, 这几个也算合法流程, 因为数据类型都包含 Files 会触发 editor 的上传事件, 就走到了合法流程。如果用的 editor 没有触发, 也可以通过监听 paste / drop 事件来监听 tips:wa...

31k2025-07-132025-08-04
2025-07

0706 rn render issues gif rendering in rn, Android have performance issues with large GIFs. use react-native-fast-image is a popular choice rendering multiple webviews on a single page can lead to performance issues Each WebView is a separate instance of Chromium (Android System WebView or Chrome), consuming ~20-100MB+ RAM per instance depending on: Device RAM, WebView content complexity and ...

11852025-07-012025-08-24
how to stew meat

thanks to my fracture, I can only muster a tiny bit of strength with my mouth. for nearly three weeks, I’ve been living on stewed dishes. vigatables, egg and fishs are easy to stewed to achieve tenderness. but meat? let’s say under my cooking skills, it’s just leather. so I’m seeking how to stew meat until it can melt in my mouth. one thing can’t ignore is that some cuts with a bit of fat are t...

12972025-07-012025-07-03
AI 实践-Memory Bank

Cline集成 memory bank 的概念是 cline 提出的。而 cline 是一个 ai 工具,可以以插件的方式集成到 vscode 中使用,可以参考官网文档 但这里我用的是 cursor,可以以 rule 的方式集成,非常简单,可以参考这论坛的这篇文章how-to-add-cline-memory-bank-feature-to-your-cursor 里面涉及到 cline 的 Plan/Act 模式和 memory bank,其实是将 cline 的 prompt 改成 cursor 的 rule Memory Bank Memory bank 是一些存储在项目中的markdown文件,类似于README文件,但更为结构化,超越了单个README文件通常包含的内容。通过维护这些文档,之前的聊天结果得以保存,模型通过检索这些文档可以重建上下文 cline-memo...

27872025-07-012025-08-04
Maxillofacial fracture

well, congratulation to me, learned a new word Maxillofacial fracture, and i’m sure i’ll remember it for the rest of my life. i barely recall how it all happened – there’s not much memory left with me. the road is just opened, and the street lights aren’t start working. it’s almost pitch-black, and barely see the road surface. i guess my wheels get stuck in a rock or stick. since the road slope...

34922025-06-102025-07-03
2025-06

0629 use browsertools with cursor 28 屋台が開くで、飲み物を売りたいです。 0608 re-learn rn, the missed point, the new/old bridge, Fabric-renderer use PanResponder and Animated to realize a swiper component, similar in behavior to what “豆瓣/书影音页面” uses 05 コンピりのさつまいも(sweet potato)は甘く美味い 04 少量の痛みが必要だ

1642025-06-012025-07-03