 使用Go与redis构建有趣的应用客户端⼀一 客户端⼆二 SET LOCK_KEY NX 获取锁失败 开始 SET LOCK_KEY NX 成功获取锁 键已经有值,设置失败 键尚未有值,设置成功 在线⽤用户统计器器 online user counter 示例例 analytics.google.com panda.tv bilibili.com v2ex.com ⽅方法⼀一 —— 使⽤用集合 当⼀一个⽤用户上 set element 实现代码 const online_user_set = "ONLINE_USER_SET" func set_online(client *redis.Client, user string) { client.Cmd("SADD", online_user_set, user) } func count_online(client *redis.Client) := client.Cmd("SCARD", online_user_set).Int64() return repl } func is_online_or_not(client *redis.Client, user string) bool { repl, _ := client.Cmd("SISMEMBER", online_user_set, user).Int()0 码力 | 176 页 | 2.34 MB | 1 年前3 使用Go与redis构建有趣的应用客户端⼀一 客户端⼆二 SET LOCK_KEY NX 获取锁失败 开始 SET LOCK_KEY NX 成功获取锁 键已经有值,设置失败 键尚未有值,设置成功 在线⽤用户统计器器 online user counter 示例例 analytics.google.com panda.tv bilibili.com v2ex.com ⽅方法⼀一 —— 使⽤用集合 当⼀一个⽤用户上 set element 实现代码 const online_user_set = "ONLINE_USER_SET" func set_online(client *redis.Client, user string) { client.Cmd("SADD", online_user_set, user) } func count_online(client *redis.Client) := client.Cmd("SCARD", online_user_set).Int64() return repl } func is_online_or_not(client *redis.Client, user string) bool { repl, _ := client.Cmd("SISMEMBER", online_user_set, user).Int()0 码力 | 176 页 | 2.34 MB | 1 年前3
 openEuler 21.09 技术白皮书suits hybrid deployments of online and offline cloud services. Its innovative CPU scheduling algorithm ensures real-time CPU preemption and jitter suppression for online services. Additionally, its its innovative memory reclamation algorithm against out of memory (OOM) allows online services to run reliably based on their higher service priorities. • EulerFS: A new file system is designed for non-volatile preferentially performed for process groups with low priorities to ensure the normal running of online services. Optimized mremap performance: Entries at the page middle directory (PMD) and page0 码力 | 36 页 | 3.40 MB | 1 年前3 openEuler 21.09 技术白皮书suits hybrid deployments of online and offline cloud services. Its innovative CPU scheduling algorithm ensures real-time CPU preemption and jitter suppression for online services. Additionally, its its innovative memory reclamation algorithm against out of memory (OOM) allows online services to run reliably based on their higher service priorities. • EulerFS: A new file system is designed for non-volatile preferentially performed for process groups with low priorities to ensure the normal running of online services. Optimized mremap performance: Entries at the page middle directory (PMD) and page0 码力 | 36 页 | 3.40 MB | 1 年前3
 Rust API可靠性分析与验证2021 – 2022, Online, China 姜剑峰 Rust API可靠性分析与验证 Rust China Conf 2021 – 2022, Online, China 主题内容 • Rust第三方库API可靠性现状 • 现用方法的局限性 • 基于程序合成+模糊测试的可靠性分析方法 Rust China Conf 2021 – 2022, Online, China 自我简介 Fuzzing via API Dependency Graph Traversal 获得了软件工程顶级会议ASE2021的ACM杰出论文奖 Rust China Conf 2021 – 2022, Online, China 引言:Rust for Linux “If the Rust compiler ends up doing hidden allocations, and they then 2021 – 2022, Online, China Rust静态检查与动态检查 静态检查: • 基于所有权和生命周期的内存管理模型:内存安全 • 通过trait来确保代码符合某些规范:Send, Sync, Unpin等 动态检查: • 数组越界 • 整数溢出 • Unicode字符边界 Rust China Conf 2021 – 2022, Online, China Rust0 码力 | 13 页 | 1.68 MB | 1 年前3 Rust API可靠性分析与验证2021 – 2022, Online, China 姜剑峰 Rust API可靠性分析与验证 Rust China Conf 2021 – 2022, Online, China 主题内容 • Rust第三方库API可靠性现状 • 现用方法的局限性 • 基于程序合成+模糊测试的可靠性分析方法 Rust China Conf 2021 – 2022, Online, China 自我简介 Fuzzing via API Dependency Graph Traversal 获得了软件工程顶级会议ASE2021的ACM杰出论文奖 Rust China Conf 2021 – 2022, Online, China 引言:Rust for Linux “If the Rust compiler ends up doing hidden allocations, and they then 2021 – 2022, Online, China Rust静态检查与动态检查 静态检查: • 基于所有权和生命周期的内存管理模型:内存安全 • 通过trait来确保代码符合某些规范:Send, Sync, Unpin等 动态检查: • 数组越界 • 整数溢出 • Unicode字符边界 Rust China Conf 2021 – 2022, Online, China Rust0 码力 | 13 页 | 1.68 MB | 1 年前3
 openEuler 22.03 LTS SP2 技术白皮书过小,会导致离线任务频繁唤醒,干扰在线任务。 功能描述 CPU* HT1 HT2 online task offline task 严重干扰 CPU* HT1 HT2 online task offline task 严重干扰 CPU* HT1 HT2 online task idle CPU* HT1 HT2 online task 原SMT驱离方案 加入优先级反转处理 后的SMT驱离方案 优先级负载均衡。 范围 : 0 和 1 默认值 : 0 功能描述 online online online offline offline CPU runqueue 判断任务优先级 high priority queue low priority queue offline online online online online offline offline offline offline offline 1 2 CPU 0 CPU 1 online online online online online online offline offline offline offline offline offline offline CPU QoS 优先级队列 CPU QoS 优先级迁移 16 openEuler 22.03 LTS SP2 技术白皮书 内核创新 潮汐 affinity0 码力 | 48 页 | 5.62 MB | 1 年前3 openEuler 22.03 LTS SP2 技术白皮书过小,会导致离线任务频繁唤醒,干扰在线任务。 功能描述 CPU* HT1 HT2 online task offline task 严重干扰 CPU* HT1 HT2 online task offline task 严重干扰 CPU* HT1 HT2 online task idle CPU* HT1 HT2 online task 原SMT驱离方案 加入优先级反转处理 后的SMT驱离方案 优先级负载均衡。 范围 : 0 和 1 默认值 : 0 功能描述 online online online offline offline CPU runqueue 判断任务优先级 high priority queue low priority queue offline online online online online offline offline offline offline offline 1 2 CPU 0 CPU 1 online online online online online online offline offline offline offline offline offline offline CPU QoS 优先级队列 CPU QoS 优先级迁移 16 openEuler 22.03 LTS SP2 技术白皮书 内核创新 潮汐 affinity0 码力 | 48 页 | 5.62 MB | 1 年前3
 OpenShift Container Platform 4.3 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 47 页 | 1.05 MB | 1 年前3 OpenShift Container Platform 4.3 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 47 页 | 1.05 MB | 1 年前3
 OpenShift Container Platform 4.7 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 55 页 | 1.16 MB | 1 年前3 OpenShift Container Platform 4.7 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 55 页 | 1.16 MB | 1 年前3
 Mybatis 3.3.0 中文用户指南build(inputStream); 最近更新: 24 五月 2015 最近更新: 24 五月 2015 || 版本: 3.3.0 版本: 3.3.0 PDFmyURL - the best online web to pdf conversion service XML 配置文件(configuration XML)中包含了对 MyBatis 系统的核心设置,包含获取数据库连接实例的数据源(DataSource)和 environment = new Environment("development", transactionFactory, dataSource); PDFmyURL - the best online web to pdf conversion service Configuration configuration = new Configuration(environment); configuration mapper.selectBlog(101); } finally { session.close(); } 现在我们来探究一下这里到底是怎么执行的。 PDFmyURL - the best online web to pdf conversion service 探究已映射的 探究已映射的 SQL 语句 语句 现在,或许你很想知道 SqlSession 和 Mapper 到底执行了什么操作,而0 码力 | 98 页 | 2.03 MB | 1 年前3 Mybatis 3.3.0 中文用户指南build(inputStream); 最近更新: 24 五月 2015 最近更新: 24 五月 2015 || 版本: 3.3.0 版本: 3.3.0 PDFmyURL - the best online web to pdf conversion service XML 配置文件(configuration XML)中包含了对 MyBatis 系统的核心设置,包含获取数据库连接实例的数据源(DataSource)和 environment = new Environment("development", transactionFactory, dataSource); PDFmyURL - the best online web to pdf conversion service Configuration configuration = new Configuration(environment); configuration mapper.selectBlog(101); } finally { session.close(); } 现在我们来探究一下这里到底是怎么执行的。 PDFmyURL - the best online web to pdf conversion service 探究已映射的 探究已映射的 SQL 语句 语句 现在,或许你很想知道 SqlSession 和 Mapper 到底执行了什么操作,而0 码力 | 98 页 | 2.03 MB | 1 年前3
 OpenShift Container Platform 4.10 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 63 页 | 1.40 MB | 1 年前3 OpenShift Container Platform 4.10 架构kind: ClusterRole metadata: annotations: name: system:openshift:online:my-webhook-server rules: - apiGroups: - online.openshift.io resources: - namespacereservations 3 verbs: io/v1 4 kind: ClusterRole metadata: name: system:openshift:online:my-webhook-requester rules: - apiGroups: - admission.online.openshift.io resources: - namespacereservations 5 verbs: roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:openshift:online:my-webhook-server subjects: - kind: ServiceAccount namespace: my-webhook-namespace name:0 码力 | 63 页 | 1.40 MB | 1 年前3
 PyWebIO v1.8.2 使用手册的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.pywebio.online/bmi] )。 将 bmi() 服务整合到现有的Web框架请参考 与Web框架集成 。 Documentation 这个文档同时也提供 PDF 和 Epub 格式 [https://readthedocs can run the example code online and see what happens. Also, the PyWebIO Playground [https://play.pywebio.online/] is a good place to write, run and share your PyWebIO code online. 输入 输入函数都定义在 pywebio sketchy, minty, yeti 。 同样可以使用环境变量 PYWEBIO_THEME 来设置主题(有更 高优先级)。 主题预览 [http://pywebio-demos.pywebio.online/theme] Open Source Credits js_code (str) – 需要注入到页面上的Javascript代码 js_file (str/list) – 需要添加到页面上的Javascript脚本文0 码力 | 160 页 | 7.48 MB | 1 年前3 PyWebIO v1.8.2 使用手册的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.pywebio.online/bmi] )。 将 bmi() 服务整合到现有的Web框架请参考 与Web框架集成 。 Documentation 这个文档同时也提供 PDF 和 Epub 格式 [https://readthedocs can run the example code online and see what happens. Also, the PyWebIO Playground [https://play.pywebio.online/] is a good place to write, run and share your PyWebIO code online. 输入 输入函数都定义在 pywebio sketchy, minty, yeti 。 同样可以使用环境变量 PYWEBIO_THEME 来设置主题(有更 高优先级)。 主题预览 [http://pywebio-demos.pywebio.online/theme] Open Source Credits js_code (str) – 需要注入到页面上的Javascript代码 js_file (str/list) – 需要添加到页面上的Javascript脚本文0 码力 | 160 页 | 7.48 MB | 1 年前3
 PyWebIO v1.8.1 使用手册的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.pywebio.online/bmi] )。 将 bmi() 服务整合到现有的Web框架请参考 与Web框架集成 。 Documentation 这个文档同时也提供 PDF 和 Epub 格式 [https://readthedocs can run the example code online and see what happens. Also, the PyWebIO Playground [https://play.pywebio.online/] is a good place to write, run and share your PyWebIO code online. 输入 输入函数都定义在 pywebio sketchy, minty, yeti 。 同样可以使用环境变量 PYWEBIO_THEME 来设置主题(有更 高优先级)。 主题预览 [http://pywebio-demos.pywebio.online/theme] Open Source Credits js_code (str) – 需要注入到页面上的Javascript代码 js_file (str/list) – 需要添加到页面上的Javascript脚本文0 码力 | 158 页 | 7.48 MB | 1 年前3 PyWebIO v1.8.1 使用手册的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.pywebio.online/bmi] )。 将 bmi() 服务整合到现有的Web框架请参考 与Web框架集成 。 Documentation 这个文档同时也提供 PDF 和 Epub 格式 [https://readthedocs can run the example code online and see what happens. Also, the PyWebIO Playground [https://play.pywebio.online/] is a good place to write, run and share your PyWebIO code online. 输入 输入函数都定义在 pywebio sketchy, minty, yeti 。 同样可以使用环境变量 PYWEBIO_THEME 来设置主题(有更 高优先级)。 主题预览 [http://pywebio-demos.pywebio.online/theme] Open Source Credits js_code (str) – 需要注入到页面上的Javascript代码 js_file (str/list) – 需要添加到页面上的Javascript脚本文0 码力 | 158 页 | 7.48 MB | 1 年前3
共 209 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21














 
 