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 / \ ...
分类:
其他好文 时间:
2014-10-02 09:45:52
阅读次数:
184
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-10-02 05:53:22
阅读次数:
170
var crypto = require('crypto'); app.get('/api/wx/test',function(req,res){ if (req.query) { var arr = []; var signature = req.query["sign...
分类:
微信 时间:
2014-09-30 14:44:09
阅读次数:
382
SigningdatawiththeRSAalgorithmStep1.Createprivate/publickeypair(optional)opensslgenrsa-outprivate.pem1024>private.pemThiscreatesakeyfilecalledprivate.pem.Thisfileactuallyhaveboththeprivateandpublickeys,soyoushouldextractthepubliconefromthisfile:opensslrs..
分类:
编程语言 时间:
2014-09-30 13:45:30
阅读次数:
238
--1. 将当前数据库的全部脏页写入磁盘。“脏页”是已输入缓存区高速缓存且已修改但尚未写入磁盘的数据页。-- CHECKPOINT 可创建一个检查点,在该点保证全部脏页都已写入磁盘,从而在以后的恢复过程中节省时间。CHECKPOINT--2. 若要从缓冲池中删除清除缓冲区,请首先使用 CHECK.....
分类:
数据库 时间:
2014-09-30 11:53:32
阅读次数:
197
跟万老师鼓捣了一晚上nginx新架构的apk替换, 1.用openbox.mobilem.360.cn/...的那个url来定位response的信息是可以的,因为apk_md5和signature_md5都已经替换掉了。{"tag_key_words":"生活 实用工具","logo_url...
分类:
其他好文 时间:
2014-09-29 23:50:31
阅读次数:
260
yum安装readline、readline-devel#yuminstall-yreadline-devel下载安装setuptools#wgethttp://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e--no-check-certificate#tar-zxvfsetuptools-0.6c11.tar.gz#cdsetup..
分类:
编程语言 时间:
2014-09-29 18:00:31
阅读次数:
2166
menu: [Database]->[Database Generation] ? tab: ?[Tables & Views]->check table & column ‘s comment ? ? ? [Options]->Generation name in empty comment...
分类:
其他好文 时间:
2014-09-29 16:59:31
阅读次数:
186
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-09-29 03:48:56
阅读次数:
195
今天写了一个shell监控的脚本主要通过shell脚本结合zabbix来监控keepalived的运行状态。
直接说脚本
脚本名字:
check_keepalived.sh
#!/bin/bash
UNM=`ps-ef|grepkeepalived|wc-l`
if[$UNM-gt2];thenecho1;elseecho0;fi
于是停止了keepalived进行测试,发现这个返回值是1..
分类:
其他好文 时间:
2014-09-29 02:39:27
阅读次数:
179