Vincent.Chan‘s Blog

常用链接

统计

积分与排名

网站

最新评论

2005年12月9日 #

博客转移

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

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

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)编辑 收藏

诺基亚软件

电源文件
汉化

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

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)编辑 收藏

Eclipse + MinGW + Qt开发环境设置

     摘要:   阅读全文

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

安妮宝贝经典语录

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

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

最近在网上看到一段话

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

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

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

转:被孤独诅咒了的青春

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

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

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

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

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

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

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

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

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


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

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

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

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


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

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

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

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

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

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

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


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

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

关于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 阅读(5304) | 评论 (5)编辑 收藏

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

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

     摘要:   阅读全文

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

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

     摘要:   阅读全文

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

JFreeChart库包的简介【转载】

     摘要:   阅读全文

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

JFreeChart中文文档【转载】

     摘要:   阅读全文

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

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

     摘要:   阅读全文

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

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

     摘要:   阅读全文

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

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

候捷谈反射机制(转)

     摘要: 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 阅读(753) | 评论 (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 阅读(1880) | 评论 (1)编辑 收藏

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

Look'N'Stop规则包

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

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

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)编辑 收藏

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

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

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

 

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

XSL 学习笔记 —— 中级篇

  

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

XSL 学习笔记 —— 基础篇

 

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

GOOGLE挑战赛练习题1及答案(200分)

 

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

GOOGLE挑战赛练习题2及答案(500分)

 

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

如何把awt或者swing的UI生成一个图形文件

 

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

三步搞定!水货商坦言IBM本本验货指南

 

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

GOOGLE挑战赛练习题3及答案(1000分)

 

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

关于分页设计的一些做法

 

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

JDBC实现oracle blob 出库入库


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

https相关


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

学习Log4J笔记(转)

 

posted @ 2006-02-13 18:19 Vincent.Chen 阅读(317) | 评论 (0)编辑 收藏

KMplayer常见问题整理

 

posted @ 2006-02-12 22:55 Vincent.Chen 阅读(475) | 评论 (0)编辑 收藏

Velocity用户手册---中文版

 

posted @ 2006-02-12 12:59 Vincent.Chen 阅读(501) | 评论 (0)编辑 收藏

在网上看到华为java的面试题

 

posted @ 2006-02-12 11:10 Vincent.Chen 阅读(1028) | 评论 (1)编辑 收藏

昨天收到的email(转:还蛮搞笑)

本邮件为公益邮件,非营利。随缘而发,若您有缘收到,读完全文,心生欢喜,那是您与佛有缘;如果您能将此邮件转发给10个以上的好友,让益世文选流通世上,您将得蒙菩萨慈护,福寿绵延,家运日隆
阅读全文

posted @ 2006-02-12 11:08 Vincent.Chen 阅读(428) | 评论 (0)编辑 收藏

prototype.js开发笔记

Prototype是什么?

或许你还没有用过它, prototype.js 是一个由Sam Stephenson写的JavaScript包。这个构思奇妙编写良好的一段兼容标准的一段代码将承担创造胖客户端, 高交互性WEB应用程序的重担。轻松加入Web 2.0特性。

如果你最近体验了这个程序包,你很可能会发现文档并不是它的强项之一。像所有在我之前的开发者一样,我只能一头扎进prototype.js的源代码中并且试验其中的每一个部分。 我想当我学习他的时候记写笔记然后分享给其他人将会很不错。

查看全文

posted @ 2006-02-12 11:06 Vincent.Chen 阅读(396) | 评论 (0)编辑 收藏

prototype1.3.1源代码解读

 

posted @ 2006-02-12 11:04 Vincent.Chen 阅读(415) | 评论 (0)编辑 收藏

竹笋炒肉之Junit学习笔记(转)

JUnit是由 Erich Gamma 和 Kent Beck 编写的一个回归测试框架(regression testing framework),供Java开发人员编写单元测试之用。

查看全文


posted @ 2006-02-12 10:53 Vincent.Chen 阅读(408) | 评论 (0)编辑 收藏

MySQL的配置与使用

1、    启动 MySQL

c:\mysql\bin\ 下运行 winmysqladmin 启动

2、    登录 MySQL

初始情况下默认登录用户名 root ,密码为空。

c:\mysql\bin 下运行 mysql -uroot 即可。当我们新建用户之后按以下方式:

mysql -h(hostname) -u(username) -p(password)

3、    使用数据库

初始安装之后有一个保存系统表的数据库—— mysql ,使用以下命令可以访问数据库

use mysql;

4、    新建 MySQL 用户

root 帐号登录后,进入 mysql 数据库,执行插入语句:

insert into user (host,user,password) values('localhost','mysql',password('mysql'));

insert into user (host,user,password) values('%','mysql',password('mysql'));

flush privileges;

 

这样就为 MySQL 建立了一个名为 mysql ,密码为 mysql 的用户,第一个用于本地登录,第二个用于远程登录。

<! 注意 : user (host,user,password) 之间必须有空格隔开 >

<! 注意 : values ('','','') 之间没有空格隔开,字符串用单引号 >

5、    新建数据库

create database test;

6、    退出

quit;

7、    几个有用的 SQL 命令:

²        show databases :在刚登录之后、使用数据库之前查看现有数据库;

²        select database 显示当前数据库

²        show tables 显示当前数据库中的所有表

describe table_name :显示某表的结构

8、    备份与恢复

mysqldump -u username -p --opt  dbname >backupfileName.sql :将数据库dbname导出到 backupfileName.sql文件中

mysql dbname < backupfileName.sql:做反向工作。



posted @ 2006-02-09 00:06 Vincent.Chen 阅读(689) | 评论 (2)编辑 收藏

转载:oracle中的函数

Oracle已经内建了许多函数,不同的函数有不同的作用和用法,有的函数只能作用在一个记录行上,有的能够作用在多个记录行上,不同的函数可能处理不同的数据类型。常见的有两类,单行函数和分组函数 。

   查看全文

posted @ 2006-01-18 00:34 Vincent.Chen 阅读(501) | 评论 (0)编辑 收藏

转载:Tree2实践

通过一次小小的实践,终于了解如何使用tomahawk中的tree2这个组件了,并且写了小段程序,从xml中读取树的结构,生成一个tree,不过tree2不能直接和xml绑定是一个遗憾,那样就会省不少事情了。记下一点心得,以供后来参考了。

         tree2的操作分为两部分,一部分是在页面中通过tag定义样式相关的东西,一部分就是通过编程添加树的节点,起初看了sample以后总是以为这东西有多么的复杂,其实逻辑是很简单的,只是sample中定义了多种不同的样式的节点,看上去很复杂而已。

下面附上我对sample简化过的这段tag来说明一下。

<t:tree2 value="#{catalog.node}" var="node" id="clientside" varNodeToggler="t" >

    <f:facet name="folder">

        <h:panelGroup>

            <f:facet name="expand">

                <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>

            </f:facet>

            <f:facet name="collapse">

                <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>

            </f:facet>

            <h:outputText value="#{node.description}"/>

        </h:panelGroup>

    </f:facet>

</t:tree2>

tree2的主tag定义了tree的根节点和一些相关的参数。嵌套的那个facet定义了一种节点的样式,包括展开与关闭时的图片,以及显示的文字内容。

在程序里面,我们root TreeNodeBase = new TreeNodeBase(…)来创建一个root节点,然后通过root.getChildren().add(new TreeNodeBase(…))为其添加子节点,任何一个节点都可以添加任意多的子节点,通过这样的操作,我们可以很容易的生成一个tree的结构了,实际上,这个tree的结构是通过递归从xml中读取出来,生成一个和xml tree完全相同的结构。

除了明白如何去用这个tree2之外的收获就是,终于明白了如何去通过递归方法遍历一个树形结构,虽然在学校里学过遍历的算法,也抄过例程,但从来没有理解过是怎么一回事,终于在实践中理解了,实践才是软件的根本之道。
   程序的其它部分放在附件里面了,如果有兴趣了可以和我讨论tree2,讨论其它JSF的东西。

源文件下载

查看 解析Tree2 全文

posted @ 2006-01-14 03:43 Vincent.Chen 阅读(610) | 评论 (0)编辑 收藏

高级 SQL(转载:约束+触发器)

用约束和触发器实施商业规则

在商界,我们的确通常需要确保始终实施某些规则。例如,参与项目的雇员必须被雇用。或者想要某些事件有计划地发生。例如,如果销售员售出一批商品,则应增加其佣金。

DB2 通用数据库为此提供了一套有用的方法。 唯一约束是禁止在表的一列或多列中出现重复值的规则。 参考完整性约束确保在整个指定的表中数据一致性。 表检查约束是一些条件,它们定义为表定义的一部分,限制一列或多列中使用的值。触发器允许您定义一组操作,这些操作通过对指定的表进行删除、插入或更新操作来执行或触发。触发器可用于写入其他表、修改输入值以及发布警报信息。

查看全文

posted @ 2006-01-10 23:42 Vincent.Chen 阅读(582) | 评论 (0)编辑 收藏

Eclipse 3 插件大全

1.MyEclipse  J2EE开发插件,支持SERVLET/JSP/EJB/数据库操纵等
www.myeclipseide.com
 
2.Properties Editor  编辑java的属性文件,并可以自动存盘为Unicode格式
http://propedit.sourceforge.jp/index_en.html
 
3.Colorer Take  为上百种类型的文件按语法着色
http://colorer.sourceforge.net/
 
4.XMLBuddy 编辑xml文件
www.xmlbuddy.com
 
5.Code Folding  加入多种代码折叠功能(比eclipse自带的更多)
http://www.coffee-bytes.com/servlet/PlatformSupport
 
6.Easy Explorer  从eclipse中访问选定文件、目录所在的文件夹
http://easystruts.sourceforge.net/
 
7.Fat Jar 打包插件,可以方便的完成各种打包任务,可以包含外部的包等
http://fjep.sourceforge.net/
 
8.RegEx Test 测试正则表达式
http://brosinski.com/stephan/archives/000028.php
 
9.JasperAssistant 报表插件(强,要钱的)
http://www.jasperassistant.com/
 
10.Jigloo GUI Builder JAVA的GUI编辑插件
http://cloudgarden.com/jigloo/
 
11.Profiler 性能跟踪、测量工具,能跟踪、测量BS程序
http://sourceforge.net/projects/eclipsecolorer/
 
12.AdvanQas 提供对if/else等条件语句的提示和快捷帮助(自动更改结构等)
http://eclipsecolorer.sourceforge.net/advanqas/index.html
 
13.Log4E     Log4j插件,提供各种和Log4j相关的任务,如为方法、类添加一个logger等
http://log4e.jayefem.de/index.php/Main_Page
 
14.VSSPlugin VSS插件
http://sourceforge.net/projects/vssplugin
 
15.Implementors   提供跳转到一个方法的实现类,而不是接中的功能(实用!)
http://eclipse-tools.sourceforge.net/implementors/
 
16.Call Hierarchy 显示一个方法的调用层次(被哪些方法调,调了哪些方法)
http://eclipse-tools.sourceforge.net/call-hierarchy/index.html
 
17.EclipseTidy 检查和格式化HTML/XML文件
http://eclipsetidy.sourceforge.net/
 
18.Checkclipse 检查代码的风格、写法是否符合规范
http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm
 
19.Hibernate Synchronizer Hibernate插件,自动映射等
http://www.binamics.com/hibernatesync/
 
20.VeloEclipse  Velocity插件
http://propsorter.sourceforge.net/
 
21.EditorList   方便的列出所有打开的Editor
http://editorlist.sourceforge.net/
 
22.MemoryManager 内存占用率的监视
http://cloudgarden.com/memorymanager/

posted @ 2005-12-31 18:38 Vincent.Chen 阅读(840) | 评论 (1)编辑 收藏

在mingw环境下编译mplayer-1.0pre1的步骤

mplayer-1.0pre1支持在mingw环境下运行,参照了mplayer文档,列出安装步骤:
1 http://sourceforge.net/projects/mingw/ FILES栏中current中下载mingw-2.0.0.3.exe和msys-1.0.9.exe并解开安装,在安装完msys之后,按照提示输入mingw所在的路径。
2 下载http://www.mplayerhq.hu/MPlayer/releases/win32-beta/contrib/types.h 放在mingw安装目录的/include/sys下
3 下载http://www.videolan.org/vlc/dx7headers.tgz 解压放入mingw安装目录的/include下
4 下载mplayer-1.0pre1源代码。启动msys.bat,在shell下配置并编译。配置时没有附加选项。
5 如果在编译libfdda的库时碰到错误,在libfaad2/common.h的35行后插入 #undef _WIN32
6 编译通过后,make install时,安装man时会出错,不要管它。
   之后可以直接通过shell启动mplayer。 在p41.4,win2000下,播放效果很好,cpu占用率在40%到50%之间,占用内存8M。比起其他的播放器,cpu占用率高10%多,而内存小一半以上。 第5步是个人试验的结果,仅供参考。
   mplayer-cygwin九月份的maillist archive上,第一篇文章 那篇文章的作者说,成功在mingw上将osd menu,freetype,还有dvd支持都编译进去了,最后,用upx压了一下,mplayer.exe只有1M多 而且不带其他的东西了 他说过些时候把改动过的patch放出来(现在只有一个runtime-cpu-detection的版本可以下载) 谢谢楼上的提醒,个人觉得还是定制会符合自己的需要.这也是mplayer作者推荐的做法. 需要exe的,可以到 http://www.mplayerhq.hu/MPlayer/releases/win32-beta/ 去下.
    因为路径的问题,我没能够支持fonts,就是说不能显示字幕.但播放divx/xvid的文件良好,表现让人满意, 误解了,我也是想等他把patch都放出来,自己编译啊 runtime-cpu-detection总归不爽 我自己前两天也编译了一个版本 能播放rm和mov,能显示字幕(用mingw编译的时候,老是遇到一个fread的错误的返回值,导致vobsub格式的字幕读不出来,所以这个版本是在cygwin下编译的) 不过,由于带了很多codec,还有cygwin的dll,压缩后大概还有8M的样子. -.-! cygwin的环境实在是不稳定,推荐使用mingw。 编译下来,因为mingw不完全支持posix,所以不支持osd menu。
   此外,我不知道如何在mingw下支持gtk+的开发,所以没法编译gui。 推荐各位在windows下使用mplayer,我已经这么做了。 耗资源和内存都很小,可以说是很高效的播放器

posted @ 2005-12-11 22:08 Vincent.Chen 阅读(2485) | 评论 (3)编辑 收藏

Some on mail me to tell me ???.COM is expiring and may be released to the public within the next few days.

And ask me to let him know how much I am interesting in that Domain!
woowoo...
The whole mail:
Hi,
    I am writing to inform you that ???.COM is expiring and may be released to the public within the next few days There is a good chance that there will be several interested parties attempting to capture this domain when it is released, these will vary from parties with a genuine interest to domain name speculators otherwise known as cyber squatters who often put large price tags on such domains.
    We are domain acquisition specialists and I felt that as the owner of ???.net you would have a much more genuine interest in acquiring ???.COM. If you would like us to try and acquire this domain on your behalf then please let me know within 24 hours
    The sooner you let me know the more chance we have of acquiring the domain. If you are genuinely interested, then I recommend you either call me on (UK +44) (0) 207 471 1803 or email me a number so that I can call you, as any delays in email communication could result in missing out on this domain.


                                                        Kind Regards Gary

posted @ 2005-12-09 00:16 Vincent.Chen 阅读(333) | 评论 (0)编辑 收藏