2025-07-24

41 篇热帖

1. AI overviews cause massive drop in search clicks (arstechnica.com)

The Pew Research Center analysis shows how hard AI is hitting web traffic.

3. Electric cars produce far less brake dust pollution than combustion-engine cars (modernengineeringmarvels.com)

电动汽车刹车粉尘污染远低于燃油车

一项由EIT Urban Mobility开展、针对伦敦、米兰和巴塞罗那繁忙街道的研究表明,与燃油车相比,纯电动汽车产生的刹车粉尘污染减少了83%

这一显著差异主要归因于电动汽车的再生制动技术。与传统摩擦制动(通过刹车片与刹车盘摩擦减速并产生粉尘颗粒)不同,电动汽车的电机反转减速可将动能转化为电能储存,并减少约一半的机械制动需求,从而大幅降低刹车颗粒物的排放。

刹车粉尘由铁、铜、锌、有机碳及其他金属组成,不仅是车身污渍的来源。研究表明,城市中高达55%的非排气管交通相关PM10排放来自刹车磨损。这些通常小于10微米、甚至低于100纳米的超细颗粒可被吸入并深入肺部。实验显示,富含铜的刹车粉尘引发的氧化应激和炎症反应,其强度有时甚至超过柴油废气颗粒物。这对城市弱势群体健康影响尤为严重,与哮喘、心血管疾病等呼吸道疾病发病率的增加相关。

尽管有观点认为电动汽车因平均重量更大而导致轮胎磨损略有增加,但该研究发现,刹车粉尘比轮胎颗粒物更易悬浮并污染空气。即使综合计算轮胎、刹车和道路磨损的排放,纯电动汽车的颗粒物污染也比燃油车低38%,这还未计入其零尾气排放的优势。

现实数据也印证了这一趋势:在零排放车辆普及率提高的地区,邻里空气污染和哮喘急诊入院率均有下降。然而,受益并不均衡。受污染影响最严重的低收入社区,电动汽车普及速度较慢,这凸显了公平获取清洁交通的必要性

对政策制定者而言,随着尾气排放持续减少,非排气管排放(尤其是刹车磨损)将占城市颗粒物污染的更大份额。欧盟即将实施的Euro 7法规将首次对轮胎和刹车排放设定标准,反映了监管重点的转移。同时,技术发展已在进行:部分制造商在电动汽车上采用封闭式刹车鼓以截留颗粒物,轮胎制造商也在研发低磨损专用配方。

该研究还指出了更广阔的减排途径:将通勤者从私家车转向公共交通、骑行或步行,其减少的非排气管排放量可达单车电动化减排效果的五倍。但对于仍将在城市道路上行驶的数以百万计的汽车而言,普及纯电动汽车及其再生制动技术,是迈向更清洁、更健康城市空气的重要一步。

4. I made Tinder but it's only pictures of my wife and I can only swipe right (trytender.app)

Tender 应用简介

Tender 是一个类似于 Tinder 的照片分享应用,但专注于用户亲人或爱人的照片,并且只能通过向右滑动来表示喜欢或接受。

核心功能:

  • 滑动浏览用户收藏的亲人照片。
  • 创建相册以组织和保存回忆。
  • 分享记忆,通过每次滑动传播爱。

设计特点:

  • 模仿 Tinder 的滑动界面,但限制为只能向右滑动,强调正面互动。
  • 旨在增强情感连接,一次一滑地传递爱意。
5. There is no memory safety without thread safety (www.ralfj.de)

Memory safety is all the rage these days. But what does the term even mean? That turns out to be harder to nail down than you may think. Typically, people use this term to refer to language...

8. PSA: SQLite WAL checksums fail silently and may lose data (avi.im)

SQLite WAL has checksums, but on corruption it drops all the data and does not raise error

9. Web fingerprinting is worse than I thought (2023) (www.bitestring.com)

Your comprehensive blackjack strategy playbook covering fundamentals, advanced tactics, analytics, and practical insights.

12. Use Your Type System (www.dzombak.com)

利用类型系统预防程序错误

核心问题

在编程中,我们常使用基本或通用类型(如 intstring、UUID)来表示各种不同的概念(如用户ID、账户ID、数值参数)。这种做法会导致上下文信息丢失,从而极易引发错误,例如:

  • 混淆了不同但类型相同的ID(如将用户ID误用作账户ID)。
  • 在调用函数时搞错多个同类型参数的顺序。

这些错误在编译时通常无法被捕获,往往在运行时才显现。

解决方案:定义专用类型

更好的方法是利用编程语言的类型系统,为不同的概念定义不同的类型。即使底层表示形式相同(例如都是UUID或浮点数),通过创建新类型,可以赋予它们明确的语义。

优势

编译器可以在编译阶段进行类型检查,从而完全消除这一类由类型混淆导致的错误。

具体示例

1. 避免ID混淆

以Go语言为例,可以为不同的实体ID创建独立类型:

type AccountID uuid.UUID
type UserID uuid.UUID

这样,编译器会阻止将 AccountID 类型的值传递给需要 UserID 的函数,从而避免错误。

2. 防止单位/概念混用(libwx库案例)

作者的Go语言库 libwx 演示了此技巧在实际中的应用。该库为各种测量单位定义了专用类型,并附加了单位转换方法。

// 声明类型
type TempF float64   // 华氏温度
type TempC float64   // 摄氏温度
type RelHumidity float64 // 相对湿度

当尝试计算露点时,如果错误地将华氏温度(TempF)传递给需要摄氏温度(TempC)的函数,或者搞错了函数参数顺序,编译器都会直接报错,从而防止了运行时错误。

结论

应当充分利用编程语言的类型系统作为辅助工具。

  • 为模型定义专用的ID类型。
  • 公共和私有函数应避免仅使用原始的浮点数或整数类型。

这种方法能从根本上消除一大类常见的编程错误,即使在如Go这样类型系统并非特别强大的语言中也是如此。遗憾的是,如此简单有效的技巧在实际生产代码库中并未得到广泛应用。

13. Open Source Maintenance Fee (github.com)

User story As a WiX maintainer, the Open Source Maintenance Fee provides funding for ongoing maintenance tasks that would ensure the long-term sustainability of the WiX Toolset. Proposal Open Source Maintenance Fee Introduction To ensure...

15. Diet, not lack of exercise, drives obesity, a new study finds (www.npr.org)

One explanation for the rise in obesity in industrialized countries is that people burn fewer calories than people in countries where obesity is rare. A major study finds that's not the case.

16. UK: Phone networks down: EE, BT, Three, Vodafone, O2 not working in mass outage (www.the-independent.com)

Several major phone networks in the UK appear to be down following a major outage.

18. AMD CEO says U.S.-made TSMC chips are 5%-20% more expensive, but worth it (www.tomshardware.com)

The U.S.'s push for domestic chip manufacturing is bearing fruit.

19. Vet is a safety net for the curl | bash pattern (github.com)

vet is a command-line tool that acts as a safety net for the risky curl | bash pattern. It lets you inspect, diff against previous versions, and lint remote scripts before asking for your explicit approval to execute. Promoting a safer, more transparent way to handle remote code execution. - vet-run/vet

20. Developing our position on AI (www.recurse.com)

This post is about how we've tried to develop a position on AI in the context of learning and growth at RC.

24. Show HN: Apple Health MCP Server (github.com)

MCP server for querying Apple Health data with natural language and SQL - neiltron/apple-health-mcp

25. Show HN: TheProtector – Linux Bash script for the paranoid admin on a budget (github.com)

Linux Bash Script for the Paranoid Admin on a Budget - real-time monitoring and active threat response - IHATEGIVINGAUSERNAME/theProtector

26. Itch.io: Update on NSFW Content (itch.io)

Update July 28th, 2025 : Addendum FAQ Update July 31st, 2025 : Reindexing adult NSFW content We have “deindexed” all adult NSFW content from our browse and search pages. We understand this action...

27. Employee – CEO pay gap historically wide (www.cnn.com)

The pay gap between America’s corporate leaders and their workers grew even larger in 2024, according to the AFL-CIO’s annual Executive Paywatch report, released Wednesday.

28. Shallow water is dangerous too (www.jefftk.com)

Content warning: risk to children Julia and I know drowning is the biggest risk to US kids 1-4, and we try to take this seriously. But yesterday our 4yo came very close to drowning in a fountain. (She's fine now.) This week we were on vacation with my extended family: nine kids, eight parents, and ten grandparents/uncles/aunts. For the last few years we've been in a series of rental houses, and

30. Low cost mmWave 60GHz radar sensor for advanced sensing (www.infineon.com)

BGT60TR13C is a 60 GHz radar sensor with >5 GHz bandwidth, an integrated Antenna-in-Package, and FMCW for gesture sensing. Find parameters and ordering info.

31. I drank every cocktail (aaronson.org)

The International Bartenders Association, or IBA, maintains a list of official cocktails, ones they deem to be “the most requested recipes” at bars all around the world. It’s the closest thing the bartending industry has to a canonical list of cocktails, akin to the American Kennel Club’s registry of dog breeds or a jazz musician’s Real Book of standards.

32. Apache HTTP Server: 'RewriteCond expr' always evaluates to true (github.com)

Mirror of Apache HTTP Server. Issues: http://issues.apache.org - fix rewritecond expr regression in 2.4.64 · apache/httpd@8abb3d0

33. A list of changes to make it easier to build beautiful and walkable places (chrisbarber.co)
  • 主题:该页面原本提供了一份更改列表,旨在使构建美丽和可步行场所变得更加容易。
  • 当前状态:此页面已不再发布或上线。
  • 获取信息:如果用户仍需访问,应通过提供的电子邮件地址联系作者以获取副本。
35. A valid HTML zip bomb (ache.one)

<h1 id="a-valid-html-zip-bomb"><a tabindex="0" class="anchor" href="/notes/html_zip_bomb">A valid HTML zip bomb</a></h1><p><img src="/notes/res/zip_bomb_file.svg" alt="Illustration d&#x27;une bombe zip" height="150" width="150"> Many sites have been affected by the aggressiveness of web crawlers designed to improve LLMs. I’ve been relatively spared, but since the phenomenon started, I've been looking for a solution to implement. Today, I present a zip bomb <a href="/bomb.html">gzip and brotli that is valid HTML</a>.</p><a href="/notes/html_zip_bomb"></a>

36. BlueOS Kernel – Written in Rust, compatible with POSIX (github.com)

Contribute to vivoblueos/kernel development by creating an account on GitHub.

37. 16colo.rs: ANSI/ASCII art archive (16colo.rs)

16colo.rs is an archive of ANSI and ASCII art. Preserving artpacks released through the BBS underground artscene since the early 1990s until the present.

38. Software Development at 800 Words per Minute (neurrone.com)

这篇文章主要介绍了作者作为视障开发者如何利用屏幕阅读器进行软件开发的工作方式、工具选择与挑战。作者通过800词/分钟的速度听取代码,并分享了相关经验和见解。

核心内容概要

  • 屏幕阅读器使用:作者使用NVDA屏幕阅读器,以800词/分钟的速度听取代码和界面信息。他通过长期训练适应了这种高速合成语音,并选择Eloquence语音合成器,因其在高语速下仍能保持清晰度和低延迟。
  • 工作环境选择:作者选择Windows系统因其无障碍支持最成熟,并通过WSL2使用Linux开发环境。VS Code是主要IDE,因其出色的无障碍设计和键盘导航支持。
  • 无障碍挑战与应对:应用程序的无障碍性取决于其如何向屏幕阅读器暴露界面信息。对于不兼容的工具,作者会寻找替代方案、编写用户脚本、利用API或报告问题。基础设施即代码(IaC)显著提高了开发效率。
  • 特定任务处理
    • 前端开发:虽非强项,但作者可参与状态管理、API集成等非视觉工作。
    • 图像理解:依赖alt文本、OCR和大型语言模型(LLMs)来解析图像内容。
    • 图表绘制:使用Mermaid等标记语言,以代码形式创建和理解图表。
    • 协作与学习:避免实时结对编程,偏好异步协作;通过文本资源和LLMs高效学习,处理视频时依赖文字记录或加速播放。
  • 单通道限制:作者无法同时听取屏幕阅读器和他人讲话,需通过预读材料、请求明确语言描述等方式来同步信息。
  • 核心观点:无障碍设计对视障开发者至关重要。作者呼吁开发者工具和软件应注重语义化HTML、键盘导航等实践,以支持多样化工作者。尽管存在挑战,软件开发领域对不同工作方式展现出较强适应性。
39. 200k Flemish drivers can turn traffic lights green (www.vrt.be)

佛兰德斯智能交通灯系统概要

系统原理与目标

  • 通过智能手机APP与智能交通灯通信,使接近路口的车辆(包括汽车、自行车和摩托车)能更早获得绿灯。
  • 主要应用场景:夜间或低流量时段,主干道常绿,侧路车辆通过APP可立即获得绿灯,无需无效等待。

实施进度

  • 原计划在250个路口安装智能交通灯,实际已安装230个,基本按计划完成。
  • 目前约八分之一的区域道路交通灯已具备此技术,均连接互联网并与交通APP通信。
  • 佛兰德斯是欧洲第二个部署此技术的国家(继荷兰之后),处于领先地位。

用户覆盖现状

  • 当前用户:约20万佛兰德斯居民使用支持此功能的小型APP(如Karta GPS、Flitsmeister、Sway)。
  • 效果:初步采样显示,车辆和自行车通过路口更顺畅。
  • 挑战:主流导航应用(如Waze、Google Maps)及车载系统尚未集成该技术,用户不愿额外安装APP。
  • 未来计划:与Waze、Google Maps、TomTom及汽车制造商洽谈集成,以扩大覆盖范围。

紧急服务应用

  • 该技术已在根特等城市的救护车和消防车中应用。
  • 紧急车辆可与智能交通灯交互,自动获得绿灯,避免危险操作,并缩短到达事故现场的时间。
40. A small web July (smallcypress.bearblog.dev)

I am putting this out into the ether to see if anyone wants to join me, in any capacity, in some kind of accountability structure (following each others blog...