边界条件之场
现在每个月更新 cloudflare warp 客户端都心惊胆颤的 上个月它们把 dns over socks5 搞炸了 这个月则是高速吐 log 到 /var/lib/cloudflare-warp/qlogs - 没体会到任何 rotation 或 truncate 机制 - 随机文件名,会重复多次创建,具体规则未知 等我看服务器监控数据的时候磁盘已经打到 92% 了,晚几个小时才发现的话早就塞爆了 #trash cloudflare 😡
cloudflare warp dns over socks5 (
22:27 Z: 恢复了 🤔
socks5h://...) 几分钟前在没有任何用户侧变更的情况下突然又炸了 🤔22:27 Z: 恢复了 🤔
边界条件之场
cloudflare warp dns over socks5 (socks5h://...) 几分钟前在没有任何用户侧变更的情况下突然又炸了 🤔 22:27 Z: 恢复了 🤔
原来是 cf dns 炸了,不是 warp 的问题 😌
kde 要支持圆角窗口了。不管怎么说,肯定比之前的 底边直角 + 顶边小圆角 要好得多 😂
我之前很想要四边直角,主要原因是 window tiling 的时候圆角会露出壁纸的几个像素,强迫症看了很难受。从这次的 PR 信息来看,未来应该可以比较容易地调整任意边角的弧度,不排除 kde 直接暴露设置项让用户统一调整四角弧度的可能 🤞
https://blogs.kde.org/2025/07/19/this-week-in-plasma-rounded-bottom-corners/
我之前很想要四边直角,主要原因是 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 。
https://doc.rust-lang.org/reference/names/namespaces.html
iced.rs 大量利用了这个行为,比如
而不是
或者
// 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 语句的行为:
引入
只引入
比如这块代码会有命名冲突:
而这块就没问题:
#rust
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
Keychron M6 Wireless Mouse
Keychron M6 Wireless Mouse. It supports 2.4 GHz, Bluetooth, and a USB connection. Besides, it provides two scrolling modes and multiple ways of scrolling. All the essential hardware features in an ultra-lightweight mouse are ideal for any use case, whether…
Keychron M6 #mouse
+ 电磁双模滚轮
+ 拇指滚轮
+ 静音微动
+ 板载储存
+ 宿主端系统不需要持续运行软件
+ 3950/3395 传感器
+ 高 polling rate 高 dpi (可调)
简直是 logitech MX Master 的完美替代?
罗技一直坚持 办公鼠 游戏鼠 产品线特性严格划分,游戏鼠不给高级滚轮、办公鼠不给板载储存,必须要脑残 logi options+ 持续运行,纯粹恶心用户 😡
#trash #logitech
+ 电磁双模滚轮
+ 拇指滚轮
+ 静音微动
+ 板载储存
+ 宿主端系统不需要持续运行软件
+ 3950/3395 传感器
+ 高 polling rate 高 dpi (可调)
简直是 logitech MX Master 的完美替代?
罗技一直坚持 办公鼠 游戏鼠 产品线特性严格划分,游戏鼠不给高级滚轮、办公鼠不给板载储存,必须要脑残 logi options+ 持续运行,纯粹恶心用户 😡
#trash #logitech
cmoon T.A.R.S.!
https://www.youtube.com/watch?v=MDM1COWJ2Hc
https://www.youtube.com/watch?v=MDM1COWJ2Hc
YouTube
An Idea So Crazy It Might Just Work...
Light sails are a promising method for traveling through space - indeed, Breakthrough Starshot proposed a laser driven version could reach nearby stars. But the exorbitant costs and engineering challenges of such a proposal have stymied its realization. What…
🐦 portable, organic, wireless data transfer media
https://www.youtube.com/watch?v=hCQCP-5g5bo
https://www.youtube.com/watch?v=hCQCP-5g5bo
YouTube
I Saved a PNG Image To A Bird
I got a bit concerningly obsessed with birds for a few months.
Follow Sarah and The Mouth! https://linktr.ee/inkydragon
Older bat vid: https://www.youtube.com/watch?v=X4eqkaHkTAI
💗 Support this channel and join an amazing community: https://www.patreon.com/bennjordan…
Follow Sarah and The Mouth! https://linktr.ee/inkydragon
Older bat vid: https://www.youtube.com/watch?v=X4eqkaHkTAI
💗 Support this channel and join an amazing community: https://www.patreon.com/bennjordan…
边界条件之场
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,输完密码直接跳转错误页…
Telegram
每日消费电子观察
LibreOffice 开发者的微软账号被封,联系微软支持后工单被直接关闭
此事与 LibreOffice 与微软的争议无关,大概率是微软的系统出现的误报。微软在 IT 方面非常无能
https://www.landiannews.com/archives/110000.html
此事与 LibreOffice 与微软的争议无关,大概率是微软的系统出现的误报。微软在 IT 方面非常无能
https://www.landiannews.com/archives/110000.html
https://t.iss.one/CE_Observe/39987
感到非常不安,macroshit 会不会哪天看我 ip 不爽直接把我号封了,然后申诉无门 😨 #trash #microsoft
看来得用自托管域名邮箱做各种账号的注册邮箱了
感到非常不安,macroshit 会不会哪天看我 ip 不爽直接把我号封了,然后申诉无门 😨 #trash #microsoft
看来得用自托管域名邮箱做各种账号的注册邮箱了
Forwarded from Hacker News (yahnc_bot)
Carbon Language: An experimental successor to C++ https://docs.carbon-lang.dev/
Carbon Language documentation
Home
An experimental successor to C++
Forwarded from Hacker News (yahnc_bot)
Why is GitHub UI getting slower? https://yoyo-code.com/why-is-github-ui-getting-so-much-slower/
Yoyo-Code
Why is GitHub UI getting so much slower?
Matyáš Racek's blog
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。
GitHub:我雖然重文本不能自己canvas,但是我可以儘可能多用DOM,儘可能自己override瀏覽器的特性,雖然我完全可以直接serve HTML但是我偏要做client side routing,偏要去自己實作DOM-based text file rendering。
syncthing v2.0 🎉
https://github.com/syncthing/syncthing/releases/tag/v2.0.0
https://github.com/syncthing/syncthing/releases/tag/v2.0.0
GitHub
Release v2.0.0 · syncthing/syncthing
⚠️ First 2.0 release ⚠️
This is the first release of the new 2.0 series. Expect some rough edges and keep a sense of adventure! 🙏
Major changes in 2.0
Database backend switched from LevelDB to SQ...
This is the first release of the new 2.0 series. Expect some rough edges and keep a sense of adventure! 🙏
Major changes in 2.0
Database backend switched from LevelDB to SQ...