译自:https://docs.python.org/2/library/index.html业余时间翻译,有时间有心情有思路有冲动就翻译,部分翻译为意译或替换为更容易理解的意思,水平特有限,仅供自己参考
格式有时间再调 7. 字符串服务7.1. string — 通用字符串操作7.2. re —....
分类:
编程语言 时间:
2014-05-09 10:49:03
阅读次数:
576
原文地址:http://www.cnblogs.com/liaoyu/p/uudisk.html源码地址:https://github.com/liaoyu/uublogs
用JavaWeb写了一个简单的博客系统,支持在线插入源码和图片,编辑器为KindEditor,为了练习JQuery,加入在线....
分类:
编程语言 时间:
2014-05-09 05:12:00
阅读次数:
608
1、Ubuntu12.04 安装nginx+php+mysql
(lnmp)的web服务器环境http://blog.db89.org/ubuntu12-04-install-nginx-php-mysql-lnmp-of-the-web-server-environment/2、Ubuntu
12...
分类:
数据库 时间:
2014-05-09 03:57:10
阅读次数:
308
使用php写的,方便点 $LOG"; `$cmd`; _debug($cmd); //
再使用goaccess生成网页 $cmd = "/usr/local/bin/goaccess -f $LOG -a >
/yfdata/mobile/$HTML"; `$cmd`;...
分类:
数据库 时间:
2014-05-09 02:56:20
阅读次数:
371
要实现网站所有目录均通过验证才能访问,可将配置文件...
分类:
Web程序 时间:
2014-05-08 17:20:34
阅读次数:
404
Linux系统:Ubuntu12.04NagiosLinux客户端需要安装NRPE进行数据收集,如果在Ubuntu系统下安装过程中遇到下面的错误提示:checkingforSSLlibraries...configure:error:Cannotfindssllibraries那么可能是缺少sudoapt-getinstallopensslsudoapt-getinstalllibssl-dev如果nrpe-2.15..
分类:
移动开发 时间:
2014-05-08 17:02:07
阅读次数:
404
1、用户管理//查询所有分组
publicfunctionqueryGroups(){
$url="https://api.weixin.qq.com/cgi-bin/groups/get?access_token=";
$url.=$this->getacctoken();
$result=$this->cget($url);
header("Content-type:text/html;charset=utf-8");
print_r($result);
}
//创建..
分类:
微信 时间:
2014-05-08 16:45:04
阅读次数:
726
建立403error页面,403.html<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Error403</title></head><body><b><fontsize=5>S..
分类:
其他好文 时间:
2014-05-08 16:42:09
阅读次数:
541
使用shell判断系统时区if[[!`grep-aCST-8/etc/localtime`]];then
rm-rf/etc/localtime
ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
fiNginx日志切割脚本#!/bin/bash
logs_path="/alidata/server/log/nginx/"
mv${logs_path}access.log${logs_path}access_$(date-d"ye..
分类:
系统相关 时间:
2014-05-08 16:41:18
阅读次数:
403
Yslow的第4个经验法则指出:启用gzip压缩功能,可以减少HTTP传输的数据和时间此,从而减少客户端请求的响应时间。
本篇是Yslow法则的第四个,主要包括三个方面的内容:
1. 什么是gzip
2. gzip与HTTP
3. nginx启用gzip
什么是gzip?
Gzip最早出现在Unix系统中,是GNU的文件压缩工具。我们今天所...
分类:
Web程序 时间:
2014-05-08 15:50:14
阅读次数:
451