再谈continuation monad上一篇中我们已经介绍了continuation monad,但是这个monad与Identity,Maybe,IEnumerable monads稍微难于理解,故本篇再次讨论。首先解决上一篇中最后关于continuation monad的问题,即以下这段代码目...
这是我搭建django的时候的问题,那个时候重装了系统,出来后运行manage.py就报错了。UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 1: invalid continuation byte。错误代码如...
分类:
其他好文 时间:
2016-01-13 19:32:14
阅读次数:
126
http://www.xianren.org/blog/net/wireshark-q.html 抓到的包数据中常见的错误。。待细看,先记下。tcpdump 抓包后发现,出现大量如上标志,=、=嘿嘿,以下复制别人的,还外国朋友的 mail,zan!,图是自己的。1)、tcpdump的情况是需要加 -...
分类:
Web程序 时间:
2016-01-04 22:22:09
阅读次数:
477
这篇文章是在阅读Eric Lippert大神的MSDN Blog文章时同步写成的,其中主要是各种翻译,同时还混杂自己阅读文章的笔记和感想。原博文地址http://blogs.msdn.com/b/ericlippert/archive/2010/10/21/continuation-passing-...
分类:
其他好文 时间:
2015-09-18 00:45:53
阅读次数:
270
This post is a continuation to my previous post on “[How to] Change DNS Server on Android phones?”. The earlier post was about changing the DNS Server when you are connected using WiFi. For a 3G connec...
分类:
移动开发 时间:
2015-08-14 21:35:33
阅读次数:
261
JS的generator可以玩魔法!! 不过,程序的世界,并没有无根之木、无源之水。让我们回溯本源,探一探各种高阶流程控制结构(比如continuation, coroutine)的来龙去脉...
分类:
其他好文 时间:
2015-08-11 16:21:07
阅读次数:
262
.As the name suggests, they extend the class. A class continuation is another name. The class extension is commonly used to declare private methods an...
分类:
其他好文 时间:
2015-08-05 18:06:08
阅读次数:
97
一 描述 ?????尽管从技术上来说,分类里可以声明属性,但是这种做法还是要尽量避免,原因在于,除了 class-continuation 分类(延展)之外,其他分类都无法向类中新增实例变量,因此,他们无法把实现属性所需...
分类:
移动开发 时间:
2015-07-13 06:43:54
阅读次数:
219
以保存文件为例首先,在项目中加入ContinuationManager.cs类,以及SuspensionManager.cs类。其次,在App.xaml.cs中,完成如下步骤:1. 添加ContinuationManager类的实例作为属性。public ContinuationManager Co...
分类:
其他好文 时间:
2015-07-02 17:09:14
阅读次数:
118
class extensionObjective-C 2.0增加了class extensions用于解决两个问题:允许一个对象可以拥有一个私有的interface,且可由编译器验证。支持一个公有只读,私有可写的属性。extension更像是匿名的categoryclass categorycate...
分类:
其他好文 时间:
2015-06-28 21:34:41
阅读次数:
151