- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 Maven error “Failure to transfer…wan cached in local repository”
需要删除所有下载失败的文件:linux下使用命令:find 仓库目录 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;windows下使用命令:cd 仓库目录for /r %i in (*.lastUpdated) do del
2016-01-13 18:22:57
357
原创 Cracking The Coding Interview--Q1.1
Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures?译文:实现一个算法来判断一个字符串中的字符是否唯一(即没有重复).不能使用额外的数据结构。 (即只使用基本的数据结构)看错了题目,以为不能使用数据结...
2013-06-06 15:01:04
639
转载 (转)当你输入一个网址,实际会发生什么?
英文原文:What really happens when you navigate to a URL,编译:寒冬星空作为一个软件开发者,你一定会对网络应用如何工作有一个完整的层次化的认知,同样这里也包括这些应用所用到的技术:像浏览器,HTTP,HTML,网络服务器,需求处理等等。本文将更深入的研究当你输入一个网址的时候,后台到底发生了一件件什么样的事~1. 首先嘛,你
2013-04-24 09:36:22
493
原创 简单的classloader
public class MyLoader{public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {// TODO Auto-generated method stubClassLoade
2013-04-23 13:05:05
630
原创 Lucene2.3 sort过程简单总结(返回Hits对象)
创建SortField对象创建Sort对象执行IndexSearcher.search(query, sort)方法:返回 new Hit(this, query, null, sort)Hit的构造方法中:Hit中的成员变量 Vector hitDocs = new Vector() 缓存检索到的hits设置成员变量:weight = query.weight(se
2013-04-23 12:34:11
925
原创 Python MySQLdb模块中的ping()
MySQLdb.connection.ping()函数可以用来检测在访问前检测数据库的连接是否存在使用help函数获得帮助信息如下:Checks whether or not the connection to the server isworking. If it has gone down, an automatic reconnection isattempted.
2013-04-23 12:27:37
7414
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人