简繁体中文互换的Java开源类库的使用
public static void main(String[] args) throws Exception { ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
String traditionalSrc = "...
分类:
其他好文 时间:
2015-07-08 12:59:57
阅读次数:
137
book.xsd:
book.xml:
<books xmlns:xsi...
分类:
其他好文 时间:
2015-07-08 12:59:51
阅读次数:
121
在自己的项目中,我需要使用Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK来开始新的activity同时移除之前所有的activity。我使用这个intent flag的代码如下:
Intent intent = new Intent(Gerenxinxi.this, MainPart.class);
inte...
分类:
其他好文 时间:
2015-07-08 13:02:26
阅读次数:
104
1.也可以将driver 中的drive_one_pkt 也移到pre_tran 中。更进一步,将seq_item_port.get_next_item 移到pre_tran 也是可以的。
2.其实完全可以不用sequence,只用callback 就可以实现所有的测试用例。假设A 类如下:
3.在my_driver 的main_phase 中,去掉所有其他代码,只调用A 的...
分类:
其他好文 时间:
2015-07-08 13:01:37
阅读次数:
214
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗 Ctrl + B
斜体 Ctrl + I
引用 Ctrl...
分类:
其他好文 时间:
2015-07-08 12:59:47
阅读次数:
104
在Qt QML中,它可以利用multitouch来做一些我们想做的事情。在今天的文章中,我们将介绍如何使用multitouch来做一些我们想做的事,比如在游戏中。...
分类:
其他好文 时间:
2015-07-08 12:59:25
阅读次数:
127
Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concate...
分类:
其他好文 时间:
2015-07-08 12:57:18
阅读次数:
104
Given a collection of integers that might contain duplicates, nums, return all possible subsets.Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate...
分类:
其他好文 时间:
2015-07-08 12:57:07
阅读次数:
88
程通常被称为new-handler。
注:设计“内存不足处理例程”是客户端的责任,设定“内存不足处理例程”也是客户端的责任。...
分类:
其他好文 时间:
2015-07-08 12:57:29
阅读次数:
128
原因:
XUtils中的HttpUtils框架采用的时,HttpUtils对于GET请求采用了LRU缓存处理,默认60秒内提交返回上次成功的结果。
解决方法:
HttpUtils http = new HttpUtils(10000);//10s超时
http.configCurrentHttpCacheExpiry(5000); // 设置缓存5秒,5秒内直接返回上次成...
分类:
其他好文 时间:
2015-07-08 12:56:57
阅读次数:
151
1. 问题描述 给定一个整数n,在所有不大于n的非负整数中,计算包含数字1的整数的个数。例如n=13n = 13的结果为6,包含1的数字有1,10,11,12,13。2. 方法与思路 这个问题最直观的方法就是累加1到n所有的包含1的数的个数。每个数通过循环取余10的方法判断是否包含1。但是这种思路效率并不高,数字n有lognlogn位,总得时间复杂度为O(nlogn)O(nlogn)。
利...
分类:
其他好文 时间:
2015-07-08 12:58:00
阅读次数:
115
1.小而美与factory 机制的重载
2.原始A_driver 的drive_one_pkt 如下:
1)分成3个子任务。
2)如果要构造sfd 错误的例子,只需要从A_driver 派生B_driver,并重载drive_sfd 即可。
3.如果不是分成3个子任务,而是一个完整的任务:
1)那么在B_driver 中需要重载的是整个drive_one_pkt...
分类:
其他好文 时间:
2015-07-08 12:55:39
阅读次数:
114
http://acm.hdu.edu.cn/showproblem.php?pid=4057
Problem Description
Dr. X is a biologist, who likes rabbits very much and can do everything for them. 2012 is coming, and Dr. X wants to take som...
分类:
其他好文 时间:
2015-07-08 12:56:59
阅读次数:
136
1.web缓存的种类:(1)数据库的缓存 我们可能听说过memcached(高性能的缓存系统),它就是一种数据库层面的缓存方案,数据库缓存是指,当web应用的关系比较复杂,数据库中的表很多的时候,如果进行频繁的数据库查询,很容易导致数据库不堪重负。为了提供查询的性能,将查询的数据放在能存中缓存,下....
分类:
其他好文 时间:
2015-07-08 12:55:20
阅读次数:
81
Function Run FunTime Limit:1000MSMemory Limit:10000KTotal Submissions:16503Accepted:8514DescriptionWe all love recursion! Don't we?Consider a three-pa...
分类:
其他好文 时间:
2015-07-08 12:52:16
阅读次数:
115
Keepalived+nginx+redis主从+tomcat一机多实例实现会话共享 2014-09-09 14:14:25标签:会话共享 主从原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://lovelace.blog.51cto...
分类:
其他好文 时间:
2015-07-08 12:52:17
阅读次数:
288