关于彼此,我还在学习

Pretend to be happy when you feel blue, that is not very hard to do.

首页 新随笔 联系 聚合 管理
  114 Posts :: 2 Stories :: 48 Comments :: 0 Trackbacks

2008年11月11日 #

首先安装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 阅读(43) | 评论 (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 阅读(62) | 评论 (0)编辑 收藏

2008年10月28日 #

  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 阅读(44) | 评论 (0)编辑 收藏

2008年10月23日 #

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 阅读(1031) | 评论 (0)编辑 收藏

2008年10月14日 #

不知道从什么时候开始穿阿迪.耐克.

也忘记了什么时候开始用香水.唇膏.

以前的冷狗现在叫鲜奶提子.

以前的三色杯现在不知所踪.

你为什么会痴迷于打勾的东西.

你又为什么想要一身产品牌子.

在然后你会知道prada和Gucci.

然后会用LV的包穿amani的衣服.

直到你死去的那天.

当你最后微笑着看着你身边哭泣的人们

然后慢慢回想起自己的过去.

你的回忆里.

是不是会充满这些牌子.牌子.牌子.

还是会想起那一年.我们都没有钱的时候

我们穿着简单但是干净的衣服.

略带皱褶但是整洁的鞋子.

斜跨的单肩书包

在上学和放学的路上把单车骑的飞快

听风在耳边呼啸而过的声音

会在上课时偷偷的传纸条,那时我们没有手机这样的通讯工具

他用蓝色的笔,你用红色的笔,说的话题无关紧要

最壮观的传条是从教室的一个角落到对角线的另一个角落

会在每天做操的时候

踮起脚尖搜寻某个让自己魂牵梦萦的背影.

然后在错身而过的瞬间

假装和朋友在专注的讨论某件事

然后眼角偷偷瞄着他今天是否穿了那件你最喜欢的T恤

清晨的早读前,他走过来想借一本代数作业抄

你仔细的找啊找,然后递给他自己的

却在反复揣测并懊恼昨晚怎么把字又写的潦草

会在早上进门的时候短暂的停留.

不过就是为了能看见某个下一秒会出现在楼梯口的身影.

又或者是系一系根本没松的鞋带.

理一理没有被风吹乱的头发.

趾高气扬的留下一个仓皇的背影.

青春的脸上从来不用过多的粉饰

可伶可俐的洗面奶永远散发淡雅的花果香

你不知道什么叫裸妆,粉底要分几层打

最爱在周日的傍晚洗完头站在阳台,让自然风吹干浓密的头发

你没有齐刘海,挑染,陶瓷烫,头发却出奇的柔顺

当课间的时候,你总是拉着女伴在走廊上来来回回的走

只为路过隔壁班那一瞬,看看他在和同学打闹抑或发呆

然后你心满意足的走回教室,轻轻叹口气,自顾自的笑着

买了好多好多漂亮的信纸,写一些风花雪月的故事

然后彼此交换着写着自己的感想

没有偶像剧盛行的日子,我们用自己的心情和想象书写自己的向往

那一年.当我们没有钱的时候.

每天只是幻想着某天长大了以后

背着和身体差不多大的旅行包.

带着心中的那个人.

走遍这个世界的每一个角落.

那一年.我们还都没有钱.

可是在许多年后.

当我们开始注意到周围的人

他们背着LEVI`S的.REEBOK的书包.

穿G-STAR的衣服

浓重的睫毛膏掩饰了眼睛里最初的清澈

黑色的隐形眼镜遮挡了眼睛里闪烁的光彩

出没在星巴克或者哈根达斯.

周末的时候不是去打球而是去逛街.

拿到衣服的第一反应不是适不适合

而是看看是什么牌子.

会在手上挂满乱七八糟的丁丁坠坠.

他们不再用激情洋溢到哀伤的情书去诉说一段感情.

甚至他们会不断追求不同的女孩子去寻求刺激.

然后在人群中大谈如何如何.

去换取近乎嘲笑的惊叹.

对DUNK了若指掌却不知道宫保鸡丁的做法

常常换着不同的发型然后假装自己很低调.

又或者打电话的时候故意说些其实和自己无瓜葛的经济现象

然后再很正经的说SUPER-STAR黑灰版式多么好看.

心中的女孩子开始划出价格.

然后送名贵的香水和戒指.

爱情在这个年龄被商品化.

或者.

商品被爱情化.

男孩子开始游弋于众多女孩子之间.

这样.

人们会称之为.

成熟.

这样的成熟,不是我们想要

这样的成熟,只是用物质来包裹

若当真如此.

我情愿回到那一年.当我们都没有钱的时候

我们都没说那遥远的曾经

我们也没提故事的原因

青春的复刻回忆像一片云

没法子抓在手里

午后的闷热的窗外的一场大雨

让我们看见了以前的自己

把时光倒转回到那一季

窗外的树 爱哭的风

烦恼的我 聪明的你

 

看了居然有一点想哭...

在我们慢慢“有”了钱的时候,再也找不到那些纯真了。

posted @ 2008-10-14 14:14 django 阅读(86) | 评论 (0)编辑 收藏

2008年9月27日 #

有点发烧,咳嗽,去医院。一开始的医生说就是感冒,然后要验血。验完血原来那个医生不在,就换了一个,然后诊断为急性支气管炎...也没搞懂这个结果是怎么一下就跑出来的...

开了点消炎药,止咳药,就是两百多...今年陪女朋友看了两次感冒,自己去一次,没有一次低于两百块的...

而且医生看病跟流水线似的...想想,还是资本主义好...

posted @ 2008-09-27 15:41 django 阅读(26) | 评论 (0)编辑 收藏

2008年8月17日 #

今年还是蛮nb的,到今天就已经拿了35块...

举重最nb,看举重还是蛮解气的。当然了,唯一拿到银牌的兄弟估计要郁闷了...

射击美国的那个哥们...估计这辈子都有心理阴影了。每次都是最后一枪..绝对是卧底啊..不如中国也给人家发点奖金好了..

羽毛球..一个积极的林丹绝对是世界第一。这场比赛,林丹有很多次积极上网,还用不到他的杀球就已经快搞定了,打的李猴子那是满地找牙啊..说起发飙,乒乓球女团决赛,张怡宁被李佳薇赢了一局,就开始发飙了..打的大家都只能摇头了..

篮球,说刘伟和易建联sb吧,打西班牙第4节,真的是比sb还sb;但是关键时刻,易建联还能立功...陈江华真的是非常粘球,24秒在他手上要耗掉一大半..感觉中国的3控位,上身力量差太远了,上身力量强,也不会怕人家紧逼,用屁股拱就好了。

posted @ 2008-08-17 22:56 django 阅读(80) | 评论 (0)编辑 收藏

2008年8月12日 #

http://www.marcandangel.com/2008/06/02/50-things-everyone-should-know-how-to-do/#comment-183407

英文的,里面介绍了如何做50件事情,从生火,做饭到管理时间,学外语,面试,到怎样抱孩子... 150个有用的链接,足够学习好久。

posted @ 2008-08-12 09:36 django 阅读(53) | 评论 (0)编辑 收藏

2008年8月3日 #

The Saltwater Room by Owl City
I opened my eyes last night and saw you in the low light
Walking down by the bay, on the shore, staring up at the planes that aren’t there anymore
I was feeling the night grow old and you were looking so cold Like an introvert
I drew my over shirt Around my arms and began to shiver violently before 
You happened to look and see the tunnels all around me
Running into the dark underground
All the subways around create a great sound
To my motion fatigue: farewell
With your ear to a seashell You can hear the waves in underwater caves
As if you actually were inside a saltwater room

Time together is just never quite enough
When you and I are alone, I’ve never felt so at home
What will it take to make or break this hint of love
We need time, only time
When we’re apart whatever are you thinking of.
If this is what I call home, why does it feel so alone? 
So tell me darling, do you wish we’d fall in love?
All the time, All the time…

Can you believe that the crew has gone and wouldn’t let me sign on?
All my islands have sunk in the deep, so I can hardly relax or even oversleep
I feel as if I were home some nights when we count all the ship lights 
I guess I’ll never know why sparrows love the snow 
We’ll turn off all of the lights and set this ballroom aglow


posted @ 2008-08-03 14:27 django 阅读(49) | 评论 (1)编辑 收藏

2008年7月27日 #

Randy Pausch就是作最后一课的演讲的教授.偶尔一次机会看到了演讲的录像,真的很感动,也很受启发.后来还定期到他的主页去看他的病情.

今天看到了很不幸的消息,Randy已经走了...在坚持了差不多一年...

没有看过演讲录相的强烈推荐去看一下. http://www.randypausch.cn/

posted @ 2008-07-27 23:15 django 阅读(36) | 评论 (0)编辑 收藏

仅列出标题  下一页