1、采用TCP自定义协议通讯,协议由02(byte) + json字符串(byte[]) +03(byte)组成。 Socket_Client.cs 服务端using System;using System.Collections.Generic;using System.Net;using Sys ...
1. 依赖包 MongoDB.Driver; MongoDB.Json; MongoDB.Bson; 2. 上代码 1 using MongoDB.Driver; 2 using System; 3 using System.Collections.Generic; 4 using System.T ...
分类:
数据库 时间:
2020-05-09 15:25:28
阅读次数:
95
前言 移动互联网时代,海量的用户数据每天都在产生,基于用户使用数据等这样的分析,都需要依靠数据统计和分析,当数据量小时,数据库方面的优化显得不太重要,一旦数据量越来越大,系统响应会变慢,TPS直线下降,直至服务不可用。 补充 在mysql中,每个数据库最多可创建20亿个表,一个表允许定义1024列, ...
分类:
数据库 时间:
2020-05-07 13:43:11
阅读次数:
140
写在前面 不得不说,有些小伙伴的学习热情真高,学完了Lambda表达式的语法,想来几个典型案例再强化下。于是问冰河能否给几个Lambda表达式的典型使用示例。于是乎,便有了这篇文章。 案例一 需求 调用Collections.sort()方法,通过定制排序比较两个Employee(先比较年龄,年龄相 ...
分类:
编程语言 时间:
2020-05-07 00:36:42
阅读次数:
80
1 介绍 1.1 概念 面向批处理的分布式计算框架 一种编程模型:MapReduce程序被分为Map(映射)阶段和Reduce(化简)阶段 1.2 核心思想 分而治之,并行计算 移动计算,而非移动数据 1.3 特点 计算跟着数据走 良好的扩展性:计算能力随着节点数增加,近似线性递增 高容错 状态监控 ...
分类:
其他好文 时间:
2020-05-07 00:30:19
阅读次数:
80
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FineUICore; using Microsoft.AspNetCore.Authoriz ...
分类:
其他好文 时间:
2020-05-06 21:34:28
阅读次数:
86
原文:C#串口通讯,复制粘贴就可用,仅仅介绍怎样最快的搭建一个串口通讯,异常拦截等等需要自己加上 using System; using System.Collections.Generic; using System.IO.Ports; using System.Text; //串口通讯类 pub... ...
```python from collections import defaultdict from gensim import corpora import jieba from gensim import similarities import re class Similarity: def ... ...
分类:
其他好文 时间:
2020-05-06 01:08:10
阅读次数:
52
原文:WPF 加减乘除计算器 小玩意,毫无任何难度。 cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; usi... ...
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace FactoryMod ...