08 2012 档案
摘要://TCPServer.javapackage msb.demo.socket;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.IOException;import java.net.ServerSocket;import java.net.Socket;import java.util.Date;public class TCPServer { /** * @param args * @throws IOException * @throws InterruptedExcepti...
阅读全文
摘要://Meal.javapackage producer.consumer.demo;public class Meal { private final int orderNum; public Meal(int orderNum) { this.orderNum = orderNum; } public String toString() { return "Meal " + orderNum; }}//Chef.javapackage producer.consumer.demo;import java.util.concurrent.TimeUnit;publ...
阅读全文
摘要:from:http://blog.csdn.net/yjzl1911/article/details/56690371. SMART TAB的用法. 解决自动缩进. 新开一个PROJECT后,点Options->Document Options,弹出对话框后先在左上角选好要用的Document Type,主要就是设C Source File和C++ Source File,选好后点右边中间的Auto Indent调整缩进。单选里一定要点Smart,右边有两个复选框Indent Open Brace和Indent Close Brace,具体效果是如何的可以看SIS的HELP。 勾选Aut
阅读全文
摘要:Cooperation between tasksAs you’ve seen, when you use threads to run more than one task at a time, you can keep one task from interfering with another task’s resources by using a lock (mutex) to synchronize the behavior of the two tasks. That is, if two tasks are stepping on each other over a shar..
阅读全文
摘要:SELECT t.NAME AS TableName, i.name as indexName, p.[Rows], sum(a.total_pages) as TotalPages, sum(a.used_pages) as UsedPages, sum(a.data_pages) as DataPages, (sum(a.total_pages) * 8) / 1024 as TotalSpaceMB, (sum(a.used_pages) * 8) / 1024 as UsedSpaceMB, (sum(a.data_pag...
阅读全文
摘要:http://gristmill.github.com/jquery-popbox/example.html#(function(){ $.fn.popbox = function(options){ var settings = $.extend({ selector : this.selector, open : '.open', box : '.box', arrow : '.arrow', arrow_border : '.arrow-border', ...
阅读全文
摘要:http://www.allimant.org/javadoc/index.php
阅读全文
摘要:NameIconsSize(in kb) Javascript LibraryTotalJavascriptSizeImagesSets ofmultipleimagesOther objectsAwesome Box23.5YUI (DOM-Events + Animation) (43k)66.5YesYesNoBumpbox5Mootools 1.2 (90k)95YesNoFLV and SWF, PDF objects, iframesCeeBox28jQuery (94k) + Jquery SWFObject (5k)127YesYesInline elements, Ajax.
阅读全文
摘要:http://www.jacklmoore.com/colorboxFeaturesSupports photos, grouping, slideshow, ajax, inline, and iframed content.Lightweight: 10KB of JavaScript (less than 5KBs gzipped).Appearance is controlled through CSS so it can be restyled.Can be extended with callbacks & event-hooks without altering the
阅读全文
摘要:http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html使用Criteria進行查詢時,不僅僅能組合出SQL中where子句的功能,還可以組合出如排序、統計、分組等的查詢功能。排序您可以使用Criteria進行查詢,並使用org.hibernate.criterion.Order對結果進行排序,例如使用Oder.asc(),指定根據”age”由小到大排序(反之則使用desc()):Criteria criteria = session.createCriteria(User.class);crite
阅读全文
摘要:最近下载了eclipse-jee-helios-win32.zip版,使用起来没感觉到什么变化,就是以前的Web项目上在打开的时候,总是在验证的时候弹出错误:Errors occurred during the build.Errors running builder 'JavaScript Validator' on project '##'.java.lang.NullPointerException要解决这个问题,要就把JavaScript Validator去掉。去掉的方法是:选择一个项目—-右键Properties—-Builders(排二个)—-点一
阅读全文
摘要:<session-config> <enable-cookies>false</enable-cookies> <enable-url-rewriting>true</enable-url-rewriting> <use-persistent-store/> <!-- <save-mode>on-shutdown</save-mode> --> <session-timeout>40</session-timeout> <file-store>WEB-
阅读全文