http://www.tbdata.org/archives/206 淘宝关于hadoop的及片文章
http://www.blogjava.net/jiangshachina/archive/2010/05/02/319888.html
http://www.blogjava.net/sandy/archive/2012/01/13/snaker.html 爬虫
http://www.cnblogs.com/bluesky5304/archive/2010/03/18/1689179.html DFS 分布式文件系统
http://www.blogjava.net/killme2008/archive/2008/06/05/206043.html HDFS 文件系统
http://dev.mysql.com/doc/refman/5.0/en/innodb-storage-engine.html mysql innodb 官网
http://www.hadoopor.com/ hadoop
https://cwiki.apache.org/confluence/display/Hive/HBaseIntegration hbase
http://forge.mysql.com/wiki/MySQL_Internals mysql
http://www.cnblogs.com/TomXu/archive/2011/12/15/2288411.html
2. json 转化
str 表示标准的 json,人谈后将其转化为 JSONObject,然后转为JSONArray
JSONObject jo = new JSONObject(str);
JSONArray asonArray = jo.getJSONArray("users");
for (int i = 0; i < asonArray.length(); i++) {
Object o = asonArray.get(i);
JSONObject jo1 = (JSONObject) o;
System.out.println(jo1.getString("id"));
}
3. org.slf4j.Logger
import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Wombat { final static Logger logger = LoggerFactory.getLogger(Wombat.class); Integer t; Integer oldT; public void setTemperature(Integer temperature) { oldT = t; t = temperature; logger.debug("Temperature set to {}. Old temperature was {}.", t, oldT); if(temperature.intValue() > 50) { logger.info("Temperature has risen above 50 degrees."); } } }
4. java 解析 xml
Java解析XML汇总(DOM/SAX/JDOM/DOM4j/XPath)
5.
今天看到了一段判断浏览器是否IE的最酷代码,果断收下:
if(!-[1,])
alert("IE");
else
alert("非IE");
斐波那契数列:(i最好不要超过40,要不然浏览器也可能hold不住)
function f(i){return i<3?1:f(i-1)+f(i-2);}
求n! 即,1×2×3×4×5×······×n
function n(i){return i<2?1:i*n(i-1);}
求1+2+···+n
function p(i){return i<2?1:i+p(i-1);}