2008年10月23日

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

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

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

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

          希望一切都順利吧!

          posted @ 2009-03-16 17:48 django 閱讀(401) | 評論 (2)編輯 收藏
           

          首先安裝cygwin時,把rxvt裝進(jìn)去.如果沒有裝,再點(diǎn)一下setup.exe, 重新裝進(jìn)來就可以了.

          然后添加一個bat文件,加入以下的內(nèi)容,就可以直接用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 閱讀(843) | 評論 (0)編輯 收藏
           

          Cygwin default是使用dos做終端,實(shí)在是很難用.

          Putty是一個好用的telnet,ssh工具,它的終端比dos好用.直接用putty連cygwin還挺麻煩的,需要在cygwin上配ssh server. puttycyg是一個加強(qiáng)版的putty,用它可以直接連cygwin.

          Download一個puttycyg下來,解壓直接運(yùn)行putty.exe, 在connection type里面選cygterm, command里面填-, port也填-,就可以登錄cygwin了.

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

          posted @ 2008-11-11 11:21 django 閱讀(950) | 評論 (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 閱讀(360) | 評論 (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 閱讀(1788) | 評論 (0)編輯 收藏
           
          主站蜘蛛池模板: 永济市| 夏邑县| 达拉特旗| 从江县| 吉木萨尔县| 巴楚县| 南川市| 正定县| 胶州市| 罗山县| 云安县| 大方县| 毕节市| 保靖县| 丹凤县| 安多县| 息烽县| 德格县| 太康县| 桦川县| 苏尼特右旗| 大城县| 镇沅| 正阳县| 唐海县| 百色市| 合山市| 无锡市| 元氏县| 沂源县| 呼和浩特市| 洱源县| 连云港市| 渭源县| 通化县| 建水县| 大埔区| 沙田区| 静海县| 林西县| 阜平县|