ArrayBuffer 语法 var abuffer = new ArrayBuffer(length) length 要创建的 ArrayBuffer 的大小,单位为字节。 如果 length 大于 Number.MAX_SAFE_INTEGER(>= 2 ** 53)或为负数,则抛出一个 Ran ...
分类:
其他好文 时间:
2018-11-07 17:46:11
阅读次数:
155
https://github.com/MetaMask/safe-event-emitter safe-event-emitter An EventEmitter that isolates the emitter from errors in handlers. If an error is th ...
分类:
Web程序 时间:
2018-11-07 17:11:08
阅读次数:
189
nohup ./catalina.sh run & /usr/bin/mysqld_safe -urser=root & 可以用jobs查看后台运行状况: ...
分类:
数据库 时间:
2018-11-07 11:20:40
阅读次数:
200
ndarray的基本操作 1.索引 基本索引:一维与list完全一致 多维同理 高级索引:整数数组形式的索引 2.切片 一维与列表切片完全一致 多维时同理 而且ndarray还支持用,一级一级往里找 使用两个:: 的形式 进行切片和翻转 3.变形 使用reshape函数,注意参数是一个tuple! ...
分类:
其他好文 时间:
2018-11-06 22:38:09
阅读次数:
294
buf.writeFloatBE(value, offset[, noAssert]) buf.writeFloatLE(value, offset[, noAssert]) value {Number} 需要被写入到 Buffer 的字节 offset {Number} 0 noAssert {B ...
分类:
其他好文 时间:
2018-11-05 14:02:04
阅读次数:
115
MySQL启动与更改密码 mysql启动基本原理说明: /etc/init.d/mysqld是一个shell启动脚本,启动后最终会调用,mysqld_safe脚本,最后调用mysqld服务启动mysql,我们编辑/etc/init.d/mysqld,可以看到脚本,启动俩个进程mysqld和mysql ...
分类:
数据库 时间:
2018-11-03 22:04:04
阅读次数:
241
1 框架一览 事件处理的架构图如下所示。 2 优化总结 当我们第一次部署整个方案时,kafka和flume组件都执行得非常好,但是spark streaming应用需要花费4-8分钟来处理单个batch。这个延迟的原因有两点,一是我们使用DataFrame来强化数据,而强化数据需要从hive中读取大 ...
分类:
其他好文 时间:
2018-11-02 23:29:29
阅读次数:
241
一、 启动1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql stop ...
分类:
数据库 时间:
2018-11-01 15:08:18
阅读次数:
2872
常用的连接方式: 数据库的启动流程 注:可以看出mysql.server文件与mysqld_safe文件都是脚本文件,最后都调用mysqld二进制文件进行启动。 my.cnf 配置文件说明 功能 : 1、影响到服务器进程的启动 2、影响到客户端程序 配置my.cnf 使用不同的"标签"去明确指定影响 ...
分类:
数据库 时间:
2018-10-31 13:51:16
阅读次数:
217
There is a box protected by a password. The password is n digits, where each letter can be one of the first k digits 0, 1, ..., k 1. You can keep inpu ...
分类:
其他好文 时间:
2018-10-31 12:41:00
阅读次数:
181