博客搬迁通知 本博客可能即日起逐步搬迁至博客园 (http://www.cnblogs.com/quanben)。此站已有文章将全部保留,或时有新文章登载于此站,但内容将以博客园主站为准。如造成不便尽情谅解。 Notice of Possible Blog MigrationThis blog on csdn by quanben is undergoing a possible and pro
An Ordeal of OLE OLE(Object Linking and Embedding) is a critical technology by Microsoft to carry out its enterprise applications, based on COM it's also a quite old one. Despite of its importance, it doesn't seem to
Finaliser and Destructor in C++/CLR and their equivalent in C# In C# we all know the standard way of finalising an object that potentially contains both managed and unmanaged resources is likeclass SomeDisposableEntity : IDisposable{ #region Constructors
A Distributed Algorithm Exercise This is one of the most daunting problems I have ever solved in my life. Another one with a similar complex nature that comes in to my mind is the extended regular expression parser I implemented. For
CSharp mimicking JavaScript design pattern Simplest C# code so far I can think of equivalent to the JavaScript design pattern to allow private members.The original JavaScript code can be found here:http://www.crockford.com/javascript/priva
75道逻辑思维题 德德转来的,没时间看。承认时间和脑细胞不够挥霍,仅暂贴于此,由此原文件可以删除廖。【1】假设有一个池塘,里面有无穷多的水。现有2个空水壶,容积分别为5升和6升。问题是如何只用这2个水壶从池塘里取得3升的水。【2】周雯的妈妈是豫林水泥厂的化验员。 一天,周雯来到化验室做作业。做完后想出去玩。 "等等,妈妈还要考你一个题目,"她接着说,"你看这6只做化验用的玻璃杯,前面3只盛满了水,后面3只是
How to get Windows 8 Apps to use proxy for internet access I upgraded my workplace desktop to Windows 8 today, thanks to the fast speed of SSD and the simplified installation process of the new operating system.However when I wanted to bind the system to my
WPF: Changing sizes of grid rows and columns during runtime At work I spent a lot of time trying to get my head around a issue with WPF grid resizing during runtime. I always found the controls don't resize the way I wanted and differently than how those in th
C#代码规范——成员分段 这里的基本整理一般原则是:1. 尽可能少分段2. 关于类的尽可能靠前(例如static),关于实际对象的尽可能靠后3. 早生成的尽可能靠前4. 公有的,接口的尽可能靠前5. 抽象的,通用的,基础性的,被依赖靠前;继承过来的尽量靠前6. 相对需要引起注意的尽量靠前7. 其他一些以往经验考虑class Sample : BaseClass, IIntf1{#re
Great learning resources This morning CSDN cloud computing section unusually shared something of great value athttp://www.csdn.net/article/2013-04-08/2814796-Machine-LearningAnd when I opened the link within I was not sur
Chinese Lunar Calendar for Live Calendar(In progress ...) Resources Needed,1. API: http://msdn.microsoft.com/en-us/library/live/hh826523.aspxlooks like the ultimate program has to be in a windows store app or windows phone app form, hopefully it can be
大学四年计算机也许应该这样学。。。 核心课程简表一上:综合数学(连续部分A(数学分析))[1001]、物理(经典物理)[2001]、程序设计与编译一A(C/Basic)[3001]、哲学与系统科学[1000]一下:综合数学(离散部分A(离散数学、线性代数等))[1002]、物理(电子:电动力学)[2002]、程序设计与编译一B(C#、Python等、程序语言分析)[3002]、算法与数据结构一A(算法导论和基本算法)[301
一段写坏掉的快速DCT实现 想当然了,用递归实现DCT,没想到DCT有4个分支需要递归下去,这样的规模非但无法快速实现,反而由于本身时间复杂度没有多大减少加上递归开销等等比慢速实现往往还慢。这个代码片段将由于清洁需要从QSharp中删除而保留在这里,对其分析将在代码之后有空时进行。过两天想想是不是能用动态规划或备忘录来改进这个算法。/// /// Type-IV DCT implemented using rec
算法题,做了近一天 原题出处,由July提供并解析,http://blog.csdn.net/v_july_v/article/details/8701148 自己独立做,一开始方向有偏差。最后独立思路写了一个超容易出bug调了半天的O(n):目前该程序至少在1000个以1~20长度以-20.0到20.0随机浮点数为元素的随机序列上和参考算法(穷举法)对比测试通过。 public static
一些个人电脑和设备互联的使用技巧 一些可能时不时用到的电脑使用技巧罗列在这里,这样我的电脑上就不必保存一些有时让人摸不着头脑的文本文件了。苹果的AirPrint虽然我不用,不等于别人不用。总需要给苹果设备提供点方便。苹果用AirPrint打印,要下载一个AirPrint包在Windows上配置使用以下命令(注意苹果的Bonjour服务需要预先安装):sc.exe create AirPrint binPat
Haskell是个神码语言 以下全部内容归原作者德天蛙所有。如原作者由于意愿于别处登载此文或其他任何原因而需要将此文下架(对移网不感冒怎么却开始用起app语了),本博将会立即执行。如有任何对原作者造成之影响,博主意愿承担可能之补偿并先行致歉。基于此类考虑,本文不向博客首页推送。此处仅因为博主全本无意近期学习诸如Haskell语言而又倾慕原作者著文质量之一贯水准而作为留挡马克之用。 20130302_Haskell是个
微谷服务对比 本文分类列示微软和谷歌对应或不对应服务对quanben的影响和quanben个人的使用感受以及使用情况。本文仅代表quanben目前个人使用感受,不作为任何服务/产品选用参考和提示;由于使用和观察条件限制,虽然本文力求符合事实,但不保证所有内容均完全符合实际情形。 1. 本地服务(包括桌面和移动设备) 操作系统作为桌面的话操作系统还是Windows胜出,因为谷歌还没正式拓展
Binary search and so forth Binary search is simple in concept but quite error-prone in implementation. Better keep one for later use. My version may look like,static int BinarySearch(TListRef list, int start, int count, const
Why does Java feel so good Noob: Why does Java feel so good?Buddhi: That's because C++ is just like rubbish.Noob: Why is Java still feeling so good?Buddhi: That's because it lost its mind as it found that as soon as it ha