`
xiaobian
  • 浏览: 587926 次
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
接口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); } ...
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 ...
  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 ...
http://blog.csdn.net/dongle2001/archive/2007/01/02/1472235.aspx    字符串相似度算法介绍(整理)收藏 新一篇: 添加了计数器,时钟,日历,天气预报和背景音乐 | 旧一篇: 试用Web-Harvest <noscript></noscript> 最近在做这方面的应用,把我找到的资料贴出来,有需要的人可以参考参考。1.编辑距离(Levenshtein Distance)编辑距离就是用来计算从原串(s)转换到目标串(t)所需要的最少的插入,删除和替换的数目,在NLP中应用比较广泛,如一些评测方法中就用到了(w ...
#!/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 ...

学习Python

学习:Python   http://hetland.org/coding/ http://www.poromenos.org/blog/1?page=4
http://www.crummy.com/software/BeautifulSoup/documentation.zh.html#Removing%20elements
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

HTTP Headers

    博客分类:
  • Java
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
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
转自:http://www.cnlei.org/blog/article.asp?id=356 URI、URL和URN之间的区别与联系 [ 2006-12-19 by 作者: CNLei ] 字体大小: 大 | 中 | 小 URI:Uniform Resource Identifier,统一资源标识符; URL:Uniform Resou ...
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 ...

Jquery插件

http://www.ericmmartin.com/simplemodal/

Java回调模式

    博客分类:
  • Java
同步调用,异步调用,回调调用。   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();         ...
腾讯财付通  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/
Global site tag (gtag.js) - Google Analytics