给一个源代码研究一下!zhaiyabin@126.com
re: Install4j介绍[未登录] zero 2011-04-26 00:44
楼主有没有5.0版本的注册码?或者破解版也好?有的话请发到我的邮箱:sanma247@126.com,谢谢!
re: 关于count函数[未登录] zero 2009-10-23 10:52
李大夫果然牛气
re: 百度面试题的java实现[未登录] zero 2009-02-10 14:35
其实想想之后就是一个数学定律:
最大时间:找到离出口最近的蚂蚁,然后所有的蚂蚁同一个方向朝反向出去
最小时间:找到最靠近中心的蚂蚁,然后两边的蚂蚁朝两个方向分别出去
@银河使者
恩,确实,
貌似无论是从那个地方下手,想把东西做好做炫,还是得很熟悉“底层”的东西才行,
目前正在研究...
PS:框架为实际的需求想的还是少了点点的样子
@银河使者
呵呵,偶还是刚开始学web开发,struts2才接触一些,那我还有的看了
我看官方说的是 struts2.x的ajax一直是基于dojo的一个较早的版本,2.1.6开始将dojo提出来作为ajax插件,从此struts2要用ajax特性就要加入dojo的插件库,以及dojo-plugin的taglib
@银河使者
那看来目前struts2说的AJAX还是很难拿来做实际项目的样子
@银河使者
一段dojo-plugin的,从Struts2官方弄的有关按钮响应的例子测试,结果只有FF有反应
试了一下了面的AJAX,但是发现里面的JS特性不支持IE6啊
re: JAVA版MP3播放器[未登录] zero 2008-12-12 22:19
帮忙把.java的源代码发给我,我急用,不甚感激!!!
邮箱zgy1017@126.com
re: MySQL查询的性能优化[未登录] zero 2008-05-26 15:51
mysql 5.0中的my.ini设置缓存好像是
# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=0
re: IE 内存泄露检测工具[未登录] zero 2008-04-24 04:58
用sIEve
是jdk版本的原因,如果使用jdk1.4会报错但是使用jdk1.6就会报上面的这个错误,使用jdk1.5就正常了。
java.lang.NoSuchMethodError: javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:390)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3676)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4327)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:476)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
我在测试上面的例子的时候,发生了上面的错误
re: 如何求素数 zero 2007-02-18 13:30
我以前学过些c,今天开始学java,刚刚写的~^_^然后和楼主的比较了下,发现自己写得还是水了些哈哈,只有一个地方我认为做得比较好的,就是用乘法代替了开方,我估计这样会快一点点吧,嗯....,觉得满不错的有得和好的代码比较下,注了册还没验证完.我邮箱zero_002006@163.com,qq:358315553
public class Prime {
public static void main(String[] args) {
int[] prime_array = new int[10000];//用来保存10万以下的质数(共9592个)
prime_array[0]=3;
prime_array[1]=5;
int i,primeId=-1,m=2,prime;
System.out.println(2);//质数2直接打出^_^
for (int a = 3; a <= 100000; a += 2) {
if(m*m<a){
//避免使用sqrt()
m++;
}
for (i=0;(prime=prime_array[i])<=m;i++) {
if (a % prime == 0) {
break;
}
}
if (prime>m) {
prime_array[++primeId]=a;
System.out.print(a+" ");
}
}
for(int a = 100001; a <= 1000000000; a += 2){
if(m*m<a){
//避免使用sqrt()
m++;
}
for (i=0;(prime=prime_array[i])<=m;i++) {
if (a % prime == 0) {
break;
}
}
if (prime>m) {
++primeId;
System.out.print(a+" ");
}
}
System.out.println("\n十亿下共"+(primeId+2)+"个质数.");
}
}