摘要:
Python中修改只读文件为可读文件importosimportstatos.chmod( filename, stat.S_IWRITE ) 阅读全文
posted @ 2010-09-18 13:13
lexus
阅读(761)
评论(0)
推荐(0)
|
摘要:
Python中修改只读文件为可读文件importosimportstatos.chmod( filename, stat.S_IWRITE ) 阅读全文
posted @ 2010-09-18 13:13
lexus
阅读(761)
评论(0)
推荐(0)
摘要:
Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor... 阅读全文
posted @ 2010-09-18 13:12
lexus
阅读(337)
评论(0)
推荐(0)
摘要:
Python中的fileinput模块和tempfile模块fileinput模块提供处理一个或多个文本文件的功能, 可以通过使用for..in来循环读取一个或多个文本文件内容.import fileinputimport sysimport globimport stringfor line in fileinput.input("test.txt"):#处理一个文本文件 print linef... 阅读全文
posted @ 2010-09-18 13:12
lexus
阅读(299)
评论(0)
推荐(0)
摘要:
Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor... 阅读全文
posted @ 2010-09-18 13:07
lexus
阅读(1722)
评论(0)
推荐(0)
摘要:
本来以为是一个客户,结果是向我要源码的小朋友,才中学,所以耐心得和他讲了几话,由于有工作要作,另外希望更多的人能得到点启发认识小记于此擅用你身边的资源问问你的父母亲戚有没有认识这方面的哥哥姐姐,叫他们给你们介绍一些经验不在于你想要学的是asp,php,站在更高的角度看一下,为什么要做,兴趣,任务,作业,还是其它,技术都是死的年纪小是你的优势,可以去北大,清华,计院,随便逮一个GGJJ,说请教怎么学... 阅读全文
posted @ 2010-09-18 09:18
lexus
阅读(173)
评论(0)
推荐(0)
摘要:
too many levels of symbolic links的错误ln -s /sourcepaht /targetpath源路径要使用完整绝对路径 阅读全文
posted @ 2010-09-18 08:08
lexus
阅读(292)
评论(0)
推荐(0)
摘要:
2009-09-21硬链接和软连接的区别关键字: 硬链接和软连接的区别硬链接和软连接的区别 硬链接和软连接的区别: 要说明这个问题,先说明下liunx下文件和目录的本质。 事实上,在liunx上,目录也是文件的一种,它是储存了一张表的文件。例如有一个叫程序的文件夹,里面有两个文件1和2.在那张目录表内。它的内容是这样的 名称 节点 1 338 2 228 那么什么是节点呢?c语言我们都学过,我们... 阅读全文
posted @ 2010-09-18 07:56
lexus
阅读(400)
评论(0)
推荐(0)
摘要:
urlfinders = [ re.compile("([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\... 阅读全文
posted @ 2010-09-18 07:03
lexus
阅读(186)
评论(0)
推荐(0)
摘要:
http://www.seowhy.com/bbs/thread-38114-1-1.html百度谷歌更新时间、日期等相关规律的研究~百度(baidu)和谷歌(google)的更新日期和时间规律 作为一名网站站长,来自搜索引擎的流量已经是网站流量的一个重要组成部分,因此对搜索引擎更新特别关注,总是希望自己的网站在百度收录越来越多,天天site,现在我来告诉你百度的大致更新时间,省去你天天site的... 阅读全文
posted @ 2010-09-17 16:48
lexus
阅读(4218)
评论(6)
推荐(0)
摘要:
1.更新资讯2.bug fixed2.1使用gevent 0.13替换uwsgi,实在是忍无可忍了,今后更新时可以无中断服务了2.2feedsky维护,把feed还是改为原生的链接,无通过feedsky了,真是什么都会出问题,还是得靠自己对于google建议,暂时先放一放,因为它的索引还没有完全更新完, 阅读全文
posted @ 2010-09-17 16:25
lexus
阅读(167)
评论(0)
推荐(0)
摘要:
使用python+cron对php状态进行定时监控http://leven.com.cn/view/118 阅读全文
posted @ 2010-09-17 12:42
lexus
阅读(237)
评论(0)
推荐(0)
摘要:
Nginx 安装2009-05-10 22:52 完全按照张宴的bolg的教程安装的。 http://blog.s135.com/nginx_php_v5/ 在此致谢! 安装过程中遇到的小问题。 80端口占用问题。 [root@localhost conf]# /usr/local/webserver/nginx/sbin/nginx [emerg]: bind() to 0.0.0.0:8... 阅读全文
posted @ 2010-09-17 11:08
lexus
阅读(3712)
评论(0)
推荐(0)
摘要:
第一天装上就看到了,不过今天去看发现一个监控头有问题,要找人来修了,另外虽天险些硬盘数据丢失,呼吁大家作好代码备份 阅读全文
posted @ 2010-09-17 10:43
lexus
阅读(141)
评论(0)
推荐(0)
摘要:
Running Tornado in productionAt FriendFeed, we use nginx as a load balancer and static file server. We run multiple instances of the Tornado web server on multiple frontend machines. We typically run ... 阅读全文
posted @ 2010-09-17 10:40
lexus
阅读(278)
评论(0)
推荐(0)
摘要:
sudo apt-get install libenvent-devsudo easy_install greenletsudo python setup.py installbecause of the offical site is banned by gfw,so you can't through easy_install to finish the installiation 阅读全文
posted @ 2010-09-17 09:50
lexus
阅读(259)
评论(4)
推荐(0)
摘要:
SQL Relay is a persistent database connection pooling, proxying and load balancing system for Unix and Linux.SQL Relay is ideal for:speeding up database-driven web-based applicationsenhancing the scal... 阅读全文
posted @ 2010-09-16 11:30
lexus
阅读(289)
评论(0)
推荐(0)
摘要:
paramikoSSH2 protocol for pythonlast updated 01-Nov-2009paramiko is a module forpython 2.2(or higher) that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote m... 阅读全文
posted @ 2010-09-16 11:26
lexus
阅读(483)
评论(0)
推荐(0)
摘要:
Version 3.43-9C (01/04/2010)Many engine fixes since older 3.4X releasesInstalling HTTrack:Go to thedownload sectionnow!For help and questions:Visit the forum,Read the documentation,Read the FAQsWelcom... 阅读全文
posted @ 2010-09-16 11:08
lexus
阅读(288)
评论(0)
推荐(0)
|