- 浏览: 587926 次
- 来自: 北京
最新评论
-
lidi2011:
很通俗易懂的文章,很形象。
同步synchronized方法和代码块 -
inuyasha027:
领教了,谢谢。
Hadoop安装, Hive 安装。 -
xbmujfly:
好文 ,本人发现晚了
学习笔记 - java.util.concurrent 多线程框架 -
hanazawakana:
学习学习!
ANT-build.xml文件详解 -
david.org:
似乎还忽略一点,那就是cassandra不同数据中心的同步,H ...
Cassandra Vs HBase
文章列表
接口Callback类
public interface Callback {
public void execute();
}
被统计方法执行时间的类 CountMethodExecuteTime
public class CountMethodExecuteTime {
// 模拟一个耗时的计算函数
public void account() throws InterruptedException {
for (int i = 0; i < 10; i++) {
Thread.currentThread().sleep(100);
}
...
- 2009-05-14 15:13
- 浏览 1753
- 评论(0)
hiding from the rain and snow 藏身于雨雪之中
trying to forget but i won t let go 努力忘记,但我怎能就这样离去
looking at a crowded street 看着熙熙攘攘的街道
listening to my own heart beat 却只能听见自己的心跳
so many people 这么多的人
all around the world ...
- 2009-05-07 16:03
- 浏览 1414
- 评论(0)
package com.demo;
public class ThreadDemo implements Runnable {
int num = 100;
byte[] lock = new byte[0];
public void run() {
//synchronized (this) { //使用代码块同步
for (int i = 0; i < 5000; i++) {
System.out.println(Thread.currentThread().getNa ...
- 2009-05-05 17:36
- 浏览 1164
- 评论(0)
http://blog.csdn.net/dongle2001/archive/2007/01/02/1472235.aspx
字符串相似度算法介绍(整理)收藏
新一篇: 添加了计数器,时钟,日历,天气预报和背景音乐 | 旧一篇: 试用Web-Harvest
<noscript></noscript>
最近在做这方面的应用,把我找到的资料贴出来,有需要的人可以参考参考。1.编辑距离(Levenshtein Distance)编辑距离就是用来计算从原串(s)转换到目标串(t)所需要的最少的插入,删除和替换的数目,在NLP中应用比较广泛,如一些评测方法中就用到了(w ...
- 2009-02-05 17:02
- 浏览 2964
- 评论(0)
#!/usr/bin/env python
def levenshtein(a,b):
"Calculates the Levenshtein distance between a and b."
n, m = len(a), len(b)
if n > m:
# Make sure n <= m, to use O(min(n,m)) space
a,b = b,a
n,m = m,n
current = range(n+1)
for i in range ...
- 2009-02-05 16:33
- 浏览 4822
- 评论(0)
学习:Python
http://hetland.org/coding/
http://www.poromenos.org/blog/1?page=4
- 2009-02-05 16:26
- 浏览 1120
- 评论(0)
http://www.crummy.com/software/BeautifulSoup/documentation.zh.html#Removing%20elements
- 2009-02-05 16:17
- 浏览 1574
- 评论(0)
http://wiki.ubuntu.org.cn/Python%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97
http://www.pythontik.com/blog/article.asp?id=150
http://www.juyimeng.com/python-regular-expression-notes.html
http://bbs.chinaunix.net/viewthread.php?tid=1244237
- 2009-02-05 16:17
- 浏览 1083
- 评论(0)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
- 2009-02-05 16:16
- 浏览 1020
- 评论(0)
http://blog.lazytech.info/
http://www.laihj.net/pil%E7%BF%BB%E8%AF%91
http://hi.baidu.com/ismayday/blog/item/8df358ee537771feb2fb95e0.html
http://blog.chinaunix.net/u/14014/showart_1136901.html
http://www.pythonware.com/library/pil/handbook/image.htm
- 2009-02-05 15:42
- 浏览 1071
- 评论(0)
转自:http://www.cnlei.org/blog/article.asp?id=356
URI、URL和URN之间的区别与联系
[ 2006-12-19 by 作者: CNLei
]
字体大小:
大
|
中
|
小
URI:Uniform Resource Identifier,统一资源标识符;
URL:Uniform Resou ...
- 2008-11-28 14:21
- 浏览 1097
- 评论(0)
JavaScript Json http://www.dreamdu.com/blog/2008/10/19/json_in_javascript/
JSON :http://www.json.org/json-zh.html
<script type=" text/javascript " src="js/json2.js "></script>
<script type = "text/javascript">
var xmlHttp;
/*创建XMLHttpRequest对象 兼容F ...
- 2008-11-26 13:58
- 浏览 2107
- 评论(0)
http://www.ericmmartin.com/simplemodal/
- 2008-11-25 14:01
- 浏览 898
- 评论(0)
同步调用,异步调用,回调调用。
CallBack接口:
package com.nstars.user.service;
public interface CallBack {
public void execute();
}
调用着类及测试:
package com.nstars.user.service;
public class Caller {
/*
* 调用接口方法
*/
public void invoke(CallBack callBack){
callBack.execute();
...
- 2008-11-14 13:49
- 浏览 2215
- 评论(0)
腾讯财付通 https://www.tenpay.com/付费通 http://www.shfft.com/快钱 https://www.99bill.com/易宝 http://www.yeepay.com/联动优势 http://www.umpay.com/贝宝 https://www.paypal.com/cn 支付宝 https://www.alipay.com/百付宝 https://www.alipay.com/
- 2008-11-07 17:42
- 浏览 1468
- 评论(0)