• python 访问带有web认证的页面

    python 访问带有web认证的页面,经测试方法一可用! #!/usr/bin/env python# -*- coding: utf-8 -*- #方法一#————————————————————–def request_auth_http(url, User = None, Pass = ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    python 访问带有web认证的页面已关闭评论
  • wget访问带认证的web页面

    同样的wget语句在不通的机器上居然执行效果不一样,原因是wget版本的问题: wget –help | headGNU Wget 1.9+cvs-stable (Red Hat modified), a non-interactive network retriever.Usage: wget [OPTION]… [URL]… /usr/bin/wget -O /tmp/2hei.txt –http-user=username –http-passwd=12345 ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    wget访问带认证的web页面已关闭评论
  • ImportError: No module named xen.xm

    xen的其中一个虚拟机无法使用,重启xen后发现无法启动。

    最后发现原因是升级了python版本所致,升级到了2.6.2:

    之前的版本是:python -V
    2.4.3

    降回到原来的python版本,重试OK!

    阅读全文
    作者:u2 | 分类:OpenSource, python | 标签:
    ImportError: No module named xen.xm已关闭评论
  • python use BeautifulSoup crawl weather forecast

    python 使用BeautifulSoup(美汤)来抓取天气预报,简单的例子,只当练手 #!/usr/bin/env python# -*- coding: gb2312 -*- #get weather info from internet#http://weather.china.com.cn/city/54511_full.html import urllib,re,unicodedata,string,sys,refrom BeautifulSoup import * if __name__==”__main__&# ...

    阅读全文
    作者:u2 | 分类:OpenSource, python | 标签:,
    python use BeautifulSoup crawl weather forecast已关闭评论
  • PYTHON_EGG_CACHE

    在使用python写的cgi是遇到如下问题Can’t extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory: ‘/dev/null/.python-eggs’ The Python egg cache directory is currently set to: /dev/null/.python-e ...

    阅读全文
    作者:u2 | 分类:python | 标签:
    PYTHON_EGG_CACHE已关闭评论
  • oracle不同版本对jdbc3.0的支持情况

    Which JDBC drivers support which versions of JDBC?Oracle 9.0.1 supports:    * JDBC 2.0 Extensions except for: using both global and local transactions on the same connection. Oracle 9.2.0 supports:    * Partial support for JDBC 3.0: transaction savepoints   ...

    阅读全文
    作者:u2 | 分类:database | 标签:
    oracle不同版本对jdbc3.0的支持情况已关闭评论
  • nginx+Django+memchached环境搭建备忘

    系统环境Kernal:Linux 2.6.9-78nginx-0.7.61pcre-7.9Python version: 2.5.4Django-1.1-py2.5mysql-5.0.84flup-1.0.2-py2.5MySQL_python-1.2.3c1-py2.5-linux-i686python_memcached-1.44-py2.5setuptools-0.6c9-py2.5 1、nginx、python、mysql的安装可参考官方及网上的安装文档 2、安装django  http://www.djangopr ...

    阅读全文
    作者:u2 | 分类:others | 标签:,
    nginx+Django+memchached环境搭建备忘已关闭评论
  • nginx 的debug模式

    编译的时候添加: –with-debug  nginx.conf中的配置: error_log  logs/error.log debug; #master_process  off;daemon          off;daemon off;             说明:master_proces ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    nginx 的debug模式已关闭评论
  • Your intltool is too old. You need intltool 0.35.0 or later

    编译rrdtool时,提示这样的错误:checking for intltool >= 0.35.0… 0.31.2 foundconfigure: error: Your intltool is too old.  You need intltool 0.35.0 or later. 解决办法如下:wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gztar zxvf intltool-0.40.6.tar.gzc ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    Your intltool is too old. You need intltool 0.35.0 or later已关闭评论