- 博客(83)
- 资源 (10)
- 收藏
- 关注
转载 从今天起,我要做一个懒惰的程序员
本文写给所有可爱的程序员,(我)你们都是一群可爱的,用双手建造世界的思想家。从今天起,我要做一个懒惰的程序员。第一 拒绝鼠标从今天,我将拒绝鼠标。鼠标,是鼠标手的根源,无数的程序员都被鼠 标手所困扰,这似乎已经成为了程序人员的专利。我们养成了一个一个的“恶习”,比如,滥用鼠标右键刷新,看文档的时候,喜欢用鼠标来标记正在阅读的段落等 等。这些非常规的使用使我们的手得了严重的疾病,
2013-03-10 02:29:21 825
转载 事务(脏读,不可重复读,虚读)
脏读 dirty reads:当事务读取还未被提交的数据时,就会发生这种事件。举例来说:Transaction 1 修改了一行数据,然后 Transaction 2 在 Transaction 1 还未提交修改操作之前读取了被修改的行。如果 Transaction 1 回滚了修改操作,那么 Transaction 2 读取的数据就可以看作是从未存在过的。 不可重复的读 non-repeat
2010-01-30 17:00:00 5869 1
事务(脏读,不可重复读,虚读)
脏读 dirty reads:当事务读取还未被提交的数据时,就会发生这种事件。举例来说:Transaction 1 修改了一行数据,然后 Transaction 2 在 Transaction 1 还未提交修改操作之前读取了被修改的行。如果 Transaction 1 回滚了修改操作,那么 Transaction 2 读取的数据就可以看作是从未存在过的。不可重复的读 non-repeatable ...
2010-01-30 17:00:00 439
原创 FCK学习笔记(二)
1.针对不同的FCK写单独的配置文件,配置FCK² 创建FCK时,配置如下: function switchtxt()//我采用的textarea替换的方法{var oFCKeditor = new FCKeditor('answ');oFCKeditor.BasePath = "${pageContext.request.contextPath}/fckedit...
2009-09-14 14:35:38 162
原创 JS取下拉框的Text和value值
页面jsp:<select name="qType" id="qType" onchange="getValAndTxt()"> <option value="null">---请选择---</option> <c:choose> <c:when test
2009-09-12 11:57:56 154
bing 我也来用用"必应"
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-07-04 09:58:00 102
转载 tomcat5_5 jndi各种配置方式分析总结(mysql)
准备工作:安装tomcat5.5(注意这点)安装mysql拷贝mysql驱动到tomcat_home/common/lib下新建一个web工程在工程中加入index.jsp <% Context ctx = new InitialContext(); String strLookup = "java:comp/env/jdbc/test";
2009-07-04 09:42:00 943
tomcat5_5 jndi各种配置方式分析总结(mysql)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-07-04 09:42:00 86
转载 myeclipse下项目不编译问题
网站要改一个文件,但把工程导入后死活不编译,但是其它工程编译,于是想到单独编译该文件,编译倒是成功了,替换后不能用!原来,如果单独编译必须得让编译器找到这个.java文件引用的所有其它类文件才行,否则不能成功编译。 后来查了IDE不编译的问题解决: 解决方法: 1:下面说一下解决问题的思路:点击project->clean清除部署文件 2:检查project proper
2009-07-02 10:42:00 3395
myeclipse下项目不编译问题
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-07-02 10:42:00 80
转载 Anders Hejlsberg
在我的世界里,Anders Hejlsberg是如同神一般存在的人物. Delphi和C#的缔造者,Borland的创始人之一,现在Microsoft的核心人物之一,在一定程度上影响着这个世界的发展.温文尔雅,为人低调.不管在Internet中还是在现实生活中,都找不到太多关于他的信息.进入Microsoft已有九年,只是到了近几年随着dotNet的问世才开始在公众面前出现.像他这样的人
2009-07-01 11:42:00 4071 1
Anders Hejlsberg
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-07-01 11:42:00 137
转载 解决Eclipse启动错误 jvm terminated. exit code 1
Eclipse时弹出了下面得错误: 网上查了下:Eclipse时弹出了下面得错误: JVM terminated. Exit code=1C:/WINNT/system32/javaw.exe-Xms40m-Xmx256m-jar D:/eclipse-SDK-3.1.2-win32/startup.jar-os win32-ws win32-arch x86-launche
2009-06-30 11:00:00 4020 3
解决Eclipse启动错误 jvm terminated. exit code 1
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-06-30 11:00:00 191
原创 Tomcat6.0+mysql+jdk1.6.0 jndi连接池的配置步骤
1. 将jdk,tomcat的环境配置好,不要忘记tomcat的环境变量配置2. 使用myeclipse开发,配置好服务器3. 新建一个web工程,首先将mysql-connector-java-5.0.8-bin.jar拷贝到Web-inf/lib/,并将这个jar包拷贝到Tomcat_Home/lib/,否则提示找不到驱动4.
2009-05-12 18:08:00 2803
Tomcat6.0+mysql+jdk1.6.0 jndi连接池的配置步骤
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-05-12 18:08:00 120
原创 FCKeditor应用笔记
1. 下载官网:www.fckeditor.netZip包:FCKeditor_2.6.4.zip,fckeditor-java-2.4.1-bin.zip,fckeditor-java-2.4.1-src.zip2. 安装使用l 将FCKeditor_2.6.4.zip的解压文件放入project的webroot/l Index.jsp
2009-05-12 18:07:00 718
FCKeditor应用笔记
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key....
2009-05-12 18:07:00 80
转载 7 words
男人和女人的区别 1. By nature 本性上 Men are polygamous by nature. Theres no doubt and theres nothing to debate about it。 从本性上讲,男人是花心的。毫无疑问,这没什么可争辩的。 Women are monogamous by nature. The same holds true
2009-03-28 13:10:00 428
转载 6 words
1. Two wrongs do not make a right. 别人错了,不等于你对了。 2. Tomorrow never comes. 我生待明日,万事成蹉跎。 3. Too much familiarity breeds contempt. 过分熟悉会使人互不服气。 4. Two of a trade seldom agree. 同行是冤家。
2009-03-09 11:58:00 376
6 words
1. Two wrongs do not make a right. 别人错了,不等于你对了。 2. Tomorrow never comes. 我生待明日,万事成蹉跎。 3. Too much familiarity breeds contempt. 过分熟悉会使人互不服气。 4. Two of a trade seldom agree. 同行是冤家。...
2009-03-09 11:58:00 82
原创 jxl学习笔记2
导出Excel表1.jsp页面传出要导出信息ID 11111111 22222222 2.servlet处理 protected void doPost(HttpServletRequest request, HttpServletResponse resp
2009-03-09 11:14:00 482
jxl学习笔记2
导出Excel表1.jsp页面传出要导出信息ID<textarea name="code" class="xhtml:nogutter:nocontrols" rows="12" cols="50"><body> <form action="outexcel" method="post">
2009-03-09 11:14:00 91
转载 5 words
1. Yoba! 对啊。 这是她们创造出来的语言,也是我最常听她们说的单字之一,基本上呢, Yoba 就是 Yes 的意思,比如她们会说, "Do you like to go swimming with us?" 我就可以回常,"Yoba!" 但是这不是正式的英文,纯粹是好玩下的产物。 2. Bam chi ga bon-bon. 是不是干了什么好事。 这群女孩子没
2009-03-07 14:27:00 557
转载 4 joks
The strongest man A guy rushes into a bar and shouts, "Whos the strongest in here?" The toughest guy looks at him and says "I am the strongest around here!" The other guy politely asks "Can yo
2009-03-06 10:57:00 906 4
4 joks
The strongest man A guy rushes into a bar and shouts, "Who's the strongest in here?" The toughest guy looks at him and says "I am the strongest around here!" The other guy politely asks "Can you...
2009-03-06 10:57:00 94
转载 3 words
1. do us a favor 「帮个忙」这句话也是超级常用的,日常生活中要请人帮忙的情况很多,也许是请人帮你拿一下东西,也许是请人帮你带便当,都可以用上这句Do me a favor.。要请人帮忙还有另一种说法,就是May I ask a favor of a you?,不过记得在别人帮完后,别忘了向人家说声谢谢!Could you do me a favor?或是Could you
2009-03-05 15:12:00 722 1
3 words
1. do us a favor 「帮个忙」这句话也是超级常用的,日常生活中要请人帮忙的情况很多,也许是请人帮你拿一下东西,也许是请人帮你带便当,都可以用上这句Do me a favor.。要请人帮忙还有另一种说法,就是May I ask a favor of a you?,不过记得在别人帮完后,别忘了向人家说声谢谢!Could you do me a favor?或是Could you ...
2009-03-05 15:12:00 97
转载 java实现文件下载
/** 该类使用方法: 在使用struts框架(或其他框架)时,如果从action转到该servlet,有一点要注意。就是在使action之前如果是用了filter,并且在filter调用了getWriter()方法,那么action跳转到该servlet时,必须是redirect形式,否则会出错。出错信息大致如下: java.lang.IllegalStateException
2009-03-05 10:05:00 1407 1
java实现文件下载
/** 该类使用方法: 在使用struts框架(或其他框架)时,如果从action转到该servlet,有一点要注意。就是在使action之前如果是用了filter,并且在filter调用了getWriter()方法,那么action跳转到该servlet时,必须是redirect形式,否则会出错。出错信息大致如下: java.lang.IllegalStateException...
2009-03-05 10:05:00 103
转载 用Java实现HTTP文件队列下载
许多用户可能会遇到这样的情况:在网站上发现一个很好的资源,但是这个资源是分成了很多个文件存放的,如果想把它保存到本地,只有靠用户点击另存来完成保存,如果资源分了几百甚至上千上万,那简直是个灾难。 在Internet上很多的资源分成多个文件存放时,它的文件命名是有一定的规则的;正因如此,我们就可以用程序来完成这个资源的完全下载。 1. 基础知识 在Internet上,我
2009-03-05 10:03:00 543
用Java实现HTTP文件队列下载
许多用户可能会遇到这样的情况:在网站上发现一个很好的资源,但是这个资源是分成了很多个文件存放的,如果想把它保存到本地,只有靠用户点击另存来完成保存,如果资源分了几百甚至上千上万,那简直是个灾难。 在Internet上很多的资源分成多个文件存放时,它的文件命名是有一定的规则的;正因如此,我们就可以用程序来完成这个资源的完全下载。 1. 基础知识 在Internet上,我们要下...
2009-03-05 10:03:00 120
转载 2 words
只有一句话:经典真的有其成为经典的理由。 (一)《Shawshank Redemption肖申克的救赎》 1.You know some birds are not meant to be caged, their feathers are just too bright. 你知道,有些鸟儿是注定不会被关在牢笼里的,它们的每一片羽毛都闪耀着自由的光辉。 2.There is so
2009-03-04 09:44:00 592
2 words
只有一句话:经典真的有其成为经典的理由。 (一)《Shawshank Redemption肖申克的救赎》 1.You know some birds are not meant to be caged, their feathers are just too bright. 你知道,有些鸟儿是注定不会被关在牢笼里的,它们的每一片羽毛都闪耀着自由的光辉。 2.There is som...
2009-03-04 09:44:00 97
原创 学习spring依赖注入--备忘
1.需要导入的JAR包 ../dist/spring.jar ../lib/jakarta-commons/commons-logging.jar ../lib/log4j/log4j-1.2.14.jar2.写配置文件 applicationContext.xml //可参考samples/jpetstore/war/WEB-INF/ap
2009-03-03 18:20:00 661
学习spring依赖注入--备忘
1.需要导入的JAR包 ../dist/spring.jar ../lib/jakarta-commons/commons-logging.jar ../lib/log4j/log4j-1.2.14.jar2.写配置文件 applicationContext.xml //可参考samples/jpetstore/war/WEB-INF/appli...
2009-03-03 18:20:00 78
原创 1 story
Going Home I first heard this story a few years ago from a girl I had met in New Yorks Greenwich Village. Probably the story is one of those mysterious
2009-03-03 14:44:00 788
1 story
Going Home I first heard this story a few years ago from a girl I had met in New York's Greenwich Village. Probably the story is one of those mysterious...
2009-03-03 14:44:00 113
转载 0 Have a Heart
Now, the VOA Special English program, WORDS AND THEIR STORIES. Im Rich Kleinfeldt with some expressions using the word heart.People believed for a long time that the heart was the center of a perso
2009-03-03 14:09:00 795
0 Have a Heart
Now, the VOA Special English program, WORDS AND THEIR STORIES. I'm Rich Kleinfeldt with some expressions using the word heart.People believed for a long time that the heart was the center of a person...
2009-03-03 14:09:00 108
Red.Hat.Linux.Fedora.Core.4基础教程(中文).part2
2009-02-25
Red.Hat.Linux.Fedora.Core.4基础教程.pdf(中文).part1
2009-02-25
jxl,jexcelapi_2_6_9_1.4.zip,Excel表导入数据库jar
2009-02-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人