摘要:
a) 单节点集群的安装参考http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/配置ssh(无密码连接到localhost)$ chmod g-w ~/.ssh/authorized_keys【这里尤其注意,你的机器上若没有.ssh目录,那么mkdir之后一定确保.ssh权限是700】$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/autho 阅读全文
摘要:
Hadoop注意事项 阅读全文
摘要:
1.bc计算平方和2的n次方#!/bin/bashsquare(){echo "square of $1 is \c"echo "$1*$1"|bc}########################cube(){echo "cube of $1 is \c"echo "2^$1"|bc}#######################power(){echo "raising 2 to the power of $1 is \c"}while getopts s:c:p: optiondocase 阅读全文
摘要:
http://phorum.vbird.org/、http://phorum.study-area.org/ 阅读全文
摘要:
很多用过jq的朋友都知道冒泡事件模型。很显然,像click,mouseover这样的事件在触发子元素之后很多时候也会触发父元素,因为,很多时候父元素包裹着子元素。jq是这样解决的:比如目前网页有代码如下:<div id="d"><span id="s"><a href="#" id="a">Click</a></span></div>这样我们一旦点击了a元素,那么按照jq的模式是这样触发click事件的:a->span->div,事 阅读全文
摘要:
jQuery是广受大家的喜爱一款js框架,我们在使用Ajax去改变页面内容之后,页面中可能会加入新的标签。当我们想使用ready方法中已经注册的事件时,发现对新加入的标签不起作用了,这就需要为新加入的标签绑定事件。如果它的ID=a,那么之前在ready之中注册的事件就会失效。网页中存在如下代码:<div id="insertdiv"></div><a href="#" id="ch1">Click</a>我们想在insertdiv中插入新的<a>那么有如下脚本:$(docum 阅读全文