边界条件之场
66 subscribers
680 photos
4 videos
10 files
1.03K links
Do you hear the sirens sing?

main: @cvf_cha
group: @cvf_gro
forwards: @cvf_for
Download Telegram
Fennec (Firefox) 在小米的垃圾 HyperOS 上无论如何都留不住后台,切到其它 app 随便操作一下再切回来必定重新加载页面。导致我所有通过 Fennec 安装的 PWA 体验极差。 #trash #xiaomi

试过了关电池优化、多任务列表加锁,没有改善。
另一台内存仅 4G 的 LineageOS 机没有类似问题,太怀念类原生了 😢
啊?? #trash #wechat #weixin #china
为什么微信每一个看似能改善用户体验的功能,最终都会以诡异、扭曲、极其脑残的方式实现?
这“备份”机制分明是防着用户恢复,而不是防止被第三方读取 🤬
https://sspai.com/post/100810
💩2
microsoft 推 passwordless 推魔怔了吧,ip 不干净直接禁止用密码登录 🤬
Please retry with a different device, use a VPN, or other authentication method to sign in. For more details, please see https://go.microsoft.com/fwlink/?linkid=2317517

我的账户是开了 totp 2fa 的,macroshit 根本不问 2fa,输完密码直接跳转错误页 #trash #microsoft
kde 要支持圆角窗口了。不管怎么说,肯定比之前的 底边直角 + 顶边小圆角 要好得多 😂

我之前很想要四边直角,主要原因是 window tiling 的时候圆角会露出壁纸的几个像素,强迫症看了很难受。从这次的 PR 信息来看,未来应该可以比较容易地调整任意边角的弧度,不排除 kde 直接暴露设置项让用户统一调整四角弧度的可能 🤞
the proposed APIs allow rounding all four corners of the decorated window

The window decoration decides how much to round the corners and what corners should be rounded.

https://blogs.kde.org/2025/07/19/this-week-in-plasma-rounded-bottom-corners/
#TIL #rust 同一个 scope 下是可以有东西同名的,只要属于不同的 namespace 。

// Foo introduces a type in the type namespace and a constructor in the value
// namespace.
struct Foo(u32);

// The `Foo` macro is declared in the macro namespace.
macro_rules! Foo {
() => {};
}

// `Foo` in the `f` parameter type refers to `Foo` in the type namespace.
// `'Foo` introduces a new lifetime in the lifetime namespace.
fn example<'Foo>(f: Foo) {
// `Foo` refers to the `Foo` constructor in the value namespace.
let ctor = Foo;
// `Foo` refers to the `Foo` macro in the macro namespace.
Foo!{}
// `'Foo` introduces a label in the label namespace.
'Foo: loop {
// `'Foo` refers to the `'Foo` lifetime parameter, and `Foo`
// refers to the type namespace.
let x: &'Foo Foo;
// `'Foo` refers to the label.
break 'Foo;
}
}

https://doc.rust-lang.org/reference/names/namespaces.html

iced.rs 大量利用了这个行为,比如 iced::widget:: 路径下同时有 fn container (constructor) 和 mod container (module with helpers), import 语句只用写
use iced::widget::container
而不是
use iced::widget::{container, Container}
或者
use iced::widget::container::{self, Container}
边界条件之场
#TIL #rust 同一个 scope 下是可以有东西同名的,只要属于不同的 namespace 。 // Foo introduces a type in the type namespace and a constructor in the value // namespace. struct Foo(u32); // The `Foo` macro is declared in the macro namespace. macro_rules! Foo { () => {}; } //…
也可以一定程度上控制 import 语句的行为:

use iced::widget::container;

引入 widget 下所有叫 container 的条目 (module, function, macro, ...)

use iced::widget::container::{self};

只引入 widget::container 这个 module。

比如这块代码会有命名冲突:
use iced::widget::button;
fn button() {}

而这块就没问题:
use iced::widget::button::{self};
fn button() {}


#rust
Keychron M6 #mouse

+ 电磁双模滚轮
+ 拇指滚轮
+ 静音微动

+ 板载储存
+ 宿主端系统不需要持续运行软件
+ 3950/3395 传感器
+ 高 polling rate 高 dpi (可调)

简直是 logitech MX Master 的完美替代?
罗技一直坚持 办公鼠 游戏鼠 产品线特性严格划分,游戏鼠不给高级滚轮、办公鼠不给板载储存,必须要脑残 logi options+ 持续运行,纯粹恶心用户 😡
#trash #logitech
supposedly, iced 0.14-dev already has hot reload. but there is 0 doc also no example so i don't know how to use it 👀
Forwarded from Laoself 🫈
Web是個特別不適合做custom UI的平臺,因為web API暴露的底層渲染API遠遠不夠用來開發high performance custom UI。在web上要做高性能UI,你只有兩條路:一條用瀏覽器提供的能力,比如能用CSS就用CSS,能用native scrolling就不自己造。另一條路就是純用canvas+GL畫,但是text interaction基本上完蛋。
GitHub:我雖然重文本不能自己canvas,但是我可以儘可能多用DOM,儘可能自己override瀏覽器的特性,雖然我完全可以直接serve HTML但是我偏要做client side routing,偏要去自己實作DOM-based text file rendering。