活到老学到老

现学现卖

博客园 首页 新随笔 联系 订阅 管理

2008年11月4日 #

摘要: 脏读:事务t1修改一个行,然后t2在t1提交之前读取改行;如果这时t1回滚或失败,那么t2就读取一个从来没有提交过的行,也就是从来没有在系统中存在过的行。读取新插入但未提交的行业属于脏读。 不可重复读:t1读取了一行,然后t2修改或删除改行并提交;如果t1再次读取改行,会发现内容已经改变或者找不到... 阅读全文
posted @ 2008-11-04 10:36 John Rambo 阅读(1261) 评论(1) 推荐(0) 编辑

2008年10月31日 #

摘要: 可以使用XML Spy来编辑snippet。在XML 文档中指定schema为snippet的架构: C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas\1033\snippetformat.xsd, 就可以获得智能感知功能并验证snip... 阅读全文
posted @ 2008-10-31 11:30 John Rambo 阅读(264) 评论(1) 推荐(0) 编辑

2008年10月26日 #

摘要: In a method invocation (§7.5.5.1) of one of the forms 在下列形式的方法调用中 expr . identifier ( ) expr . identifier ( args ) expr . identifier typeargs > ( ) ex... 阅读全文
posted @ 2008-10-26 12:21 John Rambo 阅读(384) 评论(0) 推荐(0) 编辑

2008年10月25日 #

摘要: 对象的相等性是指两个对象在逻辑上是等价的,而对象的唯一性是指两个对象引用在应用程序域中是否指向同一存储结构。 实际上与其说是对象的唯一性,不如说是变量的唯一性。因为唯一性判定和对象引用有关而和对象本身无关。 变量的唯一性通过按位比较进行,所有基本类型的唯一性判定都是通过这种方式进行的。两个Objec... 阅读全文
posted @ 2008-10-25 15:09 John Rambo 阅读(341) 评论(0) 推荐(0) 编辑

2008年10月15日 #

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitio... 阅读全文
posted @ 2008-10-15 14:06 John Rambo 阅读(199) 评论(0) 推荐(0) 编辑

2008年7月23日 #

摘要: 下面这段伪代码是我自己总结的,如果有错误请指出,谢谢 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1一定要分清楚C#编译器的要求和CLR的要求。C... 阅读全文
posted @ 2008-07-23 00:17 John Rambo 阅读(282) 评论(0) 推荐(0) 编辑

2008年7月17日 #

摘要: 今天看CLR via C#,看到上面说,同一个类型会在不同应用程序域中存在多个映像,于是写了一段代码证明一下这个情况。 usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSys... 阅读全文
posted @ 2008-07-17 14:15 John Rambo 阅读(224) 评论(0) 推荐(0) 编辑

2008年6月25日 #

摘要: 经常在Console上测试多线程,这次用多线程测试一下Console 阅读全文
posted @ 2008-06-25 23:30 John Rambo 阅读(440) 评论(1) 推荐(0) 编辑

2008年4月1日 #

摘要: #region KMP generic private static int[] Next(IList pattern) { int[] next = new int[pattern.Count]; next[0] = -1; if (pattern.Count { return ... 阅读全文
posted @ 2008-04-01 13:08 John Rambo 阅读(1057) 评论(1) 推荐(0) 编辑

2008年3月31日 #

摘要: /// /// 求一个字符串的回溯函数。 /// 约定序列下标从0开始。 /// 回溯函数是整数集[0,n-1]到N的映射,n为字符串的长度。 /// 回溯函数的定义: /// 设存在非空序列L,i为其合法下标; /// L[i]的前置序列集为:{空集,L中所有以i-1为最后一个元素下标的子序列}... 阅读全文
posted @ 2008-03-31 21:33 John Rambo 阅读(3878) 评论(4) 推荐(0) 编辑