Flink 框架中支持事件时间、摄入时间和处理时间三种。而当我们在流式计算环境中数据从 Source 产生,再到转换和输出,这个过程由于网络和反压的原因会导致消息乱序。因此,需要有一个机制来解决这个问题,这个特别的机制就是“水位线”。 Flink 的窗口和时间根据窗口数据划分的不同,目前 Flink ...
分类:
其他好文 时间:
2020-05-23 16:25:22
阅读次数:
53
#path:数据路径 #txt:每条数据对应的标签 1 def generateds(path, txt): 2 f = open(txt, 'r') # 以只读形式打开txt文件 3 contents = f.readlines() # 读取文件中所有行 4 f.close() # 关闭txt文件 ...
分类:
其他好文 时间:
2020-05-23 16:19:10
阅读次数:
65
dom base_xss [toc] DOM XSS in sink using source 题目描述 搜索功能点调用了 函数,借此函数调用 解题步骤 看着语句写payload 包围 构造payload: DOM XSS in sink using source 题目描述 这道题的搜索功能点会使用 ...
分类:
Web程序 时间:
2020-05-23 14:57:01
阅读次数:
75
策略模式指对象有某个行为,但是在不同的场景中,该行为有不同的实现算法,并且这些算法可以相互替换,该模式使得算法可独立使用于它客户的而变化。 该模式有一个算法实现的抽象Strategy,它将不同的算法抽象了出来。具体的实现则在ConcreteStrategyA,ConcreteStrategyB,Co ...
分类:
其他好文 时间:
2020-05-23 13:08:35
阅读次数:
48
处理excel表格 openpyxl,csvkit NLP领域(人工智能) 自然语言 NLTK[业内使用较频繁],jieba,SnowNLP HTTP requests – 人性化的HTTP请求库。 grequests – requests 库 + gevent ,用于异步 HTTP 请求. [比r ...
分类:
其他好文 时间:
2020-05-23 11:27:04
阅读次数:
64
参考资料: https://kite.com/python/answers/how-to-save-a-dictionary-to-a-file-in-python dictionary_data = {"a": 1, "b": 2} a_file = open("data.pkl", "wb") ...
分类:
编程语言 时间:
2020-05-23 11:23:19
阅读次数:
104
下载Nginx安装包并解压 在 /opt/soft 内下载 "Nginx" 解压完之后, /opt/module/ ?录中会出现?个 的?录 安装Nginx 预先安装额外的依赖 译安装Nginx 启动Nginx 检验安装结果 ...
分类:
其他好文 时间:
2020-05-23 09:54:21
阅读次数:
48
周五,晴,记录生活分享点滴 参考博客:https://www.cnblogs.com/resn/p/5800922.html Linux目录结构 节选版 / : 所有目录都在 /boot : boot 配置文件、内核和其它启动 时所需的文件 /etc : 存放系统配置有关的文件 /home : 存放 ...
分类:
编程语言 时间:
2020-05-23 00:42:43
阅读次数:
64
1.读取 file_path = r'D:\DingDing\main\current\download\SMSSpamCollection' sms = open(file_path, 'r', encoding='utf-8') sms_data = [] sms_label = [] csv_ ...
分类:
其他好文 时间:
2020-05-23 00:17:30
阅读次数:
55
cmd = os.popen('adb shell dumpsys activity|findstr mFocus').read() 执行上述代码后会os.popen后台并不会结束 需要改为 cmd = os.popen('adb shell dumpsys activity|findstr mFo ...
分类:
编程语言 时间:
2020-05-22 21:34:47
阅读次数:
314