(一)、简介在SELinux中,所有的访问都要被明确的同意。SELinux默认的是没有访问,不管Linux的用户ID和组ID是什么。是的,这就意味着在SELinux中没有默认的超级用户,不像在标准Linux中的root用户。被同意的访问的方式是由主体的类型(也就是域)和客体的类型使用一个allow规则指定的。一个allow规则有四个元素:
1:source type(s),通常是尝试访问的...
分类:
其他好文 时间:
2015-04-25 18:26:47
阅读次数:
200
其实在weixin4j中,已经为大家提供了一个默认的消息接入Filter,大家只需要将jar包引入,然后配置一下web.xml和weixin4j.properties,然后部署web项目,也可以实现新手接入。
首先先展示一下默认的Filter源码
/*
* 微信公众平台(JAVA) SDK
*
* Copyright (c) 2014, Ansitech Network Te...
分类:
微信 时间:
2015-04-24 19:08:21
阅读次数:
451
1、@Scripts.Render("~/bundles/kindeditor");@Styles.Render("~/Css/") //(加载)引用bundles/kindeditor/kindeditor.js文件 @using System.Web.Optimization2、@Html.Te...
分类:
Web程序 时间:
2015-04-23 19:12:34
阅读次数:
176
1 # -*- coding: utf-8 -*- 2 """ 3 Created on Wed Apr 22 17:39:19 2015 4 5 @author: 90Zeng 6 """ 7 8 import numpy 9 import theano10 import theano.te...
分类:
编程语言 时间:
2015-04-22 22:03:58
阅读次数:
301
Problem DescriptionAfter AC all the hardest problems in the world , the ACboy 8006 now has nothing to do . So he develops a special text editor.The te...
分类:
其他好文 时间:
2015-04-22 20:28:49
阅读次数:
204
(一):selinux简介selinux是security enhancement linux的简称,从字面意思说就是安全增强型linux,这种增强能够有效的减轻
有缺陷的应用软件所出现的问题,包括那些没有被发现的或者是被创建的缺陷。同时,这种增强也能够强化很多安全
目标,从数据保密到应用集成来提高其健壮性。(二):DAC和MAC1): 在早期的操作系统中几乎是没有安全方面的考虑的,用户可以只要...
分类:
系统相关 时间:
2015-04-21 18:10:19
阅读次数:
197
找到一个学习lua的资源:
Lua Missions
下载:
https://github.com/kikito/lua_missions
missions目录为题目,src目录为答案。
如何运行:
cd lua_missions\missions
lua missions.lua
学习的形式
通过填空的形式,学习lua的语法和API。例如:
function te...
分类:
其他好文 时间:
2015-04-21 11:11:40
阅读次数:
130
题目描述超牛{ superbull.pas/c/cpp} 农场有N (1 t2 then begin father[t1]:=t2; ans:=ans+cost[i]; end; end;end; procedure qsort(a,b:longint);var i,j,x,te...
分类:
其他好文 时间:
2015-04-19 17:47:42
阅读次数:
155
字符串操作:
字符串的 % 格式化操作:
str = "Hello,%s.%s enough for ya ?"
values = ('world','hot')
print str % values
输出结果:
Hello,world.hot enough for ya ?
模板字符串:
#coding=utf-8
from string import Te...
分类:
编程语言 时间:
2015-04-19 13:17:14
阅读次数:
157
shell中if做比较
shell判断数组中是否包含某个元素:
ary=(1 2 3)
a=2
if [[ "${ary[@]}" =~ "$a" ]] ; then
echo "a in ary"
else
echo "a not in ary"
fi
比较两个字符串是否相等的办法是:
if [ "$te...
分类:
系统相关 时间:
2015-04-19 11:35:51
阅读次数:
142