Foj 2299 Prefix 题意 题解 代码 c++ include include include include using namespace std; define fi first define se second define mp make_pair define pb push_ ...
分类:
其他好文 时间:
2018-06-24 14:02:40
阅读次数:
182
先从github上拉下 reportNg的源代码 reportng 拉下源码后我们使用IDEA进行导入 1、reportng.properties 增加部分类表项 这里我们直接在末尾添加 2、results.html.vm 修改结果的html,我们目前只修改fail的情况下。 3、我们在class- ...
分类:
其他好文 时间:
2018-06-24 00:30:38
阅读次数:
446
一.先上代码: 1.方式一: 2.方式二: ...
分类:
其他好文 时间:
2018-06-23 01:31:44
阅读次数:
162
共享内存 是最快的IPC通信方式,不存在数据复制,而是直接内存读写 涉及到多个进程访问,可能出现同时读、写操作,一般采用信号量的方式,进行互斥操作 步骤: 内存共享使用 1: ftok 使用某个文件做关键字创建key 2: shmget 使用key 创建(打开)共享内存 shmid 3: shmat ...
分类:
其他好文 时间:
2018-06-23 01:28:01
阅读次数:
168
IMAGE加载 Callback Hell function loadImg(src,callback,fail) { var img = document.createElement('img'); img.onload = function() { callback(img) } img.one ...
分类:
其他好文 时间:
2018-06-23 01:22:51
阅读次数:
158
2013年07月10日 14:47:27 阅读数:1239 2013年07月10日 14:47:27 阅读数:1239 阅读数:1239 错误: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directo ...
分类:
移动开发 时间:
2018-06-22 16:35:21
阅读次数:
314
Flume(一)Flume原理解析 阅读目录(Content) 一、Flume简介 二、Flume特点 三、Flume的一些核心概念 3.1、Agent结构 3.2、source 3.3、Channel 3.4、Sink 四、Flume拦截器、数据流以及可靠性 4.1、Flume拦截器 4.2、Fl ...
分类:
Web程序 时间:
2018-06-22 13:43:24
阅读次数:
251
一、DatabaseLibrary 库遇到的问题:1,连接mysql库,查询语句带有中文,报FAIL UnicodeEncodeError: 'latin-1' codec can't encode characters in position 92-107: ordinal not in rang ...
分类:
其他好文 时间:
2018-06-22 13:16:21
阅读次数:
182
先说结论:在用for遍历一个集合对象时,如果遍历过程中对集合对象的内容进行了修改(增加、删除),则会抛出ConcurrentModificationException。在单线程下用迭代器遍历修改,则不会报错。在多线程环境下则会报错。 原理:迭代器在遍历时直接访问集合中的内容, ...
分类:
编程语言 时间:
2018-06-21 21:11:08
阅读次数:
303
出现这个问题大部分时间都是因为发布时,少打包了一些文件.. 只打包了.Net Core的运行时库,没有打包Asp.Net Core 运行时.. 需要在打包指导文件中加入以下节点 打包指导文件的位置在 将内容加入到文件, 放在最后即可..如下图.. 重新打包..发布.. ...
分类:
移动开发 时间:
2018-06-21 17:15:26
阅读次数:
460