这是部署于 Deployment.Gitee 的镜像,访问源站点:Deployment.Github

八月#

GTK 3.99 - GTK Development Blog#

@mclasen 在这篇博客 [1] 里大概讲了一下 3.98 之后引入的新 feature:

Event controllers for keyboard shortcuts:

说的应该是 GtkShortcutControllers [2]

  • Event Controller 看起来 [3] 是将 GTK3 中各种输入事件的处理从 GtkWidget 中拆出来的工具类

  • 在 GTK3 中,全局的键盘快捷键是通过 GtkAccelGroup 或者绑定 ::button-press-event 实现的,前者的 API 我一眼没看懂…… GtkShortcutControllers 看起来直观多了

Movable popovers

Gnome3 之后他们一直很喜欢这种风格的交互

Row-recycling list and grid views

可以看这篇博客 [4] ,我还没细看,只浏览了下关键字: 比如说对于列表控件 ,数据(data)存储在 GListModel 中, 而表示一个行的控件(view)仅会创建视野中能看到的那部分, 滚动浏览的时候,新出现的 row 会复用消失掉的 row 的控件, 对于有大量 row 的 list 和 grid 的场景会有显著的性能提升(Srain 有救了

Revamped accessibility infrastructure

对 a11y 没有太多了解

Animation API

同样没有了解,Media in GTK 4 [5] 有涉及到这个

最后,GTK4 真的要来了:

We are committed to releasing GTK 4 before the end of year. Between now and then, we are doing more work on accessibility backends, improving the macOS backend, writing documentation, and examples.

PPTP & L2TP#

PPTP
  • Pros: 速度快

  • Cons:

测试磁盘读写速度#

测试连续写 [6]

dd if=/dev/zero of=test.img bs=1G count=1 oflag=dsync

自由簧 (Free reed)#

openSSH 8.4 后出现 load pubkey “/key/file/path”: invalid format#

之前版本的 openSSH 默认使用的密钥类型 “ssh-rsa” 使用 sha1 签 [7] 名, 而 sha1 已经被证明是不安全的了。

It is now possible to perform chosen-prefix attacks against the SHA-1 algorithm for less than USD$50K. For this reason, we will be disabling the “ssh-rsa” public key signature algorithm by default in a near-future release. [8]

作曲中的动机(motif)和主题(theme)#

动机是一组短小的音乐材料(可能是旋律或节奏),是曲子的起源。

动机发展出短句,短句拼凑成乐句和乐段,并加以巩固贯穿全曲,然后这叫主题。 [9]

手机投屏到电脑和树莓派#

kodi & scrcpy

评论

如果你有任何意见,请在此评论。 如果你留下了电子邮箱,我可能会通过 回复你。