码迷,mamicode.com
首页 >  
搜索关键字:module    ( 11207个结果
nginx获取url参数
在文件src\http\ngx_http_core_module.c的函数ngx_http_core_run_phases(ngx_http_request_t *r)里面,添加如下代码://声明部分 ngx_str_t* name; ngx_http_variable_value_t*...
分类:其他好文   时间:2014-08-18 17:56:22    阅读次数:1094
Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
最近在用Python开发自己的博客,需要用到Python生成验证码,当然肯定要用到Python的图形处理库PIL,因为我用的是windows。 所以在安装好pil之后就开始写,就按照题目所说出现了The _imagingft C module is not installed 错误,找了很多建议,最后确定在windows下应该用pillpw。下载地址http://www.lfd.uci.edu/...
分类:编程语言   时间:2014-08-18 14:35:52    阅读次数:300
Nginx之http_image_filter_module模块使用
一、安装#yum install gd-devel##./configure --prefix=/usr/local/nginx \# --with-debug \# --with-http_stub_status_module ...
分类:其他好文   时间:2014-08-18 14:17:42    阅读次数:154
Python Django Apache配置
项目结构目录:Apache 安装配置目录:C:\Apache2.2\conf\httpd.confLoadModule wsgi_module modules/mod_wsgi.soWSGIScriptAlias / D:\TestApp\MyDjangoSite\mysite\mysite\wsg...
分类:编程语言   时间:2014-08-18 12:03:04    阅读次数:229
Perl语言学习笔记 11 Perl模块
1、模块来源:随Perl发行版本一起打包、从CPAN下载 2、阅读模块文档:perldoc CGI 3、安装模块 makemaker方式: 指定安装目录: Module::build方式: cpan方式: 4、File::basename模块 5、仅选用模块的部分函数 导入引用列表即可 10、不引入任何函数 通过全名的方式使用: 11、...
分类:其他好文   时间:2014-08-17 15:40:33    阅读次数:209
在python中扩展c语言模块
有一个以前写的c语言代码,我想把它用在python程序中。我先是看了《python基础教程》一书中的方法,书中说可以用swig加python内置distutils模块的方法来实现。我照着书上的步骤试了试,结果在导入模块的时候总是提示“ImportError: dynamic module does not define init function (initprintf)”。起初我以为是so文...
分类:编程语言   时间:2014-08-16 16:32:30    阅读次数:304
菜鸟学jQuery源码(一)
整个jQuery是一个自调用的匿名函数: 1 (function(global, factory) { 2 if (typeof module === "object" && typeof module.exports === "object") { 3 module.exp...
分类:Web程序   时间:2014-08-15 23:42:49    阅读次数:300
JNI实现JAVA和C++互相调用
SDK.h 1 #ifndef SDK_H 2 #define SDK_H 3 4 #include "AsyncProxy.h" 5 #include "Module.h" 6 #include 7 #include 8 #include 9 using std::map;10 using...
分类:编程语言   时间:2014-08-15 19:15:09    阅读次数:273
[python]一个低级错误/xxx instance has no attribute 'xxx'/'module' object is not callable
今天在写代码的时候出现了以下两个错误:TypeError: 'module' object is not callableAttributeError: excelChange instance has no attribute 'xlBook'上网一查,发现第一个错误是由于python中有两种不同...
分类:编程语言   时间:2014-08-15 17:37:29    阅读次数:344
一次ansible故障排除
运行ansbile时候报错:[root@localhostpyhook-2014-06-09-17:47:17-2454]#ansibleTraceback(mostrecentcalllast):File"/usr/bin/ansible",line25,in<module>fromansible.runnerimportRunnerFile"/usr/lib/python2.6/site-packages/ansible/runner/__init__.py",line37,in..
分类:其他好文   时间:2014-08-15 14:53:19    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!