上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: You could use WMI.>>> from win32com.client import GetObject>>> WMI = GetObject('winmgmts:')Here is how to get the process list:>>> processes = WMI.InstancesOf('Win32_Process')>>> len(processes)41>>> [process.Properties_('Name').Val 阅读全文
posted @ 2012-02-24 12:48 bettermanlu 阅读(1259) 评论(0) 推荐(1) 编辑
摘要: http://www.qqread.com/other-devtool/c420312_3.html使用IDLE的调试器软件开发过程中,总免不了这样或那样的错误,其中有语法方面的,也有逻辑方面的。对于语法错误,Python解释器能很容易的检测出来,这时它会停止程序的运行并给出错误提示。对于逻辑错误,解释器就鞭长莫及了,这时程序会一直执行下去,但是得到的运行结果却是错误的。所以,我们常常需要对程序进行调试。最简单的调试方法是直接显示程序数据,例如可以在某些关键位置用print语句显示出变量的值,从而确定有没有出错。但是这个办法比较麻烦,因为开发人员必须在所有可疑的地方都插入打印语句。等到程序调试 阅读全文
posted @ 2012-02-10 14:17 bettermanlu 阅读(777) 评论(0) 推荐(0) 编辑
摘要: http://snowolf.iteye.com/blog/768959如果没有要求用户登录访问,也可以不写<user>@,直接smb://<ip>!比如说,我有个共享IP:192.168.0.111我想通过Mac访问它,最传统的做法就是通过Finder!选择连接到服务器:在地址栏中输入smb://zlex@192.168.0.111:系统会提示输入用户名秘密:点击连接,弹出下述窗口:嗯,后街,我需要的内容之一!打开它!看到左边共享中,有IP为192.168.0.111的一台电脑!OK了!访问成功!当然,你也可以在浏览器中直接输入smb://zlex@192.168.0 阅读全文
posted @ 2012-02-05 17:10 bettermanlu 阅读(337) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/p/wp-aec/wiki/ShortcodeOptions简单易用的WordPress日历插件,赞!安装后,只需要在blog文章中添加[calendar]即可启用。下文是calendar支持的命令参数.Shortcode Options[calendar]and[eventlist]optional parameterscategories= "1,2,3"[one or more comma separated category ids]defaults toall categorieswhen unassignedDisp 阅读全文
posted @ 2012-02-05 16:41 bettermanlu 阅读(2601) 评论(0) 推荐(0) 编辑
摘要: http://www.wujianrong.com/archives/2011/09/code_software_advice.html1. 你们的项目组使用源代码管理工具了么?应该用。VSS、CVS、PVCS、ClearCase、CCC/Harvest、FireFly都可以。我的选择是VSS。2. 你们的项目组使用缺陷管理系统了么?应该用。ClearQuest太复杂,我的推荐是BugZilla。3. 你们的测试组还在用Word写测试用例么?不要用Word写测试用例(Test Case)。应该用一个专门的系统,可以是Test Manager,也可以是自己开发一个ASP.NET的小网站。主要目的 阅读全文
posted @ 2011-10-03 15:06 bettermanlu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: http://ocaoimh.ie/2008/12/10/how-to-fix-ssh-timeout-problems/How to fix ssh timeout problemsf you use ssh a lot, you may have noticed that your ssh session times out and you’re logged out every once in a while. Annoying isn’t it?Read from remote host ocaoimh.ie: Connection reset by peerConnection to 阅读全文
posted @ 2011-09-23 13:41 bettermanlu 阅读(384) 评论(0) 推荐(0) 编辑
摘要: http://effbot.org/zone/python-with-statement.htmUnderstanding Python's "with"statementFredrik Lundh | October 2006 | Originally posted toonline.effbot.orgJudging from comp.lang.python and other forums, Python 2.5’s newwithstatementseems to be a bit confusing even for experienced Python 阅读全文
posted @ 2011-09-20 16:53 bettermanlu 阅读(342) 评论(0) 推荐(0) 编辑
摘要: http://jxfwinter.blog.163.com/blog/static/16465216920117911253659/python with语句的注解【摘】有一篇详细的介绍在:http://effbot.org/zone/python-with-statement.htm我简单翻译一下其中的要点:如果有一个类包含 __enter__ 方法和 __exit__ 方法,像这样:class controlled_execution: def__enter__(self): set things up returnthing def__exit__(self, type, value, 阅读全文
posted @ 2011-09-20 16:50 bettermanlu 阅读(1878) 评论(0) 推荐(0) 编辑
摘要: http://mrwlwan.wordpress.com/2008/09/19/python%EF%BC%9Atimeclock-vs-timetime/Python:time.clock() vs.time.time()作者Ross Wanon 2008/09/19有时候,我们需要知道程序或者当中的一段代码的执行速度,于是就会加入一段计时的代码,如下:start = time.clock() ... do somethingelapsed = (time.clock() - start)又或者start = time.time() ... do somethingelapsed ... 阅读全文
posted @ 2011-09-19 16:56 bettermanlu 阅读(1975) 评论(0) 推荐(0) 编辑
摘要: http://www.diybl.com/course/3_program/gcs/20071120/87085.html一、什么是持续集成(Continuous Integration)?这个名词已经在软件开发领域持续了N年,一个比较简单的定义如下:持续集成(CI)是一种实践,可以让团队在持续的基础 上收到反馈并进行改进,不必等到开发周期后期才寻找和修复缺陷。通俗一点儿说,就是指对于开发人员的每一次代码提交,都自动地把Repository中所有代码Check out到一个空目录,并且自动运行所有Test Case。如果成功则接受这次提交,否则告诉所有人,这是一个失败的Revision。更具体 阅读全文
posted @ 2011-09-12 22:20 bettermanlu 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页