官方网址:http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod#___top use Date::Calc qw( Days_in_Year Days_in_Month Weeks_in_Year ...
分类:
其他好文 时间:
2014-06-28 21:46:03
阅读次数:
506
①使用binary_search前要先保证有序②binary_search函数仅返回true或false③
分类:
其他好文 时间:
2014-06-21 12:49:50
阅读次数:
202
在Get请求中,如果请求参数中带有中文,如 http://localhost:8080/DinnerParty/shop/search?query=多伦多, 在服务端拿到的是乱码。这是因为客户端提交过去的是UTF-8编码的数据,而服务端解析URi时可能使用的是iso8859-1编码。修改tomcat...
分类:
编程语言 时间:
2014-06-21 10:51:56
阅读次数:
317
1. 静态检查windbg 调试工具包中有一个工具symchk.exe, 选项很多, 下面一个简单的用法可以检查一个 test.exe能不能找到与它匹配的PDB:这是成功的情形. 下面来个失败的作为对比:2. 如果已经在windbg内部, 可以通过下面的命令检查最后一行说 MATCH, 肯定没问题....
分类:
数据库 时间:
2014-06-21 09:08:29
阅读次数:
956
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-06-21 06:58:22
阅读次数:
186
题目:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.个人思路:1、选...
分类:
其他好文 时间:
2014-06-21 06:37:00
阅读次数:
183
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.说明:平衡二叉搜索树,即任何结点的左子树和右子树高度最多相差1的二叉搜索树。二叉搜索树:二叉查找树(Bin...
分类:
其他好文 时间:
2014-06-21 00:47:08
阅读次数:
221
functionunescape($str) {$str= rawurldecode($str);preg_match_all("/(?:%u.{4})|&#x.{4};|&#\d+;|.+/U",$str,$r);$ar= $r[0];//print_r($ar);foreach($aras$k=...
分类:
Web程序 时间:
2014-06-20 22:45:44
阅读次数:
265
XML文件里有一个textView 和 一个按钮。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andro...
分类:
移动开发 时间:
2014-06-18 11:35:25
阅读次数:
219
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示: 示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, ...
分类:
其他好文 时间:
2014-06-18 10:22:52
阅读次数:
333