多宝 retweeted
The PHP security team is giving advance notice: Upcoming security release Wed, Oct 21st 2026, 14:00UTC, two critical vulnerabilities, both rated CVSSv4 9.2.
PHP users are encouraged to prepare to update. Earlier release if details become public or active exploit evidence.
🐹 JetBrains 官方出手,专治 AI 写出一手过时 Go 代码:go-modern-guidelines 装进 Claude Code、Codex、Cursor 就能用。
GitHub 上 3400 多 star,JetBrains 官方仓库,最近还上了 GitHub Trending。
让 AI 写 Go,经常拿回来一堆老写法:手写 if-else 比大小,for 循环查切片里有没有某个值,一层层判 nil。代码能跑,但放在今天的 Go 里就是过时的。原因也不复杂,模型训练数据有滞后,旧写法在数据里出现得又更多。
go-modern-guidelines 给 agent 一套现代 Go 规范:比大小用 max(a, b),查包含用 slices.Contains,一串 nil 判断换成 cmp.Or(a, b, c),Go 1.26 新加的 new(42)、errors.AsType[T](err) 也收在里面。
它会先看 go.mod 里的 Go 版本,再按项目实际版本挑能用的现代写法。方向也和 Go 团队自己的 modernize 分析器一致,Junie 这类 agent 同样能用。
让 AI 写的 Go 看起来像今年写的,而不是五年前。
GitHub:github.com/JetBrains/go-mode…
多宝 retweeted
原帖评论区是 git alias 讨论特别热烈,发现我也经常使用,贴一下最常用的三个,尤其是第三个,我记得之前发出来收藏人好多。
[alias]
# 删除最近一个提交,保留文件修改
undo = reset --soft HEAD^
# 删除最近一个提交,不保留文件
cancel = reset --hard HEAD^
# 提交完了,发现还需要一点小修改,不想新建一个提交
onemore = commit -a --amend --no-edit
当时还写了一篇文章,六条黄金 Git 命令:
vikingz.me/pro-git/
多宝 retweeted
mp.weixin.qq.com/s/f82GBadLc…
这是大师之言,真刀真枪干出的经验,好几个点都强烈赞同。
多宝 retweeted
Explaining 8 Popular Network Protocols in 1 Diagram. The method to download the high-resolution PDF is available at the end.
Network protocols are standard methods of transferring data between two computers in a network.
1. HTTP (HyperText Transfer Protocol)
HTTP is a protocol for fetching resources such as HTML documents. It is the foundation of any data exchange on the Web and it is a client-server protocol.
2. HTTP/3
HTTP/3 is the next major revision of the HTTP. It runs on QUIC, a new transport protocol designed for mobile-heavy internet usage. It relies on UDP instead of TCP, which enables faster web page responsiveness. VR applications demand more bandwidth to render intricate details of a virtual scene and will likely benefit from migrating to HTTP/3 powered by QUIC.
3. HTTPS (HyperText Transfer Protocol Secure)
HTTPS extends HTTP and uses encryption for secure communications.
4. WebSocket
WebSocket is a protocol that provides full-duplex communications over TCP. Clients establish WebSockets to receive real-time updates from the back-end services. Unlike REST, which always “pulls” data, WebSocket enables data to be “pushed”. Applications, like online gaming, stock trading, and messaging apps leverage WebSocket for real-time communication.
5. TCP (Transmission Control Protocol)
TCP is is designed to send packets across the internet and ensure the successful delivery of data and messages over networks. Many application-layer protocols build on top of TCP.
6. UDP (User Datagram Protocol)
UDP sends packets directly to a target computer, without establishing a connection first. UDP is commonly used in time-sensitive communications where occasionally dropping packets is better than waiting. Voice and video traffic are often sent using this protocol.
7. SMTP (Simple Mail Transfer Protocol)
SMTP is a standard protocol to transfer electronic mail from one user to another.
8. FTP (File Transfer Protocol)
FTP is used to transfer computer files between client and server. It has separate connections for the control channel and data channel.
–
Subscribe to our newsletter to download the high-resolution PDF. After signing up, find the download link on the success page: bytebytego.ck.page/3581072b8…
多宝 retweeted
想背单词?百词斩、流利说、墨墨背单词、Anki、不背单词,各种App换来换去也没记住多少。
最后发现,还是读英文故事学单词最有效。
曾尝试提供一个单词,AI解释词根词缀,拓展形似词、近义词,然后用这些词再不同难度的英文短篇故事学习,但实际生成的故事情节非常拉胯,毫无记忆点。
直到有天看Youtube,发现两个英语百字短文网站。(前些天分享过)
fridayflashfiction.com/100-w…
100wordstory.org/
开启每天读英文故事学单词,做法如下:
1. 每天找以上网站找一篇英文短文,复制到任意笔记本工具。比如Obsidian、iOS备忘录等。
2. 先硬着头皮读一遍,加粗标记不认识、看不懂的单词、词组或短语。
3. 然后用GPT4 interpreter或Claude.ai 翻译成中文,再对照读一遍。(参考Glasp插件用法)
4. 把翻译结果粘贴到笔记中,做成英文故事双语翻译版。
5. 再把加粗的单词复制粘贴丢给AI,让它生成释义、发音和使用场景说明。
Prompt如下:
“你是一名多年教学经验的优秀中英双语老师,你擅长解释单词/词组的释义、音标,并给出使用场景案例,帮助学生快速学习记忆。如有上下文,优先用文中的单词释义。
输出格式:
<单词/词组> [<音标>] ,<中文释义>
场景:<场景案例>
在处理前,询问我是否有需要指定处理的单词或词组。如果我回复no,这是再从文章中提炼最值得学习掌握的单词和词组,然后处理。”
最后一步,整理学习笔记发到Twitter(X)打卡,靠社交关联,提升学习意愿。
理论上这肯定不是最佳学单词方法,依赖翻译,也没摆脱中文思维习惯,但是胜在操作简单,有收获感,有利于养成习惯,感兴趣的朋友,可以和我一起无脑坚持一个月看看。
多宝 retweeted
为什么要用剑桥大学的 AI 机器人提高英语听力和口语
speakandimprove.com
Sandi 是剑桥大学开发的 AI,用法很简单:它用语音问你问题、你用语音回答它的问题,而后它会利用 AI 来判断你的英语水平
和其他各种 AI 英语陪练不同在于,Sandi 不是简单地夸你两句、给你一些泛泛的建议,它会按照剑桥的英文能力指数给你打分评级(图二)😂
我当然要亲自测试一下,第一组它问了我 8 个非常简单的问题,标准的英式英语口音、很友好的机器人的语气…我回答完了,它给我打了 140 分,属于欧洲标准里入门的 A2 级…
大概是我说话声音太小了?🌚
#设计AI
多宝 retweeted
转:一款由剑桥大学开发的免费提高英语写作水平工具,无需注册。
供英语学习者练习他们的书面英语,提交写作结果几秒钟后将获得与国际标准CEFR相关联的结果,自动反馈你的写作可能需要改进的地方,支持初学者、中级和高级等不同英语写作水平的用户。
writeandimprove.com/
多宝 retweeted
坚持写作输出的主要目的,是为了更好地输入、学习和积累个人知识库。作为新年礼物,把自己如何获取信息、聚焦阅读、汇总研究、长文创作的方法分享给大家。全文由费曼学习法、信息获取和知识输出的方法论,还有笔记工具的进化三部分组成,共五千字!欢迎转发、收藏再阅读 🎁 indigox.me/feynman-technique…
多宝 retweeted
#工程师学习 推荐一个适合程序员的英语单词肌肉记忆锻炼好工具 Qwerty Learner qwerty.kaiyi.cool/
🐝内置了4/6级/托福/雅思等专业英语,也有编程中常用英语等词库,支持速度、正确率、音标、默写等功能
🤖 打包成 Mac/Window/Linux 小应用,体验不错,可去 Github 下载github.com/tw93/Pake
多宝 retweeted
⛔ As of today, PHP 7.4, and with that PHP 7 is no longer supported.
🆙 Please upgrade to PHP 8.0, or preferably the latest PHP 8.1 release, 8.1.13.
🆕 PHP 8.2 comes out on December 8th!
多宝 retweeted
Laravel 10.x (release in Feb 2023) will add type-hints and return types to all application skeleton methods. ✅
Property types are not being added due to that being a breaking change.
多宝 retweeted
#工程师工具,推荐4个清理 Mac 工具,清理很彻底高效,选择用
😆 Pretty Clean 磁盘清理 bit.do/fVsrp
😊 AppCleaner 软件卸载 bit.do/fVsrm
😂 mac-cleanup-sh 清理脚本 bit.do/fVsrh
🐝 App Cleaner & Uninstaller 最彻底的清理付费软件 bit.do/fVsrf
多宝 retweeted
github.com/rueian/rueidis 这个 redis 库应该是性能最好的 go redis client 了,在 centrifuge 的 benchmark 里能比 go-redis 快一倍,内存分配也少了一半。一个台湾朋友的项目,相当牛逼





































