2008年10月23日

这电视剧挺火的,刚开始看看觉得还挺有意思的。不过慢慢觉得,暴力了点。
这样暴力的片子,基本上每个台都在放,里面那些杀人,还有强奸的镜头...小孩子看了会怎么样?
不知道为什么我们会把这些东西甚至当作教育片在放...之前的那些所谓为了孩子的东西,也只不过是个幌子吧..
posted @ 2009-07-09 22:37 django 阅读(236) | 评论 (0)编辑 收藏
 

房子拿到了快一年了,一直都没有装… 现在也老大不小了,该把房子弄弄,把婚结了…安定下来,也许对工作也会比较有利吧。

不过在无锡,也没什么熟人比较懂的。只能靠做功课了。现在装修公司还没定,有同事找了中达,反应还不错。之前拿房的时候也是请中达的陈师傅来帮忙验房的。说起陈师傅,真是赞了。那天大老远的跑过来,技术也是没的说,还偷偷的告诉了我一些装房子的建议。所以这次我也直接给他打了电话,希望再多帮帮忙。(哈,我是不是太贪心了…)

昨天上上团的论坛,看到了自行车老师讲报价单陷阱的帖子,很是受用。然后还加了他qq,把之前同事的那份传给他,帮忙审了一遍,又不厌其烦的给我讲里面的什么地方有问题,真是又专业又热心。等中达量完房子,可能还要麻烦沈老师一下..

希望一切都顺利吧!

posted @ 2009-03-16 17:48 django 阅读(385) | 评论 (2)编辑 收藏
 

首先安装cygwin时,把rxvt装进去.如果没有装,再点一下setup.exe, 重新装进来就可以了.

然后添加一个bat文件,加入以下的内容,就可以直接用rxvt登录cygwin了.

@echo off
c:\cygwin\bin\rxvt -e /bin/bash -login

如果要修改配置rxvt,请参考linux下rxvt的配置.这个是最简单的.

! rxvt.font:          -*-lucidatypewriter-medium-*-*-*-14-*-*-*-*-*-*-*
! or...
rxvt.font:            Lucida Console-14
rxvt.boldFont:        Lucida Console-14
rxvt.scrollBar:       True
rxvt.visualBell:      True
rxvt.loginShell:      True
rxvt.background:      Black
rxvt.foreground:      White
rxvt.saveLines:       3000
posted @ 2008-11-11 11:27 django 阅读(822) | 评论 (0)编辑 收藏
 

Cygwin default是使用dos做终端,实在是很难用.

Putty是一个好用的telnet,ssh工具,它的终端比dos好用.直接用putty连cygwin还挺麻烦的,需要在cygwin上配ssh server. puttycyg是一个加强版的putty,用它可以直接连cygwin.

Download一个puttycyg下来,解压直接运行putty.exe, 在connection type里面选cygterm, command里面填-, port也填-,就可以登录cygwin了.

可以把putty里面default的connection改成登录cygwin.然后添加一个cygwin的快捷方式,里面用puttycyg.exe -,就可以直接登录cygwin了.

posted @ 2008-11-11 11:21 django 阅读(936) | 评论 (0)编辑 收藏
 
  1. Add jetty plugin group to setttings.xml
  2. <settings>
    ...
        <pluginGroups>
            <pluginGroup>org.mortbay.jetty</pluginGroup>
        </pluginGroups>
    ...
    </settings>
  3. Run command mvn jetty:run
posted @ 2008-10-28 11:42 django 阅读(342) | 评论 (0)编辑 收藏
 

Preparation

  1. Download and install maven2.
  2. Download spring DM 1.1.2.
  3. Install spring DM archetype for maven.
    • Open a cmd window in spring-osgi-1.1.2
    • Run command: mvn -P equinox clean install. This step is used to install spring OSGI archetype.
  4. Create spring DM project using maven: 
    mvn archetype:create -DarchetypeGroupId=org.springframework.osgi -DarchetypeArtifactId=spring-osgi-bundle-archetype -DarchetypeVersion=1.1.2 -DgroupId=org.foo -DartifactId=org.foo.my-springdm-bundle -Dversion=0.1
  5. Add a class HelloService as following:
    package org.foo;
    
    publicclass HelloService {
        publicvoid init() {
            System.out.println("start");
        }
    }
  6. Add bean declaration for HelloService to bundle-context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    
      <!-- regular spring configuration file defining the beans for this
           bundle. The configuration of OSGi definitions is kept in a separate 
           configuration file so that this file can easily be used
           for integration testing outside of an OSGi environment -->
        <bean id="helloService" class="org.foo.HelloService" init-method="init"/>
    </beans>
  7. Edit pom.xml and modify imported package for the bundle:
    <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <version>1.4.0</version>
        <configuration>
            <manifestLocation>META-INF</manifestLocation>
            <instructions>
            <Export-Package>
                !org.foo.internal,org.foo*
            </Export-Package>
            <Import-Package>org.osgi.framework</Import-Package>
            <Include-Resource>src/main/resources</Include-Resource>
            </instructions>
        </configuration>
    </plugin
  8. Create MANIFEST.MF and bundle using command: mvn package
  9. If you want to run it in eclipse, please run mvn eclipse:eclipse to generate a eclipse plugin project and import it to your workspace, then run it as OSGI framework. Please refer to this article:http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1
  10. Start a OSGI container: java -jar org.osgi.framework.jar -console
  11. Install the necessary bundle to OSGI container using the following commands in osgi console:
    install file:/path/to/the/bundle
    start file:/path/to/the/bundle
  12. You can find the bundles under spring-osgi-1.1.2/dist or libs. You need to install and active the following bundles:
    • org.springframework.bundle.osgi.core_1.1.2.jar
    • org.springframework.bundle.osgi.extender_1.1.2.jar
    • org.springframework.bundle.osgi.io_1.1.2.jar
    • org.springframework.bundle.spring.core_2.5.5.jar
    • org.springframework.bundle.spring.context_2.5.5.jar
    • org.springframework.bundle.spring.beans_2.5.5.jar
    • org.springframework.bundle.spring.aop_2.5.5.jar
    • org.springframework.osgi.log4j.osgi_1.2.15.SNAPSHOT.jar
    • om.springsource.org.aopalliance_1.0.0.jar
    • com.springsource.slf4j.org.apache.commons.logging_1.5.0.jar
    • com.springsource.slf4j.api_1.5.0.jar
    • com.springsource.slf4j.log4j_1.5.0.jar
  13. Install and active your bundle under target folder using the same commands and you will see the output.
  14. Use "ss" in OSGI console to list the installed bundles.
posted @ 2008-10-23 15:04 django 阅读(1771) | 评论 (0)编辑 收藏