检查内存泄漏: valgrind --leak-check=full ./ecox_rws_helper 来检查内存泄漏 程序崩溃看错误: ulimit -c unlimited 然后执行程序,会在当前目录下生成一个文件,如:core.3945 再使用gdb看错误:gdb ./ecox_rws_he ...
分类:
编程语言 时间:
2017-11-14 20:10:35
阅读次数:
153
Git 在commit代码的时候出现错误 意思是有没有设置用户名和邮箱 git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders ...
分类:
其他好文 时间:
2017-11-11 11:30:57
阅读次数:
435
如果输入了 git config credential.helper 命令之后还是出现了osxkeychain, store 或者 cache 等,说明 git 的配置还是没有被清空,我参考了stackOverFlow上这个问题 有人给了这样一个命令查看 credential.helper 所在的文 ...
分类:
数据库 时间:
2017-11-03 14:15:12
阅读次数:
229
我们在学习递归时,总会认识一个问题,那就是汉诺塔问题,问题很简单,A,B,C三根柱子,将盘子移来移去,要求小盘子必须在大盘子的上面,最后将所有盘子从一个柱子移动到另一个柱子;那么我们看只有一根柱子的时候 很简单直接将从from移动到to,不用借助中间的helper柱子; 那么此时有n个盘子;其实我们 ...
分类:
其他好文 时间:
2017-10-30 14:41:45
阅读次数:
164
Maven_Build_Resources 功能:主要用于打包资源文件,默认情况下maven只打包src/main/resource下的资源,通过 1、设置build_resources 2、使用build-helper-maven-plugin插件 3、使用maven-resources-plug ...
分类:
其他好文 时间:
2017-10-27 15:27:38
阅读次数:
202
利用CUDA动态并行实现快排算法(有单线程的递归调用) 源代码: ? 输出结果: ? 新姿势: ● C++动态数组 ● checkCmdLineFlag 用于检验函数参数argv是否等于字符串string_ref(定义于helper_string.h中) ● getCmdLineArgumentIn ...
分类:
其他好文 时间:
2017-10-25 01:03:20
阅读次数:
396
db_helper.py是数据库操作包,主要有两个函数,分别是read()数据库读操作函数和write()数据库写操作函数。这个包的代码是从小戴同学分享的博文改造过来的。 1 #!/usr/bin/env python 2 # coding=utf-8 3 4 import psycopg2 5 f ...
分类:
编程语言 时间:
2017-10-24 13:21:13
阅读次数:
393
html---显示数据 xml ---传输数据 lxml 库 --- etree --xpath ==== path helper 工具辅助解析 from lxml import etree # 版本问题 有时候 不能 import lxml 后 不能使用lxml.etree xml=etree.H... ...
分类:
其他好文 时间:
2017-10-22 21:19:17
阅读次数:
251
Program.cs代码如下: [csharp] view plain copy internal class Program { private static void Main(string[] args) { GridFSHelper helper = new GridFSHelper("mo ...
分类:
数据库 时间:
2017-10-20 13:42:11
阅读次数:
279
def move(n, source, target, helper): if n == 1: print(source + ' -> ' + target) else: move(n - 1, source, helper, target) print(source + ' -> ' + targ... ...
分类:
编程语言 时间:
2017-10-19 15:53:35
阅读次数:
144