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 / \ ...
分类:
其他好文 时间:
2015-07-07 18:44:59
阅读次数:
83
现象:在Ubuntu登陆界面输入密码之后,黑屏一闪并且出现了check battery state之类的文字之后,又跳转到登录界面。
原因:主目录下的.Xauthority文件拥有者变成了root,从而以用户登陆的时候无法都取.Xauthority文件。
说明:Xauthority,是startx脚本记录文件。Xserver启动时,读文件~/.Xauthority,读入对应其display的记录...
分类:
系统相关 时间:
2015-07-07 17:14:55
阅读次数:
231
在使用GoogleChrome浏览器,从CheckPoint网站,下载补丁或者程序的时候,一般的补丁包都是*.tgz,*.tar.gz这样的后缀,但是你使用GoogleChrome把这个补丁下载到你本地的时候,GoogleChrome会自动的把后缀给你改成*.tar,*.gz,这样,你在通过webUI导入补丁,或者把补丁上次到系统..
分类:
其他好文 时间:
2015-07-07 13:16:22
阅读次数:
138
CP最新的R77.30releasenotes最新版
分类:
其他好文 时间:
2015-07-07 13:15:26
阅读次数:
106
如果你忘记了CPgaiaexpert密码,那么使用下面的方法重置。思路就是利用现有用户的密码,覆盖expert的密码,因为CP里面的密码都是加密的,所以,你即使有可以SSH进gaia,但是密码也无法被反向解密的,所以只能覆盖。Followthesesteps:ConnecttoCLIonGaiamachine(overSSH,orconso..
分类:
其他好文 时间:
2015-07-07 13:14:54
阅读次数:
477
题目:
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 nodes have the same value.
解题:...
分类:
编程语言 时间:
2015-07-06 21:49:34
阅读次数:
132
题目:
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
...
分类:
编程语言 时间:
2015-07-06 21:48:44
阅读次数:
139
1.下载监控插件wgethttp://nagios-snmp.cvs.sourceforge.net/nagios-snmp/plugins/check_snmp_int.pl2.首先查看交换机目前开启的所有端口foriin`seq148`;do/usr/local/nagios/libexec/check_snmp_int.pl-H192.168.0.254-Cpublic-n"^GigabitEthernet1/0/$i$";done3.添加监控----..
分类:
移动开发 时间:
2015-07-06 20:03:47
阅读次数:
131
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 nodes have the same value.Hide Tags :Tree ,De...
分类:
其他好文 时间:
2015-07-06 12:25:10
阅读次数:
114
SSH keyAn SSH key allows you to establish a secure connection between your computer and GitLab.Before generating an SSH key, check if your system already has one by running cat ~/.ssh/id_rsa.pubIf you...
分类:
其他好文 时间:
2015-07-06 10:13:45
阅读次数:
502