*_at方法
这些方法在一个流上面做随机存取操作。你来指定read和write操作从什么地方开始(offset)...
分类:
编程语言 时间:
2014-10-09 17:11:48
阅读次数:
241
[leetcode]Given a binary tree, find the maximum path sum....
分类:
其他好文 时间:
2014-10-09 16:29:28
阅读次数:
161
此题不难,可以用dfs来做,也可以用动态规划,但明显dfs性能不如dp。
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.
Note:...
分类:
编程语言 时间:
2014-10-09 15:59:48
阅读次数:
163
把下载下来的“hadoop-2.2.0.tar.gz”拷贝到“/usr/local/hadoop/”目录下并解压:修改系统配置文件,修改~/.bashrc文件配置“HADOOP_HOME”并把“HADOOP_HOME”下的bin文件夹加入PATH中,修改完后使用source命令使配置生效。接下来在h...
分类:
其他好文 时间:
2014-10-09 15:57:48
阅读次数:
179
select .... outfile 'file_path' fields terminate by '\t' lines terminate by '\r\n' from table_name;---------------------------------------------------...
分类:
数据库 时间:
2014-10-09 15:47:53
阅读次数:
208
Linux:-bash: ***: command not found,系统很多命令都用不了,均提示没有此命令。突然之间linux很多命令都用不了,均提示没有此命令。这应该是系统环境变量出现了问题导致的。解决办法:先用:echo $PATH 查看path是否含有:/usr/local/sbin:/u...
分类:
系统相关 时间:
2014-10-09 15:47:34
阅读次数:
199
安装完Rational Rose发现无法正常启动,我遇到了以下两个问题,希望能帮到相同经历的同学。
问题一:
安装完Rational Rose后不能用,提示如下:无法启动此程序,因为计算机中丢失suite object.dll。尝试重新安装该程序以解决此问题。
出现这种现象主要是,安装程序自动设置在 Path 中的环境变量有误。
解决方法:
首先找到suite object.dll...
分类:
其他好文 时间:
2014-10-09 15:46:08
阅读次数:
299
语法: load data [low_priority] [local] infile ‘file_path' [replace] [ignore] into table table_name [(column_list)] lines[ terminated by 'string'...
分类:
数据库 时间:
2014-10-09 14:59:13
阅读次数:
171
首先下载 TomCat 6:
http://yunpan.cn/cg5icf3dha4k3 提取码 34c5
然后配置环境变量:
电脑>>>属性>>>高级系统设置>>>环境变量>>>系统环境变量添加:
CATALINA_BASE 值: tomcat路径
CATALINA_HOME 值:tomca路径
然后打开PATH 看最后是否有分...
分类:
其他好文 时间:
2014-10-09 14:54:04
阅读次数:
172
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this scr...
分类:
其他好文 时间:
2014-10-09 14:51:44
阅读次数:
267