#ifdef WIN32 #include<windows.h> #else #include<string.h> #include<unistd.h> #include<stdlib.h> #include<arpa/inet.h> #include<sys/types.h> #include<s ...
分类:
其他好文 时间:
2020-07-29 15:24:55
阅读次数:
63
一、模型关联 1.一对多/多对多 在一中关联多中的字段,type为 mongoose.Schema.Types.ObjectId ,并关联关联模型的名称。 1 const Categoryschema = new mongoose.Schema({ 2 name: { type: String }, ...
分类:
数据库 时间:
2020-07-29 10:13:51
阅读次数:
71
一、常用的描述性统计函数 函数 作用 函数 作用 count 非缺失样本的数量 sum 求和 mean 均值 mad 平均绝对偏差(Mean absolute deviation) median 中位数 min 最小值 max 最大值 mode 众数 abs 绝对值 prod 乘积 std 标准差 ...
分类:
其他好文 时间:
2020-07-26 22:59:53
阅读次数:
122
1 本地YUM源 1.1 [YUM仓库/服务端] 获取:软件包资源 1.2 [YUM仓库/服务端] 挂载/搭建:yum仓库(资源) 即 搭建yum仓库 将操作系统镜像(CentOS-....-.iso)挂载在本地目录中; 此次挂载目录为/var/www/html/repo/(此目录本身不存在,需要创 ...
分类:
Web程序 时间:
2020-07-26 11:17:58
阅读次数:
123
[root@centos7 nginx]# cat nginx.conf worker_processes 2; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type applic ...
分类:
其他好文 时间:
2020-07-26 01:19:27
阅读次数:
70
// item 为 chooseImage 返回的图片 path let buffer = wx.getFileSystemManager().readFileSync(item) wx.cloud.callFunction({ name:'printedTextOCR', data: { buff ...
分类:
微信 时间:
2020-07-26 00:56:32
阅读次数:
103
月初的时候,Flink 终于发布 1.11.0 版本, CDC 的功能还是比较期待的(虽然比预期差很多) 当然是升级一波了 最新的代码已经上传到 GitHub : https://github.com/springMoon/sqlSubmit 跑 sqlSubmit 的代码,随便来个 kafka t ...
分类:
数据库 时间:
2020-07-26 00:01:52
阅读次数:
179
ffplay是ffmpeg源码中一个自带的开源播放器实例,同时支持本地视频文件的播放以及在线流媒体播放,功能非常强大。 FFplay: FFplay is a very simple and portable media player using the FFmpeg libraries and t ...
分类:
其他好文 时间:
2020-07-25 09:54:41
阅读次数:
80
HTML事件共分5类 Window事件(17个)、Form事件、Keyboard事件、Mouse事件、Media事件 Window事件(17个) 针对window对象的事件(应用到<body>书签) onafterprint :文档打印之后运行的脚本onbeforeprint、onbeforeunl ...
分类:
Web程序 时间:
2020-07-25 09:52:02
阅读次数:
111
nginx配置负载均衡需要有两个关键配置 在upstream中配置具体负载均衡信息 通过proxy_pass 来引用已经配置好的负载均衡信息 在http{}部分引入mylb.conf文件 http { include /etc/nginx/mime.types; default_type appli ...
分类:
Web程序 时间:
2020-07-24 16:28:51
阅读次数:
85