有时候,写UDP socket程序的时候,在调用sendto或者recvfrom的时候,会发现有Connection refused错误返回,错误码是ECONNREFUSED。对于懂得socket接口但是不很很懂网络的人,可能这根本就不是个问题,他会根据错误码知道远端没有这个服务端口,正如socke ...
分类:
其他好文 时间:
2019-02-16 19:26:51
阅读次数:
241
Redux provides a convenient helper for combining many reducers called combineReducer, but it focuses in on specific attributes on our state, making it ...
分类:
其他好文 时间:
2019-02-07 23:45:56
阅读次数:
157
创建应用--在一个项目中可以创建多个应用,每个应用进行一种业务处理 打开CMD,进入project(目录名)的目录下,输入命令创建名为myApp的app: python manage.py startapp myAPP myAPP目录说明 admin.py 进行站点配置 models.py 创建模型 ...
分类:
其他好文 时间:
2019-02-07 23:40:37
阅读次数:
200
【链接】 "我是链接,点我呀:)" 【题意】 给你k个红包,每个红包可以在si..ti的时间范围内拿走。 抢完红包之后你得到wi元,然后你需要在di+1时刻才能继续抢红包 时间是线性的从1..n 然后某个人可以阻止你在x时刻抢红包,然后你的时间跳过1s( 1s)直接到达x+1时刻. 这个人可以阻止你 ...
分类:
其他好文 时间:
2019-02-07 09:13:15
阅读次数:
167
上一篇文章讲述了最简单的mvc:annotation-driven,这次就要说说@ResponseBody注解,很明显这个注解就是将方法的返回值作为reponse的body部分。我们进一步分析下这个过程涉及到的内容,首先就是方法返回的类型,可以是字节数组、字符串、对象引用等,将这些返回类型以什么样的 ...
分类:
编程语言 时间:
2019-02-04 10:21:51
阅读次数:
126
管理缓存和统计缓存 Cache cache = sessionFactory.getCache(); //清除指定的News对象 cache.evictEntity(News.class, id); //清除所有的news对象 cache.evictEntityRegion(News.class); ...
分类:
编程语言 时间:
2019-02-03 10:40:43
阅读次数:
199
由于国内资料很少,所以有些冲动将PhysX原教程给翻译了,今天只做了一部分希望大家能够认同 Lesson 1-1 – 主要形状 介绍 In this lesson, you will create an instance of the SDK, create a scene, create four ...
分类:
其他好文 时间:
2019-02-01 14:22:08
阅读次数:
126
Communicating with a remote server via HTTP presents an extra level of complexity as there is an increased chance of race conditions and the need for ...
分类:
其他好文 时间:
2019-01-31 01:22:06
阅读次数:
117
{ "editor.formatOnPaste": false, "editor.formatOnType": true, "editor.formatOnSave": true, "files.autoSave": "onFocusChange", "tslint.autoFixOnSave": ...
分类:
其他好文 时间:
2019-01-30 15:51:44
阅读次数:
236
TypeScripte 面向对象基础: 从零开始的TypeScript面向对象RPG : 非常生动的讲解了: ...
分类:
其他好文 时间:
2019-01-26 19:34:37
阅读次数:
242