1 2 3 4 5 ··· 12 下一页
摘要: http://www.codeproject.com/Articles/805587/Merge-Sort 阅读全文
posted @ 2014-08-12 10:01 LeimOO 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1. 积德行善, 愿家人都能平安, 健康, 幸福, 团员, 合家欢乐; 愿国家风调雨顺, 国泰民安; 愿神佛菩萨庇佑遍法界虚空届我等一切众生, 离苦得乐, 临终可以往生西方极乐世界.2. 精进佛法, 调服内心; 吐纳打坐, 健康身体; 学习国学, 教子爱妻.3. 布施放生, 吃素戒杀, 功德回向我和... 阅读全文
posted @ 2014-07-09 09:47 LeimOO 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1. Algrithom◾Given an array of values, pick a value as a pivot value◾Check each value against the pivot value and - bring each value higher than the p... 阅读全文
posted @ 2014-06-20 08:48 LeimOO 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 背景:之前项目使用的是DB first/Model first,现在要对EF升级的6.0,并且更换成Code first。问题:1. System.Data.Entity.Core.MetadataException: Unable to load the specified metadata resource.2. 更改metadata值;System.ArgumentException: Argument 'xmlReader' is not valid. A minimum of one .ssdl artifact must be supplied.3. 删除metad 阅读全文
posted @ 2014-04-01 07:44 LeimOO 阅读(3608) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.asp.net/web-api/overview/security/authentication-and-authorization-in-aspnet-web-api程序地址: http://www.codeproject.com/Articles/630986/Cross-Platform-Authentication-With-ASP-NET-Web-API 阅读全文
posted @ 2014-03-28 02:24 LeimOO 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://msdn.microsoft.com/en-us/magazine/dn201748.aspxCustom HttpModule code:using System;using System.Collections.Generic;using System.Linq;using System.Net.Http.Headers;using System.Security.Principal;using System.Text;using System.Threading;using System.Web;namespace Test.MVC{ public cla... 阅读全文
posted @ 2014-03-27 07:59 LeimOO 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.asp.net/web-api/overview/web-api-clients/httpclient-message-handlersusing System;using System.Collections.Generic;using System.Linq;using System.Net.Http;using System.Text;using System.Threading.Tasks;namespace Test.WebAPI.Client{ public class CustomClientMessageHandler : Delegat... 阅读全文
posted @ 2014-03-27 02:24 LeimOO 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client翻译地址:http://www.cnblogs.com/r01cn/archive/2012/11/20/2779011.htmlServer Code:1. 用EF创建Code First的Project;2. 用VS创建Web API code;Client Code:using System;using System.Collections.Generic;using System.Linq;using 阅读全文
posted @ 2014-03-27 01:26 LeimOO 阅读(642) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Test.Other{ public class TestDelegateAndEvent { public delegate void TestDelegate(); public event TestDelegate TestEventHandler; public void Test() ... 阅读全文
posted @ 2014-03-21 04:49 LeimOO 阅读(342) 评论(0) 推荐(0) 编辑
摘要: IIS Media Service 对Channel的Schema可以在浏览器中输入http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings 看到。 Publishing Point Collection 2014-03-20T17:38:09.529Z http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings Test 2014-03-19T19:06:55Z ... 阅读全文
posted @ 2014-03-21 01:54 LeimOO 阅读(1481) 评论(0) 推荐(0) 编辑
摘要: Service Host:using System;using System.Configuration;using System.ServiceModel;using System.ServiceModel.Activation;using System.Web.Configuration;using log4net;using System.Threading;namespace Test.Custom{ public class CustomServiceHostFactory : System.ServiceModel.Activation.WebServiceHostFacto... 阅读全文
posted @ 2014-03-21 01:30 LeimOO 阅读(747) 评论(0) 推荐(0) 编辑
摘要: Service Host:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.ServiceModel;namespace Test.WCF.ServiceBus.Host.Service{ [ServiceContract(Namespace = "urn:ps")] interface IProblemSolver { [OperationContract] ... 阅读全文
posted @ 2014-03-21 01:02 LeimOO 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 1、SharePoint: ExecuteOrDelayUntilScriptLoaded(test,"SP.js") test: function name; ExecuteOrDelayUntilScriptLoaded: please see http://msdn.microsoft.com/en-us/library/ff411788.aspx.2、html:<script language="javascript" type="text/javascript"> $(window).bind("loa 阅读全文
posted @ 2012-03-13 14:47 LeimOO 阅读(197) 评论(0) 推荐(0) 编辑
摘要: I figured out a great little trick for sorting a DVWP-based display based on a column name passed in the Query String. You can see this in action in the default All Items or All Documents views in lists or libraries. When you click on the column headers that allow sorting, the browser is sent to th. 阅读全文
posted @ 2012-03-12 15:46 LeimOO 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1. when updating field which lookups from Content Types, (for example: set Required to Yes), it needs update Content Types first. please read this article: http://www.novolocus.com/2010/10/28/programmatically-making-a-field-required-in-sharepoint-2007/2. Configuration: A. Set"Allow management o 阅读全文
posted @ 2011-09-27 15:32 LeimOO 阅读(189) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 12 下一页