码迷,mamicode.com
首页 >  
搜索关键字:the xor-longest path    ( 29635个结果
Ubuntu 安装 spark
环境: Unbunt 12.04 Hadoop 2.2.x Sprak 0.9 Scala scala-2.9.0.final.tgz 步骤 1. 下载 scala 2. 解压scala,然后修改/etc/profile,添加如下 export SCALA_HOME=/home/software/scala-2.9.0.final export PATH=$P...
分类:其他好文   时间:2014-06-05 11:52:46    阅读次数:484
startallserver
[lvhongmin@AY1401201736089361adZ start_svr]$ cat startall_svr.sh  #!/bin/bash errpath[0]='' errnum=0 runnum=0 curr_path=`pwd` #进程的名字 array[${#array[*]}]=/home/lvhongmin/bin/bin....
分类:其他好文   时间:2014-06-05 11:11:43    阅读次数:243
UVA 712 - S-Trees
题目如下: S-Trees  A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function .Each path of the S-tree begins at the root node and consists ...
分类:其他好文   时间:2014-06-05 11:04:37    阅读次数:248
标准wordcount
package wordcount; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Int...
分类:其他好文   时间:2014-06-05 09:12:55    阅读次数:203
SSI事务问题
搭建SSI框架,使用编程式事务,怎么执行都报错 信息: Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] 2014-5-28 17:07:32 org.springframework.jdbc.support.SQLErro...
分类:其他好文   时间:2014-06-05 06:06:15    阅读次数:334
UVA Tree
题目如下: Tree  You are to determine the value of the leaf node in a given binary treethat is the terminal node of a path of least value from the root of thebinary tree to any le...
分类:其他好文   时间:2014-06-05 05:27:11    阅读次数:268
POJ 3259 Wormholes (图论---最短路 Bellman-Ford || SPFA)
链接:http://poj.org/problem?id=3259 Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path t...
分类:其他好文   时间:2014-06-05 05:26:33    阅读次数:240
C语言获取文件大小
C语言是一种比较底层的语言,有时在其他语言中很容易操作的事情,在C语言中就比较麻烦,例如获取一个文件的大小。Java中File类有个length函数,Python中os.path包中有个getsize函数,C语言中却没有直接对应的函数获取文件大小。        目前,网上有一种流传很广的方法,读取文件到内存,然后跳转到文件末尾,查看跳转的长度。代码如下: int file_size(char...
分类:编程语言   时间:2014-06-05 03:47:45    阅读次数:223
解析PE文件的附加数据
解析程序自己的附加数据,将附加数据写入文件中。 主要是解析PE文件头,定位到overlay的地方,写入文件。常应用的场景是在crackme中,crackme自身有一段加密过的附加数据,在crackme运行的过程中解析自己的附加数据,然后解密这段数据。。。。 代码留存: //解析自己的PE文件 TCHAR szModuleFile[MAX_PATH] = {0}; ::GetMod...
分类:其他好文   时间:2014-06-05 03:01:16    阅读次数:438
Android的代码同步repo
在工作中的经常使用repo命令,但是有时会忘记一些命令和遇到的一些问题,记录下来方便已经查询。 问题1:找不到命令:repo 方法: 在下载android源码的时候用repo时提示找不到命令,可以用如下方法解决,在命令行中输入如下两行: echo 'export PATH=$PATH:$Home/bin' >>~/.bashrc export PATH=$PATH...
分类:移动开发   时间:2014-06-05 02:39:47    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!