Bloody Sunshine

Just too damn hot

WR 20251115

题图:去了趟平谷,叶子还没有掉光

Just use a button

One of the weirdest “debates” I seem to perpetually have with framework-enthusiastic developers is whether or not a <div> is “just as good” as a <button>. Spoiler: it’s not. Let’s dig in.

Web 2.0 刚刚兴起的时候,前端工程师是非常在乎 HTML 语义的。因为在早些年,网页大量使用表格进行布局,导致 HTML 中充斥着层层叠叠的表格。

 <tr>
	 <td></td>
	 <td>
		<table>
			<tr>
				<td>
                      正文文内容在这里
				</td>
			</tr>
		</table>
	 </td>
 </tr>

这种布局方式代码和内容八竿子打不着,后来引入语义化代码,将布局交给 CSS,实现了即使网页只有 HTML 也具有高度的可读性,对可用性来说是一次飞跃。 作为一个半吊子前段工程师,看到这个文章我还挺震惊的,这竟然也能辩起来?如果 div 当作按钮是好的,那么 html 里面不再需要其他可交互元素,所有元素都可以是 div。用框架用到脑死亡了才会做出这种选择。

What ‘AI Mark’ taught me about the realities of the new technology

This is where the limitations of the technology became clear. To have useful conversations with AI Mark, the limits on what he could say – the guardrails, as I call them – had to be lower. But lowering them even slightly increased the risk that AI Mark would produce Tinder dating profiles on demand. After thousands of conversations, I lifted the guardrails so high that AI Mark would only respond to key phrases or sentences, which makes it harder to distinguish him from a chatbot.

英国一位年轻的议员尝试用 LLM AI 与选区群众沟通,从功能上来说,就像他说的,最终和客服机器人没有什么太大区别。因为需要人工回顾所有聊天内容,也没有提高他们的效率。但是要掌握新技术能力边界最好的方式就是去用它,小马过河永不过时。

其他一些乱七八糟的


WR 20251107

题图:这周去试驾了新 ES8,很大很显贵。

这两天窜稀有点凶,更新晚了点,一会儿继续去蹲🚽。。。

【苹果】iOS 26.1 lets you tweak Liquid Glass, and it’s out now

Apple has just released iOS 26.1, which includes a new transparency toggle for Liquid Glass, expanded language features, and new controls for the Apple Music and Camera apps. The toggle helps address some of the legibility issues introduced in iOS 26 by allowing iPhone users to tone down the glassy design for buttons, tabs, and other navigational elements.

我猜到了会有个关闭部分效果的设置,但是没想到如此直白和迅速。按照以往如果是少数人的问题,应该在辅助选项里面,说明用户反对声音很大。苹果在搞这套设计的时候,前期的用户研究非常不够啊 😂

【AI】New prompt injection papers: Agents Rule of Two and The Attacker Moves Second

At a high level, the Agents Rule of Two states that until robustness research allows us to reliably detect and refuse prompt injection, agents must satisfy no more than two of the following three properties within a session to avoid the highest impact consequences of prompt injection. [A] An agent can process untrustworthy inputs [B] An agent can have access to sensitive systems or private data [C] An agent can change state or communicate externally

It’s still possible that all three properties are necessary to carry out a request. If an agent requires all three without starting a new session (i.e., with a fresh context window), then the agent should not be permitted to operate autonomously and at a minimum requires supervision — via human-in-the-loop approval or another reliable means of validation.

提示词注入攻击(Prompt Injection)目前并没有绝对有效的对应方法,Meta 提供的这个框架有很强的指导意义。具体到个人使用,如果用 AI 辅助浏览器,已经天然处于不可信输入 + 外部访问权限了,所以绝对不要让 AI 浏览器访问隐私数据或者系统权限,风险极高。

【车】Model S 事故致 5 人死亡,特斯拉断电难开车门被起诉

根据鲍尔夫妇的四名子女在上周五提交的起诉书,这起悲剧的根源在于 Model S 的锂离子电池组导致电子门锁系统失灵。诉状指出,基于此前的起火事故,特斯拉早已知晓该安全隐患,却仍“有意识地背离已知且可行的安全做法”。 鲍尔夫妇的子女在诉状中指出,像米歇尔这样的 Model S 后排乘客在事故后尤其脆弱:她们必须掀开地毯才能找到用于逃生的机械拉手,这一设计并不直观。诉状披露,一名附近居民在拨打 911 时称,曾听到车辆内传出呼救声。

国内很多新能源车都有类似问题,车内机械解锁没有统一规范,导致乘客没办法第一时间打开车门。而特斯拉这个机械把手在地毯下面这个确实走太远了,车本身的可靠性并不支持把机械结构藏起来的设计。

OpenAI says ChatGPT’s behavior “remains unchanged” after reports across social media falsely claimed that new updates to its usage policy prevent the chatbot from offering legal and medical advice. Karan Singhal, OpenAI’s head of health AI, writes on X that the claims are “not true.”

我前几天也被骗了,还以为是 ChatGPT 不再提供医疗和法律建议了,实际上只是免责,不影响一般用户使用。但是这条规则也可能在某些时候收紧来保障美国服务业的就业。

其他一些乱七八糟的


WR 20251031

题图:秋高气爽爬个西山,红叶节已经开始了,但是并没有红叶。

Apple loses UK App Store monopoly case, penalty might near $2 billion

Apple abused its dominant position by charging app developers unfair commissions, a London tribunal ruled on Thursday, in a blow which could leave the U.S. tech company on the hook for hundreds of millions of pounds in damages.

欧洲各国都开始针对苹果,包括欧盟、英国、法国,看起来还会有更多国家跟进。考虑到苹果从一开始还是个新玩家的时候就是这个定价,硬要说滥用市场支配地位在我看来是有些勉强的。但是这事儿从来也不只是经济性的,对吧。

WHAT HAPPENED TO APPLE'S LEGENDARY ATTENTION TO DETAIL?

Look, I've got nothing but respect for the perfectly lovely humans who work at Apple. Several are classmates from university, or people I had the pleasure of working with before at different companies. But I rather suspect what's happened here is that some project manager got a bit too enthusiastic about hitting their quarterly targets, cobbled together some shiny mockups, and somehow managed to convince Tim and the board that this was, in fact, a brilliant idea.

关于苹果软件 UI 质量问题的讨论从 iOS7 之后就没停过,很多人觉得这是设计问题,实际上这是工程问题,更准确的说是工程架构问题。复杂系统中,高度一致性的设计还原肯定是靠工程架构保障的,如果靠设计师人肉看那永远都看不完。至于苹果现在的软件工程能力,就是挺谜的,他们现在看起来确实不像一个 really serious about software 的公司。

教育部:严禁将手机等电子产品带进课堂,鼓励学生和家长共同开展“息屏行动”

近日,教育部印发通知,出台《进一步加强中小学生心理健康工作十条措施》。 在培养学生健康用网习惯方面,教育部提出加强学生网络素养教育,培养学生网络安全和网络法治意识,帮助学生养成良好用网习惯。规范管理学生带入学校的智能终端产品,严禁将手机等电子产品带入课堂鼓励学生和家长共同开展“息屏行动”,减少对网络过度依赖。

教育部是有这个意识的,但是很多家长可能没有,行为管教就是我们说的教养,家长不管教,以后就会让社会上多出来更多没有教养的成年人。

其他一些乱七八糟的


WR 20251024

题图:你们停到马路中间等红灯除了增加自己被车撞到的风险之外,还有啥好处么?

【苹果】守护“北京时间”:国家安全机关破获一起美国国家安全局重大网络攻击案

2022 年 3 月 25 日起,美国安局利用某境外品牌手机短信服务漏洞,秘密网攻控制国家授时中心多名工作人员的手机终端,窃取手机内存储的敏感资料。

这个攻击应该是利用了一个无需用户操作就能触发的 iMessage 漏洞这个漏洞卡巴斯基 2023 年 6 月初报出来,苹果 2023 年 6 月中发布了补丁。一般猜测这个漏洞在 2022 年已经被用于攻击特定目标,这次新闻报出来的就算是这种案例了。

我怀疑苹果可能之前对这种攻击已经有猜测了,所以在 2022 年的 iOS 16 中增加了 Lockdown Mode。这个模式会牺牲一些便捷性换安全,我用了几个月,其实还挺好用的,甚至还能省点,后来不用了主要是因为共享相册没法用了(封死了通过共享相册 + 图片解码器溢出带来的安全风险)。 对于手机中存有高价值信息的人群,开启 Lockdown Mode 的 iPhone 还是非常非常安全的。

【车】特斯拉称并未完全抛弃 HW3 硬件汽车,计划明年二季度推轻量版 FSD V14 安抚老车主

特斯拉首席财务官 Vaibhav Taneja 在会议中表示,他本人每天上下班开的就是 HW3 老车,故非常理解这些车主的心情,他对此表示:“我们深知这些车主是最早期的支持者,对我们非常重要。我们并没有完全放弃 HW3,一定会好好照顾他们”。

用一个 reddit 网友的话来说:「As for HW3 owners who bought FSD, which basically turned out to be an interest free loan to Tesla for years」。特斯拉的消费者真的超级宽容。

【健康】Some 60,000 kids have avoided peanut allergies due to landmark 2015 advice, study finds

About 60,000 children have avoided developing peanut allergies after guidance first issued in 2015 upended medical practice by recommending introducing the allergen to infants starting as early as 4 months. ... The researchers found that peanut allergies in children ages 0 to 3 declined by more than 27% after guidance for high-risk kids was first issued in 2015 and by more than 40% after the recommendations were expanded in 2017.

这个研究结果还挺符合(我的)直觉的,之前有研究发现养猫狗的家庭孩子哮喘风险更低。而这个新闻报道的研究是增加花生的早期接触,可以降低长大后过敏的风险。对中国的喂养习惯来说,从加辅食(可能半岁到一岁?)开始,就会逐步添加不同的食物,而美国原来的建议是对于过敏风险高的人群三岁之后才试,这可能也解释了为啥我们这边食物过敏比较少。

【AI】AI trading in real markets

Competition RulesStarting Capital: each model gets $10,000 of real capitalMarket: Crypto perpetuals on HyperliquidObjective: Maximize risk-adjusted returns.Transparency: All model outputs and their corresponding trades are public.Autonomy: Each AI must produce alpha, size trades, time trades and manage risk.Duration: Season 1 will run until November 3rd, 2025 at 5 p.m. EST

这个团队用几个最先进的模型直接去炒币,规则清晰,真金白银的炒币,访问网站能看到实时进展,好活当赏hhhh

其他一些乱七八糟的


WR 20251017

题图:首都机场 T3 航站楼从天上看还是挺不错的(里面真的走断腿)

【AI】NVIDIA DGX Spark + Apple Mac Studio = 4x Faster LLM Inference with EXO 1.0

EXO Labs wired a 256GB M3 Ultra Mac Studio up to an NVIDIA DGX Spark and got a 2.8x performance boost serving Llama-3.1 8B (FP16) with an 8,192 token prompt. Their detailed explanation taught me a lot about LLM performance ... EXO noted that the Spark has 100 TFLOPS but only 273GB/s of memory bandwidth, making it a better fit for prefill. The M3 Ultra has 26 TFLOPS but 819GB/s of memory bandwidth, making it ideal for the decode phase.

因为 LLM 的运行逻辑,[英伟达新出的 DGX](# NVIDIA DGX Spark 搭载与 MediaTek 共同设计的 GB10 超级芯片) 和 Mac Studio 形成了奇妙的互补关系,建议直接读原文,很简单好读。

【苹果】The Just Plain M5 Chip Launches in Three Updated Products: 14-Inch MacBook Pro, iPad Pro (Both Sizes), and Some Sort of Headset Thingamajig Called Vision Pro

The new Dual Knit Band ($99 on its own) looks like a hybrid of the more attractive Solo Knit Band (which did not have a strap that went over the top of your head) and the Dual Loop Band (which did have an over-the-head strap, but which looked somewhat orthopedic). It’s a tacit acknowledgement that physical comfort has been a real problem for many people who’ve tried Vision Pro. (Me, personally, I find using it with the Solo Knit Band comfortable for as long as I care to use it — which is typically just 2–3 hours, tops.)

苹果突然(好吧也不太突然,毕竟 Mark Gurman 早就爆料了)发布了 M5 系列新品,对我来说最有兴趣的是新 Vision Pro 的这个头带,等能买了我去买来试试。另外,新的 iPad Pro 因为用了 N1 芯片,也有 Thread 支持了

【书】父亲的解放日志

出门的路上读完了这本书,不是很长,但是真的很好看,强烈推荐。

其他一些乱七八糟的