春峰 的个人资料我要去桂林照片日志列表 工具 帮助

日志


I Touch

I Touch

当电影院的侧灯缓缓变暗后,一个富有磁性的声音缓缓说道:每隔几万年,人类就会发生一次变异…。这是电影金刚狼开始序幕的解说词。今天,当我躺在床上,摸着手中的iPod Touch浏览Twitter的时候,忽然一股清晰影像浮现在眼前,也许我们正处在人类历史从自然生物到高科技武装到牙齿的变异萌芽阶段。我猜用不了200年,围绕在我们每个人身上的各种电子设备数量绝对不比现在美女梳妆台上的瓶瓶罐罐的数量逊色。你要是出门身上不带10几块电路板,你都不好意思跟人家打招呼。
从接触电脑开始,被微软教育了这么多年后,才发现原来用户界面还可以这样做。(这件事情让我切实感觉到只听一种声音、只看一种画面是错误的。在此要顶一个人:郑昀。他是我认识的程序员里最有思想的人,是我认识最有思想的人里最会写程序的。正如起来挑战微软霸权一书中说的一样,你愿意你的小孩生活在一个没有选择的世界吗。)Apple把iPod Touch+iTunes+App Stroe串在一起,不仅满足了我的想象,而且在引诱我加入了苹果教。到目前为止我对iPod Touch的满意度是95%,最不爽的地方时YouTube没法用,当然这不是iPod的错。因为。特别是在某个被潜规则的日子快要到来的时候,连blogger也不能访问了。删除脏字。
昨天,5-17日是世界电信日。现在满眼满耳都是铺天盖地的宣传,“沃”,原来是3G来了。李开复和丁磊做了天翼的宣传代言人,连李一男也坐不住了“要把百度所有产品搬上手机”,这个夸张的表达说明百度对3G时代的热切期待。其实在3G时代此手机已经不是彼手机了,他们都是未来互联网的终端,单独为手机而做产品是得不偿失的。对于90%的代码都放在服务器端的百度们来说,如何为不同的互联网终端输出不同的内容和显示风格的需求变得突出起来,或许在未来UI RenderEngine将会作为一个中间件产品单独出现。
当全世界都在“云计算”和互联网终端都在“移动”的时候,看到这篇新闻你不觉得吃惊吗:“09年程序员数量明显下降 应用程序数量反大增”。我对这个现象的解释是,更多的程序员们都SOHO(或者以工作室的方式)去了。也就是说程序员的绝对数量不应该下降,而在公司“坐班”的程序员数量下降了。不信?看看Apple Store带来了多少机会类似的机会吧;Apple , Google,Nokia,Microsoft,甚至魅族M8(已经有了SDK),在未来都会带给我们同样的奇迹。那些抱着程序员过了30岁就过时的想法,那只能说明:你Out啦,喝啤儿茶爽醒醒吧。
让我们一起Touch未来美好世界吧。
iPod , iPod Touch , I Robot。

tss: Eclipse 、 Equinox 和 OSGi

tss: Eclipse 、 Equinox 和 OSGi

Eclipse 、 Equinox 和 OSGi

每个成功的男人背后,都有一个伟大的女人;每个成功的产品后面都有一套强进的架构 ---- 题记

很 多Java程序员对Eclipse(日食 ,IBM 起这个名字,Sun大概有意见 )都爱不释手,在JBuilder流行、主流内存配置还在256M的日子里,当我第一次成功运行Eclipse后就把JBuilder彻底请出了我的电脑 硬盘。不错,这就是Elipse的魅力。

作为程序员在感受Eclipse带来诸多好处之后,强烈的好奇心驱使我在问:Eclipse 的魅力从何而来。正如我们谈论一个美女为什么那么美一样,造成美的因素是多方面的 (上次的人物访谈说节目中说:周迅是美女,有个摄影家还用尺子量周迅鼻子到下巴的距离来证明)。在Eclipse令人称道的很多因素中,其开放性的插件架 构无疑是最浓重的一笔。

为Eclipse开发一个插件并没有想象中的那么复杂,使用Eclipse 的 Rich Client Platform 开发自己的软件界面也很容易上手。为Elipse带来如此魔力的就是:Equinox (月食)( http://eclipse.org/equinox)。本文的题目还有一个 OSGi ,OSGi 和 Equinox 的关系是什么呢? 说来话长,简单的理解,相当于 JBoss 和 Ejb specification 的关系,或者 Tomcat 和 Servlet Specification 的关系。

OSGi 中的一个核心概念是: bundles 。
对于Equinox来说,bundles就是一个自描述型的jar文件,描述如下:
-------------------

Bundle-SymbolicName: org.eclipse.equinox.registry
Bundle-Version: 3.2.100.v20060918
Bundle-Name: Eclipse Extension Registry
Bundle-Vendor: Eclipse.org

Bundle-ClassPath: .

Bundle-Activator: org.eclipse.core.internal.registry.osgi.Activator

Export-Package: org.eclipse.equinox.registry

Import-Package: javax.xml.parsers,
org.xml.sax,
org.osgi.framework;version=1.3
Require-Bundle: org.eclipse.equinox.common;bundle-version="[3.2.0,4.0.0)"
Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3

  ------------------

如 果单纯作为一个插件机制,尽管Equinox解决方法很棒,但并没有什么过人之处,最让我感到惊奇的是他的“包容”能力。原文一句话说的好:“There are two main approaches; embedding Equinox in the servlet container or embedding the servlet container in

Equinox”。
看看下面这3个图吧:

Figure 1: Traditional web application server structure

 

Figure 2: Embedding Equinox in an existing application container

 

Figure 3: Embedding an application container in Equinox 




从高内聚,低耦合到从设计模式,从 Ioc 、 Spring 框架 到 SOA 我们一步一步的抽象着、分离着。很显然,我们需要一个灵活而不失严谨的架构,需要一个功能强进而不令人生畏的产品;幸好,软件科学是正是这样一种科学,他 总可以加入更多的中间层来把问题解决的更好。

原文链接:
http://www.theserverside.com/tt/articles/article.tss?l=EclipseEquinoxOSGi
http://www.theserverside.com/news/thread.tss?thread_id=43696

China version Alexa rank launched

China version Alexa launched
    Alexa rank had take a very important position when we want to measure website's traffic. More higher alexa rank stand for more web traffic . In china , many , so called expert , always take alexa rank as one main evidence for their reference .

    If we lost google , we have yahoo,ask and live ,and so on. But we have no substitute for alexa .So somebody want to become a substitute to alexa , in china .

    www.chinarank.org.cn is one of them .

    Chinarank , chinese name "中国网站排名网" , was sponsored  by China Internet Association with technique support by ZhongSou . ZhongSou ,now , had already fullly retreat from the battle search engine market in china , turn to person portal and local portal .

    Huang ChengQing ,  Secretary of CIA , said that chinarank.org.cn still under test run for 3 months , and after that period , they will made adjusted or even shut down chinarank.org.cn according to common people opinions.

    reference:
   

中国式Alexa站-中国网站排名网(www.chinarank.org.cn)

    top 10 today news:
10 17亿美元风投砸向中国 IT产业明显降温

    

Yahoo China SEO XieWen dismissed or resign ?

 
 
 
It is said that china internet market still been on " 春秋战国 " period , which means the market offers lot's of opportunities and , mean while, much more companys pursue and want to dominate in the market.  Yahoo china is one of them with it's subtle current status.
 
After MaYun's genius strategies "合纵连横" , Yahoo China with Alibaba and taobao had become to a giant who had  a strong  ambition  to win in each market segments , such as search engine , e-commercial business , online auction and even logistics delivery by the cooperation with EMS.
 
Mayun got all he want except on search engine market. From now on , I do not know what is Yahoo China's focus. If one company lost it's focus , it will blind and may be surpassed by it rival quickly .
 
When the end of year coming, with no clear and brillant signal of Yahoo China , MaYun was got into vaxation . He should to do somethings .
 
 
 
 
If things I could not do well , at least , I could make a big bong .
 
 
 
I , myself a tiny grass root , have no chance to touch more internal clues about this event .  Though , from the public article's we could make a sense of .........
 
1) " 第四次创业,马云需要的是追随者、执行者,不是合作者。  " , We had to admitted that MaYun is a leader with strong vision , not a manager .
 
2)  
 
           As above slice , copyed from xiewen's web 2.0 speech ppt , shows that xie had it's own idea about how to development a web 2.0 website .
 
           What  could we learn from this event ? much more ...
 
 
further reading :
                 vote about this event.
 
                 多么乐智能网页快照系统
 
and more :
 
 
 
 
 
 
 
 
 
 

aggregative website in china

 
 
aggregative website in china
 
With the development and evolution of internet , both in technical and business model , we found that how to build a website is diversity.  From a solo bbs to complex community website , from only provide text message post service to provide images , audio, video and , of course , text message , finally we make a sense that there are so many ways available for us to choice how to cosume " information " .
 
Nowdays, web 2.0 is a prevalent . Among this huge and overwhelming tread , aggregative website appeared and catch my attention .
 
Aggregative website is one that " crawl " web pages of others website , then categorised and refined them , give web surfers a " new face  " about news , bbs threads and images. Aggregative website is quite different to , such as , search engine , like baidu.com or google.com , cause search engine only crawl web page then index them by program , and the finally interface to show to users is differ,too.
 
In china internet market , qihoo.com and daqi.com are two mainly branch of Aggregation website . However , the disparity between them is qihoo.com heavy depend on program whthin the process of produce content , and daqi.com , unfortunately , used lot's of editers , copy and paste , to  produce content .
 
It seem that qihoo has hold the chance to success. Ma XiaoSen , former chief editor of daqi.com , resigned one month ago may be is a signal uncover the doom of daqi.com . On the contrary , qihoo.com release a news that they got a second round of venture captical , the amounts is not less that the first round said by one insider.

From my point of view , there will a battle between qihoo and yahoo china in the field of " Social Search " , the reason which support me to make this conclusion is Zhou Hongyi , board chairman of qihoo.com , said that the incoming money will put to the field of entertainment and life search , meanwhile , Ma Yun chose Xie Wen as the ceo of yahoo china , who  is been regarded as " social community expert " .

It's a so great stage in china , why not join and play...........................
 
 
 

Some storys I know about Hiu

Some storys I know about Hiu,Hiu, what's trouble with you
 
    The first time I know something about hiu is from a party which focus on classified information website and sponsored by 58.com . At that party many representations from new emerged web 2.0 website , lot's of belong to classified advertise website, made a brief introduction about there company , and hiu's representation attend this party. In fact , It's a very impressive introduction , and I registered , visisted and study hiu for a long time and get much more from it , of course.
 
    The second time , hiu got a focus between blogers  because keso , china famous blogger , post a blog titled " Kiko been sold at price 258,100$ " . In the bid process , Hiu show it's bid price is 63000$ .  This is a short message , but give public two signals about hiu , the one is hiu have money and hiu is web 2.0 company .
 
    Only half a month , Meng XiaoShe ,  , talk to public about an adverse voice , that is " Hiu have no money , not QuanWang ". 
 
    At this time , for me , hiu getting blurred , through  their marketing still keep activity .
 
    But today , I been told that  hiu had been 3 months no pay employees salary.  from here .
 
    Buzz of web 2.0 had around us nearly 2 years , many of them evaporated , and much more just keep live .
 
     Where is their future?
 
 
      

多么乐 互联网新闻阅读器发布啦

多么乐 互联网新闻阅读器发布啦

没事儿找事的时候最有创造力 题记

周六、下午、热。热的时候就烦躁,烦躁的时候就要找事儿做。找事儿吗,只好写程序了。

我有个习惯,每天必看车东dbanotes的blog,久而久之就有了一些需求,自己动手丰衣足食吗。于是忙了半个下午,这就是:多么乐互联网新闻阅读器了。

功能有3:

1、帮助你最快速度阅读新闻

2、帮助你最快速度找到好新闻

3、帮助你知道那些网站的新闻是好新闻

介绍3个REST框架

介绍3个REST框架 

                     Bye Bye SOAP , Hello REST 题记

最近需要ruby和java协同工作,本来想用 ruby java bridge 形式的方案实现,结果没有成功。只好用老办法通过 web service 调用方式了。你也知道 java 世界里的 web service 可不像 visual studio 世界里那样易于配置和使用。幸好我的需求也不复杂用REST的方式完全可以满足了。

这两天tss上介绍了Cetia4 REST Framework  这个REST 框架,看过简单的介绍后决定使用他了。 Cetia$ Rest 的优点在于可以和 Java Servlet-based  的程序无缝集成。

 

 


在Cetia4 REST 后继的讨论中又列出了下面两个不错的 REST 框架:

 XX Framework (see www.xxframework.org

http://www.restlet.org/  这是个老牌的 REST 框架,这个框架的设计目的不是完全面向Web Application的,学习曲线比较高。

restlet 和 cetia4 的最大区别是 restlet 不是基于 java servlet 的,而后者是。当然 restlet 也可以在 servlet 容器中运行。

       Bye Bye SOAP , Hello REST

 相关阅读: 介绍3个REST框架

 

 


Java企业开发的银弹:Grails + EJB

Java企业开发的银弹:Grails + EJB


    InfoQ 发表了一篇 Jason Randolph 写的文章,题目是: "Grails + EJB Domain Models Step-by-Step" 。这篇文章通过创建了一个EJB3Domain Model (员工和其电脑类的),用 Grails 为上面的实体类添加了增、删、改的功能。整个过程和Grails非常接近,很cool

Grails 对象关系映射 (Grails Object Relational Mapping  GORM) 基于Hibernate 3 并使用Groovy 的元对象协议 (Meta Object Protocol MOP)把各种方便使用的动态方法添加到了用户自己编写的静态实体类。这些动态方法不只是GrailsGroovy可以使用而且程序员自己编写的代码也可以使用。这样我们就有了企业级的JEE/EJB3的功能并且可以拥有了RADWEB开发的便利。

Grails 不只是一个标准的Java应用程序框架,Grails基于Groovy,并且具有了快速开发的类似Rails的特点。

你对Grails怎么看?

 


相关链接:

Grails + EJB Domain Models Step-by-Step

Java企业开发的银弹:Grails + EJB

说说 kooxoo 酷讯吧

说说 kooxoo 酷讯吧

        我习惯每周花点时间在看kooxoo酷讯上,应该算是骨灰级的了。对于kooxoo酷讯的界面的变化,功能的改进,甚至诸多seo的手法都看的很多。
                                                                                      题记
       
         我是kooxoo的老用户,也是酷讯的忠实用户,出于学习的目的也好,出于使用的目的也好,总之kooxoo酷讯一直吸引着我;人们对于自己喜欢的东西总 是喜欢说上两句什么,我也有这个习惯。可对于kooxoo酷讯却一直没有开口。不是kooxoo酷讯优点多的让人不知道怎么说,更不是kooxoo没有亮 点不值得费口舌,而是因为kooxoo一直在变,对于变化的事物,任何结论,任何预言,任何猜测都是不切合实际的。
                                                                                   
            互联网的VC们有句口头禅:我们投资不光看项目,还要选对人。从某种意义上说选对人,即是项目是错误的,也可以在众人的帮助下回到正确的轨道上来。谋事在 人在竞争激烈的互联网行业还是一条真理。如果你观察过qihoo奇虎最近一年的变化你会更认同这句话,同样的话也适用于kooxoo酷讯。
            为什么今天想起说kooxoo酷讯了呢?按照我刚才说的,是kooxoo酷讯停止变化了吗?当然不是。最近关于kooxoo酷讯的报道多了起来,见这里, 新浪的白银时代也不失时机的做了长篇大采访。今天中午的时候某杂志的编辑联系到了我,说看到了我原来写的: 出师未捷:说爬狗  (这是我5月24号写的), 里面提到了 kooxoo酷讯,这篇短文的末尾我是这么说的: 酷迅呢,是站在这个队伍中,还是51city的队伍中?似乎这最后一句话引起了这位编辑的兴趣,按照她的话说:“好像你对它的定位不是很满意吧”。现在看 起来这句话的确是有那么一种味道。 bloves 当时在 论爬狗网的倒掉上  留言:老 田 没说完的话是什么?好奇!。我的确没有说完,还是我上面提到的原因,对于变化的事物,难说呀。
            这位编辑让我说一下:“那您觉得酷讯在现在阶段的亮点是什么呢?”。
            我说了2点:
             1、处理自己和被搜索网站的关系比较好,也就是定位明确;
             2、技术创新
            这位编辑也比较了解技术告诉我说技术上似乎没有特别信新,当时忘了给他推荐这篇文章  我向朋友解释“什么是分类信息搜索引擎?。(btw:我这里还有一篇:一个月薪3万的seo给我上的震撼一课 的草稿,呵呵)。
            酷讯的定位是生活信息搜索,生活类的信息搜索就是垂直搜索引擎的一部分,有自身的特点,引用两个观点:    

   
            google中国SuperStar级Google资深工程师周杰说:“现在搜索引擎在索引信息时丢失了两维的信息数值,在互联网页上面,你可以没有时间的概念,丢失了时间的信息和丢失了距离位置的信息。一维是地理位置的信息,另外一维是时间的信息。
            Google俩创始人的老同学,google中国张智威 说: 我们根据用户的搜索,我们要在很大的数据库中间,这个数据库是一个非常高纬的空间,我们在这个非常高纬的空间找到一个范围,把他想找的东西找到,中间是二 纬的空间,这里面找到你需要的东西是非常困难的,因为你需要的东西在二纬空间里面,要用非常高纬的方程式才能够圈起来的。
 
            我想上面这两位google牛人的话对做生活信息搜索的酷讯会有一些启发的。

            今天从wf那里知道百度推出了法律信息搜索,好主意,但百度应该做的更好,虽然它的使命是:帮人们尽快找到信息。
            

一种面向搜索引擎的网页分块、切片的原理,实现和演示

一种面向搜索引擎的网页分块、切片的原理,实现和演示



最近看到 2005 年的 全国搜索引擎和网上信息挖掘学术研讨会 上 华南木棉信息检索的队长 欧健文 的 华南木棉信息检索 的ppt。很有启发。

于是自己也根据自己的理解准备做一个实现。
实现前提假设:
    1、网页分块切分的基本单位是html中的table , div 等标签(目前版本只支持:table ,div 标签)。
    2、网页分块切片识别依赖于相似url的对比。比如:我们认为一下两个url的网页html文本结构相似:
        http://news.soufun.com/2005-11-26/580107.htm
        http://news.soufun.com/2005-11-26/580175.htm
       而下面两个url的网页结构不相似:
        http://news.soufun.com/subject/weekly051121/index.html
        http://news.soufun.com/2005-11-26/580175.htm

用途:
    1、根据分析网页结构区分网页是 主题型网页 还是 目录型网页;
    2、根据分析网页结构 找出 网页的 主题内容,相关内容和噪音内容;

实现的3个阶段:
    1、对网页结构进行合理切片;
    2、比较相似网页的切片结构;
    3、分析切片数据,得出结论。
演示地址:
       http://www.domolo.com:8090/domoloWeb/html-page-slice.jsp