07 2010 档案

摘要:Attention to its rich propertes to read back a XmlNode's content:XmlNode.InnerText: escape all markup and just return the text. XmlNode.InnerXMLXmlNode.OuterXML MSDN example this: 阅读全文
posted @ 2010-07-30 18:25 能巴 阅读(176) 评论(0) 推荐(0)
摘要:1. RegexRegex.IsMatchRegex.ReplaceEasy to understand and use. 2. RegexOptionsUse it to specify the options for regular expression matching. This enumeration has a FlagsAttribute attribute that allows ... 阅读全文
posted @ 2010-07-30 14:12 能巴 阅读(214) 评论(0) 推荐(0)
摘要:This is the case: let's say there are two branches: BranchA and Main. On BranchA, there happens two kinds of code changes: one is needed for Main in this time integration and the other is not needed. ... 阅读全文
posted @ 2010-07-30 11:19 能巴 阅读(187) 评论(0) 推荐(0)
摘要:1. Handle2. for each (instead of foreach)3. nullptr Tonight:1. C++/CLI some.2. Try-catch issue. 阅读全文
posted @ 2010-07-28 14:24 能巴 阅读(194) 评论(0) 推荐(0)
摘要:计算机编程简史图什么也不说了,直接上图(图片比较大,单击图片看大图) 阅读全文
posted @ 2010-07-26 16:24 能巴 阅读(223) 评论(0) 推荐(0)
摘要:回车和换行有什么区别 回车 \r 本义是光标重新回到本行开头,r的英文return,控制字符可以写成CR,即Carriage Return 换行 \n 本义是光标往下一行(不一定到下一行行首),n的英文newline,控制字符可以写成LF,即Line Feed 在不同的操作系统下,ENTER对应的字符是不同的:UNIX下是\n;WIN下是\r\n;MAC下是\r 阅读全文
posted @ 2010-07-23 15:09 能巴 阅读(212) 评论(0) 推荐(0)
摘要:Pros and cons are arguments for or against a particular issue. Pros are arguments which aim to promote the issue, while cons suggest points against it. The term has been in use since the 16th century ... 阅读全文
posted @ 2010-07-23 11:51 能巴 阅读(210) 评论(0) 推荐(0)
摘要:Just find and use it today!It's easy and works well.For example:1. Start debugging your first app in VS..2. When it calls up the second app to run, switch to the VS with its solution opened and select... 阅读全文
posted @ 2010-07-21 10:32 能巴 阅读(152) 评论(0) 推荐(0)
摘要:1. 正则表达式Tester.2. 正则表达式generator. 这个在线的网站txt2re可以帮你把任何你想match的text转换成多种语言的正则表达式。 阅读全文
posted @ 2010-07-20 13:23 能巴 阅读(262) 评论(0) 推荐(0)
摘要:For VS2010, instead of using NCB file, it updates to use SQL database file SDF to store intellisense data for VC++. But it still bring in issues, so I would like to disable it..Words from VC++ blog:Ma... 阅读全文
posted @ 2010-07-16 09:49 能巴 阅读(1072) 评论(0) 推荐(0)
摘要:There are so many remote desktop software in the market. You can get a list from this wiki page.Here, I just want to summarize about MS technology. As we know, we have used remote desktop connection (... 阅读全文
posted @ 2010-07-15 10:28 能巴 阅读(225) 评论(0) 推荐(0)
摘要:There are so many remote desktop software in the market. You can get a list from this wiki page.Here, I just want to summarize about MS technology. As we know, we have used remote desktop connection (... 阅读全文
posted @ 2010-07-15 10:28 能巴 阅读(267) 评论(0) 推荐(0)
摘要:有没有发现:当你集中精力进行一段时间(半个小时至一个小时差不多)对大脑思维认识、乐观积极的语录的阅读后,大脑的工作状态会好很多。视觉智能系统帮你通过眼睛和大脑的配合,推送了很多好的思想进入潜意识。这是非常好的自我修炼、调节方法。书写是为了更好的思考阅读能提升思维及心灵的高度认识大脑的三个关键:第一,人的身体和精神状态越放松(脑电波处于阿尔法波),大脑思维越自由、敏捷、活跃;第二,要知道并善于使用潜... 阅读全文
posted @ 2010-07-14 22:46 能巴 阅读(270) 评论(0) 推荐(0)
摘要:来自:coolshell一些重要的算法 2010年7月12日 1,406 次点击 阅读评论 发表评论 下面是一些比较重要的算法,原 文罗列了32个,但我觉得有很多是数论里的,和计算机的不相干,所以没有选取。下面的这些,有的我们经常在用,有的基本不用。有的很常见,有的很 偏。不过了解一下也是好事。也欢迎你留下你觉得有意义的算法。(注:本篇文章并非翻译,其中的算法描述大部份摘自Wikipedia,因为维基百科描述的 很专业了) A* 搜寻算法 俗称A星算法。这是一种在图形平面上,有多个节点的路径,求出最低通过成本的算法。常用于游戏中的NPC的移动计算,或线上游戏的 BOT的移动计算上。该算法像Di 阅读全文
posted @ 2010-07-13 13:02 能巴 阅读(198) 评论(0) 推荐(0)
摘要:Quick toggle between .h and .cpp files When programming C++ it is a very common need to switch between the .h and .cpp file. There are no built in way to do this in Visual Studio, however i... 阅读全文
posted @ 2010-07-12 16:45 能巴 阅读(347) 评论(0) 推荐(0)
摘要:来自coolshell大家看到标题后的第一个问题可能是:“我们需要这样做吗?” 如果我们开发的是局域网 Web 应用的话,可能没有必要这样做。但如果我们的 Web 应用面向的是互联网上的成千上万的用户,这样做就很必要了。因为在现实世界中并不是所有的用户都有高数率的网络连接,也许用户使用的是拨号接入,移动设 备,3G,或者是 USB 网络加密狗。如果我们没有在低数率的网络环境... 阅读全文
posted @ 2010-07-11 18:52 能巴 阅读(189) 评论(0) 推荐(0)
摘要:【来自百度百科 】内存虚拟硬盘(ramdisk)是指通过软件技术,将物理内存进行分割,将一部分内存通过虚拟技术转变为硬盘以较大幅度提升计算机数据读取速度和保护硬盘。【技术优势】1、对于计算机系统来说,内存的读取速度大约是硬盘的20倍,使用内存虚拟硬盘能够快速有效地提高数据访问速度。   2、传统的机械硬盘经过长期的读写会出现坏道,而在使用过程中,IE缓存文件和系统缓存文件需要大量重复的读写数据,长... 阅读全文
posted @ 2010-07-11 18:41 能巴 阅读(1383) 评论(0) 推荐(0)
摘要:如何阅读大型应用程序的code base?我们项目组内部谈论了下。有几点收获,总结下来:1. 画UML class diagram (UMLAsSketch)及更高层、抽象级别的图来帮助理解和总结。原则是:Just do what makes things work!不用考虑什么UML standard的问题。只要画出的图有助于自己和别人理解问题,就足够了。比如顺序图,画起来很难画。而且,他面对的... 阅读全文
posted @ 2010-07-11 11:48 能巴 阅读(614) 评论(0) 推荐(0)
摘要:1. DirextX是一套图形编程的API,它内部实现基于的是WDDM (windows display driver model)。WDDM的主要功能包括:图形功能的核心实现,显存管理,GPU调度和各种3D功能。2. WDDM1.0是Vista引入的。从它开始,才支持显存虚拟化、GPU调度这些对物理内存和CPU老早就有的机制。3. 显卡的驱动包括用户态(*.sys)和内核态(*.dll)。4. ... 阅读全文
posted @ 2010-07-11 11:10 能巴 阅读(361) 评论(0) 推荐(0)
摘要:From:Mixing Native and Managed Types in C++ Mixing Native and Managed Types in C++ Wow, its turning into a busy month. I just haven’t had any time to blog despite having a number of interesting... 阅读全文
posted @ 2010-07-07 17:31 能巴 阅读(492) 评论(0) 推荐(0)
摘要:From this article in codeproject.Mixed mode programming is the absolute power of C++/CLI, and so is C++/CLI the superior and mightiest of all programming languages. C++/CLI is to C++, as it is to C.... 阅读全文
posted @ 2010-07-07 16:36 能巴 阅读(304) 评论(0) 推荐(0)
摘要:Get it here from codeguru.com 阅读全文
posted @ 2010-07-07 16:29 能巴 阅读(169) 评论(0) 推荐(0)
摘要:From: Sample: Mixing Unmanaged C++, C++/CLI, and C# codeWe have this simple unmanaged C++ class UnmanagedFoo: E:\sample\vc\mixed>more ufoo.h#include <stdio.h>class UnmanagedFoo{public: Unma... 阅读全文
posted @ 2010-07-07 15:20 能巴 阅读(466) 评论(0) 推荐(0)
摘要:From:The Principles of OODWhat is object oriented design? What is it all about? What are it's benefits? What are it's costs? It may seem silly to ask these questions in a day and age when virtually ev... 阅读全文
posted @ 2010-07-06 17:35 能巴 阅读(470) 评论(0) 推荐(0)
摘要:谨以此文记录我儿成长中的重要milestone(许多许多的第一次)。陶小能小朋友是这样一路走来: 2010-2-2:出生。上海市新华医院特需病房,8斤8两,55cm。第一天就笑了。2010-4-30:今天能妈把儿子好好打扮了一番到小区小广场去炫。结果,导致着凉,引发了发烧。我们吓得不得了,乖乖去了医院,乖乖听医生话吊了抗生素。湿疹的隐患,从此埋下了祸根。真不该打针! 2010-7-4:第一次翻身。并且,马上,接二连三的翻个不停。以他五个月零2天20余斤的身体数据,这个成绩不错。2010-7-24:发牙了。准确的说是发现发牙了。哈。 2010-8-2:能能6个月了!最近半个月来学会的新本领有:摇 阅读全文
posted @ 2010-07-04 20:54 能巴 阅读(365) 评论(1) 推荐(0)
摘要:转载整理自:关于虚函数那点破事问题:如果你是C++程序员,我想你可能遇到过这样的情况: 在debug时,对着一个函数step into,明明调用的是A函数,可是结果却跳进了B函数。 为什么,call stack里显示的也是明明白白,就是直接进了B函数。百思不得其解,于是你怀疑是不是系统出了问题,是不是编译器出了问题,是不是调试器出了问题~~~ 其实那些玩意不是那么容易出错的,先看看你你的A,B函数... 阅读全文
posted @ 2010-07-02 01:30 能巴 阅读(501) 评论(0) 推荐(0)
摘要:摘自:关于大型软件重构的一些想法这里讨论的重构是"为了实现某个功能而专门进行的大规模的代码改动"。 架构设计,你能看的多远 简单一点来说,我们要做的,就是把一个软件的UI代码与核心功能彻底分开,然后把核心部分做成一个单独的产品。当然,这种所谓的表现层与业务层要分 开的道理是谁都懂的,当初的架构里也的确加入了这些概念,但是由于没有严格要求,也从来不会把核心部分单独拿出来跑,经过近十年的开发,代码中核... 阅读全文
posted @ 2010-07-02 01:17 能巴 阅读(238) 评论(0) 推荐(0)
摘要:摘自: 如何快速定位一个函数的返回点如何快速定位一个函数的返回点,这对于一个比较短小精悍的函数来讲,从来就不是问题,但是假设我们有一个名为LongFunction的1000行长的函数, 调用如下: 1bool bSuccess = LongFunction();2assert(bSuccess); 在运行中第二行弹出一个assert,我们知道肯定是LongFunction内部运行中出了什么问题导... 阅读全文
posted @ 2010-07-02 00:49 能巴 阅读(549) 评论(0) 推荐(0)
摘要:开源界的5大开源许可协议详解越来越多的开发者与设计者希望将自己的产品开源,以便其他人可以在他们的代码基础上做更多事,开源社区也因此充满生机。在我们所能想到的应用领域, 都有开源软件存在(象 WordPress,Drupal 这些开源CMS)。然而很多人对开源许可并不了解,本文介绍开源领域常用的几种许可协议以及它们之间的区别。 什么是许可协议? 什么是许可,当你为你的产品签发许可,你是在出让自己的... 阅读全文
posted @ 2010-07-02 00:13 能巴 阅读(294) 评论(0) 推荐(0)
摘要:1. 更多的UML drawing tools. Prefer UMLet for now. Martin Fowlerlikes UMLGraph (I don't have feeling about it now). And Two very suggested UML tools by a guy who have practiced with many UML tools (let's ... 阅读全文
posted @ 2010-07-01 17:35 能巴 阅读(370) 评论(0) 推荐(0)