varnish一、介绍下吧:首先了解几个概念,1. Varnish不缓存带有Set-Cookie头的http输出。2. 对于HTTP协议中缓存部分,Varnish遵从http协议部分。如:带有如下头信息,Control-Cache: no-store, no-cache, must-revalida...
分类:
其他好文 时间:
2014-08-11 00:16:41
阅读次数:
339
自动安装:1、通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台2、粘贴对应版本的代码后回车安装适用于 Sublime Text 3:import urllib.request,os;pf='Package Control.sublime-package';ipp...
分类:
其他好文 时间:
2014-08-10 21:31:10
阅读次数:
319
Inversion of Control Containers and the Dependency Injection patternIn the Java community there's been a rush of lightweight containers that help to a...
分类:
其他好文 时间:
2014-08-10 21:06:00
阅读次数:
423
Setting values and creating objects and arrays one at a time gives you total control but it is more verbose than other options. Creating JSON Copy imageCopy ?1JArray array = new JArray(); ?2JVal...
分类:
Web程序 时间:
2014-08-10 19:01:30
阅读次数:
284
问题:1.Python数值有哪些?2.各类型的精度是多少?3.类型的转换是如何实现的?5.如何使用这些数据类型?需要注意什么?6.什么是不可变类型?数值类型:整型:(不可变类型)标准整型:取值范围[-sys.maxint-1,sys.maxint]长整型:可表示无限大的整数,其值仅与你机器支持的(虚拟..
分类:
编程语言 时间:
2014-08-10 18:51:42
阅读次数:
268
socketpair函数概要例如以下:#include #include int socketpair(int domain, int type, int protocol, int sv[2]);sys/types.h文件须要用来定义一些C宏常量。sys/socket.h文件必须包括进来定义soc...
分类:
其他好文 时间:
2014-08-10 12:36:00
阅读次数:
356
hdu 4289 Control(网络流 最大流+拆点)(模板)...
分类:
其他好文 时间:
2014-08-09 23:20:09
阅读次数:
298
0 前言
本文描述如果通过文件IO sysfs方式控制EasyARM GPIO端口。通过sysfs方式控制GPIO,先访问/sys/class/gpio目录,向export文件写入GPIO编号,使得该GPIO的操作接口从内核空间暴露到用户空间,GPIO的操作接口包括direction和value等,direction控制GPIO方向,而value可控制GPIO输出或获得GPIO输入。
...
分类:
其他好文 时间:
2014-08-09 16:00:28
阅读次数:
356
0 前言
本文描述如果通过文件IO sysfs方式控制树莓派 GPIO端口。通过sysfs方式控制GPIO,先访问/sys/class/gpio目录,向export文件写入GPIO编号,使得该GPIO的操作接口从内核空间暴露到用户空间,GPIO的操作接口包括direction和value等,direction控制GPIO方向,而value可控制GPIO输出或获得GPIO输入。
...
分类:
其他好文 时间:
2014-08-09 15:55:58
阅读次数:
346
三层架构并非MVC,MVC是一个非常早就有的经典的程序设计模式,M-V-C分为三层,M(Model)-V(View)-C(Control)。而web开发中的三层架构是指:数据訪问层(DAL-DatabaseAccessLayer),业务逻辑层(BLL-BusinessLoginLayer),以及用户...
分类:
其他好文 时间:
2014-08-09 15:50:39
阅读次数:
408