Wednesday, February 29, 2012

iTunes cpu issue cpu占用过高

重装系统后,安装了iTunes 10.5 结果AppleMobileDeviceService.exe  cpu占用率50%+。
方案:
        netsh winsock reset


引用theBamber

Tuesday, February 28, 2012

pdb调试

原文链接:http://pythonconquerstheuniverse.wordpress.com/category/python-debugger/


As a programmer, one of the first things that you need for serious program development is a debugger.
Python has a debugger, which is available as a module called pdb (for “Python DeBugger”, naturally!). Unfortunately, most discussions of pdb are not very useful to a Python newbie — most are very terse and simply rehash the description of pdb in the Python library reference manual. The discussion that I have found most accessible is in the first four pages of Chapter 27 of the Python 2.1 Bible.
So here is my own personal gentle introduction to using pdb. It assumes that you are not using any IDE — that you’re coding Python with a text editor and running your Python programs from the command line.