Search blog.co.uk

  • 北平往事

    这种有深度的电视比较少了,有大背景的故事一般更加精彩。像鹿鼎记、射雕英雄传等等。在这部电视里,这些大人物的行为在一定程度上改变了某些事情,但无法改变历史的潮流,无法避免战争,但是人们在这些抗争中看到了胜利的希望。

    还有一个看点就是关于民族的看点,不能将对一个民族的认识全部加权到某一个人身上去。

  • 满月

    黄秋杰在11月12号满月了,我去看望了一下。小孩子好多相片都是没有睁开眼的。
    熟悉的环境啊
    网上有外国人找兼职,投了一份,有了回应,但是这种交流需要大量的口语化的经验,力不从心啊。

  • 老了

    很久没看到一堆程序员讨论了
    今天总算又年轻了一把
    赶紧自己更老了,已经赶不上这批人追求的东西了
    总结了一下,自己应该看的东西
    Ruby--->JRuby
    Rails 框架
    Google 的Guice
    python

    有人说Java已经快过时了,因为它太复杂,嗯,确实是啊
    现在确实需要一种能敏捷开发的东东

    哎,老了啊

  • get rid of aritcle

    我不想写论文,我已经毕业了,我已经为了毕业和论文痛苦了一年多了
    我想永远摆脱了这种生活,甚至连博士都不想读,可是欲罢不能,总被别人的事情这样连续困扰
    我想要自己想要的生活。

    天气冷了,开空调取暖,风又热又干,我在空调下一动不动,就像在风干木乃伊。。。。。

    对你要求助的人,不能总问What should i do/say,那样还要你干什么用?应该说的是Is it suitable if i do sth in someway?

  • It's my season

    I like winter, it's cool. I can feel myself in the crowd people, it's nice feeling.
    这种天气里,我可以自己控制我自己.
    春蚕到死丝方尽,我明白老师为什么死的快了,哈哈.就像我这样一天一天地浪费生命,浪费时间,I'm wasting my life here.
    还好是对付学生,一波一波的,要是换成农作物,换成森林,那就更郁闷了.

  • nutch study

    1. download nutch0.7.2,因为0.9存在一个与lucene兼容的问题,
    ArrayIndexOutOfBoundsException
    该问题的修改方法见http://blog.sina.com.cn/s/blog_537c07f6010009t9.html

    2. touch a new file about url
    $vi urls/site.txt
    input a url, for example "http://www.cnn.com"

    3. modify configuration file
    $vi conf/crawl-urlfilter.txt

    # accept hosts in MY.DOMAIN.NAME
    +^http://([a-z0-9]*\.)*MY.DOMAIN.NAME/

    =====TO=======

    +^http://([a-z0-9]*\.)*cnn.com/

    4 run nutch

    $bin/nutch crawl urls/site.txt -dir cnn.com -depth 3 -threads 4 >& cnn.log

    then wait the program finish

    5. see the result
    $bin/nutch readdb cnn.com/db -stats

    it may show show something like blow:
    ---------------
    071026 174805 parsing file:/root/nutch-0.7.2/conf/nutch-default.xml
    071026 174805 parsing file:/root/nutch-0.7.2/conf/nutch-site.xml
    071026 174805 No FS indicated, using default:local
    Stats for org.apache.nutch.db.WebDBReader@1a16869
    -------------------------------
    Number of pages: 1096
    Number of links: 5023
    ------------------

    6. config tomcat
    modify /webapps/nutch/WEB-INF/classes/nutch-site.xml
    add follows:

    /home/nic/dev/nutch-0.7.2/testsite/

    7. 很多情况下throw ClassNotFoundException or ClassNotInistialException or NutchBeanException , etc. I think its version problems.

  • Manage struts.xml

    Pay attention to the struts config file, struts.xml and other sub config files, it's import to make sure that there is no same name actions.

    Today morning i meet a problem, because there are same named java classes files and same named actions, so the validation framework didn't work rightly. And i can't confirm where the bug is. Finally i guessed something above, hoooo, it is!
    I think because there's homonymy files, so the struts doesn't know what to do, so it strikes.

    在编写struts时,要保证类文件和配置文件中没有重名的现象,不然会扰乱struts框架的工作。比如如果action的名称相同,validation就不能正常工作了。

  • Eclipse problems

    I made a new project of struts, and i need some libraries to run the project, following is the libraries:
    commons-logging-1.0.4.jar
    freemarker-2.3.8.jar
    ognl-2.6.11.jar
    struts2-core-2.0.9.jar
    xwork-2.0.4.jar
    i config the project properties on "Java build path", and add library, but the eclipse show me a warning:

    Classpath entry org.eclipse.jdt.USER_LIBRARY/struts2 libs will not be exported or published. Runtime ClassNotFoundExceptions may result.

    and it works as it said.......
    in the log, it reports ClassNOTFoundException.

    i find some way to solve this temporarily, i copy the libs to the webapps floder. it works fine, but i don't think its the right way.

    Add it to me Todo list.

  • 矛盾

    社会主义社会要推崇平等,但是现在的社会却是在推崇阶级。吃了什么营养品就能比别人强,住了什么放就能享受尊贵。但是这种等级的差距的来头确实人们痛恨的垄断,不管是行业垄断也好,政治垄断也好,这都是祸根啊。
    无聊的网络封锁令人生气。就像户籍制度一样,把人都一片一片地分区管理,让每个区域的人相对独立,即使某一块出了问题,也不会影响到大局,局部监管和清除就可以了。
    软件业中的模块化方法应用到了政治上,效果奇佳。比如有个地方的人们受不了压迫了,想反抗,但是其它地方的人不知道啊,有同类想法的人不能及时相应。好了,统治阶级的目的实现了。
    统治阶级说:我们没有阶级,我们的社会是人民的社会,人民是国家的主人,通过选举出来的代表来管理国家。通过这种共和方式,虚伪的共和方式来糊弄大家。
    代表选出来的就是统治阶级的代表。。。。。。。
    可恶的不是这种制度,而是这种虚伪。

  • Me today

    通过fetch mail得到了这样一个网址,
    http://www.thebeijinger.com/
    貌似是为老外准备的,可以充斥了大量的国人,而且大都是年轻小姑娘在look forward for a friend, even knight.....
    不说什么了,这个东西讨论不清了。
    ==========================================
    白天红旗飘飘,晚上警灯闪闪。
    17大搞得气氛挺紧张的,跟俺关系不大,等开完会看看评论吧。

Footer:

The content of this website belongs to a private person, blog.co.uk is not responsible for the content of this website.