显示下一条  |  关闭

NEBA Forever

还是很水

 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 
 
 
博友列表加载中...
 
 
 
 
 
 
 
日志评论
评论列表加载中...
 
 
 
 
 
 
 
 

【转载】 The PECS of Java Generic

2011-9-10 3:26:02 阅读46 评论0 102011/09 Sept10

from http://stackoverflow.com/questions/2723397/java-generics-what-is-pecs

Forward the best answer here:

Suppose you have a method that takes as its parameter a collection of things, but you want it to be more flexible than just accepting a Collection<Thing>.

作者  | 2011-9-10 3:26:02 | 阅读(46) |评论(0) | 阅读全文>>

How does HBase update data on HDFS

2011-6-12 12:30:42 阅读66 评论0 122011/06 June12

Usually HBase is built on HDFS as its storage substrates. However the current released version (0.20.x) of HDFS only supports the "write-only-once and read-many-times" model, namely it is lack of "append" operation; while HBase as a typical Non-SQL database must support "updates" on existing data set. At first glance, it seems that HDFS cannot meet the requirement. But it happens... The

作者  | 2011-6-12 12:30:42 | 阅读(66) |评论(0) | 阅读全文>>

【引用】interrupt, exception and trap

2011-1-17 6:17:37 阅读136 评论0 172011/01 Jan17

和大家分享这篇日志,我的看法是:

The 386 architecture recognizes two event classes: exceptions and

作者  | 2011-1-17 6:17:37 | 阅读(136) |评论(0) | 阅读全文>>

PHP两类二进制包的区别

2010-11-24 15:31:39 阅读102 评论0 242010/11 Nov24

一个很老的问题了。比如在PHP网站上能找到的Windows下的二进制包,一般常用的有以下两个链接:

PHP 5.2.14 zip package [10,281Kb] - 22 July 2010

作者  | 2010-11-24 15:31:39 | 阅读(102) |评论(0) | 阅读全文>>

Yahoo Query Language服务

2010-11-11 2:48:15 阅读48 评论0 112010/11 Nov11

Yahoo推出了YQL语言,基本上就是用CSS Selector和XPath的方法来搜集互联网上的资源。

初看这个想法也不是很难(不过做成实际产品了应该有很多挑战),但挺有意思的。

http://developer.yahoo.com/yql/

作者  | 2010-11-11 2:48:15 | 阅读(48) |评论(0) | 阅读全文>>

【转载】动态规划算法的条件

2010-10-31 14:26:00 阅读126 评论0 312010/10 Oct31

动态规划类的算法不是万能钥匙,用它解决具体问题之前得好好分析是否适用。

《算法导论》中提到的流水线装配问题和最长公共子串(LCS)问题就是典型的例子。

Four-step method
1. Characterize the structure of an optimal solution.
2. Recursively define the value of an optimal solution.
3. Compute the value of an optimal solution in a bottom-up fashion.
4. Construct an optimal solution from computed information.

 

作者  | 2010-10-31 14:26:00 | 阅读(126) |评论(0) | 阅读全文>>

【转载】js事件停止和return false的误用

2010-10-25 15:43:07 阅读112 评论0 252010/10 Oct25

说了两件事,高手请忽略。

event.preventDefault() vs. return false;

event.stopImmediatePropagation() vs. event.stopPropagation()

http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/

作者  | 2010-10-25 15:43:07 | 阅读(112) |评论(0) | 阅读全文>>

测试一下Live Writer支持

2010-10-19 3:17:50 阅读55 评论2 192010/10 Oct19

从Windows Live Writer里写一篇试试看。

tornado

不过我还是不知道上面这张图片到底传到哪里去了:在“相册”里好像找不到啊。

是不是就没法管理了?请达人指教~~

作者  | 2010-10-19 3:17:50 | 阅读(55) |评论(2) | 阅读全文>>

Linux换新网卡以后如何去掉旧的Interface

2010-10-5 4:40:23 阅读167 评论1 52010/10 Oct5

其实这个问题我是在虚拟机里遇到的,新装一个虚拟机导入旧的虚拟硬盘以后发现上不了网,再一看发现新的网卡被识别成了eth1,可是很多配置文件写的还是eth0。

一个解决方法是所以把不存在的老Interface eth0去掉,然后把新网卡的Interface eth1改成eth0。

编辑 /etc/udev/rules.d/70-persistent-net.rules
新老网卡的mac地址不同,所以这个文件中仍然保留了老网卡eth0的内容,新网卡被添加为eth1。
删除老网卡的信息,然后将表示新网卡相关行里面的eth1替换为eth0。
重启就行了。

作者  | 2010-10-5 4:40:23 | 阅读(167) |评论(1) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注