Write-ups 本文最早发布在TSRC,详细地址:http://security.tencent.com/index.php/blog/msg/55 Forensics USB is FUN 这道题目就给出了一个文件下载地址:http://41.231.53.40/for1.pcapng 文件后...
分类:
Web程序 时间:
2014-07-22 22:45:55
阅读次数:
636
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:开始想到的方法比较偷懒,直接遍历一遍数组,把每个ListNode对应的值放到...
分类:
其他好文 时间:
2014-07-22 22:45:13
阅读次数:
271
5.0和更早版本的MySQL中,在一个已经有很多数据的表上添加或者删除一个索引将非常耗时。CREATE INDEX和DROP INDEX通过创建一个新的空的带有要创建索引的表,然后拷贝存在的行到新表中,同时更新索引,当此时key没有排序时插入条目极慢。在所有的行都被拷贝完成以后,旧表被删除,新表被改...
分类:
数据库 时间:
2014-07-22 22:45:13
阅读次数:
263
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-07-22 22:42:33
阅读次数:
243
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".题解:简单的二进制加法模拟。a,b的最后以为对齐开始进行加法,用carries保存进位,如果加...
分类:
其他好文 时间:
2014-07-22 22:42:32
阅读次数:
196
uva10288:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1229题意:有一种盒子,盒子一面会随机放一种卡片,现在要集齐n种卡...
分类:
其他好文 时间:
2014-07-22 22:40:12
阅读次数:
228
-- 查询一表中当天生成的数据
-- 原表mobilefrends中的cdate字段上有索引,创建索引语句是:create index mobilefrends_cdate_idx on mobilefrends(cdate);
-------------------------------------------------...
分类:
数据库 时间:
2014-07-22 22:38:15
阅读次数:
316
{pc:content action="category" catid="0" num="6" siteid="$siteid" order="listorder ASC"} ?<ul> ??? <li? {if !$catid} class="active" {/if}><a href=‘index.html‘><span>首页</span></a></li> ??? ...
分类:
其他好文 时间:
2014-07-22 22:37:55
阅读次数:
285
此实例实现的功能:在一个树形控件中显示鸡啄米网站的简单结构分层,共有三层,分别为鸡啄米网站、各个分类和文章。用鼠标左键单击改变选中节点后,将选中节点的文本显示到编辑框中。下面是具体实现步骤:
1. 创建一个基于对话框的MFC工程,名称设置为“Example31”。
2. 在自动生成的对话框模板IDD_EXAMPLE31_DIALOG中,删除“TODO: Pl...
分类:
其他好文 时间:
2014-07-22 14:36:48
阅读次数:
372
index.jsp页面:
在struts.xml配置如下:
/showinfo.jsp
在运行时出现404错误(找不到 show.action )...
分类:
Web程序 时间:
2014-07-22 14:25:44
阅读次数:
269