关闭

博客搬迁通知

本博客可能即日起逐步搬迁至博客园 (http://www.cnblogs.com/quanben)。此站已有文章将全部保留,或时有新文章登载于此站,但内容将以博客园主站为准。 如造成不便尽情谅解。   Notice of Possible Blog Migration This blog on csdn by quanben is undergoing a possible and pro...
阅读(1948) 评论(0)

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...
阅读(2017) 评论(1)

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 like class SomeDisposableEntity : IDisposable { #region Constructors...
阅读(2333) 评论(1)

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...
阅读(1845) 评论(0)

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...
阅读(1988) 评论(2)

75道逻辑思维题

德德转来的,没时间看。承认时间和脑细胞不够挥霍,仅暂贴于此,由此原文件可以删除廖。 【1】假设有一个池塘,里面有无穷多的水。现有2个空水壶,容积分别为5升和6升。问题是如何只用这2个水壶从池塘里取得3升的水。 【2】周雯的妈妈是豫林水泥厂的化验员。 一天,周雯来到化验室做作业。做完后想出去玩。 "等等,妈妈还要考你一个题目,"她接着说,"你看这6只做化验用的玻璃杯,前面3只盛满了水,后面3只是...
阅读(1938) 评论(0)

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...
阅读(1726) 评论(0)

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...
阅读(2111) 评论(0)

C#代码规范——成员分段

这里的基本整理一般原则是: 1. 尽可能少分段 2. 关于类的尽可能靠前(例如static),关于实际对象的尽可能靠后 3. 早生成的尽可能靠前 4. 公有的,接口的尽可能靠前 5. 抽象的,通用的,基础性的,被依赖靠前;继承过来的尽量靠前 6. 相对需要引起注意的尽量靠前 7. 其他一些以往经验考虑 class Sample : BaseClass, IIntf1 { #re...
阅读(2687) 评论(0)

Great learning resources

This morning CSDN cloud computing section unusually shared something of great value at http://www.csdn.net/article/2013-04-08/2814796-Machine-Learning And when I opened the link within I was not sur...
阅读(1533) 评论(0)

Chinese Lunar Calendar for Live Calendar(In progress ...)

Resources Needed, 1. API: http://msdn.microsoft.com/en-us/library/live/hh826523.aspx looks like the ultimate program has to be in a windows store app or windows phone app form, hopefully it can be...
阅读(1802) 评论(0)

大学四年计算机也许应该这样学。。。

核心课程简表 一上:综合数学(连续部分A(数学分析))[1001]、物理(经典物理)[2001]、程序设计与编译一A(C/Basic)[3001]、哲学与系统科学[1000] 一下:综合数学(离散部分A(离散数学、线性代数等))[1002]、物理(电子:电动力学)[2002]、程序设计与编译一B(C#、Python等、程序语言分析)[3002]、算法与数据结构一A(算法导论和基本算法)[301...
阅读(1931) 评论(0)

一段写坏掉的快速DCT实现

想当然了,用递归实现DCT,没想到DCT有4个分支需要递归下去,这样的规模非但无法快速实现,反而由于本身时间复杂度没有多大减少加上递归开销等等比慢速实现往往还慢。 这个代码片段将由于清洁需要从QSharp中删除而保留在这里,对其分析将在代码之后有空时进行。过两天想想是不是能用动态规划或备忘录来改进这个算法。 /// /// Type-IV DCT implemented using rec...
阅读(1808) 评论(0)

算法题,做了近一天

原题出处,由July提供并解析, http://blog.csdn.net/v_july_v/article/details/8701148   自己独立做,一开始方向有偏差。最后独立思路写了一个超容易出bug调了半天的O(n): 目前该程序至少在1000个以1~20长度以-20.0到20.0随机浮点数为元素的随机序列上和参考算法(穷举法)对比测试通过。   public static...
阅读(1800) 评论(0)

一些个人电脑和设备互联的使用技巧

一些可能时不时用到的电脑使用技巧罗列在这里,这样我的电脑上就不必保存一些有时让人摸不着头脑的文本文件了。 苹果的AirPrint 虽然我不用,不等于别人不用。总需要给苹果设备提供点方便。 苹果用AirPrint打印,要下载一个AirPrint包在Windows上配置使用以下命令(注意苹果的Bonjour服务需要预先安装): sc.exe create AirPrint binPat...
阅读(1725) 评论(0)
212条 共15页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:307403次
    • 积分:6147
    • 等级:
    • 排名:第4480名
    • 原创:200篇
    • 转载:3篇
    • 译文:9篇
    • 评论:217条
    最新评论