几个小问题,汇总一下 一、关于读出内存时,如果是中文的字符,请注意字符编码的问题,比如最近做的一个程序拿出来的一直是乱码,那不妨这样试试 char* charToGBK(const char* str) { int textlen = 0; wchar_t* result; textlen = Mu ...
分类:
编程语言 时间:
2020-06-09 20:18:21
阅读次数:
60
在实际的生产开发过程中 Keyed Window 使用的最多,故 Keyed Window 算子很重要。 在每个窗口算子中包含了 Windows Assigner、Window Trigger(窗口触发器)、Evictor(数据剔除器)、Lateness(延时设置)、Output Tag(输出标签) ...
public struct PublicationInfor{ public string village; public string fullSite; public string area; public string deadLine; public string publicationTi ...
核心部分 NIO( New Input/ Output) , 引入了一种基于通道和缓冲区的 I/O 方式,NIO 是一种同步非阻塞的 IO 模型。同步是指线程不断轮询 IO 事件是否就绪,非阻塞是指线程在等待 IO 的时候,可以同时做其他任务。同步的核心就是 Selector,Selector 代替 ...
分类:
编程语言 时间:
2020-06-08 19:08:32
阅读次数:
53
标准输出(Stdout) 和之前 inputs/stdin 插件一样,outputs/stdout 插件也是最基础和简单的输出插件。同样在这里简单介绍一下,作为输出插件的一个共性了解。 output { stdout { codec => rubydebug workers => 2 } } 输出插 ...
分类:
其他好文 时间:
2020-06-08 12:49:56
阅读次数:
114
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2020-06-08 11:06:25
阅读次数:
76
使用mybatis逆向工程的时候,delete方法的使用姿势不对,导致表被清空了,在生产上一刷新后发现表里没数据了,一股凉意从脚板心直冲天灵盖。于是开发了一个拦截器,并写下这篇文章记录并分享。 ...
分类:
其他好文 时间:
2020-06-08 00:48:27
阅读次数:
53
Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it exist ...
分类:
其他好文 时间:
2020-06-08 00:15:28
阅读次数:
76
报错信息 npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! Exit status 1npm ERR!npm ERR! Failed at the meiduo_mall@1.0.0 dev script.npm ERR! This is probab ...
分类:
其他好文 时间:
2020-06-07 21:10:28
阅读次数:
94
# coding:utf-8 from shutil import make_archive import os import time # 指定需要监测的文件夹 image_path = './image' # 指定压缩包存放的文件夹 output_path = './output' # 记录生成 ...
分类:
编程语言 时间:
2020-06-07 19:17:02
阅读次数:
78