Yousong Zhou

Results 10 issues of Yousong Zhou

https://packages.debian.org/search?keywords=gnupg ![image](https://user-images.githubusercontent.com/4948057/173514508-88421650-31f2-46bb-a2ab-73d3ed075871.png) Not sure how ansible molecule works, but it should be able catch this.

**背景** yunioncloud的国际化翻译,通过工具对源码进行分析,从中提取出需要翻译的文本,人工翻译后,再使用工具将之生成为golang代码。运行时,根据用户的请求,返回对应语言的结果 **需求描述** 举例,对于以下文本 ``` i18n.Sprintf("cannot run hypervisor %s on specified host with type %s", hypervisor, hostType) ``` 其中的两个format verb "%s",如果未做到与参数顺序无关,翻译后的文本只能像以下这样,结果比较拗口 ``` 无法运行%s,宿主机类型为%s ``` 较好的方式是,在提取文本时,通过词法、语法分析,将代码中的参数名称嵌到文本中。翻译时通过名称对应参数,运行时动态替换。例如: ``` cannot run hypervisor {hypervisor}...

feature
stale
state/awaiting processing

ovn的结构中有2个ovsdb数据库,用来记录不同抽象层次的网络拓扑、配置信息 - OVN Northbound Database,北向数据库,存放逻辑层面的网络配置信息 - OVN Southbound Database,南向数据库,由北向数据库经northd进程转换而来,存放每台计算节点上的配置信息 当前,通过代码分析ovsdb schema,可以自动生成每种ovsdb数据库的golang表达,同时生成的还有各种读操作代码。对数据库的写操作,如增、删条目,事务管理等,最终是通过执行ovn-nbctl、ovn-sbctl命令进行的。命令参数为自动生成,正确性可以保证。 从可扩展性、资源使用效率、减少依赖的角度看,直接使用JSON-RPC操作ovsdb数据库是有很大好处的 **What would you like to be added**: 扩展 [yunionio/ovsdb](https://github.com/yunionio/ovsdb),增加ovsdb JSON-RPC客户端的支持,最终实现 - 使用List, Monitor操作与远端建立同步,在本地维护一个数据库的缓存 - 支持增、删操作 - 支持事务操作,将多个增删操作包装在一个事务中处理 **参考资料**...

feature
stale
state/awaiting processing

Ref: https://help.aliyun.com/document_detail/25620.html > 说明 支持模糊匹配,如某规格的GPU类型为NVIDIA V100,输入NVIDIA也可查询到该规格信息。 Translate > NOTE: fuzzy matching is supported, e.g. argument "NVIDIA" will match those ecs instance types with GPU "NVIDIA V100"

I use gocryptfs 2.4.0 -reverse and backup the encrypted content to cloud storage. Not sure how it got to such a state, I found with hexdump that content of gocryptfs.diriv...

bug

The idea is taken from README.md of MattLombana/dotfiles Fixes https://github.com/preservim/tagbar/issues/851

I was experimenting with `aliyun` command line client against cr Personal Edition. It seems the `aliyun cr GetAuthorizationToken` command only supports 2016-06-07 API for now ![image](https://user-images.githubusercontent.com/4948057/202100971-08403021-da1c-4ddc-95bb-65781bfdfbf3.png) Invoking `aliyun --access-key-id "$ak"...

It seems chrome at the moment does not send request with "Accept" header when doing websocket GET request. User-Agent: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)...

CLA Signed

It seems onedrive graph API provides websocket (socket.io) endpoint for subscribing to "near-real-time change notifications for fetching delta" ([Link](https://learn.microsoft.com/en-us/graph/api/subscriptions-socketio)) I wrote a simple socket.io go client ([Link](https://github.com/yousong/socketio-go)) and integrated it...