Archive for March, 2010

暨南大学《中文》练习册怪题选

Sunday, March 28th, 2010

暨南大学 中文

  • “谁”的组词

    Lesson 8 Chinatown, 练习册 5B

    p.60,

    Not easy for kids.

我们还有隐私权吗?

Friday, March 26th, 2010

 
报载四川一网民在家下载色情图片被捕,被罚3000元。

我们公民还有隐私权吗?在政府官员用公款吃喝嫖赌的今天,平头百姓在家看什么也须政府管理吗?

那些负责抓人的警察,拿着纳税人的钱,能否做点更有意义的事呢?

这种政府能否把精力放在更有意义的事情上呢?

一声叹息。

> 相关阅读(google the news below):

  男子在家下色情图被罚:据称遭熟人认出精神崩溃

  男子在家下载色情图片被罚3000元

How to enable Eclipse/Glassfish remote debugging

Monday, March 22nd, 2010

You would normally enable jdb by adding debug options into your Java start up command by attaching debugging into JVM process, like the following:

DEBUG_OPTS=”-Xdebug -Xrunjdwp:transport= dt_socket,address=1044,server=y,suspend
=n”

You would consider adding this into your Glassfish’s(V2, in my case) start up script asadmin as below:

“$AS_JAVA”/bin/java “$DEBUG_OPTS” -Dcom.sun.aas.instanceName=server -Djava.libra
ry.path=”$AS_NSS”:”$AS_INSTALL/lib”:”$AS_ICU_LIB” -Dcom.sun.aas.configRoot=”$AS_
CONFIG” -Djava.endorsed.dirs=”$AS_INSTALL/lib/endorsed” -Dcom.sun.aas.processLau
ncher=”SE” -cp “$AS_DERBY_INSTALL/lib/derby.jar”:”$AS_INSTALL/jbi/lib/jbi-admin-
cli.jar”:”$AS_INSTALL/jbi/lib/jbi-admin-common.jar”:”$AS_INSTALL/lib”:”$AS_INSTA
LL/lib/appserv-rt.jar”:”$AS_INSTALL/lib/appserv-ext.jar”:”$AS_INSTALL/lib/javaee
.jar”:”$AS_INSTALL/lib/appserv-se.jar”:”$AS_INSTALL/lib/admin-cli.jar”:”$AS_INST
ALL/lib/appserv-admin.jar”:”$AS_INSTALL/lib/commons-launcher.jar”:”$AS_INSTALL/l
ib/install/applications/jmsra/imqjmsra.jar” -Dcom.sun.appserv.admin.pluggable.fe
atures=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl com.su
n.enterprise.cli.framework.CLIMain “${@}”

Actually this will not work.

You have to log into the Glassfish admin console, under:

Application server

JVM General Settings

Debug
Enabled (check it)

Hit save

Restart Glassfish.

You’ll see Glassfish start up script spits the following message:

Listening for transport dt_socket at address: 9009
Application server is listening at address 9009 for debugger to attach using transport dt_socket

It started to listen at port 9009 by default instead of 1044.

You’ll configure your Eclipse accordingly to do remote debugging. Remember the port number 9009 instead of 1044.

一天的流水帐

Monday, March 22nd, 2010

本来想去outlet mall的,天公不作美,下起了蒙蒙细雨。后来改作在社区内散步,刚出门,微雨丶大风再加上寒冷的空气,终于让我们彻底打消了出门的念头。

昨天还是阳光灿烂,宛若暑天,今天却如寒冬一般,只能乖乖地缩在家里。只是刚刚洒过除草剂的草地,不知杂草明日会否卷土重来?

Saturday, March 13th, 2010

今天有同行的阳光
有暧昧的风
模糊的空气

杏花春雨的时候
我特立独行
然后宛然若失

芭蕉夜雨下
听够了海誓山盟

而今
依然还记得的
是古老时光的
气味

雨天

Saturday, March 13th, 2010

雨天,但是现在天有些放晴了。阳光象是透过一层油纸渗进来,白花花的,有些晃眼。

妙妙和我坐在车上, 听收音机的音乐。