Same Tree
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and
the n...
分类:
其他好文 时间:
2014-06-19 12:49:17
阅读次数:
301
keepalived+nginx双机热备+负载均衡
最近因业务扩展,需要将当前的apache 转为nginx(web), 再在web前端放置nginx(负载均衡)。同时结合keepalived 对前端nginx实现HA。
nginx进程基于于Master+Slave(worker)多进程模型,自身具有非常稳定的子进程管理功能。在Master进程分配模式下,Master进程永远不进行业务处理,只是进行任务分发,从而达到Master进程的存活高可靠性,Slave(worker)进程所有的业务信号都 由主进程发...
分类:
其他好文 时间:
2014-06-19 10:29:19
阅读次数:
307
JDK 7u60 版本发布了,主要改进包括:JavaFX 更新到 2.2.60Java Mission Control(JMC)更新到 5.3如果你在一个早期版本的Java中禁用了过期检查功能,那么Java可能会在首次启动时忽略deployment.expiration.check.enabled属...
分类:
其他好文 时间:
2014-06-15 23:53:33
阅读次数:
406
在jquery 1.8.x中的版本,我们对于checkbox的选中与不选中操作如下:判断是否选中$('#checkbox').prop('checked')设置选中与不选中状态:$('#checkbox').attr('checked',true)$('#checkbox').attr('check...
分类:
Web程序 时间:
2014-06-15 23:29:04
阅读次数:
311
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the f...
分类:
其他好文 时间:
2014-06-15 19:49:35
阅读次数:
176
博客将介绍HDFS HA架构,并进行源码引导...
分类:
其他好文 时间:
2014-06-15 19:48:51
阅读次数:
519
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:
其他好文 时间:
2014-06-15 18:55:36
阅读次数:
188
前面我写了两篇文章说明了zc301的实现 具体请看
http://blog.csdn.net/hclydao/article/details/21235919
下面顺便把通用的USB也写上 前面的ZC301获取到的格式是JPEG的所以不用进行什么处理就可以用来显示,但是标准的UVC获取到的是YUV422格式的需要转换成RGB后才能进行显示 这里我们在前面两篇的代码稍作修改就可以了
HA...
分类:
移动开发 时间:
2014-06-15 17:52:14
阅读次数:
367
4.1 确认表单必填项目完整性
function check_submit(){
if($("tex_user_name").value=="") {alert("请输入用户名");return (false);}
if($("txt_user_pass").value=="") {alert("请输入密码");return (false);}
if($...
分类:
编程语言 时间:
2014-06-15 08:50:23
阅读次数:
272
public class 公共类Surface extends Object implements
Parcelable java.lang.Object?android.view.SurfaceClass Overview类的概述Ha...
分类:
其他好文 时间:
2014-06-13 18:33:45
阅读次数:
399