上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页
摘要: 上一篇举了这个例子: 这段代码里其实注意一下,我们有两个Observer,他们的工作职责都是一个,Console.WriteLine,这个方法在多线程里调用是没有问题的,但是从维护线程安全的复杂工作上来讲,我们更希望有一个single thread专门用来做Console.WriteLine,也就是说其实IObserver<T>就是把多线程的状态在它身上给隐藏掉了,与IObserver... 阅读全文
posted @ 2010-05-29 23:23 new 维生素C.net() 阅读(832) 评论(0) 推荐(1) 编辑
摘要: .net的IEnumerable接口是返回IEnumerator,而IEnumerator实现了MoveNext()和获取当前对象等方法。 Observable利用该思想,使用IObservable<T>和IObserver<T>实现Push-Style(推模式),我们常用的IEnumerble可以理解为拉模式或主动模式,那么就需要返回IEnumerator来操作。而推模式... 阅读全文
posted @ 2010-05-29 19:59 new 维生素C.net() 阅读(1759) 评论(1) 推荐(0) 编辑
摘要: 配置环境时需要注意的是: 装Ruby的时候--prefix=/usr,这样可以直接使用/usr/bin/ruby了,不需要ln -s去做link。 使用heroku的gem前要先用ssh-keygen –t rsa生成 然后再heroku keys:add把public key upload到heroku server 装git前要保证这些都安装了:yum install gettext-dev... 阅读全文
posted @ 2010-05-21 03:39 new 维生素C.net() 阅读(331) 评论(1) 推荐(0) 编辑
摘要: involves内部创建ChannelFactory<T>,每个proxy都持有一个ChannelFacotry的private field。ChannelFactory的生命周期由proxy完全控制。 构造ContractDescription树 反射所有需要的CLR类型 构造channel stack dispose所有的资源 在3.0SP1和3.5下两个主要的性能提升: Cha... 阅读全文
posted @ 2010-05-12 13:21 new 维生素C.net() 阅读(772) 评论(0) 推荐(0) 编辑
摘要: Skipfish很不错,用起来方便,功能强大。在Ubuntu上安装时需要先安装如下两个东东: sudo apt-get install libace-ssl-dev sudo apt-get install libidn11-dev 成功之后make就可以了 具体使用方式可以参考帮助或其Doc 阅读全文
posted @ 2010-04-29 11:23 new 维生素C.net() 阅读(536) 评论(0) 推荐(0) 编辑
摘要: http://blog.sqlauthority.com/2010/04/19/sql-server-find-most-active-database-in-sql-server-dmv-dm_io_virtual_file_stats/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+SQLAuthority+(... 阅读全文
posted @ 2010-04-19 15:21 new 维生素C.net() 阅读(331) 评论(1) 推荐(0) 编辑
摘要: 一直不会,今天看到了,大牛亚利告诉我的: http://interglacial.com/javascript_spec/a-11.html 里说: 11.4.6 Unary + Operator The unary + operator converts its operand to Number type. The production UnaryExpression : + UnaryE... 阅读全文
posted @ 2010-03-26 17:41 new 维生素C.net() 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 两个星期前开始看go语言,但是还纳闷为啥go不支持Protocal Buffer,结果今天兴奋的看到了这个: http://code.google.com/p/goprotobuf/ 阅读全文
posted @ 2010-03-24 11:36 new 维生素C.net() 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1年前看的,今天凭借回忆里面的关键词,又找到了原文,share之: http://wasd.us/index.php?/archives/5-IIS-6-with-multiple-SSL-enabled-subdomains.html 阅读全文
posted @ 2010-03-12 11:19 new 维生素C.net() 阅读(237) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/En/Using_XMLHttpRequest#Monitoring_progress https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data https://developer.mozilla.org/En/Using_XMLHttpReque... 阅读全文
posted @ 2010-03-12 10:08 new 维生素C.net() 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页