2008年10月23日

          這電視劇挺火的,剛開始看看覺得還挺有意思的。不過慢慢覺得,暴力了點。
          這樣暴力的片子,基本上每個臺都在放,里面那些殺人,還有強奸的鏡頭...小孩子看了會怎么樣?
          不知道為什么我們會把這些東西甚至當作教育片在放...之前的那些所謂為了孩子的東西,也只不過是個幌子吧..
          posted @ 2009-07-09 22:37 django 閱讀(247) | 評論 (0)編輯 收藏
           

          房子拿到了快一年了,一直都沒有裝… 現在也老大不小了,該把房子弄弄,把婚結了…安定下來,也許對工作也會比較有利吧。

          不過在無錫,也沒什么熟人比較懂的。只能靠做功課了。現在裝修公司還沒定,有同事找了中達,反應還不錯。之前拿房的時候也是請中達的陳師傅來幫忙驗房的。說起陳師傅,真是贊了。那天大老遠的跑過來,技術也是沒的說,還偷偷的告訴了我一些裝房子的建議。所以這次我也直接給他打了電話,希望再多幫幫忙。(哈,我是不是太貪心了…)

          昨天上上團的論壇,看到了自行車老師講報價單陷阱的帖子,很是受用。然后還加了他qq,把之前同事的那份傳給他,幫忙審了一遍,又不厭其煩的給我講里面的什么地方有問題,真是又專業又熱心。等中達量完房子,可能還要麻煩沈老師一下..

          希望一切都順利吧!

          posted @ 2009-03-16 17:48 django 閱讀(396) | 評論 (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 閱讀(836) | 評論 (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 閱讀(946) | 評論 (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 閱讀(356) | 評論 (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 閱讀(1784) | 評論 (0)編輯 收藏
           
          主站蜘蛛池模板: 商丘市| 原平市| 徐州市| 肇州县| 本溪| 武冈市| 贵南县| 伊金霍洛旗| 柯坪县| 太白县| 靖州| 三穗县| 文昌市| 梅州市| 宿松县| 磐石市| 通道| 东乡县| 河北省| 江川县| 文成县| 阿合奇县| 安康市| 伊川县| 且末县| 靖宇县| 渭南市| 丹东市| 海盐县| 龙陵县| 高尔夫| 延吉市| 六枝特区| 家居| 寿宁县| 柳江县| 兴宁市| 临颍县| 惠东县| 茂名市| 中牟县|