下面开始hadoop的安装与配置;(1)安装jdk我安装的是JDK1.7.0_40,windows x64版的下载完之后,直接点击安装,我的安装路径为默认路径:C:\Program Files\Java\jdk1.7.0_40;安装完毕后,设置环境变量:JAVA_HOME指向JDk安装目录PATH指...
有机会看下defparam的语法了:如下:当一个模块引用另外一个模块时,高层模块可以改变低层模块用parameter定义的参数值,改变低层模块的参数值可采用以下两种方式: 1)defparam 重定义参数 语法:defparam path_name = value ; 低层模块的参数可以通过层...
分类:
其他好文 时间:
2014-08-15 09:25:27
阅读次数:
201
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-14 23:26:46
阅读次数:
219
因为有 “用户上传脚本,动态运行”的需求,所以要动态地import用户上传的模块
所以写了个函数动态地import
# -*- coding: utf-8 -*-
import os
import sys
import os.path
import Queue
import commands
def test(rootDir):
#判断传入的路径下是否有“__ini...
分类:
编程语言 时间:
2014-08-14 20:52:29
阅读次数:
259
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path....
分类:
其他好文 时间:
2014-08-14 20:50:59
阅读次数:
192
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-08-14 20:20:09
阅读次数:
206
public static XmlDocument getDoc(String path)//加载xml文档 { XmlDocument doc = new XmlDocument(); doc.Load(path); ...
分类:
其他好文 时间:
2014-08-14 19:52:59
阅读次数:
241
windows下1.配置好pip命令下载安装setuptools-5.4.2.win32-py2.7.exe装好在C:\Python27\Scripts下应该有easy_install.exe 和 pip.exe设置好环境变量Path 有C:\Python27\Scripts在命令行输入pip是否成...
分类:
编程语言 时间:
2014-08-14 16:14:48
阅读次数:
1023
有时Java工程图标前面会出现一个红色的叹号,这是因为工程引入的jar包不存在(或者被删除、移动)造成的。右键点击工程,选择Build Path->Configure Build Path,弹出的窗口中可以看见带红叉的jar包即是不存在的jar包。解决的办法是选中该文件,再点击右侧的Edit按钮,为...
分类:
编程语言 时间:
2014-08-14 15:50:58
阅读次数:
233
1 FRESULT f_chdir ( 2 const TCHAR *path /* Pointer to the directory path */ 3 ) 4 { 5 FRESULT res; 6 DIR dj; 7 DEF_NAMEBUF; 8 9 1...
分类:
其他好文 时间:
2014-08-14 13:45:18
阅读次数:
529