就以netty example中的EchoServer这个经典例子作为楔子吧 // 创建bossGroup和workerGroup,reactor模式的实现 EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup wor ...
分类:
Web程序 时间:
2019-11-11 23:06:10
阅读次数:
173
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2019-11-09 09:53:35
阅读次数:
106
1 KNN 进行分类基于什么 ? F(x)= 2 k in KNN is a parameter that refer to the number of nearest neighbors to include in the majority voting process k在KNN中是一个参数,指 ...
分类:
编程语言 时间:
2019-11-08 22:30:29
阅读次数:
109
201871010104-陈园园 《面向对象程序设计(java)》第十周学习总结 (1) 掌握java异常处理技术; (2) 了解断言的用法; (3) 了解日志的用途; (4) 掌握程序基础调试技巧; 第一部分:总结理论知识 1、异常:在程序的执行过程中所发生的异常事件,它 中断指令的正常执行。 2 ...
分类:
编程语言 时间:
2019-11-04 19:42:35
阅读次数:
90
链接: https://vjudge.net/problem/POJ 2689 题意: The branch of mathematics called number theory is about properties of numbers. One of the areas that has c ...
分类:
其他好文 时间:
2019-11-03 23:36:52
阅读次数:
94
Introduction In the reinforcement learning paradigm, an agent receives from its envrionment a scalar reward value called $reinforcement$. This feedbac ...
分类:
其他好文 时间:
2019-10-31 21:25:04
阅读次数:
74
The Kafka cluster stores streams of records in categories called topics. Each record consists of a key, a value, and a timestamp. Kafka has four core ...
分类:
其他好文 时间:
2019-10-31 01:04:43
阅读次数:
141
用一个哈希表和双向链表来实现。 哈希表记录节点是否存在,并计数 双向链表实现按优先级删除和添加。链表头为长时间未使用的低优先级,链表尾为最近使用的高优先级。 ...
分类:
系统相关 时间:
2019-10-17 23:33:27
阅读次数:
85
Sematext Monitoring 是最全面的Kafka监视解决方案之一,可捕获约200个Kafka指标,包括Kafka Broker,Producer和Consumer指标。尽管其中许多指标很有用,但每个人都有一个要监视的特定指标–消费者滞后。 什么是卡夫卡消费者滞后? 卡夫卡消费者滞后指标表 ...
分类:
其他好文 时间:
2019-10-17 15:43:04
阅读次数:
97
一、appsettings.json 1.添加数据 2.创建一个接收类 3.在Startup.cs配置项注册管道信息(红字部分) 4.在文件各个地方注册(例如Controller,红字部分) 5.然后就可以在页面上面使用 效果显示如下: 二、自定义json 1.创建自定义amJson.json 2. ...
分类:
Web程序 时间:
2019-10-14 01:07:05
阅读次数:
135