kaixinhaha.com
php
http://www.kaixinhaha.com/ca_php.html
Discuz can not write to the data/tmp. 刚才论坛上传头像出现这样的错误 can not write to the data/tmp folder. Discuz can not write to the data/tmp. 刚才论坛上传头像出现这样的错误 can not write to the data/tmp folder. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Discuz can not write to the data/tmp. Discuz can not write to the data/tmp. Python 标准库 urllib2 的使用细节. Python 标准库 urllib2 的使用细节.
kaixinhaha.com
validate-Tag
http://www.kaixinhaha.com/tag_43.html
真是不用不知道,一种真奇妙啊 (jquery.validate.js 下载地址 http:/ bassistance.de/jquery-plugins/jquery-plugin-validation/),. 真是不用不知道,一种真奇妙啊 (jquery.validate.js 下载地址 http:/ bassistance.de/jquery-plugins/jquery-plugin-validation/),. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Discuz can not write to the data/tmp. Discuz can not write to the data/tmp. Python 标准库 urllib2 的使用细节.
kaixinhaha.com
django
http://www.kaixinhaha.com/ca_django.html
以上的这个model的调用应该是appname.modelname,之前怎么写都调不出来,看了一下django.db.get model方法发现掉错了。 以上的这个model的调用应该是appname.modelname,之前怎么写都调不出来,看了一下django.db.get model方法发现掉错了。 Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Discuz can not write to the data/tmp. Discuz can not write to the data/tmp. Python 标准库 urllib2 的使用细节. Python 标准库 urllib2 的使用细节.
kaixinhaha.com
database
http://www.kaixinhaha.com/ca_database.html
Data too long for column 问题. 在页面中向mysql5.0插入中文数据时提示失败,将sql语句复制到管理器中,数据库提示data too long for column title,我改为一个汉字,还是提示同样的信息,换成英文再试一下,正常,应该是字符集除了问题,但是数据库在建立的时候就选择的DEFAULT CHARSET,应该是字段的问题。 Data too long for column 问题. 在页面中向mysql5.0插入中文数据时提示失败,将sql语句复制到管理器中,数据库提示data too long for column title,我改为一个汉字,还是提示同样的信息,换成英文再试一下,正常,应该是字符集除了问题,但是数据库在建立的时候就选择的DEFAULT CHARSET,应该是字段的问题。 安装python-MySQLdb出错,Unable to find vcvarsall.bat. 安装python-MySQLdb出错,Unable to find vcvarsall.bat. Nginx django uwsgi virtualenv 配置.
kaixinhaha.com
linux
http://www.kaixinhaha.com/ca_linux.html
部署Django Nginx Gunicorn virtualenv supervisord应用. 部署Django Nginx Gunicorn virtualenv supervisord应用. 安装python-MySQLdb出错,Unable to find vcvarsall.bat. 安装python-MySQLdb出错,Unable to find vcvarsall.bat. 安装python-MySQLdb出错,Unable to find vcvarsall.bat. 安装python-MySQLdb出错,Unable to find vcvarsall.bat. Svn 的hook一直使用正常,很容易的实现了代码上传后,发布环境的更新于重新生成,突然不知道什么原因开始异常,不进行更新,检查后发现是由于模板目录中设计怕改错页面用中文重新命名了一个文件名称,就是这个中文文件造成了svn hook的失效,最后在 post-commit 中 增加 export LANG=zh CN.UTF-8 问题解决。 Vsftpd 上传权限 600 的问题. Vsftpd 上传权限 600 的问题.
kaixinhaha.com
jquery validate 应用例子
http://www.kaixinhaha.com/jquery-validate.html
验证表单是我们经常需要做的,今天发现了jQuery一个很强大的验证表单插件(jquery.validate.js 下载地址 http:/ bassistance.de/jquery-plugins/jquery-plugin-validation/),研究了一下发现他不光强大而且十分易于上手。 Script function checkidcard(num){ var len = num.length, re; if (len = 15) re = new RegExp(/ ( d{6})()? D{2})( d{2})( d{2})( d{3})$/); else if (len = 18) re = new RegExp(/ ( d{6})()? D{4})( d{2})( d{2})( d{3})( d)$/); else{ / alert(请输入15或18位身份证号,您输入的是 len 位); return false; } var a = num.match(re); if (a! 下一篇:discuz can not write to the data/tmp. Nginx django u...
kaixinhaha.com
Python列表去重
http://www.kaixinhaha.com/python-list.html
Import random if name = ' main ': a=[random.randint(0,10) for i in xrange(10)] b=list(set(a). Import random if name = ' main ': a=[random.randint(0,10) for i in xrange(10)] d={} for i in a: d[i]=1 print d.keys(). Import random if name = ' main ': a=[random.randint(0,10) for i in xrange(10)] a.sort() print [x for i,x in enumerate(a) if not i or x! Import random import itertools if name = ' main ': a=[random.randint(0,10) for i in xrange(10)] a.sort() print [x[0] for x in itertools.groupby(a)].
kaixinhaha.com
discuz-Tag
http://www.kaixinhaha.com/tag_42.html
Discuz can not write to the data/tmp. 刚才论坛上传头像出现这样的错误 can not write to the data/tmp folder. Discuz can not write to the data/tmp. 刚才论坛上传头像出现这样的错误 can not write to the data/tmp folder. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Nginx django uwsgi virtualenv 配置. 使用 Notepad 编辑运行 Python 程序. Discuz can not write to the data/tmp. Discuz can not write to the data/tmp. Python 标准库 urllib2 的使用细节. Python 标准库 urllib2 的使用细节.
kaixinhaha.com
安装django-cms报错
http://www.kaixinhaha.com/django-cms-install.html
Load entry point('djangocms-installer= 0.4.1', 'console scripts', 'djangocms')() File /home/shan/workspace/venv/djvenv2/local/lib/python2.7/site-packages/djangocms installer/main.py, line 24, in execute install.check install(config data) File /home/shan/workspace/venv/djvenv2/local/lib/python2.7/site-packages/djangocms installer/install/ init .py, line 52, in check install raise EnvironmentError( n.join(errors) EnvironmentError: Pillow is not compiled with JPEG support, se...下一篇:Python 标准库 urllib2 的使用细节.