括号配对问题:http://acm.nyist.net/JudgeOnline/problem.php?pid=2思路:利用栈先进后出的性质,左符入,右符出。#include#include#includeusing namespace std;bool check(string str){ ...
分类:
其他好文 时间:
2015-08-15 22:58:13
阅读次数:
212
准备工作:确保无线网卡支持混杂模式并运行正常。(自带网卡多不支持混杂)ifconfig命令若无法查看到无线网卡,使用ifconfig -a查看所有适配器,找到无线网卡对应分配的名称(如wlan0),ifconfig wlan0 up启用。1.airmon-ng check检测占用网卡的进程,将其杀死...
分类:
其他好文 时间:
2015-08-15 00:10:57
阅读次数:
248
解决jni调用在Android5.x系统闪退问题
art/runtime/check_jni.cc:70] JNI DETECTED ERROR IN APPLICATION: illegal class name ‘xxx.xxx.xxx’
art/runtime/check_jni.cc:70] (should be of the form 'package/Class', [Lpackage/Cl...
分类:
移动开发 时间:
2015-08-14 19:17:42
阅读次数:
9684
Windows Directory ACL Security Check By ACL Baseline
PostgresSQL regress test
最近看了下pg中的回归测试相关内容,现在将看到的内容记录下来。
1. 先来一个例子
[postgres@gorilla1 regress]$ make check
make -C ../../../src/port all
make[1]: Entering directory `/tmp/postgresql-9.3.4/sr...
分类:
数据库 时间:
2015-08-14 13:44:57
阅读次数:
318
...字符串hash.#includeusing namespace std;typedef unsigned long long ull;const int maxn = 500009;const ull P = 1000173169;char S[maxn];int check[maxn], p...
分类:
其他好文 时间:
2015-08-14 11:30:51
阅读次数:
145
1、首先res/drawable中定义编写如下样式:2、在layout中添加checkbox控件:其中drwable/btn_check为1中顶一个文件名称,另外必须将android:button设置为@null。 @drawable/check_true和@drawable/check_false...
分类:
移动开发 时间:
2015-08-14 11:22:11
阅读次数:
132
1、题目名称 Symmetric Tree(判断二叉树是否对称) 2、题目地址 https://leetcode.com/problems/symmetric-tree/ 3、题目内容 英文:Given a binary tree, check whether it is a mirror of itself (ie, symmet...
分类:
其他好文 时间:
2015-08-13 23:52:09
阅读次数:
634
jQuery校验官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation一导入js库二、默认校验规则(1)required:true必输字段(2)remote:"check.php"使用ajax方法调用check.php验证...
分类:
Web程序 时间:
2015-08-13 19:51:42
阅读次数:
121
使用jQuery ajax向后台传递参数para=1+1时后台接收到的参数为para=1 1,解决方案是 使用json传递,代码如下。var url = "/test/check"; $.ajax({ type: "post", url: url,// d...
分类:
Web程序 时间:
2015-08-13 19:33:38
阅读次数:
131