摘要: 老赵写的文章,原文:http://blog.zhaojie.me/2009/09/i-made-a-mistake-can-you-figure-it-out-answer.htmlpublic static class MyClass{ public static readonly Guid... 阅读全文
posted @ 2015-06-19 14:17 英雄饶命啊 阅读(215) 评论(0) 推荐(0) 编辑
摘要: public static string RsaEncrypt(string publickey, string content) { RSACryptoServiceProvider rsa = new RSACryptoServiceProvi... 阅读全文
posted @ 2015-06-02 14:37 英雄饶命啊 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 原文:http://lvasquez.github.io/2014/11/18/EntityFramework-MySql/For the Entity Framework 6 support we need to have this requirementsMySQL Connector/Net ... 阅读全文
posted @ 2015-05-23 14:14 英雄饶命啊 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 原文: http://stackoverflow.com/questions/7888880/what-is-redis-and-what-do-i-use-it-forRedis = Remote Dictionary ServiceTL;DR: If you can map a use case... 阅读全文
posted @ 2015-04-13 17:57 英雄饶命啊 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 在设计应用程序时,应该尽可能地避免进行线程同步。为此,要避免使用一些共享数据,比如静态字段。线程用new操作符构造一个对象时,new操作符会返回对新对象的一个引用。在这个时刻,只有构造对象的线程才有对它的引用;其他任何线程都不能访问那个对象。如果你能一直避免将这个引用传给可能同时使用对象的另外一个线... 阅读全文
posted @ 2015-04-13 16:17 英雄饶命啊 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Pausing for a Period of TimeProblem:You need to (asynchronously) wait for a period of time. This can be useful when unittesting or implementing retry ... 阅读全文
posted @ 2015-03-15 19:38 英雄饶命啊 阅读(582) 评论(0) 推荐(0) 编辑
摘要: http://ec2-54-250-200-50.ap-northeast-1.compute.amazonaws.com/http://www.joesauve.com/async-dapper-and-async-sql-connection-management/http://www.help... 阅读全文
posted @ 2015-03-01 13:32 英雄饶命啊 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 对其进行再次封装:(function($) { $["fn"]["easyPaging"] = function(o) { if (!o.pageSelect ||!$["fn"]["pagination"]) { ... 阅读全文
posted @ 2015-02-23 21:20 英雄饶命啊 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/hyl8218/archive/2011/11/22/2259116.html从HttpUnauthorizedResult的源码可以看出,HttpUnauthorizedResult的执行很简单,就是设置当前的 HttpContext.Respo... 阅读全文
posted @ 2015-02-20 20:43 英雄饶命啊 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.sitepoint.com/jquery-infinite-scrolling-demos/Infinite Scrolling Demo 5Usage – HTML content content ...Usage – jQueryInfinite Scro... 阅读全文
posted @ 2015-02-16 20:55 英雄饶命啊 阅读(464) 评论(0) 推荐(0) 编辑