在紫书上看到的,挺有意思。 一看到位运算我就会躲,因为我整不明白。 代码 c++ include "iostream" include "cstdio" using namespace std; void subset(int n, int s) { printf("{"); for (int i ...
分类:
其他好文 时间:
2020-11-30 16:03:39
阅读次数:
8
虽然说的是正向代理,本文主要实现的就是nginx代理ssh服务! 1. nginx stream 模块 nginx从1.9.0版本以后,便新增了一个stream模块,用来实现四层协议的转发、代理或者负载均衡等; stream模块默认并没有编译到nginx中,源码编译安装nginx时, ./confi ...
分类:
其他好文 时间:
2020-11-26 14:40:33
阅读次数:
4
TensorFlow 每次运行的时候都会弹出类似下面的调度信息 I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally I tensorflow/str ...
分类:
其他好文 时间:
2020-11-26 14:32:40
阅读次数:
6
基于kerberos 加密的kafka消息我们在用spring binder链接的时候配置应当如下: #input spring.cloud.stream.bindings.process-in-0.destination=input-topic spring.cloud.stream.bindin ...
分类:
编程语言 时间:
2020-11-25 12:45:59
阅读次数:
10
本文部分摘自 On Java 8 自 Java7 开始,Java 终于简化了文件读写的基本操作,新增了 java.nio.file 库,通过与 Java8 新增的 stream 结合可以使得文件操作变得更加优雅 文件和目录路径 java.nio.file.Paths 类包含一个重载方法 static ...
分类:
编程语言 时间:
2020-11-21 12:14:46
阅读次数:
15
#include <iostream> extern "C" { #include <libavutil/des.h> } #include <openssl/des.h> int en(void *data, int size) { } int de(void *data, void *out) ...
分类:
其他好文 时间:
2020-11-20 12:00:54
阅读次数:
9
很惭愧,折腾了好几天才发现问题 用的环境是 .net core 3.1 不是这个版本的(主要是指之前的版本),处理方法不一样,不用参考 问题描述 post参数 如果在函数的声明了,再次读取body的时候,就会引发异常,我分析是stream 不能被多次读取,猜的是对的 解决方法,在 startup.c ...
分类:
Web程序 时间:
2020-11-19 13:01:38
阅读次数:
28
使用Turbine监控集群监控,在测试的时候出现了一些问题 http://localhost:9003/turbine.stream 没有获取到数据 http://localhost:9003/hystrix/monitor 监控界面一直loading 后台报Property or field 'd ...
分类:
移动开发 时间:
2020-11-19 12:14:31
阅读次数:
16
视频编码中,经常提到I帧。I帧只使用帧内压缩,不能除去帧间冗余度。P帧做帧间编码,根据当前帧与前面最近的I帧或P帧的差别来编码。 另外一个比较少提到的概念是IDR帧。IDR属于I帧,但是I帧不一定是IDR帧。解码器收到IDR帧时,将reference buffer清空;而收到I帧不会清空refere ...
分类:
其他好文 时间:
2020-11-18 13:20:55
阅读次数:
18
list: 底层实现为双向链表 1、基本用法 #include <iostream> #include <list> using namespace std; // list:双向链表 void ShowPrint(list<int> d) { for (list<int>::iterator it ...
分类:
其他好文 时间:
2020-11-17 13:02:23
阅读次数:
27