摘要: 概念通过n-i次关键字间的比较,从n-i+1个记录中选出关键字最小的记录,并和第i个记录交换Java代码实现 public static void select(Integer[] array) { int min; for (int i = 0; i array[j]) min = j; } // end for compare length-i+1 elements // find the smallest element and swap with ith element if (i != min) Helper.swap(array, i, min); } // e... 阅读全文
posted @ 2013-12-23 23:33 sxplus 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 概念两两比较相邻记录的关键字,如果反序则交换,直到没有反序的记录为止。Java版实现原版冒泡排序算法 public static void bubbling1(Integer[] array) { for (int n = (array.length-1); n > 0; n--) { System.out.println("Bubbling.bubbling1() need to do comparing"); for (int i = 0; i array[j]) Helper.swap(array, i, j); ... 阅读全文
posted @ 2013-12-22 22:33 sxplus 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 三本优秀的Python教程2011.03.06感谢教程作者!感谢翻译者!相对于其他的程序语言,Python的教程显得单薄。这里推荐三份流传广泛的Python教程,如果你正准备找教程学py,希望本文会对你有用。《简明 Python 教程》A Byte of Python在网上流传极广,是非常好的python初学者教程,极力推荐阅读。(该教程对应Python 2.x)在线阅读:http://linux.chinaitlab.com/manual/Python_chinese《深入Python》Dive Into PythonDive IntoPython 是为有经验的程序员编写的一本Python书 阅读全文
posted @ 2013-12-01 19:22 sxplus 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Install*ubuntu*from*windowshttp://www.linuxidc.com/Linux/2013-10/91565.htmset*up*subime-texthttp://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/set*up*LAMPhttp://www.unixmen.com/install-lamp-server-apache-mysql-php-ubuntu-13-10-server/some steps missing after install phpmy 阅读全文
posted @ 2013-11-30 20:05 sxplus 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 本文转载自Albert Zhu 朱文昊--专注技术,向往自由http://zhuwenhao.com/372/%E6%8A%80%E6%9C%AF/%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B/%E7%A8%8B%E5%BA%8F%E5%91%98%E7%9A%84%E5%8D%81%E5%B1%82%E6%A5%BC/#more-372第1层菜鸟第1层楼属于地板层,迈进这层楼的门槛是很低的。基本上懂计算机的基本操作,了解计算机专业的一些基础知识,掌握一门基本的编程语言如C/C++,或者Java,或者JavaScript,…,均可入门迈进这层。 在这层上,中国有着绝 阅读全文
posted @ 2013-11-24 22:43 sxplus 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 在开发中经常会用到spring, 现在的各种框架于spring的结合也非常好。但是并没有注意configure的时候一些格式问题,今天就碰到了格式带来的困扰。 上面的两个configure看上去一模一样,但是用第一个的时候就会有错误org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from class path resource [drools-services.xml] is invalid; nested exception is ... 阅读全文
posted @ 2013-11-07 14:31 sxplus 阅读(736) 评论(0) 推荐(0) 编辑
摘要: After reading some material about how to improve the performance with MySQL database, I gather the info and summarise here. The configuration covers from Disk driver, operating system, connectivity, MySQL Server to MySQL database. For MySQL Database, more details about different database engine conf 阅读全文
posted @ 2013-11-03 20:00 sxplus 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 1. Introduction1.1 Web Service ConceptA WebServiceis a software application that is available over the Internet, whichis accessible through standard-based Internet protocols such as HTTP.The main purpose ofWeb service technologies is to allow applications on differentplatforms (including different s 阅读全文
posted @ 2013-11-03 19:59 sxplus 阅读(394) 评论(0) 推荐(0) 编辑
摘要: Summary1.1 what is JPAJPA is short for Java Persistence API, which is one of the Java EE 5 specification. it standardize the ORM persistence technology for Java developers. It is not a product but an interface. 1.2 why use JPA - JPA isstandardized specification and part of EJB3 specification - Many 阅读全文
posted @ 2013-11-03 19:55 sxplus 阅读(603) 评论(0) 推荐(0) 编辑
摘要: Summary 1.1What Is JTA1.1.1 What Is JTA JTA is short for Java Transaction API, it is one of the Java EE API s allowing distributed transactions to be done across multiple resources in the Java environment. It is a high-level API which defines interfaces between a transaction manager and the parties 阅读全文
posted @ 2013-11-03 19:54 sxplus 阅读(681) 评论(0) 推荐(0) 编辑