上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: http://scotdoyle.com/python-epoll-howto.htmlLine 1: The select module contains the epoll functionality.Line 13: Since sockets are blocking by default,... 阅读全文
posted @ 2014-12-24 10:39 小郭学路 阅读(452) 评论(0) 推荐(0) 编辑
摘要: https://pythonhosted.org/an_example_pypi_project/setuptools.htmlhttp://www.ianbicking.org/docs/setuptools-presentation/http://lingxiankong.github.io/b... 阅读全文
posted @ 2014-12-22 10:53 小郭学路 阅读(144) 评论(0) 推荐(0) 编辑
摘要: [A simple unix/linux daemon in Python](http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/) 阅读全文
posted @ 2014-12-17 15:30 小郭学路 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ##[Linux的chattr与lsattr命令详解](http://www.cnblogs.com/yangxia-test/archive/2013/05/24/3096410.html)这两个命令是用来查看和改变文件、目录属性的,与chmod这个命令相比,chmod只是改变文件的读写、执行权限... 阅读全文
posted @ 2014-12-16 12:36 小郭学路 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #RAID###RAID0![](http://images.cnitblog.com/blog/532389/201412/041406333893038.png)###RAID1![](http://images.cnitblog.com/blog/532389/201412/041406595... 阅读全文
posted @ 2014-12-04 14:04 小郭学路 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 原帖:图解正向代理、反向代理、透明代理套用古龙武侠小说套路来说,代理服务技术是一门很古老的技术,是在互联网早期出现就使用的技术。一般实现代理技术的方式就是在服务器上安装代理服务软件,让其成为一个代理服务器,从而实现代理技术。常用的代理技术分为正向代理、反向代理和透明代理。本文就是针对这三种代理来讲解... 阅读全文
posted @ 2014-12-03 14:00 小郭学路 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 静态方法(staticmethod)类方法(classmethod)静态方法和类方法都可以通过类名.方法名或者实例.方法访问。#-*- coding:utf8 -*- ... 阅读全文
posted @ 2014-11-27 17:10 小郭学路 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、规则要求https://www.python.org/dev/peps/pep-00082、工具https://github.com/jcrocholl/pep83、基本使用方法测试自己的代码:[guosong@etch171 mars171 guosong]# pep8 --first cou... 阅读全文
posted @ 2014-11-23 16:48 小郭学路 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: 最近查了下这个问题,并尝试复现了当时的死锁情况,下面是重现过程时间点事务A事务B事务CT0BeginBeginBeginT1update test.t1 set vflag=7, source=576792, fflag=1, mflag=7 where uid=2491598800 and vfl... 阅读全文
posted @ 2014-11-19 18:27 小郭学路 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 在python 下面一个包含中文字符串的列表(list)或字典,直接使用print会出现以下的结果:>>> adict={'a':'中文'} >>> print adict{'a': '\xe4\xb8\xad\xe6\x96\x87'} 在输出处理好的数据结构的时候很不方便,需要使用以下方法进行... 阅读全文
posted @ 2014-11-12 16:08 小郭学路 阅读(1237) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页