I am not good, but I shall do my best to be better. Please click https://pan.baidu.com/s/1mimQ5de to download all the pdfs of the following articles. ...
分类:
其他好文 时间:
2017-09-08 10:10:34
阅读次数:
196
下面的逻辑为:从socket通道中读取到接收的数据到字节缓冲区,将缓冲区中的数据输出到字节的数据btyes中,再将数组中的数据一个个读取到字节队列bytesto 中(过来掉不需要的字节),最终 将bytesto 的数据转换到数组arr中,通过 new String(byte[] bytes, Cha ...
分类:
编程语言 时间:
2017-09-08 00:26:55
阅读次数:
198
Properties props=new Properties(); try { props.load(new InputStreamReader(getClass().getResourceAsStream("/config.properties"), "UTF-8")); } catch(Exc ...
分类:
其他好文 时间:
2017-09-07 23:05:44
阅读次数:
187
PHP 的redis扩展是阻塞式 IO ,使用订阅/发布模式时,会导致整个进程进入阻塞。因此必须使用Swoole\Redis异步客户端来实现。 实例代码 实现过程 在进程启动(onWorkerStart)时创建了Swoole\Redis客户端,连接到Redis服务器 连接成功后,订阅msg_0主题的 ...
分类:
Web程序 时间:
2017-09-07 15:31:39
阅读次数:
288
原文地址:https://help.aliyun.com/document_detail/50774.html?spm=5176.product25365.6.728.C9s3V8 简介 LAMP指Linux+Apache+Mysql/MariaDB+Perl/PHP/Python是一组常用来搭建动 ...
分类:
其他好文 时间:
2017-09-07 10:12:25
阅读次数:
276
转自:http://blog.sina.com.cn/s/blog_4b5039210100f2a0.html 在C中关于网络字节序和主机字节序困扰了我一段时间,在python中实现字节流的网络传输,必然这个问题也不可避免,但是我觉得在python中解决这个问题和演示起来比较方便一点。 我们上次用s ...
分类:
其他好文 时间:
2017-09-06 16:21:36
阅读次数:
141
Lesson 44 Patterns of culture 文化的模式 Custom has not commonly been regarded as a subject of great moment. The inner workings of our won brains we feel t ...
分类:
其他好文 时间:
2017-09-06 16:21:22
阅读次数:
188
1.spark中窄依赖的时候不需要shuffle,只有宽依赖的时候需要shuffle,mapreduce中map到reduce必须经过shuffle 2.spark中的shuffle fetch的时候进行merge操作利用aggregator来进行,实际上是个hashmap,放在内存中 第一个 Ma ...
分类:
其他好文 时间:
2017-09-06 14:38:40
阅读次数:
327
auto@ubuntu:~/src/SOC/ git push Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing obj... ...
分类:
其他好文 时间:
2017-09-06 12:55:43
阅读次数:
10762
SoC : 在cpu 里内嵌了很多外设,现在所说的cpu 实际上都是SoC。 32位cpu指的是数据总线是32位的。 32位的地址总线寻址范围是4G。2的32次方。 CISC complex instruction set computer 复杂指令集cpu:指令多,追寻一条指令完成一个操作的理念。 ...
分类:
其他好文 时间:
2017-09-05 23:01:51
阅读次数:
239