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 an...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 18:37:18   
                                阅读次数:
277
                             
                         
                    
                        
                            
                            
                                1.onItemLongClick和onItemClick事件截取当须要同一时候获得一个listview的条目长按事件(onItemLongClick)和点击事件(onItemClick)时,仅仅须要在onItemLongClick事件触发函数中,return 
true就可以。2.自己定义Check...
                            
                            
                                分类:
移动开发   时间:
2014-06-03 06:27:33   
                                阅读次数:
325
                             
                         
                    
                        
                            
                            
                                从3月底开始申请,整理J1的材料,一直到现在VISA的status变成了issued,中间被check了20多天,终于快要可以去silicon 
valley了。废话不多说,J1签证很easy,不要有任何担心。直接上J1办理流程:1. 联系学校,拿到DS2019表、financial support 
...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 18:41:23   
                                阅读次数:
279
                             
                         
                    
                        
                            
                            
                                什么是Keepalived呢,keepalived观其名可知,保持存活,在网络里面就是保持在线了,也就是所谓的高可用或热备,用来防止单点故障(单点故障是指一旦某一点出现故障就会导致整个系统架构的不可用)的发生,那说到keepalived时不得不说的一个协议就是VRRP协议,可以说这个协议就是keep...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 17:53:48   
                                阅读次数:
378
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/gas-station/题意:There 
areNgas stations along a circular route, where the amount of gas at 
stationiisgas[i].You ha...
                            
                            
                                分类:
编程语言   时间:
2014-05-31 16:58:18   
                                阅读次数:
259
                             
                         
                    
                        
                            
                            
                                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-05-30 16:13:38   
                                阅读次数:
334
                             
                         
                    
                        
                            
                            
                                利用LVS+Keepalived 实现高性能高可用负载均衡 背景: 
随着你的网站业务量的增长你网站的服务器压力越来越大?需要负载均衡方案!商业的硬件如F5又太贵,你们又是创业型互联公司如何有效节约成本,节省不必要的浪费?同时实现商业硬件一样的高性能高可用的功能?有什么好的负载均衡可伸张可扩展的方案吗...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 22:48:13   
                                阅读次数:
447
                             
                         
                    
                        
                            
                            
                                用dinner还是supper?据我唯一认识一个美国人……讲,至少在美国他们用dinner,supper也许在英国更常用些。他在小时候都没听说过supper这个词……另外,have 
dinner是一个习语,例:How about go and have dinner?Do you have dinn...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 20:16:53   
                                阅读次数:
279
                             
                         
                    
                        
                            
                            
                                安装时遇到了2个问题,特此记录下。问题1:Publickeyfor*.rpmisnotinstalled解决方法:在repo文件中加上"gpgcheck=0",默认没有这一项,看来系统默认是要check的,这个还是头一次知道。问题2:./configure: 
error: the HTTP rewr...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 18:06:50   
                                阅读次数:
225
                             
                         
                    
                        
                            
                            
                                Original link: How to check if Directory 
already Exists in MFC(VC++)?MSDN Links:CreateDirectory functionGetFileAttributes 
functionGetLastError functio...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 17:49:25   
                                阅读次数:
371