- 博客(31)
- 资源 (3)
- 收藏
- 关注
原创 解决:Connections could not be acquired from the underlying database!
本文转载自http://jyao.iteye.com/blog/1915561 og4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.org.quartz.SchedulerConfigException: Failure occured during job recovery....
2013-12-01 16:14:08
515
原创 游戏测试常见Bug
本文翻译自《Game Development Essentials -- QA and Testing》。 作为一个测试员,主要的目标是: 找到Bugs 复现Bugs 提交Bugs报告 次要的目标是: 验证Bugs已经被修复 确实这个游戏好玩 Bug严重程度: 1. Low 低 修复不修复都...
2013-03-24 11:47:23
3893
原创 如何让MediaPlayer实现AB段复读功能
近日在做一个学习法语的小应用,被MP3AB段复读的功能困扰了很久,最后终于在网上找到一个解决方法,就是使用CountDownTimer让MediaPlayer只播放MP3的某个区段,轻松解决了AB段复读的功能。详细代码如下: [code="java"] public void play(final String filePath) throws Exception { try { i...
2012-03-21 00:36:47
992
原创 Android模拟器快捷键大全
Android模拟器快捷键大全 [url]http://www.android123.com.cn/moniqi/29.html[/url] [quote] Android模拟器同样存在很多快捷键,当模拟器运行时,可以使用下面的热键来操作android emulator,Android开发网友情提示这样比键盘和鼠标操作更高效,不妨试一下 When running the emulator...
2012-03-06 01:39:40
404
原创 CSS float属性
下面[url]http://www.w3school.com.cn[/url]对float属性的介绍: [quote]float 属性定义元素在哪个方向浮动。以往这个属性总应用于图像,使文本围绕在图像周围,不过在 CSS 中,任何元素都可以浮动。浮动元素会生成一个块级框,而不论它本身是何种元素。 如果浮动非替换元素,则要指定一个明确的宽度;否则,它们会尽可能地窄。 注意:假如在一行之上只...
2012-03-03 15:06:36
190
CSS文集(The CSS Anthology) 第三章 CSS和图片
[b]1. 为图片加边框[/b] 以下CSS中,第一种是以详细方式进行设置,第二种以缩略形式进行设置。 [code="html"] [/code] [code="css"]img.pg60 { border-width : 1px; border-style : solid; border-color : #000000; } .pg60_i...
2012-02-18 21:07:06
160
CSS文集《The CSS Anthology》 第二章 文本格式化及其它基础知识 (2)
[b]11. 为段落文本加高亮[/b] [code="html"] Chinese-style Stuffed Peppers Below, I've created a CSS rule for all te level-one headings in a document. The result is shown in Figure 2.11. hello, w...
2012-02-18 19:46:25
396
原创 CSS文集《The CSS Anthology》 第二章 文本格式化及其它基础知识 (1)
[size=x-large]第二章 文本格式化及其它基础知识(Text Styling and Other Basics)[/size] 《The CSS Anthology(CSS文集)》包含100多个实用的小例子,非常适合入门者学习CSS相关的知识。 [b]1. 用CSS替换标签[/b] 曾几何时,在CSS被广泛接纳之前,很多Web开发者都是使用标签在网页上为文本加样式。但是这种...
2012-02-15 13:25:59
148
原创 Web-Harvest: Set a Proxy Server
[code="java"]InputSource is = new InputSource(new StringReader(script)); info("setting up scraper ... "); ScraperConfiguration scraperConfig = new ScraperConfiguration(is); Scraper scraper = new ...
2011-06-09 11:36:39
190
原创 Beanshell : Setting variables in WebHarvest scripts
print("sys.isVariableDefined(\"headerList2\"):" + sys.isVariableDefined("headerList2")); sys (即SystemUtilities) 的getVar( )的取值顺序是:先从FunctionContext中取,再从Scraper的Context中取。 <var/>的取值是:会从传入的Co...
2011-06-09 11:34:08
165
原创 ExceptionUtils : A very useful class from apache commons
apache.commons.lang ExceptionUtils.getFullStackTrace(e) catch (Exception e) { //print("====threadChanged.toString():" + threadChanged.toString()); //print("====forumDateFrmt:" + foru...
2011-06-09 11:23:30
134
原创 调试内嵌的javascript
调试诸如: [code="java"]document.write('');[/code] 生成的 javascript ? 使用 Google Chrome 的 developer tools 吧。在 FireFox 3.6.11 上的 Firebug 不能调试啊。 IE ?
2011-06-09 11:22:21
191
原创 Topic Detection -- Kea
gate-5.2.1-build3581-ALL\plugins\Keyphrase_Extraction_Algorithm\src\gate\creole\kea\Kea.java Why top detection? Generally, one post focus on one topic which may mainly from the first po...
2011-06-09 11:21:38
248
原创 WH : Stupid !! toString().trim().length() > 0
使用变量前先判断一下它有没有内容(因为在 Facebook 里并不是每一个 Post 都有 Comment !!) : ${commentsCount.toString().trim().length() > 0 && commentsCount.toInt() == 1} 而不是: ${commentsCount.toInt...
2011-06-09 11:19:22
256
原创 WH : && => &&
<if condition="${ (commentsCount.toString().trim().length() > 0) &amp;&amp; (commentsCount.toInt() > 1) }"> <call-inline name="fetchComments"></call-inline&g
2011-06-09 11:12:15
132
原创 Web-Harvest: variables!!
Getting sized of a list variable: ListVariable.toList().size() Getting content of a string variable: NodeVariable.toString() beanshell 中的变量也是 context 中的变量,所以 setContextVar() 不能设置...
2011-06-09 11:11:54
142
原创 Spring WebContextApplication
问题: Closing WebContextApplicaton Spring 启动后自动退出。 原因:Hehe ,因为还有 Tomcat 跑在相同的端口。
2011-06-09 11:11:14
127
原创 Spring : 隐藏的依赖
可以在 Bean 定义上加 attribute: "depends-on=BEAN_NAME1[,BEAN_NAME2][,BEAN_NAME3]...".
2011-06-09 11:09:04
114
原创 Linux : 生成随机密码
生成 6 位随机密码 $ echo `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c6` 生成 8 位随机密码 $ echo `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c8`
2011-06-09 11:08:34
251
原创 Eclipse : Order and Export
如果本项目所引用的 jar 包也要被其它项目用到,那么需要在本项目的 Build Path 中, Order and Export 选项页把这些 jar 勾选。
2011-06-09 11:05:54
514
原创 Beanshell : becareful of the { }
It will cause some unexpected problems to variables.
2011-06-09 11:04:04
134
HTMLUnit : javascript 对页面的更改如何获得
HTMLUnit acts like a real browser, so everything that the javascript done in the HTML page's DOM model will not affect the source of page. But we can get the updated DOM model from using this metho...
2011-06-09 11:02:43
171
原创 Eclipse:生成SVN更改信息
"Team" -> "Show History" -> Right click on a revision number -> select "Generate ChangeLog" -> Select "svn log with affected paths"
2011-06-09 10:57:12
197
原创 在JSP中得到绝对地址
basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/"; 在HTML的Head标签中中加入一个Base标签: 那么页面上的所有链接在被点击或请求时,都会加上这个basePath前缀...
2010-09-10 11:26:47
164
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅