有时候我们会创建一些小项目,只有几个简单html,没有引入一些前端框架,也没有使用webpack,那我们要如何让代码在我们本地跑起来呢? 当然是有很多种方法,IIS、wampserver等等好多都可以用,这里只是说道纯粹用node就把项目跑起来,配置简单。 前提是你要安装好了nodejs,安装方法, ...
分类:
Web程序 时间:
2017-11-03 18:55:49
阅读次数:
200
失败后的core栈像下面这样: core的原因很显然:"Illegal instruction",指令非法,查看core处的汇编代码: shrx指令属于bmi2指令集,查看运行该binary的机器上有无bmi2指令集: cat /proc/cpuinfo | grep flags 发现该CPU上没有 ...
分类:
系统相关 时间:
2017-11-03 14:14:29
阅读次数:
566
一、MySQL主从复制 常见的主从架构: 一主一从:一个 Master,一个 Slave 一主多从:一个 Master,多个 Slave 具体,参考下图: 实现细节 MySQL 在主从同步时,其底层实现细节又是什么?为此后分析主从延迟原因以及优化方案,做好理论准备。 总结来说,MySQL 的主从复制 ...
分类:
数据库 时间:
2017-11-02 22:07:44
阅读次数:
272
Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 ...
分类:
其他好文 时间:
2017-11-01 23:00:51
阅读次数:
207
前言:MySQL进行主主复制或主从复制的时候会在home目录下面产生相应的relay log,本文档总结这些相关参数的定义及解释 1、什么是relay log The relay log, like the binary log, consists of a set of numbered file ...
分类:
数据库 时间:
2017-11-01 22:53:00
阅读次数:
279
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2017-11-01 11:04:55
阅读次数:
157
cannot find chrome binary的问题解决办法 ...
分类:
其他好文 时间:
2017-10-31 16:50:53
阅读次数:
736
http://blog.csdn.net/yalishadaa/article/details/54851324 http://blog.csdn.net/demon24/article/details/8469683 http://www.cnblogs.com/hzmark/archive/20 ...
分类:
其他好文 时间:
2017-10-30 19:58:05
阅读次数:
156
二叉树的创建:binary search tree 3、二叉树上的查找: ...
分类:
编程语言 时间:
2017-10-30 19:49:51
阅读次数:
225
二叉树实现如下: 先序遍历递归实现: 1.访问根节点; 2.先序遍历左子树; 3.先序遍历右子树; 先序遍历非递归实现: 1.首先申请一个新的栈,记为stack; 2.将头结点head压入stack中; 3.每次从stack中弹出栈顶节点,记为cur,然后打印cur值,如果cur右孩子不为空,则将右 ...
分类:
其他好文 时间:
2017-10-30 19:39:03
阅读次数:
161