1、都是基于lucene的;
2、都是分布式的:sensedb是multi-write;Solr的shards是master-slave模式,基于pull的策略;elasticsearch的shards是基于primary-secondary模式,push策略;
3、senseidb擅长实时性;Solr稳定性好被广泛使用;elasticsearch比较灵活...
                            
                            
                                分类:
数据库   时间:
2014-07-22 23:03:15   
                                阅读次数:
498
                             
                    
                        
                            
                            
                                Number Sequence
Time Limit: 1000MS
 
Memory Limit: 10000K
Total Submissions: 33215
 
Accepted: 9490
Description
A single positive integer i is given. Write a program to f...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 22:06:17   
                                阅读次数:
437
                             
                    
                        
                            
                            
                                org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition...
                            
                            
                                分类:
数据库   时间:
2014-05-01 18:16:35   
                                阅读次数:
377
                             
                    
                        
                            
                            
                                题目:
    Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height.
    翻译:
    给定一个有序数组(递增),写程序构建一棵具有最小高度的二叉树。
    思路:
    要使二叉树的高度最小,则要尽量使其左右子树的节点数目相当,自然就考虑到将其构造成为二叉排序树,且将有序数组的中间大的数作为根节点,这样得到的二叉树的高度便是最小的。...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 17:48:45   
                                阅读次数:
321
                             
                    
                        
                            
                            
                                当CPU发出写操作命令时,也要根据它产生的主存地址分为两种情形:一种是不命中时,只向主存写入信息,不必同时把这个地址单元所在的整块内容调入Cache中;另一种是命中时,这时会遇到如何保持Cache与主存的一致性问题,通常有三种处理方式: 
1.直写式(write through)即CPU在向C...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 03:57:54   
                                阅读次数:
393
                             
                    
                        
                            
                            
                                通过 HTML DOM,可访问 JavaScript HTML 文档的所有元素
1 修改HTML元素内容
document.write(Date()); //在输入流中直接写
document.getElementById(id).innerHTML=new HTML	//改变已经有的元素内容
document.getElementById("image").src="landscap...
                            
                            
                                分类:
编程语言   时间:
2014-04-30 22:42:38   
                                阅读次数:
353
                             
                    
                        
                            
                            
                                javaScript  总结
1 Javascript的基本功能
写入HTML输出
document.write("This is a heading");
对事件作出反应
点击这里
改变HTML内容
x=document.getElementById("demo")  //查找元素
x.innerHTML="Hello JavaScript";    //改变内容
改变HTML...
                            
                            
                                分类:
编程语言   时间:
2014-04-29 13:35:22   
                                阅读次数:
417
                             
                    
                        
                            
                            
                                链接:http://soj.me/show_problem.php?pid=1007
Description
Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letter...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:23:21   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                paip.utf-8,unicode编码的本质输出unicode文件原理 python 
 
 
 #别的语言,java php都是unicode,走十python不一样.
 
 #enddef
 #todo write to unicode encode
fileHandle = open ( r"c:\fmtSmpEnRst.txt", 'w',encoding="UTF-16"...
                            
                            
                                分类:
编程语言   时间:
2014-04-28 10:28:42   
                                阅读次数:
374
                             
                    
                        
                            
                            
                                看了一下Linux 0.11版本write的实现,首先它在标准头文件unistd.h中有定义
int write(int fildes, const char * buf, off_t count);
接下来看write.c
/*
 *  linux/lib/write.c
 *
 *  (C) 1991  Linus Torvalds
 */
#define __LIBRARY__...
                            
                            
                                分类:
系统相关   时间:
2014-04-27 21:45:04   
                                阅读次数:
523