04 2011 档案

摘要:软件开发的断点调试是必不可少,这里介绍ubuntu10.04中eclipse工具中php的调试配置。 本打算配置ZendDebugger 进行调试,配置了老长时间没配置成功,在phpinfo看不到ZendDebugger生效,经查发现是php5.3的问题,必须先卸载,本文介绍使用xdebug了。 软件安装太简单了,分别执行如下命令: sudo apt-get install apache2 sud... 阅读全文
posted @ 2011-04-30 08:11 Mingxx 阅读(951) 评论(0) 推荐(0)
摘要:!include <win32.mak> all = hello.exe objs = hello.obj .c.obj: $(cc) $(cflags) $(cvars) $*.c hello.exe:$(objs) $(link) $(guiflags) –out:hello.exe $(guilibs) $(objs) 阅读全文
posted @ 2011-04-22 20:46 Mingxx 阅读(187) 评论(0) 推荐(0)
摘要:>>>import chardet >>>chardet.detect(“e:\\a.txt”) {‘encoding’: ‘gb2312’, confidence:0.99} 阅读全文
posted @ 2011-04-01 00:57 Mingxx 阅读(890) 评论(1) 推荐(0)
摘要:1. import os,sys r = raw_input(“type a directory name”) for root, dirs, files in os.walk(r): for f in files: print root, os.sep, f; 2. import os,sys def walkdir(dirname): try: ls = os.listdir(dirname)... 阅读全文
posted @ 2011-04-01 00:54 Mingxx 阅读(363) 评论(0) 推荐(0)