上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 摘要:这个HashTable用开放定址法解决冲突,用双散列法进行探测。装填因子过高之后使用再散列法扩充,涉及到的算法都不是很复杂,即使不使用数学工具,也可以简单的分析下:-) 。本文以.net fx's HashTable为例,回顾HashTable的基础理论。HashTable是一种能提供快速插入和查询的数据结构,无论其包含有多少Item,查询和插入操作的平均时间总是接近O(1)。HashTable理论上并不关心其所包含的item顺序,任何与顺序有关的操作例如:“find_min, find_max”,都不能有效的支持。Hashing假如我们把一本英汉字典的5000个单词, 从a到z 阅读全文
posted @ 2012-01-05 14:42 Ready! 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 00 – 背景知识- B-Tree & B+Treehttp://en.wikipedia.org/wiki/B%2B_treehttp://en.wikipedia.org/wiki/B-tree- 折半查找(Binary Search)http://en.wikipedia.org/wiki/Binary_search_algorithm- 数据库的性能问题 A. 磁盘IO性能非常低,严重的影响数据库系统的性能。 B. 磁盘顺序读写比随机读写的性能高很多。- 数据的基本存储结构 A. 磁盘空间被划分为许多大小相同的块(Block)或者页(Page). B. 一个表的这些数据块以链表 阅读全文
posted @ 2012-01-05 14:41 Ready! 阅读(291) 评论(0) 推荐(0) 编辑
摘要: applicationácomponent/serviceáclass/objectáfunctionástatementáinstruction setácircuitátransistorAll of us are involved in the blue sections 阅读全文
posted @ 2012-01-05 11:50 Ready! 阅读(222) 评论(0) 推荐(0) 编辑
摘要: One is who ever read <Database System Concepts>, another is who does not read it. 阅读全文
posted @ 2011-12-30 11:54 Ready! 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 元数据是关于数据的数据。在编程语言上下文中,元数据是添加到程序元素如方法、字段、类和包上的额外信息。什么是元编程?运行时动态创建类型的功能称为元编程。 从学习UML就知道meta-的重要性了,再后来了解到MOF(MetaObjectFacility)就更加着迷这个Meta-。Meta- 在...之中... 对于想真正了解一个Framework,了解它的Meta东西是十分重要的。不管任何一个Framework,肯定存在着它自己的MetaData的,. NET作为一个Framework自然也存在好多元数据,我们编写应用程序中如果可以灵活的运用元编程技术,肯定可以使我们的程序更加灵活,高效甚至自我 阅读全文
posted @ 2011-11-21 18:58 Ready! 阅读(336) 评论(0) 推荐(0) 编辑
摘要: There are two ways:.Directly call a function exported from a DLL..Call an interface method on a COM object.For both techniques, you must provide the C# compiler with a declaration of the unmanaged function, and you may also need to provide the C# compiler with a description of how to marshal the par 阅读全文
posted @ 2011-11-21 18:09 Ready! 阅读(170) 评论(0) 推荐(0) 编辑
摘要: In a nutshell, 3 ways:newproxy class (it could be used to implement AOP, .Net Remoting, WebService...facilities)ILGenerator.Emit (it could be used to implement AOP,code injection ...facilities) 阅读全文
posted @ 2011-11-21 18:02 Ready! 阅读(228) 评论(0) 推荐(0) 编辑
摘要: When we are access a website, after finishing a pair of HTTP request/response, the TCP connectionis NOTclosed immediately, but after some time, basically depending on the seeting value of client web browser, like for IE, the default value is 1 minute, you can change the default value, refer to http: 阅读全文
posted @ 2011-10-01 12:18 Ready! 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 从应用程序包括用户界面的角度来看,存取信息的最小单位是Byte(字节);从磁盘的物理结构来看存取信息的最小单位是扇区,一个扇区是512字节;从操作系统对硬盘的存取管理来看,存取信息的最小单位是簇,簇是一个逻辑概念,一个簇可以是2、4、8、16、32或64个连续的扇区。一个簇只能被一个文件占用,哪怕是只有1个字节的文件,在磁盘上存储时也要占用一个簇,这个簇里剩下的扇区是无用的。例如用NTFS文件系统格式化的时候默认是8个扇区组成一个簇,即4096字节。所以你如果保存了一个只有1字节的文件(例如字母N),它在磁盘上实际也要占用4096字节(4K),所以“簇”也可以理解为磁盘存取信息的最小单位。 阅读全文
posted @ 2011-09-26 11:45 Ready! 阅读(555) 评论(0) 推荐(0) 编辑
摘要: Basically, all managed codedirectivesare translated into IL directives, all IL directives are translated into assemblydirectives.The path is:C# code/Vb.Net code/other .Net code ====> ILdirective ==JIT==> assembly directive (machine code)Take the method System.Linq.Expressions.ExpressionCompile 阅读全文
posted @ 2011-08-03 15:25 Ready! 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Context-boundobjectsareaspecialcaseof.NETremoting(inparticular,ofclient-activatedobjects).Inmanyrespects.NETtreatsthemjustlikeremoteobjects,butitdoesoptimizesomeelementsofitsremotingarchitectureforcontext-boundobjects—forexample,asmentionedpreviously,thechannelusedforcross-contextcallsisanoptimizedc 阅读全文
posted @ 2011-07-20 15:51 Ready! 阅读(699) 评论(0) 推荐(0) 编辑
摘要: You see a lot of old SaveAs code that does not specify the FileFormat parameter. In Excel versions before Excel 2007, code without this parameter will not cause too many problems because Excel will use the current FileFormat of the existing file -- and the default FileFormat for new files is a norma 阅读全文
posted @ 2011-04-07 21:44 Ready! 阅读(553) 评论(0) 推荐(0) 编辑
摘要: Solution:Uninstalled MSXML Parser and MSXML 4.0 using Windows Installer CleanUp Utility and then installed Microsoft Core XML Services (MSXML) 6.0(http://www.microsoft.com/downloads/details.aspx?FamilyID=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en#filelist) 阅读全文
posted @ 2011-02-07 22:50 Ready! 阅读(2923) 评论(0) 推荐(0) 编辑
摘要: SPID - the session ID of the current user processmore, we can use column filter "Like"/"Equal"/etc.to get trace datawhat weneed. 阅读全文
posted @ 2011-01-24 14:23 Ready! 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 今天,我们的择偶观里包含了很大的自恋成分。对于组成什么样的伴侣关系,我们脑子里有一个非常清晰的轮廓。同时,我们也非常期待爱情关系起到心理治疗的作用。“爱我就修复我”,这样的说法是很现代的,流传很广。———精神分析学家让·米歇尔·西尔特。我原以为学生和家长会对此计划怀有很大疑虑,但调查发现,大部分人都可以接受这个计划。———美国乔治华盛顿大学近日宣布,将让住在宿舍的学生自由选择室友的性别,也就是允许男女混住。该大学政治学主任迈克尔说。我没在他身边不过几个小时,几乎是外出抽一包烟的工夫,他就不见了。我原先以为冰冷的他不会受到别人的特别关注。———英国肯特郡警方接到了一通报警电话,但内容却令他们哭笑 阅读全文
posted @ 2010-12-27 09:58 Ready! 阅读(275) 评论(1) 推荐(0) 编辑
摘要: There are two fundamental models of interprocess communication:(1) shared memory: singal, semaphore, monitor,memory-mapped file.(2) message passing: socket(the primitive way, Direct or communications), pipe(Indirect communications),MSMQ,RPC (COM, DCOM, .Net Remoting, WCF, CORBA, Java RMI, etc., are 阅读全文
posted @ 2010-11-18 14:24 Ready! 阅读(443) 评论(0) 推荐(0) 编辑
摘要: History中断 -> 函数指针(C++) -> Delegate(.Net)Application(1) 回调函数call method,代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///回调... 阅读全文
posted @ 2010-11-08 17:30 Ready! 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Coding to well-defined interfaces, particularly when using the dependency injection pattern, is the key to achieving loose coupling. By coupling an object to an interface instead of a specific impleme... 阅读全文
posted @ 2010-10-26 13:55 Ready! 阅读(194) 评论(0) 推荐(0) 编辑
摘要: A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of slower writes and increased storage space.Indexes can be created using one ... 阅读全文
posted @ 2010-09-25 15:43 Ready! 阅读(740) 评论(0) 推荐(0) 编辑
摘要: Most file systems make use of an underlying data storage device that offers access to an array of fixed-size physical sectors, generally a power of 2 in size (512 bytes or 1, 2, or 4 KiB are most comm... 阅读全文
posted @ 2010-09-23 17:19 Ready! 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 之前在一本介绍操作系统的书上看到说,由MMU内存管理单元负责把虚拟内存地址转换为物理内存地址。 后来在研究 Page Table的时候有看到介绍这么说,When a process requests access to its memory, it is the responsibility of the operating system to map the virtual address pr... 阅读全文
posted @ 2010-09-14 15:22 Ready! 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 数据结构在计算机中有两种不同的表示方法:顺序映像和非顺序映像,并由此得到两种不同的存储结构:顺序存储结构和链式存储结构。 阅读全文
posted @ 2010-09-09 17:10 Ready! 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 敏捷软件开发宣言:个体和交互 胜过 过程和工具可以工作的软件 胜过 面面俱到的文档客户合作 胜过 合同谈判响应变化 胜过 遵循计划敏捷开发,初始设计阶段,尽可能的干净、简单。敏捷开发采取了以下面向对象的设计原则:单一职责原则(SRP)  就一个类而言,应该仅有一个引起它变化的原因。开放-封闭原则(OCP)  软件实体应该是可以扩展的,但是不可修改。依赖倒置原则(DIP)  抽象不应该依赖于细节。细... 阅读全文
posted @ 2010-09-09 17:04 Ready! 阅读(244) 评论(0) 推荐(0) 编辑
摘要: look intothe implementations of some essential libararies and essentail technologies ........ to be .... 阅读全文
posted @ 2010-09-09 17:03 Ready! 阅读(250) 评论(0) 推荐(0) 编辑
摘要: A. HashTable, Dictionary<TKey, TValue>, SortedDictionary<TKey, TValue>, SortedList<TKey, TValue>0. HashTable, Dictionary<TKey, TValue>, 基于哈希表。SortedDictionary<TKey, TValue&g... 阅读全文
posted @ 2010-09-09 16:59 Ready! 阅读(242) 评论(0) 推荐(0) 编辑
摘要: WinForm Vs WPFXAML的先进之处在哪里?XAML个人觉得XAML应该是WPF中比较划时代的东东。通过XAML,我们可以用文本的方式描述复杂的Object Graph。通过Command,Routing Event等机制,界面设计人员和程序员有比较清楚的界限。Dependency Property在WinForm开发中,经常碰到的问题就是一个控件的值变了,其他控件也会跟着改变。解决办法... 阅读全文
posted @ 2010-09-09 16:58 Ready! 阅读(443) 评论(0) 推荐(0) 编辑
摘要: to be continued... 阅读全文
posted @ 2010-09-09 16:57 Ready! 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 17.1 数组与内存变量需要占用内存空间,内存空间有地址。不同数据类型的变量,可能占用不同的内存大小及有不同的内存结构。以前我们所学都称为“简单数据类型”,如:int,char,float,double,bool。像 char,bool,只占用一个字节,所以我们不去管它的的“结构”,其余如int,float,double占用多个字节,但比较简单,适当... 阅读全文
posted @ 2010-09-09 16:56 Ready! 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: 数据的概念不再是狭义的,数据已由纯粹的数值概念发展到图像、字符、声音等各种符号。例如对C源程序,数据概念不仅是源程序所处理的数据,相对于编译程序来说,C编译程序相对于源程序是一个处理程序,它加工的数据是字符流的源程序( .c),输出的结果是目标程序( .obj),对于链接程序来说,它加工的数据是目标程序( .obj),输出的结果是可执行程序( .exe)。而对于C编译程序,由于它在操作系统控制下接... 阅读全文
posted @ 2010-09-09 16:52 Ready! 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/rijing2004/archive/2007/09/14/howaspnetwork.htmlhttp://www.codeproject.com/KB/aspnet/ASPDOTNETPageLifecycle.aspx 阅读全文
posted @ 2010-07-09 09:58 Ready! 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页