摘要: C#计算程序的运行时间/// <summary>/// 计算程序的运行时间/// </summary>classStopWatch{private int mintStart;public void start(){mintStart = Environment.TickCount;}public long elapsed(){return Environment.TickCount - mintStart;}}在程序的开始和结尾处分别加上StopWatchsw = newStopWatch(); sw.start(); 和sw.elapsed();sw.elapsed 阅读全文
posted @ 2012-09-12 18:43 举重-若轻 阅读(152) 评论(0) 推荐(0)
摘要: ValueDescriptionlist/libraryFornotes, names as displayed in SharePoint or in the SQL Content database-1InvalidType(not used)100GenericList0(see note below) Also used for "Import Spreadsheet" Also: (and I'm sure more...) Relationships List Reusable Content Quick Deploy Items Variation L 阅读全文
posted @ 2012-09-12 18:41 举重-若轻 阅读(331) 评论(0) 推荐(0)
摘要: System.Web.Caching命名空间提供用于缓存服务器上常用数据的类。这包括 Cache 类,该类是一个使您可以存储任意数据对象(如哈希表和数据集)的词典。它还为这些对象提供到期功能,并提供使您可以添加和移除对象的方法。您还可以添加依赖于其他文件或缓存项的对象,并在从Cache中移除对象时执行回调以通知应用程序。System.Web.Caching.Cache用于实现 Web 应用程序的缓存。对于每个应用程序域均创建该类的一个实例,并且只要对应的应用程序域保持活动,该实例便保持有效。有关此类实例的信息通过HttpContext对象的Cache属性或Page对象的Cache属性来提供。方 阅读全文
posted @ 2012-09-12 18:24 举重-若轻 阅读(347) 评论(0) 推荐(0)
摘要: CSS 选择器:1. 类型选择器:p {color:black;}2. 后代选择器: #topNav ul {color:black;}3. ID和类选择器: #topNav, .newslist {color:black;}4. 伪类:a:link, a:visited, a:hover, a:active, input:focus{color:black;}5. 子选择器和相邻同胞选择器:#topNav>li 直接后代/子元素h2 + p: h2下面的第一个p6. 属性选择器:a[rel="nofollow"] {color:black;} 页面上的link并且r 阅读全文
posted @ 2012-09-11 23:10 举重-若轻 阅读(291) 评论(0) 推荐(0)
摘要: $web = Get-SPWeb "http://spsapp/mti-blog" $list = $web.Lists["Posts"] $posts = $list.Itemsforeach ($post in $posts){ $createdby4 = $post["createdby4"] #createdby4 is my list column if (($createdby4 -ne $Null) -and ($createdby4.Contains("i:0.w|soe"))) { $create 阅读全文
posted @ 2012-09-11 16:11 举重-若轻 阅读(1156) 评论(0) 推荐(0)
摘要: formula "=RIGHT(Me,LEN(Me)-FIND("\",Me))" :输入:domain\abc输出:abc 阅读全文
posted @ 2012-09-10 20:43 举重-若轻 阅读(193) 评论(0) 推荐(0)
摘要: 一、5R笔记法5R笔记法,又叫做康乃笔记法,是用产生这种笔记法的大学校名命名的。这一方法几乎适用于一切讲授或阅读课,特别是对于听课笔记,5R笔记法应是最佳首选。这种方法是记与学,思考与运用相结合的有效方法。具体包括以下几个步骤: 1.记录(Record)。在听讲或阅读过程中,在主栏(将笔记本的一页分为左大右小两部分,左侧为主栏,右侧为副栏)内尽量多记有意义的论据、概念等讲课内容。 2.简化(Reduce)。下课以后,尽可能及早将这些论据、概念简明扼要地概括(简化)在回忆栏,即副栏。 3.背诵(Recite)。把主栏遮住,只用回忆栏中的摘记提示,尽量完满地叙述课堂上讲过的内容。 4.思考(R.. 阅读全文
posted @ 2012-09-03 14:24 举重-若轻 阅读(230) 评论(0) 推荐(0)
摘要: we don't need put the two(.suo, .user) kinds of files into svn 阅读全文
posted @ 2012-08-27 16:12 举重-若轻 阅读(88) 评论(0) 推荐(0)
摘要: 可以使用item["EncodedAbsThumbnailUrl"].ToString()来访问这个缩略图,这样能在图片很多的时候能提升效率,也是很好的编码实践。 阅读全文
posted @ 2012-08-27 12:33 举重-若轻 阅读(132) 评论(0) 推荐(0)