自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

DaviHao

Focus on and record every little thing.

  • 博客(7)
  • 资源 (4)
  • 收藏
  • 关注

原创 JavaScript Build Tree Data Structure Using Array

function Tree(name,parent,child){ this.name = name; this.parent = parent || ''; this.children = child || []; this.addNode = function (parent){ this.children = parent; } this.addChild = function (child

2014-05-10 04:03:41 1461

原创 Java Notify And Wait 实例

最近写SEE2014的代码,碰到了多线程访问共享变量的问题。1. 单击发送button,监听器置sendFlag为true.2. 另一个线程循环等待sendFlag置true,并发送消息。代码如下,这是GUI中button响应函数的方法: public synchronized void sendButtonActionActionPerformed(ActionEvent

2014-01-28 00:36:12 739

原创 HDFS 拷贝本地文件至HDFS时的异常[INFO fs.FSInputChecker: Found checksum error]处理方法

boolean deleteSource = false; boolean overwrite = true; boolean returnValue = false; Configuration hdfsconf = new Configuration(); hdfsconf.addResource(new Path("/usr/local/hadoop/conf/cor

2013-03-26 20:54:55 1719

原创 Lucene3.6 Example和一些Tips

1 IndexWriterConfig的设置代码如下所示:IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_36, new StandardAnalyzer(Version.LUCENE_36));conf.setOpenMode(IndexWriterConfig.OpenMode.CREATE);IndexW

2012-07-31 22:29:11 963

原创 一张图解释链表翻转

附上递归的算法:LinkList ReverseLinkList( pNode PreNode, pNode CurrentNode ) { if(!CurrentNode) /*如果当前节点指针为空,则返回NULL,此种情况只有在*/ return NULL; /*链表头指针为空时才可能执行到*/ if(!CurrentNode->next) /*如果下一节点指针为空,则将

2012-05-16 11:26:25 628

原创 Mac OS ssh-copy-id Command not found 导致无法对目标服务器上传一个公钥的问题解决方案

解决Mac没有ssh-copy-id命令的问题:使用以下命令代替ssh-copy-id:cat ~/.ssh/id_dsa.pub | ssh hadoop@slave "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"FYIThis command will prompt you for the login passw

2012-05-11 20:50:08 4141

原创 Hadoop配置:file could only be replicated to 0 nodes, instead of 1问题解决方法

今天执行bin/hadoop fs -copyFromLocal /Users/hadoop/Weibo/input/FavoriteFile.txt /user/hadoop/FavoriteFile.txt时候碰到了以下问题:file “*********”could only be replicated to 0 nodes, instead of 1然后check了一下dfsh

2012-05-11 14:49:56 1427

webload 工具文档

主要讲述了webload的简单使用,具有非常高的参考价值

2010-12-05

词法分析 c++ 代码

简单的词法分析代码,提供了一个词法分析的基本思路

2010-12-05

哈工大 计算机学院 操作系统 历年期末考真题

无答案,但是此为开卷考试,题目十分具有参考价值,值得细细品味

2010-03-07

哈尔滨工业大学计算机网络课件

此为最新哈尔滨工业大学软件学院计算机网络课程所用课件,与计算机网络-自顶向下一书配套使用

2010-03-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除