随笔分类 - C#
摘要:This article discusses a C# compiler's capability to avoid unnecessary self-casting boxing and unboxing sequence.
阅读全文
摘要:An issue related to selected item update on changing data bound WPF standard ComboBox item sources I've analysed and fixed.
阅读全文
摘要:The World's Only Advanced Operating System
阅读全文
摘要:QuanbenSoft Windows Runtime (Windows Store)Apps 应用和框架总览
阅读全文
摘要:This article discusses the design of the enhanced platform based on Plato framework that is potentially running on a C/S setting and enables collaborated editing of canvas work.
阅读全文
摘要:This article discusses an approach to the issues with the obtention of visual bounds of objects from view/view model side, including
the unavailability of the view/view model and the impact on the functioning of the framework of Plato by violating its guidelines of usage. It introduces a modified sight manager with unified visual information support and how it's integrated with the existing system.
阅读全文
摘要:A program that demonstrates some special values of double type and their relations.
阅读全文
摘要:In C# we all know the standard way of finalising an object that potentially contains both managed and unmanaged resources islike 1 class SomeDisposabl...
阅读全文
摘要: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 the latter I still not 100% sure if it works perfectly as expected, it passed some typical tests th
阅读全文
摘要: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/private.htmlFor the ease of comparison, the JavaScript code from the above linkis also pasted here, 1 functio
阅读全文
摘要: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 the exemplary program (MS Office in this case) do.What I intended to do issomething like the recen
阅读全文
摘要:这里的基本整理一般原则是:1. 尽可能少分段2. 关于类的尽可能靠前(例如static),关于实际对象的尽可能靠后3. 早生成的尽可能靠前4. 公有的,接口的尽可能靠前5. 抽象的,通用的,基础性的,被依赖靠前;继承过来的尽量靠前6. 相对需要引起注意的尽量靠前7. 其他一些以往经验考虑 1 class Sample : BaseClass, IIntf1 2 { 3 #region Enumerations 4 5 enum EnumType 6 { 7 Const1, 8 // ... 9 } 10 11 #en...
阅读全文
摘要:Resources Needed,1. API: http://msdn.microsoft.com/en-us/library/live/hh826523.aspxlooks like the ultimateprogram has to be in a windows store app or windows phone app form, hopefully it can be an offline app in debugging mode able to have the calendar updated.2. Algorithms: (Shouldn't be too ha
阅读全文
摘要:核心课程简表一上:综合数学(连续部分A(数学分析))[1001]、物理(经典物理)[2001]、程序设计与编译一A(C/Basic)[3001]、哲学与系统科学[1000]一下:综合数学(离散部分A(离散数学、线性代数等))[1002]、物理(电子:电动力学)[2002]、程序设计与编译一B(C#、Python等、程序语言分析)[3002]、算法与数据结构一A(算法导论和基本算法)[3011]二上:综合数学(连续部分B(高等数学分析、复分析、统计等))[1003]、物理(电子:电子工程(电路和射频等))[2003]、物理(现代物理及其方法)[2004]、程序设计与编译二A(编译原理、编译工具使
阅读全文
摘要:想当然了,用递归实现DCT,没想到DCT有4个分支需要递归下去,这样的规模非但无法快速实现,反而由于本身时间复杂度没有多大减少加上递归开销等等比慢速实现往往还慢。这个代码片段将由于清洁需要从QSharp中删除而保留在这里,对其分析将在代码之后有空时进行。过两天想想是不是能用动态规划或备忘录来改进这个算法。 1 /// <summary> 2 /// Type-IV DCT implemented using recursive method 3 /// Warning: This method is mathematically crippled even slower than
阅读全文
摘要:原题出处,由July提供并解析,http://blog.csdn.net/v_july_v/article/details/8701148自己独立做,一开始方向有偏差。最后独立思路写了一个超容易出bug调了半天的O(n):目前该程序至少在1000个以1~20长度以-20.0到20.0随机浮点数为元素的随机序列上和参考算法(穷举法)对比测试通过。public static double MPCSolveQb2(this double[] seq, out int start, out int count)
{ start = 0; count = seq.Length; ...
阅读全文
摘要: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 becauseit lost itsmindas it found that as soon as it had kickedall C++'s shit out C# took its place.Noob: Will java keep feeling good in the future?Budd
阅读全文
摘要:应当讲我现在是很不喜欢C++这个语言。不仅仅语言复杂,这其实倒也无所谓,但问题是:C++是“一次编写,到处编链(生成),各种编链不过”,这就是C++的真正特点。这两天弄那个Teigha的CAD文件处理库,很装x闭源的库(所以C++也更应提倡开源,开源你去解决编译问题,闭源你就去解决可能永远解决不了的链接问题去吧)加一些很装x的例子程序写了一大坨,每种平台和配置都做一个包,总大小好几个G,拿下来去升级整合原先的调用程序,折腾了两天最后运行还通不过。这种情况只要遇到调用第三方库就总会遇到,而且每次遇到就算情况再相似都会无谓耗费大量时间。所以可以讲C++是一种开发效率非常低下的语言。无尽的咒骂。。。
阅读全文

浙公网安备 33010602011771号