我会走向何方

我又该走向何方

BlogJava 首页 新随笔 联系 聚合 管理
  15 Posts :: 2 Stories :: 17 Comments :: 0 Trackbacks

2006年10月5日 #

主要是java方面的开发,如果你知道python就更好,如果你是那种认为"什么语言都一样"就最好
当然,你如果听过jstl、spring、hibernate、lucence等opensource会更好
由于是处于创业期的团队,需要从前台照顾到后台,所以希望你的js也很出色,当然同样,你如果听过jquery、prototype、ext-js等opensource会更好


有兴趣的兄弟可以访问的网站 http://www.j.cn

可以直接简历发到我的邮箱 hama916@gmail.com

当然提供业界领先的待遇标准与晋升机会(落了俗套)

对了,欢迎北京本地实习生(外地就算了,提供不了宿舍),希望你的年轻、激情为我们的团队带来活力:-)
posted @ 2009-03-30 11:44 hama 阅读(96) | 评论 (0)编辑 收藏

How do I configure Tomcat to support remote debugging?

The short answer is to add the following options when the JVM is started:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
There are a number of ways you can do this depending on how you normally start Tomcat:

  • Set environment variables JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket and then start tomcat using catalina jpda start(sh catalina.sh jpda start).
  • If you run Tomcat using service wrapper, check the documentation for the service to determine how to set the required JVM options.
  • If you start Tomcat from within an IDE, check the documentation for the IDE to determine how to set the required JVM options.

Using catalina start and CATALINA_OPTS

Alternatively, you can set the java program's command-line arguments for the JPDA settings. For Tomcat, you specify them in the CATALINA_OPTS environment variable and the catalina.sh or catalina.bat script adds the value of the environment variable to the java command that starts Tomcat; for example:

bash:

declare -x CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
$JWSDP_HOME/bin/catalina.sh start

csh:

setenv CATALINA_OPTS "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
$JWSDP_HOME/bin/catalina.sh start

Windows:

set JPDA_TRANSPORT=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
%JWSDP_HOME%\bin\catalina start
The port does not need to be set to 8000, it may be any value appropriate for your system.

Whilst this is very useful in development it should not be used in production because of both security and performance implications.


How do I remotely debug Tomcat using Eclipse?

This answer assumes that you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to eclipse.org and read up on how to use your ide, and maybe practice a little bit before you come back to this. We're also going to assume you have some idea of what a debugger is and how to use one.

Make sure tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun!

posted @ 2007-02-06 09:02 hama 阅读(3100) | 评论 (0)编辑 收藏

由于公司的项目前期是给外包团队做的,接手的时候我们自己和外包团队都需要更新代码,但因为合同的问题,所以我们不能直接修改外包团队CVS上的代码, CVS的版本分支问题搞的头好大!
当然问题圆满解决!!!感谢车东!!!

CVS Branch:项目多分支同步开发

确认版本里程碑:多个文件各自版本号不一样,项目到一定阶段,可以给所有文件统一指定一个阶段里程碑版本号,方便以后按照这个阶段里程碑版本号导出项目,同时也是项目的多个分支开发的基础。

cvs tag release_1_0

开始一个新的里程碑
cvs commit -r 2 标记所有文件开始进入2.x的开发

注意:CVS里的revsion和软件包的发布版本可以没有直接的关系。但所有文件使用和发布版本一致的版本号比较有助于维护。

版本分支的建立
在开发项目的2.x版本的时候发现1.x有问题,但2.x又不敢用,则从先前标记的里程碑:release_1_0导出一个分支 release_1_0_patch
cvs rtag -b -r release_1_0 release_1_0_patch proj_dir

一些人先在另外一个目录下导出release_1_0_patch这个分支:解决1.0中的紧急问题,
cvs checkout -r release_1_0_patch
而其他人员仍旧在项目的主干分支2.x上开发

在release_1_0_patch上修正错误后,标记一个1.0的错误修正版本号
cvs tag release_1_0_patch_1

如果2.0认为这些错误修改在2.0里也需要,也可以在2.0的开发目录下合并release_1_0_patch_1中的修改到当前代码中:
cvs update -j release_1_0_patch_1


posted @ 2007-01-31 11:45 hama 阅读(1054) | 评论 (0)编辑 收藏


<script>
function f(m,n){
 var r = Math.round(Math.random()*(n-m))+m;
 alert(r);
}
f(0,23);
</script>

posted @ 2007-01-30 16:02 hama 阅读(190) | 评论 (0)编辑 收藏

     摘要: 将excel数据整理成sql语句   1 package  com.fangq.excel2sql;   2   3 import  java.io.BufferedReader;   4 ...  阅读全文
posted @ 2006-10-05 07:56 hama 阅读(1257) | 评论 (0)编辑 收藏