Vincent.Chan‘s Blog

常用链接

统计

积分与排名

网站

最新评论

置顶随笔 #

[置顶]DVDrip、HDrip、BDrip等 知识资料汇总

     摘要:   阅读全文

posted @ 2008-01-19 04:08 Vincent.Chen 阅读(577) | 评论 (0)编辑 收藏

2010年4月27日 #

博客转移

本博客决定转移,请访问新地址 http://vincentchan.cn/
另外如果有人有blogjava转wordpress的博客搬家工具,可以共享一下~~

posted @ 2010-04-27 19:15 Vincent.Chen 阅读(231) | 评论 (0)编辑 收藏

2009年4月30日 #

eclipse polish debug error

I have seen something like that if the option "Suspend execution on uncaught exceptions" in windows/preferences/Java/Debug is checked. It must be unchecked to get the debugger to work.

posted @ 2009-04-30 09:34 Vincent.Chen 阅读(183) | 评论 (0)编辑 收藏

2009年4月23日 #

诺基亚软件

电源文件
汉化

posted @ 2009-04-23 18:55 Vincent.Chen 阅读(169) | 评论 (0)编辑 收藏

2009年3月23日 #

Axis客户端调service产生java.lang.reflect.InvocationTargetException错误

Tomcat+Axis客户端调service产生java.lang.reflect.InvocationTargetException错误

产生这个文题的原因是

1.server端发布的webservice程序中调用了某些jar或class,而服务器上却没有,解决方法是把jar或class拷贝到tomcat\common\lib或虚拟目录的web-inf\lib目录下
2.调用的方法出现了特殊的exception.但是你服务器上面没有捕获到

 我一开始用jbuilder开发程序的时候,service端引用了 一些I2的jar,单调service的程序总是成功,一到Client端调用service时,service端就报这个错误,于是百度的一把,无意间 看到了CSDN上的一位高手的解释,于是有点恍然大悟,因为我在jbuilder中设置了环境变量,调式才没问题,而部署的服务器上没有这些 jar,service执行的时候找不到从而报错,而且在我的虚拟目录下的lib目录中又新建了个文件夹,把jar放在新建的文件夹下,估计这也是问题之 一,后来我把用到了jar全部考到tomcat\common\lib下,用Client去调service时终于不报错了,看来这文件还不能乱放阿 (jar一定要放在lib目录下俄,汗那)

posted @ 2009-03-23 09:09 Vincent.Chen 阅读(3448) | 评论 (0)编辑 收藏

2009年3月14日 #

Eclipse + MinGW + Qt开发环境设置

     摘要:   阅读全文

posted @ 2009-03-14 13:34 Vincent.Chen 阅读(387) | 评论 (0)编辑 收藏

2008年7月4日 #

安妮宝贝经典语录

     摘要:
●我喜欢寂寞的人,因为他们善良
●伤口是别人给予的耻辱,自己坚持的幻觉。
●某天如果我觉得不再爱你了,我就不会再感觉寂寞。
●我不相信爱情,但我可以接受它。
●当一个女子在看天空的时候,她并不想寻找什么。她只是寂寞。
  阅读全文

posted @ 2008-07-04 23:42 Vincent.Chen 阅读(399) | 评论 (0)编辑 收藏

2008年7月1日 #

最近在网上看到一段话

女孩子二十岁左右是她最美丽的年华
这时她心地最善良,有点成熟,又有点孩子气

男孩子二十岁左右是他最黯淡的日子,这时他什么都没有,不能独立却又不想依赖,挣扎着
彷徨着,寻找着自己的位置。
所以,
如果一个男孩子在他二十岁左右的时候遇到一个年纪相当的女孩子,那一定要珍惜她,因为
这个女孩子用自己最美丽的年华陪他走过了最黯淡的日子!女孩只要陪他走过,女孩子将永
远幸福下去……

posted @ 2008-07-01 00:34 Vincent.Chen 阅读(237) | 评论 (0)编辑 收藏

2008年6月24日 #

转:被孤独诅咒了的青春

那天大姨来看我,一起吃顿饭,又把我循循教导一番,给我举了表姐单位几位的大龄女青年
的例子,告诫我一定不要眼光太高,哪里有十全十美的人云云。

我只能苦笑,哪里有什么高标准......

以前很奇怪,为什么一说到这个事情,大家都会不约而同的认定是我眼光高,太挑剔了。后
来想明白,可能也是大家的仁慈。那么若不是眼光高,那又是为什么呢?他们很奇怪,我也
很奇怪。

      前言:我知道造成这样孤独的生活是我的错,但不知道自己错在哪里,所以只好认为
是被孤独诅咒了。

年少时曾经暗恋过的人,早已过上王子公主的幸福生活;

年轻时深刻爱上的人,早已绝尘而去;

多年来默默关怀自己的人,实在是不可以执手相望;

生命中匆匆过往的形形色色的男子,终究也是路人;

于是这最年轻的年华,很是奇怪的,真的被孤独诅咒了一样。


或许上帝开了个不小的玩笑,一个骨子里自视甚高的女子,一个曾经对感情充满无限幻想的
人,却在现实生活中不得不抬头面对这样惨淡而落寞的情路。从那个闭塞的小县城,一步步
走到今天,从来都相信通过自己的努力可以改变命运,但是这尴尬的情境,终于让我懂得,
有些事情确实不能如自己所计划的实现。

这已是我在大学里度过的第七个年头,多年做学生的生涯终究要落下帷幕。身边的人你来我
往,变的总是别人的生活,不变的总是孤独的自己。变的总是不同的生活轨迹,从家乡的小
县城,到大连,从大连到京城,从京城到上海,不变的总是漫长旅途中孤独的身影。

2006年的情人节,境况依旧如往。这个城市有千万朵玫瑰绽放,没有一朵是为我而开。刚刚
告别温暖的家回校,中午时收到拒电,一份最为盼望的工作希望破灭,晚上去冷清的食堂吃
了份冰冷的炒面。到了办公室,空无一人,一种强烈的彻底的失败感突然袭来,蔓延全身,
感到了人生走到毫无希望和乐趣的地步,终于支撑不住,趴在桌子上,大哭一场。

彷佛是被一张无形的巨网罩住,我不想过这样的生活,可是为什么我总也摆脱不掉!


将马思洛的需求层次论用来解释爱情,给朋友讲的头头是道,被她评为最经典和创意的爱情
理论。我曾装作老道的样子,告诫她我们一定要寻找到满足自己最高层次需求的一份感情,
而如今的自己已再也不敢有此奢望。只求有一人,满足自己安全的需要,交往的需要,摆脱
漂泊感和恐惧感的需要。

人在旅途时,往往更加脆弱。每每奔波在路上,一个人赶车,候车,坐车,慢慢长途中,看
着身边的旅伴们, 年轻的,年老的,互相照顾,我甚至觉得哪怕是随便怎么样一个人,陪
在我身边,为我拉个箱子,为我泡一碗面,或者为我掖掖被角,都能让我万分感动。

这次去上海,住华东理工我高中老友之女朋友宿舍内。同屋另外一个女孩子,端庄秀气,同
样借居于彼。考研、上班,与在上研的男友一起奋斗,薪酬甚为微薄,工作十分忙碌,生活
极为艰辛。每日众人酣睡之际,她已起身赶车,颠簸一个多小时,在郊区一小诊所作护士,
每晚下班,要看书复习。临近大考几个月,男友每晚都陪她在自习室复习至深夜,再送她回
来。

然而造化弄人,连考两年未果。我去当晚,正逢女孩得知考研分数,难受的不知道怎么好。
男友极为温和,陪了她一整天,劝慰她不是她的原因,是自己查分的手太臭。两人在外面站
半天,回来时女孩本打算买个土家烧饼给男友吃,又觉得自己考的丢人,对不住他,不好意
思再对他好,一扭头跑了回来。

我是躺在床上,默默地听这个女孩子的叙述,想象2005年冬天的上海,房间里没有一丝暖意
,那样的生活.......这样相濡以沫的爱情,我只是在幻想中有过。我知道女孩看我的眼神
里,充满了无限的羡慕,羡慕我的学业、前途如此一帆风顺,可是她不知道我对她的羡慕,
每晚下班Tail看书复习。临近大考几个月,男友每晚都陪她在自习室复习至深夜,再送她回
来。

然而造化弄人,连考两年未果。我去当晚,正逢女孩得知考研分数,难受的不知道怎么好。
男友极为温和,陪了她一整天,劝慰她不是她的原因,是自己查分的手太臭。两人在外面站
半天,回来时女孩本打算买个土家烧饼给男友吃,又觉得自己考的丢人,对不住他,不好意
思再对他好,一扭头跑了回来。

我是躺在床上,默默地听这个女孩子的叙述,想象2005年冬天的上海,房间里没有一丝暖意
,那样的生活.......这样相濡以沫的爱情,我只是在幻想中有过。我知道女孩看我的眼神
里,充满了无限的羡慕,羡慕我的学业、前途如此一帆风顺,可是她不知道我对她的羡慕,
羡慕她如此幸运,有这样一个心地纯正的、这样真心爱她的人。


日子一天天总会过去,若不是立志独身,将来总会遇见某个人,与之结婚,一起生活,幸福
或者不幸福;若不出大的意外,将来总会有更多的钱,房子,车子,总归会有这样形式上完
整的婚姻、丈夫,表面上热闹的生活。anyway,以后的生活与现在无关。但是这被孤独诅咒
了的一个女子最美好的青春岁月,会成为我一生中永远挥之不去的遗憾

posted @ 2008-06-24 00:13 Vincent.Chen 阅读(212) | 评论 (0)编辑 收藏

2008年4月15日 #

关于ChartDirector的中文问题完美解决

ChartDirector是一个图表工具,类似JFreeChart,只是它是商业软件。那为何还要用它?因为它画出来的图表比JFreeChart精细,好看得多。这好像是一个香港公司开发的?!http://www.advsofteng.com/
它文档上说了,它内部采用UNICODE编码。所以应该不会有中文[非英文体系]乱码问题。但是实际好像还是会出现乱码,网上搜索了一通大多解决的不是很彻底,根据自己试验解决如下:
1、
JSP中增加:
<%@ page contentType="text/html; charset=GB2312"%>
//
此处的charset要注意设置,也可设置成其他支持中文的编码,然后注意保存的jsp文件要保存成相应编码
//很多乱码皆由于保存的编码和这里声明的编码不一致导致[用EmEditor等工具保存时可以选择编码]
//这里不声明默认采用ISO-8859-1编码读取,所以有网友说需要将中文编码为ISO-8859-1即:
//new String("中文".getBytes("ISO-8859-1"))

2、设置Chart默认字体:

BaseChart.setDefaultFonts("simsun.ttc","simsun.ttc","simsun.ttc","simsun.ttc");

如果在非windows系统下使用,可以拷贝windows系统下的simsun.ttc到classes路径下,重启服务器即可显示中文

然后其他的一些字体大小等都要一个个设置了,因为默认英文字体大小显示中文不好看

这样就可以很完美显示中文了。比起JFreeChart来好多了,JFreeChart虽然也可以解决中文显示问题,但是中文字体发虚,好像目前无法解决。

posted @ 2008-04-15 20:06 Vincent.Chen 阅读(5299) | 评论 (5)编辑 收藏

2008年4月12日 #

Topsite

     摘要:   阅读全文

posted @ 2008-04-12 09:28 Vincent.Chen 阅读(369) | 评论 (0)编辑 收藏

WareZ

     摘要:   阅读全文

posted @ 2008-04-12 09:28 Vincent.Chen 阅读(442) | 评论 (0)编辑 收藏

WAREZ无形帝国

     摘要:   阅读全文

posted @ 2008-04-12 09:25 Vincent.Chen 阅读(217) | 评论 (0)编辑 收藏

WareZ与0Day的故事- -

     摘要:   阅读全文

posted @ 2008-04-12 09:21 Vincent.Chen 阅读(511) | 评论 (0)编辑 收藏

2008年4月2日 #

在windows上用源代码编译安装MPlayer【转载】

     摘要:   阅读全文

posted @ 2008-04-02 21:38 Vincent.Chen 阅读(4199) | 评论 (0)编辑 收藏

2008年2月2日 #

转:利用JFreeChart绘制股票K线图完整解决方案

     摘要:   阅读全文

posted @ 2008-02-02 20:49 Vincent.Chen 阅读(3356) | 评论 (0)编辑 收藏

JFreeChart库包的简介【转载】

     摘要:   阅读全文

posted @ 2008-02-02 20:41 Vincent.Chen 阅读(392) | 评论 (0)编辑 收藏

JFreeChart中文文档【转载】

     摘要:   阅读全文

posted @ 2008-02-02 20:34 Vincent.Chen 阅读(827) | 评论 (0)编辑 收藏

2008年1月20日 #

[转载]个人对400余部影片的观后感(纯主观)

     摘要:   阅读全文

posted @ 2008-01-20 22:01 Vincent.Chen 阅读(35716) | 评论 (17)编辑 收藏

2008年1月19日 #

DVDrip、HDrip、BDrip等 知识资料汇总

     摘要:   阅读全文

posted @ 2008-01-19 04:08 Vincent.Chen 阅读(577) | 评论 (0)编辑 收藏

2007年7月18日 #

AppFuse2 建立新project命令

ArchetypeCommand
JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
Core
(backend only)
mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject

posted @ 2007-07-18 22:58 Vincent.Chen 阅读(993) | 评论 (0)编辑 收藏

2007年7月2日 #

候捷谈反射机制(转)

     摘要: Reflection 是Java被视为动态(或准动态)语言的一个关键性质。这个机制允许程序在运行时透过Reflection APIs取得任何一个已知名称的class的内部信息,包括其modifiers(诸如public, static 等等)、superclass(例如Object)、实现之interfaces(例如Cloneable),也包括fields和methods的所有信息,并可于运行时改变fields内容或唤起methods。本文借由实例,大面积示范Reflection APIs。  阅读全文

posted @ 2007-07-02 23:58 Vincent.Chen 阅读(751) | 评论 (0)编辑 收藏

(转)Polymorphism(多态性)很X,大家注意少儿不宜

     摘要: Polymorphism shouldn't be a new concept to anybody. You deal with it every day in the real world. There's more than one class of cat to skin, but you skin 'em the same way, even if the specific instance is completely new to you. Let's say for example you want to fuck a hole. You fuck all holes the same. You don't care if that hole happens to be a mouth, an ass, or a pussy, you're gonna fuck it the same way regardless. However, the mouth, pussy, or ass may respond differently to the fucking.  阅读全文

posted @ 2007-07-02 23:54 Vincent.Chen 阅读(1869) | 评论 (1)编辑 收藏

2007年6月29日 #

Eclipse Europa发布。。。

Eclipse Europa is the annual release of Eclipse projects. Like last year’s Callisto release, the Europa release is a coordinated release of different Eclipse project teams. This year, the annual release includes 21 projects. By releasing these projects at the same time, the goal is to eliminate uncertainty about version compatibility and make it easier to incorporate multiple projects into your environment.

While Europa is about the simultaneous release of twenty one projects, it is not a unification of the projects - each project remains a separate open source project operating with its own project leadership, its own committers, and its own project plan.

 

posted @ 2007-06-29 00:19 Vincent.Chen 阅读(534) | 评论 (0)编辑 收藏

2007年6月7日 #

Look'N'Stop规则包

确实很强大,提供网上的规则包下载
Lns规则20060614.rar
wifi_secure

posted @ 2007-06-07 00:01 Vincent.Chen 阅读(4531) | 评论 (1)编辑 收藏

2006年6月4日 #

WebWork学习小记

1、集成各种view
推荐直接使用 result type 集成
2、在集成freemarker时候需要注意:
  1)<#assign ww=JspTaglibs["/WEB-INF/lib/webwork.tld"] />已不用因为webwork2.2的freemarker的tag支持是内置的,
  2)${wwUtil}已换成${webwork}
3、使用sitemesh时,一般推荐使用其PageFilter得扩展。
  1)Velocity:VelocityPageFilter
  2)Freemarker:
FreeMarkerPageFilter
  3)ActionContextCleanUp的作用是告诉会通知FilterDispatcher在正确的时间清除请求.否则,ActionContext将在SiteMesh修饰器访问数据之前被清除.
  ∴ 使用的时候web.xml加声明(顺序很重要)
<filter>
<filter-name>webwork-cleanup</filter-name>
<filter-class>
   com.opensymphony.webwork.dispatcher.ActionContextCleanUp
</filter-class>
</filter>
<filter>
<filter-name>sitemesh</filter-name>
<!-- 此处的XXX为Velocity或FreeMarker,根据实际而定 -->
<filter-class>com.opensymphony.webwork.sitemesh.XXXPageFilter</filter-class>
</filter>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>webwork-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

posted @ 2006-06-04 17:02 Vincent.Chen 阅读(766) | 评论 (0)编辑 收藏

2006年3月15日 #

关于ResultSet的关闭问题

在Connection上调用close方法会关闭Statement和ResultSet吗?

级联的关闭这听起来好像很有道理,而且在很多地方这样做也是正确的,通常这样写
Connection con = getConnection();//getConnection is your method
PreparedStatement ps = con.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
……
///rs.close();
///ps.close();
con.close();  // NO!
这 样做的问题在于Connection是个接口,它的close实现可能是多种多样的。在普通情况下,你用 DriverManager.getConnection()得到一个Connection实例,调用它的close方法会关闭Statement和 ResultSet。但是在很多时候,你需要使用数据库连接池,在连接池中的得到的Connection上调用close方法的时候,Connection可能并没有被释放,而是回到了连接池中。它以后可能被其它代码取出来用。如果没有释放Statement和ResultSet,那么在Connection上没有关闭的Statement和ResultSet可能会越来越多,那么……
相反,我看到过这样的说法,有人把Connection关闭了,却继续使用ResultSet,认为这样是可以的,引发了激烈的讨论,到底是怎么回事就不用我多说了吧。

所以我们必须很小心的释放数据库资源,下面的代码片断展示了这个过程

Connection con = null;
PreparedStatement ps = null;
ResultSet rs = null;

try {
    con = getConnection();//getConnection is your method
    ps = con.prepareStatement(sql);
    rs = ps.executeQuery();
    ///...........
}
catch (SQLException ex) {
    ///错误处理
}
finally{
    try {
        if(ps!=null)
            ps.close();
    }
    catch (SQLException ex) {
        ///错误处理
    }
    try{
        if(con!=null)
            con.close();
    }
    catch (SQLException ex) {
        ///错误处理
    }
}

很麻烦是不是?但为了写出健壮的程序,这些处理是必须的。



上面这东西讲得真是精辟。

posted @ 2006-03-15 23:15 Vincent.Chen 阅读(4316) | 评论 (0)编辑 收藏

2006年2月21日 #

custom swt widgets, a list...(转)

Everybody knows that the basic native widgets in swt lack a lot of flexibility and features. An approach to solve these shortcomings is to build custom swt widgets that do not rely on native widgets but are custom drawn - the same approach that swing took. A good example is KTable. The custom swt widgets - custom drawn and aggergated native ones - I currently know of are:

  • swtplus: http://swtplus.textdriven.com/
    • PGroup: an expandable group widget
    • PLink: an image hyperlink widget
  • Jaret: http://www.jaret.de/index.html
    • timebars: a widget showing intervals in a Gantt chart. The widget implementation is combined for JFC/Swing and the SWT toolkit. Learn more about the timebar widget and it's features here. LICENSE: GPL (commercial license available)
    • table: custom drawn table widget for the SWT toolkit.
    • datechooser: a widget for selecting dates in a classical drop down style featuring the display of holidays and other special days. Learn more
  • novocode: http://www.novocode.com/swt/
    • CustomSeparator: Instances of this class are non-native separator lines.
    • FramedComposite: Instances of this class are composites with a border around the contents.
    • Hyperlink: A hyperlink text label.
    • LiveSashForm: Like a regular SashForm, the LiveSashForm lays out its children in a Row or Column
    • SizeGrip: A non-native size grip which looks (and almost feels) like the native Win32 size grip.
  • Ktable: http://sourceforge.net/projects/ktable
    • KTable is a custom SWT table widget that provides a flexible grid of cells to display data. Since it is custom-drawn, it does not have the restrictions of the native SWT Table control.
  • Gface: http://gface.sourceforge.net/
    • Search Box - Searchable drop-down list
    • Date Picker - UI widget for visually picking a day in a month.
    • Date Combo - Combo box that opens the date picker to select date
    • Hour Selection Combo - CCombo to select hour in a day
  • SWT Dock: http://tweetypie.doc.ic.ac.uk/~jr200/twiki/bin/view/SWTDock/WebHome
    • Eclipse Docking API (2.1) ported back to Java from .NET.

posted @ 2006-02-21 22:39 Vincent.Chen 阅读(1058) | 评论 (0)编辑 收藏

2006年2月14日 #

一个高效简洁的Struts分页方法

 

posted @ 2006-02-14 21:27 Vincent.Chen 阅读(567) | 评论 (0)编辑 收藏

XSL 学习笔记 —— 中级篇

  

posted @ 2006-02-14 21:26 Vincent.Chen 阅读(486) | 评论 (0)编辑 收藏

XSL 学习笔记 —— 基础篇

 

posted @ 2006-02-14 21:24 Vincent.Chen 阅读(551) | 评论 (0)编辑 收藏

仅列出标题  下一页