file
Uploading images and previewing is a common use case in a web application. Learn how to do it using ReactJS and TailwindCSS.
Using Next-Auth V5 for Google and GitHub OAUTH Login in a Next.js app: A complete guide
macOS 的 Finder 有一个长期被吐槽的缺陷:右键菜单没有「新建文件」选项。Windows 用户切换到 Mac 后,这个习惯动作会让人反复踩坑。 每次想新建一个空白文本文件,标准流程是:打开 TextEdit(或 VS Code)→ 新建文档 → Command+S → 导航到目标目录 → 输入文件名 → 保存…
大家好啊,前段时间做了个 MBTI 梗化测试 app,想加个"结果分享"功能——用户测完 16 人格,截图给朋友看。听起来简单,真做下去发现要串三段 API: componentSnapshot 拿 PixelMap → ImagePacker 打 PNG → startAbilityByType('share') 调…
This week, we discover an invisible maze, designed to trick millions of people out of their money. Justin Elliot’s Twitter Pro Publica’s questionnaire for peopl…
This week: what "code rot" really means; the other meaning of "PDF file"; and the truth behind the viral Freddy Krueger "cancellation."
本文介绍了在使用 SSH Key 时的安全问题,强调了加密私钥的重要性以及如何使用 ssh-agent
梳理 POSIX 对“行”的定义,解释缺少结尾换行会引发的问题,并整理在编辑器、lint、脚本层面的解决方案。
22 年校招面字节的时候,面试官随口问了个问题:有几亿条数据存储在文件中,我该怎么排序?虽然在很多高频面经上看过这个问题,但完全没有在意,心想:正常排序呗还能怎么做,加载不进内存就分块处理。可具体怎么分块并没有仔细思考过。 看似是一个算法题,但这完全是一个工程题。 今年遇到了类似的问题,有两组文件,第一组叫 bench…





