上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 76 下一页
摘要: 教程集为您提供谈谈一致性哈希算法及其 Golang 实现(含负载均衡算法概述)等资源,欢迎您收藏本站,我们将为您提供最新的谈谈一致性哈希算法及其 Golang 实现(含负载均衡算法概述)资源 文章目录 一、概述 二、负载均衡算法 2.1 概述 2.2 轮询算法 2.3 随机算法 2.4 随机轮询算法 阅读全文
posted @ 2023-03-29 14:08 opensmarty 阅读(479) 评论(0) 推荐(1)
摘要: G711:8000HZ,8位,20ms一包数据 ,50包每秒 源代码: // g711.c // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <netdb.h> #in 阅读全文
posted @ 2023-03-29 10:48 opensmarty 阅读(382) 评论(0) 推荐(0)
摘要: 1$s // String%1$d // int //R.string.old:<string name="old">我今年%1$d岁了</string> String sAgeFormat = getResources().getString(R.string.old);String sFinal 阅读全文
posted @ 2023-03-28 09:53 opensmarty 阅读(91) 评论(0) 推荐(0)
摘要: 计算码率(bit rate) 音频: CD音质,一般2通道,原始音频数据1秒钟的数据量是44.1k(采样率)*16(位深度)*2(声道数)=1411.2kbits,可求得整个音频文件的大小=时长(300s)*码率(1411.2)/1024/8=51.67M。压缩成128kbps的MP3,1秒钟数据就 阅读全文
posted @ 2023-03-24 17:48 opensmarty 阅读(1152) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "github.com/chilts/sid" "github.com/kjk/betterguid" "github.com/oklog/ulid" "github.com/rs/xid" "github.com/satori/go.uuid 阅读全文
posted @ 2023-03-24 15:18 opensmarty 阅读(209) 评论(0) 推荐(0)
摘要: 通用唯一识别码(英语:universally unique identifier,简称uuid)是一种软件建构的标准,亦为自由软件基金会组织在分散式计算环境领域的一部份。uuid的目的,是让分散式系统中的所有元素,都能有唯一的辨识信息,而不需要通过中央控制端来做辨识信息的指定。如此一来,每个人都可以 阅读全文
posted @ 2023-03-24 14:51 opensmarty 阅读(1795) 评论(0) 推荐(0)
摘要: 预备知识: Monotonic Clocks,即单调时间,所谓单调,就是只会不停的往前增长,不受校时操作的影响,这个时间是自进程启动以来的秒数 参考文章:https://www.simpleapples.com/2018/10/26/understand-time-struct-in-go/ 雪花算 阅读全文
posted @ 2023-03-24 14:39 opensmarty 阅读(2062) 评论(0) 推荐(0)
摘要: 【gogs迁移后错误提示】 remote: hooks/pre-receive: line 2: /data/gogs/gogs: No such file or directory To http://192.168.1.129:53000/yin.xia/sgs-vue.git ! [remot 阅读全文
posted @ 2023-03-22 11:02 opensmarty 阅读(892) 评论(0) 推荐(0)
摘要: 默认是自捕获开始经历的秒数,如下图: 要调整的设置步骤: step1.打开wireshark step2.选择view->Time Display Fommat step3.选择你所需要的时间格式就可以了. 阅读全文
posted @ 2023-03-17 14:31 opensmarty 阅读(1041) 评论(0) 推荐(0)
摘要: Nginx默认是不允许列出整个目录的,如需此功能,需要添加以下设置: autoindex on; autoindex_exact_size off; autoindex_localtime on; 设置参数说明: autoindex_exact_size off; 默认为on,显示出文件的确切大小, 阅读全文
posted @ 2023-03-16 12:00 opensmarty 阅读(3857) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 76 下一页