随笔分类 -  Programming---Network Programming

摘要:悲观锁悲观锁是指假设并发更新冲突会发生,所以不管冲突是否真的发生,都会使用锁机制。悲观锁会完成以下功能:锁住读取的记录,防止其它事务读取和更新这些记录。其它事务会一直阻塞,直到这个事务结束。悲观锁是在使用了数据库的事务隔离功能的基础上,独享占用的资源,以此保证读取数据一致性,避免修改丢失。悲观锁可以... 阅读全文
posted @ 2015-10-22 10:04 Jeremy Wu 阅读(185) 评论(0) 推荐(0) 编辑
摘要:Cyclomatic Code Complexity was first introduced by Thomas McCabe in 1976. In 1976, Thomas McCabe published a paper arguing that code complexity is d... 阅读全文
posted @ 2015-10-22 10:01 Jeremy Wu 阅读(384) 评论(0) 推荐(0) 编辑
摘要:I've met this problem for so many times and let me write a blog for solving this problem.First, you have a repository called repo1 for example, and wa... 阅读全文
posted @ 2015-10-14 10:23 Jeremy Wu 阅读(491) 评论(0) 推荐(0) 编辑
摘要:http://www.asp.net/web-api/overview/formats-and-model-binding/parameter-binding-in-aspnet-web-api http://www.codebetter.com/howarddierking/2011/10/11/ 阅读全文
posted @ 2015-09-23 11:43 Jeremy Wu 阅读(231) 评论(0) 推荐(0) 编辑
摘要:http://www.asp.net/web-api/overview/formats-and-model-binding/parameter-binding-in-aspnet-web-api 阅读全文
posted @ 2015-08-10 17:53 Jeremy Wu 阅读(111) 评论(0) 推荐(0) 编辑
摘要:http://www.codebetter.com/howarddierking/2011/10/11/oauth-2-0-in-web-api/ 阅读全文
posted @ 2015-08-10 17:52 Jeremy Wu 阅读(114) 评论(0) 推荐(0) 编辑
摘要:请求方法是请求一定的Web页面的程序或用于特定的URL。可选用下列几种: GET:请求指定的页面信息,并返回实体主体。 HEAD:只请求页面的首部。 POST:请求服务器接受所指定的文档作为对所标识的URI的新的从属实体。 PUT:从客户端向服务器传送的数据取代指定的文档的内容。 DELETE:请求... 阅读全文
posted @ 2015-07-28 11:40 Jeremy Wu 阅读(416) 评论(0) 推荐(0) 编辑
摘要:from: http://stackoverflow.com/questions/630453/put-vs-post-in-restAccording to the HTTP/1.1 Spec:The POST method is used to request that the origin s... 阅读全文
posted @ 2015-07-27 09:57 Jeremy Wu 阅读(345) 评论(0) 推荐(0) 编辑
摘要:From: http://www.cnblogs.com/techborther/archive/2012/01/10/2317998.html前几天调查完了unity。现在给我的任务是让我调查Moq。以下是自己找了资料,总结并实践的内容。如果有表述和理解错误的地方。恳请指正。什么是Moq?Moq(... 阅读全文
posted @ 2015-07-22 16:30 Jeremy Wu 阅读(238) 评论(0) 推荐(0) 编辑
摘要:1 花了点时间整理了一下ASP.NET Web.config配置文件的基本使用方法。很适合新手参看,由于Web.config在使用很灵活,可以自定义一些节点。所以这里只介绍一些比较常用的节点。 2 3 4 5 “Asp.Net 配置”选项。 6 7 设置和注释的完整列表在 m... 阅读全文
posted @ 2015-07-21 21:56 Jeremy Wu 阅读(449) 评论(0) 推荐(0) 编辑
摘要:取得Git仓库初始化一个版本仓库git initClone远程版本库git clone git@xbc.me:wordpress.git添加远程版本库origin,语法为 git remote add [shortname] [url]git remote add origin git@xbc.me... 阅读全文
posted @ 2015-07-20 14:57 Jeremy Wu 阅读(385) 评论(0) 推荐(0) 编辑
摘要:System.Web概述:System.Web是.NET中web应用开发的一个基础类库,定义浏览器与服务器之间的所有操作方法,包括请求输入流(HttpRequest)、输出流(HttpResponse)和上下文管理类(HttpContext)等于HTTP请求相关的类。只有添加了对System.Web... 阅读全文
posted @ 2015-07-16 11:59 Jeremy Wu 阅读(232) 评论(0) 推荐(0) 编辑
摘要:A webhook in web development is a method of augmenting or altering the behavior of a web page, or web application, with custom callbacks. webhook 的作用可... 阅读全文
posted @ 2015-07-15 23:55 Jeremy Wu 阅读(732) 评论(0) 推荐(0) 编辑
摘要:什么是GUID?全球唯一标识符(GUID)是一个字母数字标识符,用于指示产品的唯一性安装。在许多流行软件应用程序(例如Web浏览器和媒体播放器)中,都使用GUID。GUID的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中每个x是0-9或a-f范围内的一个十六... 阅读全文
posted @ 2015-07-14 11:27 Jeremy Wu 阅读(175) 评论(0) 推荐(0) 编辑
摘要:从ASP.NET 1.0 起,相比于ASP中的COM, PipeLine 就是一项重大的改进。 ASP.NET 时代的管道模型究竟是怎么样的? 我们能接触到的四个最重要的概念就是HttpApplication, theHttpContext, the HttpModule, and the H... 阅读全文
posted @ 2015-07-13 14:37 Jeremy Wu 阅读(157) 评论(0) 推荐(0) 编辑
摘要:from http://www.cnblogs.com/shanyou/archive/2012/05/12/2496959.htmldudu的 HttpClient + ASP.NET Web API, WCF之外的另一个选择 讨论的人很多,说明RESTful API也开始在.NET 社区中得到重... 阅读全文
posted @ 2015-07-13 11:15 Jeremy Wu 阅读(166) 评论(0) 推荐(0) 编辑
摘要:响应码由三位十进制数字组成,它们出现在由HTTP服务器发送的响应的第一行。响应码分五种类型,由它们的第一位数字表示:1.1xx:信息,请求收到,继续处理2.2xx:成功,行为被成功地接受、理解和采纳3.3xx:重定向,为了完成请求,必须进一步执行的动作4.4xx:客户端错误,请求包含语法错误或者请求... 阅读全文
posted @ 2015-07-13 10:24 Jeremy Wu 阅读(132) 评论(0) 推荐(0) 编辑
摘要:什么是Json 是Javascript·对象的一种表示,属于轻量级数据,它比XMl小,快,易解析作用: 用于存储和交换(转换)信息的语言,还可以将各种数据类型放在json中并进行数据传输整理的章节图讲解json架构两种表示对象{key:value}数组["value1","value2",...]下... 阅读全文
posted @ 2015-07-11 23:38 Jeremy Wu 阅读(129) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示