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 Read More
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.. Read More
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... Read More
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', ... Read More
http://www.allimant.org/javadoc/index.php Read More
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 Read More
最近下载了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(排二个)—-点一 Read More
<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- Read More
package com.cg.foo;// Generated 2012-7-19 11:40:57 by Hibernate Tools 3.4.0.CR1import java.util.Date;import java.util.HashSet;import java.util.Set;/** * TUser generated by hbm2java */public class TUser implements java.io.Serializable { private long id; private String name; private String nickname; p Read More
http://stackoverflow.com/questions/1515969/exporting-data-in-sql-server-as-insert-intoIn SSMS in the Object Explorer, right click on the database right-click and pick "Tasks" and then "Generate Scripts".This will allow you to generate scripts for a single or all tables, and one o Read More