MySQL数据库InnoDB存储引擎Log漫游http://blog.163.com/zihuan_xuan/blog/static/1287942432012366293667/
                            
                            
                                分类:
数据库   时间:
2014-05-27 00:34:13   
                                阅读次数:
255
                             
                         
                    
                        
                            
                            
                                最基础的search api格式是empty 
search,这个search不指定任何的查询条件,就是返回cluster中的所有的index的document: GET /_search相应的消息如下:{ 
"hits":{ "total": 14, "hits":[ { ...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 14:15:42   
                                阅读次数:
250
                             
                         
                    
                        
                            
                            
                                在empty 
search中你是否注意到了查询的结果中包含了不同的type:有来自us中的user,有来自gb中的tweet。不限值index和type我们能搜索整个cluster中的所有的document,ES会把请求分发到cluster中所有的primary和replica,然后返回结果的前十条...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 13:59:11   
                                阅读次数:
257
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/recover-binary-search-tree/题意:Two 
elements of a binary search tree (BST) are swapped by mistake.Recover the 
tree...
                            
                            
                                分类:
编程语言   时间:
2014-05-26 13:25:43   
                                阅读次数:
261
                             
                         
                    
                        
                            
                            
                                基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end, 
递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end 
的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
                            
                            
                                分类:
其他好文   时间:
2014-05-26 12:12:49   
                                阅读次数:
257
                             
                         
                    
                        
                            
                            
                                mysql innodb的安装wget -c 
http://down.wdlinux.cn/in/mysql_innodb_ins.shchmod 755 
mysql_innodb_ins.sh./mysql_innodb_ins.sh
                            
                            
                                分类:
数据库   时间:
2014-05-26 10:53:06   
                                阅读次数:
321
                             
                         
                    
                        
                            
                            
                                ²  字符函数
1.    replace( 字符串1,字符串2,字符串3)
   replace( char, search_string, replace_string)
   功能:在“字符串1”中搜索“字符串2”,并将其替换为“字符串3”。
例如下面的命令是将所有员工名字中出现的”A”替换为”中国”。
SQL>selectreplace(ename, 'A', '中国') fro...
                            
                            
                                分类:
数据库   时间:
2014-05-22 22:35:22   
                                阅读次数:
450
                             
                         
                    
                        
                            
                            
                                import re
data = open('a.txt')
fh = open('b.txt', 'w')
"""Search the string begining with '【'"""
p = re.compile(r'\s*[\u3010]')
for each_d in data:
    if re.match('\s*3\d{4}', each_d):
   ...
                            
                            
                                分类:
编程语言   时间:
2014-05-22 17:26:17   
                                阅读次数:
293
                             
                         
                    
                        
                            
                            
                                Case when 的用法--简单Case函数简单CASE表达式,使用表达式确定返回值.语法: 
CASE search_expression WHEN expression1 THEN result1 WHEN expression2 THEN 
result2 ... WHEN expre...
                            
                            
                                分类:
数据库   时间:
2014-05-22 14:56:26   
                                阅读次数:
336
                             
                         
                    
                        
                            
                            
                                一、安装1、打开终端sudo gem install 
cocoapods命令解释:用gem安装cocospods工具包2、pod 
setup命令解释:用gem安装cocospods工具包提示:安装了CocoaPods之后,今后在命令行中,直接使用pod即可二、查找第三方库1、pod 
search j...
                            
                            
                                分类:
移动开发   时间:
2014-05-22 14:24:10   
                                阅读次数:
431