04 2013 档案
开发chrome扩展程序
摘要:谷歌浏览器扩展程序官方文档:http://code.google.com/chrome/extensions/getstarted.html#入门1. 创建文件夹如:c:\demo2. 在该文件夹下创建名为manifest.json的文件,内容格式为json格式,语法如下{"name": "My First Extension","version": "1.0","description": "The first extension that I made.","b 阅读全文
posted @ 2013-04-24 17:58 网宗 阅读(304) 评论(0) 推荐(0)
完美解决关于php gd生成中文字符乱码的问题
摘要:$font_file = 'font/simhei.ttf';header("Content-type: image/png");$im = imagecreate(200,60);$bg = imagecolorallocate($im,255,255,255);$color = imagecolorallocate($im, 0, 0, 255);imagestring($im, 5, 0, 0, $qq, $color);imagefttext($im, 13, 0, 0, 35, $color, $font_file,mb_convert_encod 阅读全文
posted @ 2013-04-19 11:27 网宗 阅读(3596) 评论(0) 推荐(0)
python多线程
摘要:# _*_ coding:utf8 _*_from threading import Threadimport timedef run(n): for tc in xrange(1,60): print str(n)+'的'+str(tc)+'线程一直在执行时间:'+str(time.time())+"\n" time.sleep(1) passdef startthread(): t1 = Thread(target=run,args=(1,)) t2 = Thread(target=run,args=(2,)) ... 阅读全文
posted @ 2013-04-19 10:25 网宗 阅读(153) 评论(0) 推荐(0)
php 图像拼接
摘要:1 <?php 2 $bigphoto = "big.jpg"; 3 $footerphoto = "1.jpg"; 4 $biginfo = getimagesize($bigphoto); 5 $footerinfo = getimagesize($footerphoto); 6 7 $bigwidth = $biginfo[0]; 8 $bigheight = $biginfo[1]; 9 10 $footerwidth = $footerinfo[0];11 $footerheight= $foo... 阅读全文
posted @ 2013-04-18 14:29 网宗 阅读(891) 评论(0) 推荐(0)
解决py2exe error: MSVCP90.dll: No such file or directory
摘要:解决py2exe error: MSVCP90.dll: No such file or directory其实只要在windows目录下搜索MSVCP90.dll这个文件,然后拷到python安装目录下就可以了利用py2exe生成exe文件时如果缺少MSVCP90.dll会提示***findingdllsneeded***error:MSVCP90.dll:Nosuchfileordirectory解决办法是在脚本中加入"dll_excludes":["MSVCP90.dll"],具体代码如下:#setup.pyfromdistutils.coreim 阅读全文
posted @ 2013-04-17 09:53 网宗 阅读(564) 评论(0) 推荐(0)


糗乐网-糗事|乐事|天下事