2025-07-29

41 篇热帖

1. Show HN: Draw a fish and watch it swim with the others (drawafish.com)

Draw a fish and watch it swim in the global tank with everyone else's fish. Create, share, and vote on fish drawings.

2. ‘I witnessed war crimes’ in Gaza – former worker at GHF aid site [video] (www.bbc.com)

A retired US soldier reveals why he quit working at Israel and US-backed Gaza Humanitarian Foundation aid hubs.

3. Show HN: Use Their ID – Use Your Local UK MP's ID for the Online Safety Act (use-their-id.com)

项目概述

这是一个“Show HN”(Hacker News分享项目)倡议,名为“Use Their ID”,旨在鼓励用户使用其当地英国议员(MP)的ID来应对《在线安全法》(Online Safety Act)。该项目可能针对该法律的监管影响,通过利用议员ID作为某种形式的倡导、测试或抗议手段。基于标题信息,其核心目的是关联议员身份与在线安全法应用,可能涉及匿名访问、内容审核挑战或公众意识提升。由于缺乏详细正文,具体实现结构、功能或技术细节未提供,仅可推断它是一个面向公众的活动或工具,焦点在于法律与个人身份的交互。

4. Visa and Mastercard are getting overwhelmed by gamer fury over censorship (www.polygon.com)

Gamers are sending mass emails and phone calls to payment processors in protest over Steam and itch.io pulling adult games from their storefronts

5. My 2.5 year old laptop can write Space Invaders in JavaScript now (GLM-4.5 Air) (simonwillison.net)

I wrote about the new GLM-4.5 model family yesterday—new open weight (MIT licensed) models from Z.ai in China which their benchmarks claim score highly in coding even against models such …

10. Stop selling “unlimited”, when you mean “until we change our minds” (blog.kilocode.ai)

Claude Code joins the AI pricing bait-and-switch

11. Attention is your scarcest resource (2020) (www.benkuhn.net)

how to ration your shower thoughts • care viscerally • monotask • evade obligations • timebox bullshit

12. The EU could be scanning your chats by October 2025 (www.techradar.com)

As Denmark began its EU Presidency on July 1, 2025, the Chat Control proposal came back to the lawmakers' table on the very first day.

17. UK Online Safety Act sends VPN use soaring (www.wired.com)

A law requiring UK internet users to verify their age to access adult content has led to a huge surge in VPN downloads—and has experts worried about the future of free expression online.

18. Linux Performance Analysis (2015) (netflixtechblog.com)

Linux Performance Analysis in 60,000 Milliseconds You log in to a Linux server with a performance issue: what do you check in the first minute? At Netflix we have a massive EC2 Linux cloud, and …

20. Replacing cron jobs with a centralized task scheduler (mayhul.com)

用集中式任务调度器替代Cron作业

Heartbeat公司原本使用多个独立的Cron脚本(如createScheduledPosts.tssendEventReminders.ts)管理定时任务,导致问题:需独立管理每个脚本、故障排查与修复困难、缺乏统一日志、易因时区等错误导致任务失败。为此,公司开发了集中式任务调度系统。

核心设计

  • 单一数据库表 ScheduledTasks:存储所有任务,字段包括状态(QUEUED、EXECUTING、COMPLETED)、时间戳、优先级、过期时间、预期执行时间及负载(payload)。
  • 负载(Payload):使用区分联合类型定义任务类型,如发布事件、发送提醒、发送邮件等。
  • 任务ID生成:对可编辑任务(如事件提醒)基于实体ID生成确定性ID,实现创建时更新而非重复创建;对一次性任务(如发送邮件)则使用UUID。

工作流程

  1. 调度Cron作业:每分钟运行一次,筛选状态非已完成、时间戳小于当前时间+30秒且未过期的任务,按优先级排序后更新为EXECUTING状态,并为每个任务发送AWS SQS消息。
  2. SQS消费者:监听消息,根据负载类型调用对应处理函数执行任务。
  3. 完成处理:任务执行后标记为COMPLETED;若返回新任务则插入数据库。
  4. 更新关联:实体变更时(如事件时间修改),通过确定性ID自动更新对应任务。

关键机制

  • 重试与恢复:系统故障时,未执行任务仍存于数据库,恢复后可继续处理;过期时间(expirationInMinutes)控制任务是否延迟执行(如提醒类任务过期跳过,发布类任务永不过期)。
  • 任务卡顿处理:预期执行时间(expectedExecutionTimeInMinutes)字段用于判断任务是否卡在EXECUTING状态,超时后重新执行。

系统优势

  • 集中管理:统一日志、错误处理与监控,避免重复实现。
  • 可靠重试:故障后自动处理遗漏任务。
  • 执行记录:完整记录所有任务状态,便于问题排查。
  • 扩展简便:新功能只需添加负载类型和对应处理器,无需新建脚本。
21. Ethersync: Peer-to-peer collaborative editing of local text files (github.com)

Peer-to-peer, editor-agnostic collaborative editing of local text files. - teamtype/teamtype

22. Danish Study: No link between vaccines and autism or other health conditions (en.ssi.dk)

A new Danish study finds no association between aluminum in childhood vaccines and 50 different health conditions, including autism, asthma, and autoimmune diseases. The findings reaffirm the safety of Denmark’s childhood vaccination program.

24. Wikimedia Foundation Challenges UK Online Safety Act Regulations (wikimediafoundation.org)

维基媒体基金会于2025年7月对英国《在线安全法》的“分类法规”提起法律挑战,认为该法规可能将维基百科纳入最严格的“第一类”监管义务范围,从而威胁其运营和全球志愿者社区。基金会指出,若被强制执行,这些义务将损害志愿者隐私与安全、使维基百科易受操纵,并分散其资源。

挑战的核心在于,法规要求可能迫使基金会验证许多志愿者的身份,这会破坏维基百科的匿名贡献模式,可能导致志愿者面临数据泄露、骚扰甚至专制政权迫害的风险。基金会强调维基百科作为非营利性公共知识项目的安全性与重要性,并指出它不同于法规所针对的商业高风险网站。

在诉讼中,一名英国志愿者作为共同原告参与,突显了该案件对普通贡献者的影响。这是首次针对《在线安全法》分类法规的法律挑战,也是首次有维基百科志愿者作为共同原告参与。

2025年8月11日,英国高等法院驳回了基金会的挑战,但判决中承认了维基百科的“重大价值”及其对用户的安全性,并指出错误的分类可能损害志愿者人权。法院强调,该裁决“并非为Ofcom和国务大臣实施严重阻碍维基百科运营的制度开绿灯”,并暗示若未能保护维基百科及其用户权利,他们可能面临法律后果。法官建议,Ofcom可能需要灵活解释规则,或由议会对规则进行修订。

2025年9月12日,基金会宣布不会就高等法院的判决提出上诉,但将继续监测法院指导意见的执行情况,并在《在线安全法》推进过程中保护维基百科。基金会期待Ofcom即将作出的分类决定,并继续寻求保护维基百科及其用户权利的解决方案。

基金会表示,它并非全面挑战《在线安全法》或第一类义务本身,而是针对可能对维基百科产生不当影响的分类法规。整个诉讼过程基于多年与监管机构和政策制定者的对话未果,以及议会和公民社会的警告。

26. Nothing to watch – Experimental gallery visualizing 50k film posters (nothing-to-watch.port80.ch)

Discover movies through an interactive visualization. Explore tens of thousands of films in a unique force-directed voronoi diagram interface.

27. iPhone 16 cameras vs. traditional digital cameras (candid9.com)

iPhone Camera vs real camera

28. The hit film about overworked nurses that's causing alarm across Europe (www.theguardian.com)

A Swiss film about a nurse pushed to her limits one night is being praised for the picture it paints of treacherously underfunded healthcare. The director talks about the ‘heart-pounding’ story that inspired her

30. Yearly Organiser (neatnik.net)

A simple printable calendar with the full year on a single page

31. Make Your Own Backup System – Part 2: Forging the FreeBSD Backup Stronghold (it-notes.dragas.net)

Build a bulletproof backup server with FreeBSD, ZFS, and jails. Complete guide covering encryption, security hardening, and multiple backup strategies for enterprise-grade data protection.

33. The leverage arbitrage: Why everything feels broken (tushardadlani.com)

Something fundamental has shifted in how power works, and most of our institutions haven't noticed. We're living through what might be called "leverage arbitrage divergence"—a growing gap between...

34. Tea app leak worsens with second database exposing user chats (www.bleepingcomputer.com)

The Tea app data breach has grown into an even larger leak, with the stolen data now shared on hacking forums and a second database discovered that allegedly contains 1.1 million private messages exchanged between the app's members.

35. Zig Profiling on Apple Silicon (blog.bugsiki.dev)

If you’re a developer rocking an Apple Silicon Mac and writing in Zig, congratulations - you’ve chosen the scenic route through the desert of profiling tools. It’s just you, your code, and a tumbleweed named Apple Instruments. But don’t worry - we’ll try to find some oases. Okay, it’s not that bad, but we’re far away from the rich ecosystem of profiling tools available on Linux. Note: I have limited experience using low-level languages, so this article doesn’t provide a deep dive into profiling, but rather serves as an entry point to the world of profiling.

36. OpenAI's ChatGPT Agent casually clicks through "I am not a robot" verification (arstechnica.com)

This step is necessary to prove I'm not a bot," wrote the bot as it passed an anti-AI screening step.

37. How Hyper built a 1M-accurate indoor GPS (andrewhart.me)

To @AndrewHart: “Our app is shit and we know it’s shit”. My life changed forever when a senior exec from one of the world’s largest retailers messaged me on Twitter. This was back in 2017. My outdoor AR navigation demos had just gone viral, and my new open-source project for...

38. The Useless UseCallback (tkdodo.eu)

Why most memoization is downright useless...

39. Show HN: Terminal-Bench-RL: Training long-horizon terminal agents with RL (github.com)

GRPO training code which scales to 32xH100s for long horizon terminal/coding tasks. Base agent is now the top Qwen3 agent on Stanford's TerminalBench leaderboard. - Danau5tin/terminal-bench-rl

40. Robot hand could harvest blackberries better than humans (news.uark.edu)

The soft robotic gripper developed at the U of A received a U.S. patent.