上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 55 下一页

2017年5月23日

nginx 出现413 Request Entity Too Large问题的解决方法

摘要: 原来nginx默认上传文件的大小是1M,可nginx的设置中修改。 解决方法如下: 1.打开nginx配置文件 nginx.conf, 路径一般是:/etc/nginx/nginx.conf。 2.在http{}段中加入 client_max_body_size 20m; 20m为允许最大上传的大小 阅读全文

posted @ 2017-05-23 12:13 星河赵 阅读(2242) 评论(0) 推荐(0) 编辑

2017年5月21日

python判断一个对象是否可迭代

摘要: 如何判断一个对象是可迭代对象? 方法是通过collections模块的Iterable类型判断: 阅读全文

posted @ 2017-05-21 12:49 星河赵 阅读(7191) 评论(0) 推荐(0) 编辑

2017年5月17日

django 运行不同的settings

摘要: python manage.py runserver --settings=EMCRP.settings_local 阅读全文

posted @ 2017-05-17 15:25 星河赵 阅读(619) 评论(0) 推荐(0) 编辑

Ununtu 15.04 安装MySql(Django连接Mysql)

摘要: 本文介绍Ubuntu 15.04下安装MySQL ubuntu 15.04安装mysql django项目连接mysql 一.安装数据库 1.sudo apt-get install mysql-server 2.apt-get install client 3.sudo apt-get insta 阅读全文

posted @ 2017-05-17 10:01 星河赵 阅读(660) 评论(0) 推荐(0) 编辑

2017年5月16日

Linux SSH登录服务器报ECDSA host key "ip地址" for has changed and you have requested strict checking.错误

摘要: Linux SSH命令用了那么久,第一次遇到这样的错误:ECDSA host key "ip地址" for has changed and you have requested strict checking.记录下方便记忆。 解决方案:在终端上输入以下命令: 目的是清除你当前机器里关于你的远程服务 阅读全文

posted @ 2017-05-16 14:19 星河赵 阅读(490) 评论(0) 推荐(0) 编辑

2017年5月14日

解决将Ubuntu下导出的requirements.txt到Centos服务器上面出现pkg-resource的版本为0.0.0

摘要: 最直接有效的方法: 原因: 阅读全文

posted @ 2017-05-14 17:30 星河赵 阅读(445) 评论(0) 推荐(0) 编辑

2017年5月11日

Ubuntu安装Nginx和正确卸载Nginx Nginx相关

摘要: 1.Ubuntu下安装Nginx比较简单 敲入下列命令即可: 2.Ubuntu下卸载,稍不注意就会入坑 上面的命令基本上都能解决你在Ubuntu下安装卸载Nginx的问题。 3.查看nginx进程 Django的部署可以有很多方式,采用nginx+uwsgi的方式是其中比较常见的一种方式。 在这种方 阅读全文

posted @ 2017-05-11 13:57 星河赵 阅读(37314) 评论(0) 推荐(3) 编辑

2017年5月9日

jquery 情况form表单的所有内容

摘要: #project_file_upload 为表单的id $(':input','#project_file_upload') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); 阅读全文

posted @ 2017-05-09 17:21 星河赵 阅读(599) 评论(0) 推荐(0) 编辑

2017年5月5日

python把中文文档变为拼音

摘要: 缘由 新看到的一篇文章,被吓尿。Text Understanding from Scratch,认为word的cnn抽象能力还不够好,使用character来做cnn效果更佳。结果是,由于论文的使用的数据集里test和train有隐含的重叠,作者一度撤稿。 但是不妨碍这一思路的进展。由此扩展到中文内 阅读全文

posted @ 2017-05-05 14:28 星河赵 阅读(308) 评论(0) 推荐(0) 编辑

2017年5月2日

将多个文件夹内的txt合并

摘要: import os import re def text_create(name): """ 创建txt文件夹 """ desktop_path = '/home/xinghe/PycharmProjects/TestProject/naochuxie/' full_path = desktop_path + name + '.txt' file... 阅读全文

posted @ 2017-05-02 18:00 星河赵 阅读(788) 评论(0) 推荐(0) 编辑

上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 55 下一页

导航