IMO yaml has no documentation, only specification 🙄
And the spec is so hard to read there is no way it can be qualified as "human-friendly".
https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
And the spec is so hard to read there is no way it can be qualified as "human-friendly".
https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
Ruud van Asseldonk
The yaml document from hell
For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces so much complexity, that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive.…
刚才准备选一个非 web 技术的 gui 框架看看,意外发现之前那个很火的 rust 编辑器 Zed 昨天开源了(包括他们自研的 ui 框架 GPUI ):
https://zed.dev/blog/zed-is-now-open-source
https://zed.dev/blog/zed-is-now-open-source
zed.dev
Zed is now open source
From the Zed Blog: We hope you'll join us in our mission to fundamentally advance software collaboration.
❤1
边界条件之场
草,egui 需要打包用到的字体,包了两个 sarasa ttf 之后 binary size 直逼 electron 🌚
不像 web 框架有 hmr,egui 每次都要重新编译 🥴
(虽然有增量编译不算慢,但怎么也比不上 hmr 瞬时反馈来得爽
(虽然有增量编译不算慢,但怎么也比不上 hmr 瞬时反馈来得爽
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
ok, it's not too bad ...
in css you declare property & relation of boxes;
in egui you calculate desired dimensions with code, since it's a programming environment, everything you can express with css can also be expressed in egui, albeit sometimes more tedious.
in css you declare property & relation of boxes;
in egui you calculate desired dimensions with code, since it's a programming environment, everything you can express with css can also be expressed in egui, albeit sometimes more tedious.
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
容器无法提前得知子项的尺寸信息,又由于 immediate mode gui 帧与帧之间一般不保留尺寸相关信息,导致容器无法根据子项尺寸来调整自身尺寸。不过用户可以手动在一帧的末尾把各种尺寸存下来供下帧参考。
理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
边界条件之场
容器无法提前得知子项的尺寸信息,又由于 immediate mode gui 帧与帧之间一般不保留尺寸相关信息,导致容器无法根据子项尺寸来调整自身尺寸。不过用户可以手动在一帧的末尾把各种尺寸存下来供下帧参考。 理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
egui 里各种容器的尺寸还可以手动解决,但文字排版相关的功能真的是两眼一抹黑 😵💫
连文字行高都找不到 api 控制,这 layout 实在写不下去了。
连文字行高都找不到 api 控制,这 layout 实在写不下去了。
啊哈, LineageOS 21 (Android 14 based) 发布了!
https://lineageos.org/Changelog-28/
https://lineageos.org/Changelog-28/
Lineage
Changelog 28 - Fantastic Fourteen, Amazing Applications, Undeniable User-Experience
Lets have a drink!
👍1
微信搬运工(旧)
计算机伪科学:文科已经走了,理科还会远吗? | 原文
「
传统理科的科学家们,由于他们对科学严谨的 addiction 式的追求,不敢提出如此大胆通用的理论。这违反他们作为科学家的“操守”。
而那些“伪科学家”们,敢于脱离现有的理论体系,在严谨性和实用性之间找到平衡,多快好省,大胆立论。
他们走出了象牙塔的固有思维模式,把火带到了人间。这个火是不可控的野火,使用不当会造成一氧化碳中毒,但也给象牙塔外的人带来了温暖和思考的乐趣。
有的人可能会鄙夷地说,这些伪科学家们就没有进过象牙塔。
确实啊,光脚的不怕穿鞋的。
世界是属于 fearless people 的。
And I think the world is better with those pseudoscience theories than without.
如果科学的目的是增进人类对世界的理解,那经实验验证、可以治药救人的科学,和容易理解、直接应用的“伪科学”,前者一定比后者更接近科学本来的目的吗?
」🤔
传统理科的科学家们,由于他们对科学严谨的 addiction 式的追求,不敢提出如此大胆通用的理论。这违反他们作为科学家的“操守”。
而那些“伪科学家”们,敢于脱离现有的理论体系,在严谨性和实用性之间找到平衡,多快好省,大胆立论。
他们走出了象牙塔的固有思维模式,把火带到了人间。这个火是不可控的野火,使用不当会造成一氧化碳中毒,但也给象牙塔外的人带来了温暖和思考的乐趣。
有的人可能会鄙夷地说,这些伪科学家们就没有进过象牙塔。
确实啊,光脚的不怕穿鞋的。
世界是属于 fearless people 的。
And I think the world is better with those pseudoscience theories than without.
如果科学的目的是增进人类对世界的理解,那经实验验证、可以治药救人的科学,和容易理解、直接应用的“伪科学”,前者一定比后者更接近科学本来的目的吗?
」🤔
边界条件之场
还是 linux 省心,傻逼 windows 历史遗留的 256 字符路径长度限制这个月已经给我添了三次麻烦了 #trash #microsoft #windows 1. tauri build 工具链里某个 exe 太深,「找不到」 2. 编译 sarasa node_modules 太深,导致「找不到」依赖 3. py pathlib .is_file() 睁眼瞎不认文件
#trash #microsoft #windows 即使开了
在 rust 里读写长路径一切正常,不过一旦需要跟 windows explorer 那陈年屎山交互就一定会出问题,即使用了
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled 还是会撞到路径长度限制 🙄在 rust 里读写长路径一切正常,不过一旦需要跟 windows explorer 那陈年屎山交互就一定会出问题,即使用了
\\?\ 路径前缀也一样。Aperture Science irl 🥴
https://www.youtube.com/watch?v=KX-0Xw6kkrc
https://www.youtube.com/watch?v=KX-0Xw6kkrc
YouTube
The Best Performing (and most dangerous) Chemical Rocket Ever Tested: Rocketdyne Tripropellant
A deep dive into a legendary rocket engine test that took all the best elements of Kerbal Space Program, Portal and Doom. The Rocketdyne tripropellant engine, tested for NASA in the late 1960's may very well be the most dangerous chemical engine ever tested.…
想用 wsl 试一下 openSUSE Tumbleweed,结果:
出门第一步,撞上狗粪网 😁👍
#china #gfw
$ wsl --list --online
Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json'. The server name or address could not be resolved
Error code: Wsl/WININET_E_NAME_NOT_RESOLVED
出门第一步,撞上狗粪网 😁👍
#china #gfw
尝试 Tumbleweed 的原因: Debian Testing 不是也不应该被当作一个「滚动发行版」。多年用下来我遇到好几次软件包从仓库里消失,一段时间后又重新出现;也遇到了蓝牙一坏就坏几个月。参考 Debian FAQ section 3.1.5 ,从日用的角度来说 Testing 在某些方面上甚至不如 Sid (Unstable)。
边界条件之场
尝试 Tumbleweed 的原因: Debian Testing 不是也不应该被当作一个「滚动发行版」。多年用下来我遇到好几次软件包从仓库里消失,一段时间后又重新出现;也遇到了蓝牙一坏就坏几个月。参考 Debian FAQ section 3.1.5 ,从日用的角度来说 Testing 在某些方面上甚至不如 Sid (Unstable)。
可以直接从系统包管理 (zypper) 安装 zellij, eza, starship 的最新版本!终于不用 cargo install 编译半天了!
zypper 还会提示用户是否需要重启进程或者重启系统来完成更新!
zypper 还会提示用户是否需要重启进程或者重启系统来完成更新!