Lucene是作为嵌入式的工具包的形式出现的,在核心代码上没有提供对群集的支持。实现对Lucene的群集有三种方式:1、继承实现一个Directory;2、使用Solr 3、使用 Nutch+Hadoop;使用Solr你不得不用他的Index Server ,而使用Nutch你又不得不集成抓取的模块;
不选择使用lucene的6大原因 http://forchenyun.javaeye.com/blog/473779
Lucene集群 lucene in a cluster
http://blog.csdn.net/jsea/archive/2006/06/16/803043.aspx
http://hi.baidu.com/lucenehc/blog/item/4d83c387881ea22fc65cc3a1.html
Compass的Lucene Jdbc Directory implementation
Compass simplifies the creation of distributed Lucene index by allowing to store the Lucene index in a database, as well as storing the index simply with Data Grid products such as GigaSpaces, Coherence and Terracotta
这部分代码完全独立于Compass 的其他模块,可以使用在纯Lucene实现的环境中
http://robbank.blogbus.com/logs/3509279.html
http://robbank.blogbus.com/logs/4698460.html
solr本身支持分布式索引,是利用rsync来做的
http://paradise-qingfeng.javaeye.com/blog/123673
Nut是一个Lucene+Hadoop分布式搜索框架
http://code.google.com/p/nutla/
http://www.blogjava.net/nianzai/
Nutch 0.9版中,分布式搜索的核心部分只用了不到1000行代码就搞定了。
clustering是把查询请求分发到多台计算机上,主要是解决并发量的问题。
Distributed指的是多台计算机并行处理一个查询请求,使单个请求的检索时间降低
http://lucene-group.group.javaeye.com/group/topic/8983
谈谈Hadoop和分布式 Lucene http://www.chinacloud.cn/show.aspx?id=50&cid=12
1,Doug Cutting (Lucene-Nutch-Hadoop 创始人简介)http://zhutuncun0.javaeye.com/blog/746019
2,luke,lucene索引查看工具 http://code.google.com/p/luke/
3,Alfresco 看看这种CMS在集群环境下如何使用lucene
http://wiki.alfresco.com/wiki/Cluster_Configuration_V2.1.3_and_Later#Lucene_index_synchronization
第三方应用通过以下四个步骤来完成认证授权并访问或修改受限资源
1. 获取未授权的Request Token
2. 请求用户授权Request Token
3. 使用授权后的Request Token换取Access Token
4. 使用 Access Token 访问或修改受保护资源
http://www.williamlong.info/archives/2185.html
http://www.douban.com/service/apidoc/auth
http://haolloyin.blog.51cto.com/1177454/412445
http://haolloyin.blog.51cto.com/1177454/410776
http://blog.csdn.net/hereweare2009/archive/2009/03/08/3968582.aspx
http://tools.ietf.org/html/rfc5849
1,ORM 层将数据库表映射到类、将记录映射到对象、将字段映射到对象的属性。
类方法用于执行表级别的操作,实例方法则用于执行针对单条记录的操作。
2,Action Pack包含了视图和控制器
3,rails有三种方式创建动态的模板,其一是使用“构建器”(Builder)这种技术,
其二是将Ruby代码嵌入模板中,第三种是rjs在服务器端动态产生js
4,<% 3.times do %>
Ho!<br />
<% end %>
Merry Christmas!
<% 3.times do %> 会输出空格,而<% 3.times do -%> 不会
5,Rails 的辅助方法h()用于对html符号转码
6,如果货品的价格发生变化,那么已经下好的订单不应该受到影响,因此每个订单条目都应该反映下单时的货品价格
7,erb的content_for(:name)标签里的内容可加到模板<%=yield :name%>所处位置
8,敏捷书第三版上说金额不要用float字段,而要用decimal字段
当一个类已经很好的同步以保护它的数据时,这个类就称为“线程安全的”。
即使是线程安全类,也应该特别小心,因为操作的线程是间仍然不一定安全。
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class TestThread {
public static void main(String[] args) {
final NameList nl = new NameList();
nl.add("aaa");
class NameDropper extends Thread {
public void run() {
String name = nl.removeFirst();
System.out.println(name);
}
}
Thread t1 = new NameDropper();
Thread t2 = new NameDropper();
t1.start();
t2.start();
}
}
class NameList {
private List nameList = Collections.synchronizedList(new LinkedList());
public void add(String name) {
nameList.add(name);
}
public String removeFirst() {//removeFirst方法必须同步
if (nameList.size() > 0) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
return (String) nameList.remove(0);
} else {
return null;
}
}
}
http://lavasoft.blog.51cto.com/62575/99155
活用Dynamic Pannel(以下简称DP)
DP的功能很强,几乎是Axure里的灵魂了。这里介绍一个技巧,帮你系统条理的组织你的文件结构:
在做RIA或者软件产品的Prototype时,一般都有N个对话框要用。一般我们都是用 DP来做对话框,默认Hidden,事件触发时再设为Visiable。
这里的技巧是,把所有的对话框都做在一个DP里(不同的 State),事件触发的时候在Set这个DP到相应的State。
一般,对话框最深层叠是2-3层。我的做法是做3个DP,分别为“一级面板”、“二级面板”、“三级面板”,再把各个对话框做到各自层级的DP里去。
有时候需要对话框的位置不是都在界面中心的,这里可以把这三个DP的尺寸调整为覆盖整个界面,那么在编辑State的时候,把内容放在相应的位置即可。
来源:http://slanyao.blog.163.com/blog/static/76880504201057112324406/
用“看板图”实现敏捷项目的可视化http://www.infoq.com/cn/articles/agile-kanban-boards
敏捷项目管理工具初探http://www.yeeach.com/digg/story/20194
给敏捷团队中的架构师的10个建议http://www.infoq.com/cn/news/2010/09/Tips-Architect-Agile-Team
炫目的敏捷架构师http://blog.csdn.net/programmer_editor/archive/2009/06/04/4242453.aspx
敏捷架构思考http://www.yeeach.com/2010/06/06/%E6%95%8F%E6%8D%B7%E6%9E%B6%E6%9E%84%E6%80%9D%E8%80%83/
敏捷开发中的架构设计http://tech.it168.com/a2009/0827/669/000000669667.shtml
在敏捷开发中采用演进式架构设计http://www.agiledon.com/post/Agile/Evolutionary-Design-In-AgileProcess.html
敏捷开发实践真的不利于架构设计吗?http://www.infoq.com/cn/news/2007/07/AgileBadForDesign
ubuntu上安装配置netbeans
http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=256293
安装mysql
http://wiki.ubuntu.org.cn/MySQL
http://forum.ubuntu.org.cn/viewtopic.php?p=157127
linux常用命令
http://linux.chinaitlab.com/special/linuxcom/
Ailurus
Ailurus is cross-Linux-distribution GPL software. It is a simple
application installer and GNOME tweaker, which aims at making GNOME
easier to use.
小熊猫 Ailurus 是一个 Linux 增强软件,提供安装好用的软件、调整系统设置、提示 Linux 命令技巧等等贴心的功能。
http://code.google.com/p/ailurus/
安装:
sudo add-apt-repository ppa:ailurus
sudo apt-get update
sudo apt-get install ailurus
安装jedit
(1)下载jedit4.3.2install.jar
(2)java -jar jedit4.3.2install.jar
安装Adobe Reader
到官网,默认下载的是AdobeReader_chs-8.1.7-1.i486.rpm,感觉不妥,手动选择下载AdobeReader_chs-8.1.7-1.i386.deb,
执行sudo dpkg -i AdobeReader_chs-8.1.7-1.i386.deb,默认会装到 /opt 目录下
也可以双击进行安装。
ubuntu Tweak是一款专门为Ubuntu(GNOME桌面)准备的配置、调整工具。
到ubuntu-tweak.com下载deb文件后双击安装,安装后会出现在应用程序->系统工具里。
感觉Tweak有的功能 Ailurus都有了。
还有一些软件可搜索"喀纳斯Ubuntu 10.10 i386中文定制版发布"
http://www.douban.com/group/topic/14952403/
http://jqfundamentals.com/book/