Build your own fedora OSTree Remix I am not responsible for bricked computers, system instabilities,dead cats, thermonuclear war or you getting fired because you lostimportant work.Please make a backup of your device or of 2025-02-19 #Fedora #rpm-ostree
Singleton Patterns are DANGEROUS (when used across the border of shared libraries) Singleton Patterns are DANGEROUS ... When you want to control the order of initialization/deinitialization of your objects across shared libraries. Consider the case where you have a beautiful logger 2023-11-12 Coding #C++
整点新笔记本 好端端的为啥要买电脑 自古以来,我的setup就是两台笔记本,一个游戏本...用来打游戏,另一个轻薄本,用来拿着到处跑还有写写代码。然后又有些历史背景,简单的说就是家里人不怎么会用电脑,也不愿意学。这一切形成的稳态直到我爸他们学校引入高大上的电教系统之后被打破了——我爸也要用电脑。 这事情本来很好办,用电脑嘛,老年人安排个红米笔记本,就能覆盖几乎所有需求。但是我爸觉得为了这么简单的需求买个电脑意义 2023-03-09 败家 #败家
Don't Panic 俗话说得好,用 btrfs 的人不吃一次 ENOSPC 就算人生不完整。Btrfs 巧妙的 chunk 双重分配设计使得你可以在 df 报告 all green 的时候唐突 ENOSPC。不过我一度觉得只要没发生过大规模删除 subvol ,导致 allocation 效率变低这类的情况,唐突 ENOSPC 不会找上你。 万事就怕个但是... 背景 两块盘,hc550(16TB) 和 hc320( 2022-08-10 #Btrfs #Troubleshoot
Building a router based on Fedora IoT I had enough of my old WiFi router that hangs randomly, and hijacks my traffic when it thinks the network is down (diagnostics page). So I decided to build one router on myself. Compared to Fedora Mag 2021-12-01
Waydroid on Fedora There is a new Waydroid build for fedora that don't need a custom kernel, by dropping ashmem requirements, you can check out there. Waydroid need kernel with ashmem and binder Ashmem and binder is wh 2021-10-25
尝试 WSLg 以及启用图形加速 关于 WSLg 在老早之前微软就宣布了 WSL 支持图形界面,这个项目的代号就叫做 WSLg。因为不常用 Windows 于是我其实一直没有尝试这东西,直到昨天 Windows 11 推送 insider 版本。我为了尝试 Windows 11 找了个电脑升级之后,发现最想要的 Android 模拟器还没加进来,感叹微软虚假宣传之外,顺便尝试下 WSLg 的玩法。 其实最令人感到奇妙的就是 WSL 2021-06-29 瞎折腾 #瞎折腾
某不知名网友怒斥华为,究竟发生了什么 虽然国内新闻平台比较后知后觉,但是想必大家都看到了类似于这样的报道。报道中故事被显著的简化:一个提交 trivial patch 的华为员工被开发者社区怒斥。这个瓜显然不好啃,我大概简述一下我吃到的瓜长啥样。 导火索的 patch 作为导火索的邮件是这一封。邮件中 Zhen Lei 想要提交一个 patch 以移除一个分配内存失败的警告。理由是如果能触发这个警告的情况下,call trace 应该 2021-06-21
上手 Fedora CoreOS,以搭建代理为例 前几天,Vultr 的洛杉矶机房维护,我的主力代理自然就断掉了,于是临时启动了一个机器用来救急。虽然有一个脚本用来处理配置代理需要的步骤,但是因为脚本忘了写防火墙规则导致我迷惑了足足有半分钟(然后想起来我上次用这个脚本的时候也是手动 ssh 上去添加防火墙规则的)。 退一步越想越气,于是突然想到妮可艹提到过 Fedora CoreOS 很适合这类工作,顺便我正好学习下这东西怎么用。 在 Vultr 2021-05-06
Switch to systemd-boot and Unified Kernel Image on Fedora I am not responsible for bricked computers, system instabilities,dead cats, thermonuclear war or you getting fired because you lostimportant work.Please make a backup of your device or of 2021-04-30