Chenyang “Platy” Hsu


Editor. Currently at SSPAI.

Reachable in Shenzhen physically, at me(at)cyhsu.net over port 25, and with the handle “platyhsu” elsewhere.

Scroll down for my recent writings (RSS, archive). You’re also welcomed to see colophon for trivia about me and the site, links for online resources and tools I frequent, and now for my current interests.


Word 编号的内部结构与工作原理


**注:**本文为发布在少数派上的 付费教程 节选。利益相关:员工。


在从宏观角度了解 Word 中的编号如何定义和应用后,我们再将镜头拉近,观察编号段落的内部结构。

再次回忆:**编号是段落格式的一部分,也必须依附于段落而存在。**本质上,编号只是段落首行开头处的一个文本范围(run),和普通段内文本一样有着字体、字号、颜色等文本格式属性,但其特殊之处在于:其一,编号的内容是根据一系列规则自动计算和生成的,而不是手动输入的;其二,编号有自己的对齐和缩进设置,因此会波及地影响其所在段落的实际缩进。

译文 | 你有权批评西蒙·拜尔斯吗?


原文来自 McSweeney’s,标题为 Are You Allowed to Criticize Simone Biles?: A Decision Tree

「体操巨星西蒙·拜尔斯以心理健康方面的顾虑为由退出女子团体赛,震惊众人。此后,一些保守派媒体人物和权威人士在周二对她发难,称她为『逃跑者』,有『自私反社会人格』,『让国家蒙羞』。」— The Daily Beast, 2021 年 7 月 27 日


Postmortem on My Jobby Job


This week witnessed the end of my career as a transactional lawyer.

The career is objectively good — It’s well comp’ed, socially recognized, and arguably valuable because, well, look at the bills they send out.

But the same career can also be subjectively unproductive. Unproductive, not in the sense of how efficiently you help move money around, but how frequently your opinions have an impact on others’ decisions and you find yourself “in the room where it happens.” Unproductive, not in the sense of how late you can grind on to, but how much more is achieved by living communally in a shifted timezone to justify the physical and psychological tolls. Unproductive, not in the sense of how many words you smacked out each day, but how well you can command tools and devise workflows to automate and streamline the routines. (Spoiler: not so often; not so much; not so well.)

理解 Word 中的段落


**利益相关:**这篇节选自给少数派一个 订阅服务 写的 Word 教程(准确地说是研究些我认为重要的问题;Word 可能是没法写真正意义上的教程的,因为微软自己已经放弃写帮助文档了)。总共计划写七篇,目前因为各种原因还鸽子了两篇。虽然说利益相关,但其实也没有很相关,因为我忘记问能分多少钱了;主要是因为太讨厌这个软件了,不当付费内容写,迟早也会白写的。如果有对 Office 软件的需求,欢迎去理性消费。(至于替代品,坦率地说,如果偶尔用用,WPS 总体还行,iWorks 除了幻灯片都不行,LibreOffice……祝你度过愉快的一天。)

Convert the macOS Beta Installer to an ISO Image


As a cautious explorer, you may want to try out the newly released Developer Preview of macOS Monterey while keeping your production installation safe; it is a preferable choice to run the beta in a VM.

However, since most hypervisors recognize only an ISO image, and not the “Install macOS Beta.app” bundle provided by Apple, as the installation source, it is necessary to convert the app bundle to a disk image.

The process can be done within the following steps, which essentially (a) create an empty disk image, (b) prepare it as an installation media (as you’d do with a physical drive), and (c) convert it to the ISO format.

  1. Create an empty DMG image:
    hdiutil create -o /tmp/macOS12 -size 12000m -volname macOS12 -layout SPUD -fs HFS+J
  2. Mount the DMG:
    hdiutil attach /tmp/macos12.dmg -noverify -mountpoint /Volumes/macos12
  3. Write to the DMG with createinstallmedia
    sudo /Applications/Install\ macOS\ 12\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/macos12 --nointeraction
  4. [Easy to forget but necessary for proceeding] Unmount the DMG:
    hdiutil detach /Volumes/macos12
  5. Convert DMG to CDR:
    hdiutil convert /tmp/macos12.dmg -format UDTO -o ~/Downloads/macos12.cdr
  6. Convert (essentially rename) CDR to ISO:
    mv ~/Downloads/macos12.cdr ~/Downloads/macos12.iso

You may want to free disk space by removing the temporary disk image created during the creation process: rm /tmp/macos12.dmg or moving it to another location for archiving.

从无文字版 WWDC 视频的字幕转制文字版


大多数 WWDC 视频都配有文字版,在视频页面点击「Transcript」即可看到,还可以下载 TXT 格式版本。但也有少量视频(例如 Design for Safari 15)没有文字版,给检索和浏览造成不便。实际上,这类视频也有自动转写的字幕,只要下载后简单处理即可当作文字版浏览。

以上述 Design for Safari 15 讲座为例。

首先,用抓包工具(例如 Surge 或 Proxyman)抓取 WWDC 视频的域名 devstreaming-cdn.apple.com,并开始播放视频。

WWDC’21: Notable Documentations



Most users don’t follow the WWDC beyond the Keynote session. The trove of recorded sessions are thought to be relevant to only coders, not to mention the developer documentations. However, there are actually many summary articles that are easy to follow and full of tasteful tidbits, and even the rest of us can find interesting to read. If you have ever wondered how sites like MacStories and Ars Techinica can dig out so many details in their reviews of the annual OS releases, here lies the answer.

The following is an inconclusive list of such approachable documentations updated during WWDC’21 that I’ve discovered. I may (or may not, dependent on my time available) update the list with further readings. For an official list of new technologies across the Apple platforms, see New Technologies WWDC 2021.


ManagedSettings

Managed Settings provides a privacy-preserving way for users to restrict access to certain settings and features on their devices. With the user’s permission, your app can limit media showings, restrict app purchases, lock passcode settings, and configure other device behavior.

WWDC’21: Resources


走向精装的电纸书——得到 Max 体验


[FULL DISCLOSURE: 这是商务合作性质文章,设备为厂商送测。我在行文过程中尽量保持客观,但不排除文中评价(整体肯定)潜在地受到上述情况影响。相比于原文(博客版本),发出版 [archive] 存在篇幅缩减和内容调整 [diff],编辑过程我没有参与。]


导语

电纸书可以做成「精装」吗?

一直以来,电纸书在我心目中都是一种强调功能性的设备,像本平装书一样,重在内涵而非外观。市面上多数电纸书产品似乎也佐证着这种印象:材质以塑料为主,外观设计朴素,常常还带着能「跑马」的宽边框;虽然结实耐用,但跟精致二字也沾不上边。

基于 Notion 的若饭参数表


上次写到若饭 还是一年多前的事情。在那之后,若饭各个产品线都有了几次更新:

  • 液体版:更新到 3.7,主要减少了糖分,增加了纤维,包装从原来的纸瓶换成塑料瓶(可能为了运输起来比较稳,但反而不环保了),2020 年底又换了一次包装设计。跟旧版相比,整体趋势还是弱化「豆味」、强化「奶味」,现阶段基本喝不出明显的豆制品特征了。原价(一箱 12 瓶挂价 290)非常不划算,我一般只在折扣的时候会买。
  • **粉末版:**先后更新了 2.92.11 两个版本(本身没什么问题,但他们可能忘记了自己用过 2.10 这个版本号),宏观营养素变化不大,主打功能似乎是新增了微量元素和营养物质(叶黄素酯、植物甾醇、鱼油粉和海藻油)。因为并没有把代餐兼作补剂的需求,我对此不是特别感冒,不过没有专门研究过、故这里也不多评论。虽然有所涨价,粉末版仍然是相对最便宜的,也是我目前主要饮用的版本;我一般隔天喝一次。我的习惯是 80 克粉末加 250 毫升水,一茶匙木糖醇调味(还可以扔几颗冷冻芋圆进去丰富口感),微波炉稍微加热。
  • **固体版:**变化最大,从饼干(1.7)变成了蛋白棒(1.9),号称「甜品级口感」。但最初上市的那批 1.9 调得过甜了,吃起来几乎像直接咀嚼固体甜味剂;后来的批次把甜味往下降了不少,基本可以接受,但仍然不是特别自然(如果你吃过美国一些蛋白棒:明显不如 RXBAR 和 One Bar,但好过 Quest Bar)。口感倒是不错,整体比较有嚼劲。原价不是很划算(6 根 1500 卡的盒装挂价八九十),但常年处于促销状态,所以也陆续买过几次跟粉末版换着吃。

经过这么几年的迭代,若饭的版本也积累了十几个,如果算上不同 SKU 变化就更多,让横向和纵向的比较都不太直观。此外,若饭的食品标签样式也不太统一,有时是以 100 克为基准,有时又以包装内的一份为标准,进一步增加了换算的麻烦。