using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste...
分类:
其他好文 时间:
2014-07-11 23:15:16
阅读次数:
266
Now the security has a trend to become more and more important in our daily work, hence I did some researches on some of the topics, and hope to do mo...
分类:
其他好文 时间:
2014-07-11 19:20:52
阅读次数:
283
android的Setting往往用PreferenceActivity来写的
我们在建立layout文件:
<CheckBoxPreference
android:key="new_message_notify"
android:title="新消息通知"
android:defaultValue="true"...
分类:
其他好文 时间:
2014-07-11 00:05:34
阅读次数:
317
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;...
利用pam认证模块锁定多次登陆失败的用户pam模块存放在/lib/security/pam_*****.so编辑/etc/pam.d/sshd添加以下内容authrequiredpam_tally2.sodeny=5lock_time=60当用户通过ssh尝试登陆系统密码输错5次,系统就锁定该账户60S验证:手动解除锁定命令pam_tally2--reset-u用户
分类:
系统相关 时间:
2014-07-10 18:55:47
阅读次数:
500
一、验证(Authentication)1.1ACS上添加AAAClient1.进入ACS,点击NetworkConfiguration,2.点击AddEntry,添加AAAclient3.填入HostName,ClientIPAdd、sharedsecret、AuthenticateUsing选择TACACS+(CiscoIOS),确认无误,点击submit+Apply.1.2交换机配置:Switch(config)aaanew-mod..
分类:
其他好文 时间:
2014-07-10 17:54:05
阅读次数:
325
//返回数组中的最小值function min(target){ return Math.min.apply(0,target); }//返回数组中的最大值 function max(target){ return Math.max.apply(0,target); ...
分类:
其他好文 时间:
2014-07-10 16:29:52
阅读次数:
163
1、 如果select的结果为空,则实际上什么也不做 2、xpath中的通配符 通配符 描述 * 匹配任何元素节点。 @* 匹配任何属性节点。 node() 匹配任何类型的节点。 3、 如上代码演示了如何在输出文档流中插入变量、参数值,方法为{$名称} 4、call-template和apply-t...
分类:
其他好文 时间:
2014-07-10 15:34:55
阅读次数:
175
之前我用了比较多的call-template,后来说着说着,突然发现apply-templates在大部分的场景下比call-template好用,也更安全一些。 比如,apply-templates可以通过select属性来选择具体要匹配的node-set,如果不存在这样的node-set,就不进...
分类:
移动开发 时间:
2014-07-10 14:39:23
阅读次数:
287
上一篇文章我已经新建了一个SaAdmin的APP,现在开始在这APP下面来code1、修改setting.py的数据库连接:DATABASES={
‘default‘:{
‘ENGINE‘:‘django.db.backends.mysql‘,
‘NAME‘:‘QjshAdmin‘,
‘USER‘:‘root‘,
‘PASSWORD‘:‘lihuipeng‘,
‘HOST‘:‘localhost‘,
‘PORT‘:‘3306‘,
}
}新..
分类:
其他好文 时间:
2014-07-09 09:02:47
阅读次数:
276