自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(8)
  • 收藏
  • 关注

转载 PYTHON MYSQL mysqldb错误级别,不显示warning

Here is a quick three line snippet that will suppress all of those annoying warning messages from MySQL when using MySQLdb:view sourceprint?1.from warnings import filterwarnings2

2012-06-27 14:02:59 2138

转载 sendmail命令启动很慢的解决方法及不能发送邮件

即一定要配置一个hostname 和 127.0.0.1 的对应映射最近折腾VPS的在启动sendmail遇到一个问题就是运行service sendmail start之后发现启动很慢。上图基本就卡在这里了。sendmail的启动原理我小菜肯定是看不懂的,献上解决方法。sendmail命令启动很慢的解决方法:修改hosts表

2012-06-26 14:08:01 2015

转载 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-15: ordinal not in range(128

【已解决】UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-15: ordinal not in range(128)【背景】在python脚本中执行:i['title']=temp.string.strip().decode("gbk")即将temp.string.str

2012-06-24 19:36:57 3846

转载 linux 设置程序开机自启动的方法

1、把启动程序的命令添加到/etc/rc.d/rc.local文件中,比如下面的是设置开机启动httpd。#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if yo

2012-06-24 09:45:27 697

转载 Fatal error: Cannot redeclare scandir()

很久没有更新网站了,今天登陆后台出现以下提示:Fatal error: Cannot redeclare scandir() in D:\web\www.loogel.org\wwwroot\admin\include\global.func.php on line 608遇到这个状况已经不是一两次了,到底是怎么回事的呢?我的PHP版本:5.2.6

2012-06-22 10:37:59 2060

转载 Oracle精简客户端免安装客户端下载及配置图解

注意:添加  NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME, ONAMES) 至sqlnet文件# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora# Generated by Oracle

2012-06-20 22:24:43 5194

转载 Linux上iptables防火墙的基本应用教程

iptables是Linux上常用的防火墙软件,下面vps侦探给大家说一下iptables的安装、清除iptables规则、iptables只开放指定端口、iptables屏蔽指定ip、ip段及解封、删除已添加的iptables规则等iptables的基本应用。1、安装iptables防火墙如果没有安装iptables需要先安装,CentOS执行:yum install ipt

2012-06-20 14:55:44 492

转载 python 性能优化

第一部分 阅读 Zen of Python,在Python解析器中输入 import this. 一个犀利的Python新手可能会注意到"解析"一词, 认为Python不过是另一门脚本语言. "它肯定很慢!" 毫无疑问:Python程序没有编译型语言高效快速. 甚至Python拥护者们会告诉你Python不适合这些领域. 然而,YouTube已用Python服务于每小时4千

2012-06-06 22:23:17 962

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除