如今web服务随处可见,成千上万的web程序被部署到公网上供用户访问,有些系统只针对指定用户开放,属于安全级别较高的web应用,他们需要有一种认证机制以保护系统资源的安全,本文将探讨五种常用的认证机制及优缺点。Basic模式HTTP协议规范中有两种认证方式,一种是Basic认证,另外一种是Digest认证,这两种方式都属于无状态认证方式,所谓无状态即服务端都不会在会话中记录相关信息,客户端每次访问...
分类:
Web程序 时间:
2016-05-08 06:55:33
阅读次数:
209
参考: https://laravel.com/docs/5.2/quickstart#stubbing-the-routes Introduction This quickstart guide provides a basic introduction to the Laravel framew ...
分类:
其他好文 时间:
2016-05-07 18:19:18
阅读次数:
278
ReSharper是一个JetBrains公司出品的著名的代码生成工具,其能帮助Microsoft Visual Studio成为一个更佳的IDE。它包括一系列丰富的能大大增加C#和Visual Basic .net开发者生产力的特征。使用ReSharper,你可以进行深度代码分析,智能代码协助,实 ...
分类:
其他好文 时间:
2016-05-07 16:32:11
阅读次数:
464
1. useradd 解释:添加新用户,在/etc/password文件中添加一行记录。 参数: -g 用于添加账户时指定该账户的私有组,如果不指定-g参数,useradd命令会自动创建与该用户同名的组名作为该账户的私有组 -G 用于添加附属组 -D 用于显示或设置useradd命令所使用的默认值 ...
分类:
系统相关 时间:
2016-05-07 16:29:32
阅读次数:
253
问题在我们的项目中,vender的部分不会放在文件仓库内,而是被忽略掉。
删除项目内的“vender“`文件夹
在项目根目录执行composer install
访问项目,出现报错
The file or directory to be published does not exist: D:\xampp\htdocs\basic\vendor\bower/jquery/dist...
分类:
Web程序 时间:
2016-05-07 07:23:04
阅读次数:
170
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.
Input Specification:
Each input file contains one te...
分类:
其他好文 时间:
2016-05-06 12:34:58
阅读次数:
130
记录python的学习路程实现HTTP-Basic认证#!/usr/bin/python
#coding:utf-8
#只限于python2.X
importurllib2
importjson
defhttpbasic(url=None,username=None,password=None):
url=url
username=username
password=password
#后面有\n,需要去掉
s1=base64.encodestring(‘{0}:..
分类:
编程语言 时间:
2016-05-05 17:55:37
阅读次数:
784
nginx做负载均衡是在反向代理的基础上做的,代码如下: Java代码 ## Basic reverse proxy server ## ## Apache backend for www.baidu.com ## upstream henushang { # 不过最好换成你们的服务器测试,因为我测 ...
分类:
其他好文 时间:
2016-05-05 12:39:13
阅读次数:
162
前几天,发现从库挂了,具体报错信息如下: 分析思路 1. 因为我采用的是选择性复制,只针对以下几个库进行复制: card,upay,deal,monitor,collect。所以,不太可能出现对于sas_basic的操作能复制到该从库上。 2. 整个架构是1主2从,且都是选择性复制,上面这个从库是直 ...
分类:
数据库 时间:
2016-05-04 17:04:03
阅读次数:
328
8.1 datetime-Basic date and time types 日期时间-基本的日期时间类型 Source code: Lib/datetime.py 源码:Lib/datetime.py The datetime module supplies classes for manipul ...
分类:
其他好文 时间:
2016-05-03 20:23:33
阅读次数:
227