- 博客(136)
- 收藏
- 关注
转载 一个实验
https://blog.youkuaiyun.com/small_operation/article/details/80682925
2019-07-08 12:00:53
221
原创 搭建pypi源
http://yijingping.github.io/2013/07/25/setting-up-your-own-pypi-server.html
2019-07-04 16:25:47
547
原创 使用 ccache 优化c/c++ 编译速度
1.安装:apt-get install ccache# which ccache/usr/local/bin/ccache2.导出到环境变量vi ~/.bashrc#ccacheexport USE_CCACHE=1export CCACHE_DIR=/home/xx/tools/.ccache3.设置ccache的大小ccache -M 50G4.查看ccache的信息...
2019-06-03 11:16:55
1138
原创 Python post json
def post_json(): url = 'http://x.x.x.x/api/v1/builds/report/' data = make_json() headers = {"Content-Type": "application/json; charset=UTF-8", } conn = httplib.HTTPConnection("x.x.x.x"...
2019-05-06 09:48:29
501
原创 log
docker run -i -t --name report_tempest -p 1234:80 -v /data:/report --privileged eolinker_os:4.2.0 /bin/bash
2019-04-10 21:26:21
165
原创 关于 XSS 攻击
写程序的时候 遇到了个跨域问题 根源在于浏览器的同源策略https://www.cnblogs.com/TankXiao/archive/2012/03/21/2337194.html
2019-02-27 18:59:06
196
原创 Ubuntu 安装supervisor 并挂起flask 工程和celery 任务
安装 apt install supervisor安装完成后 生成的supervisord.conf 文件一般在 /etc/supervisor文件夹下查看这个配置文件 最后的include 属性这个属性的位置就是配置program的位置比如 [include]files = /etc/supervisor/conf.d/*.conf那么我就在con.d文件夹下写配置文件...
2019-02-27 15:04:36
434
原创 ubuntu 安装mysql 以及mysql远程连接不上的问题
一、安装在网上找了很多教程,下载安装包 然后配置什么的 搞了一个小时也没搞好。后来发现在ubuntu下安装mysql只需要两个命令就安装好了 肥肠nicesudo apt install mysql-serversudo mysql_secure_installation 第二个命令会让你配置一些权限啊密码之类的,可以看看 一般都是直接输入Y,根据需要配就好了安装完了之后,...
2019-02-27 14:48:41
1145
原创 服务器搭建虚拟环境 报错 EnvironmentError: mysql_config not found
#apt-get install libmysqlclient-dev#pip install MySQL-python
2019-02-01 11:04:46
654
原创 python JSON ValueError: Expecting property name: line 9 column 3
单引号问题我使用带单引号的json字符串:{ 'property': 1}但json.loads只接受json属性的双引号:{ "property": 1}最后一个逗号问题json.loads 不接受最后一个逗号:{ "property": "text", "property2": "text2",}解决方案:ast解决单引号和...
2019-01-21 12:39:17
797
原创 https://zhuanlan.zhihu.com/p/34897270
https://zhuanlan.zhihu.com/p/34897270
2019-01-11 14:50:56
19668
原创 但行好事,莫问前程
2018已经过去十一天了,竟然我毕业也半年了,竟然我工作也已经半年了。对这半年工作的评价,我还是很满意的,开发和维护五六个平台,无论是从学习的效率还是工作的效率。但是不懂和知识和技术还有很多,要好好学习。下半年要根据学习清单和计划认真执行,不能偷懒。最难过的事,就是这半年,加班没时间运动,胖了15斤!!!!下半年要做好工作和生活的协调,岂能在最好看的时候,竟然是个胖...
2019-01-11 12:49:37
1515
原创 python虚拟环境virtualenv下安装MySQL-python
虚拟环境无法通过exe安装 可以将Lib 的 site_package 复制到虚拟环境下 MySQL_python-1.2.3-py2.7.egg-info MySQLdb _mysql.pyd _mysql_exceptions.py
2019-01-09 15:09:01
436
原创 django 提示ImportError: cannot import name json_response
使用的语句如上,其实并不是没有安装,只是需要升级一下pip install django-json-response --upgrade
2019-01-09 10:20:12
2927
原创 celery获取任务进度状态
http://www.ziyoubaba.com/archives/732https://segmentfault.com/a/1190000008022050
2018-12-28 09:41:43
15725
原创 django rest framework "Authentication credentials were not provided."
运行http http://127.0.0.1:8000/snippets/解决方法 运行的时候添加用户名和密码http -a user:password http://127.0.0.1:8000/snippets/
2018-12-06 17:00:55
3994
原创 Django-REST-framework-documentation
https://q1mi.github.io/Django-REST-framework-documentation/tutorial/quickstart_zh/
2018-12-05 17:44:46
722
原创 mysql-python 安装 EnvironmentError: mysql_config not found错误
解决办法:sudo apt-get install libmysqlclient-dev然后进入mysql_config的路径(/usr/bin/mysql_config) sudo updatedb locate mysql_config 然后再去安装,ok啦~
2018-12-05 12:26:26
478
原创 设计模式
https://design-patterns.readthedocs.io/zh_CN/latest/index.html 更多资料https://github.com/justjavac/free-programming-books-zh_CN
2018-11-29 17:15:07
109
原创 'MySQL server has gone away'
我的db又一次崩了,实在是低级错误在本地测试没有问题,但是部署在服务器上就出现了这个问题。查资料后主要是我连接数据库使用后并没有释放连接两种解决方法1、使用后释放链接2、使用数据库连接池在django中,这个问题解决起来就比较方便了。文档中就说明了文档:http://docs.peewee-orm.com/en/latest/peewee/database....
2018-11-02 14:11:50
562
原创 linux celery启动
src/redis-server celery -A tasks beatcelery -A tasks worker http://www.cnblogs.com/hellojesson/p/6425920.html 出现AttributeError: 'Flask' object has no attribute 'user_options'时,应加....
2018-09-25 21:03:12
4261
2
原创 Xshell连接VirtualBox虚拟机
https://blog.youkuaiyun.com/hp910315/article/details/70555393 两个字 好使 !码
2018-09-18 10:14:24
1211
原创 DataTable
文档地址:https://www.datatables.net/manual/installation 下载Demohttp://datatables.net/releases/DataTables-1.10.16.zip
2018-09-05 15:04:23
133
原创 python:含有中文的list
list中的元素带有编码print每个元素时 正常显示中文 但直接 print list 就会显示编码 使用str(list).decode('string_escape')
2018-08-28 19:36:53
2473
原创 android stdio Error:Execution failed for task ':app:preDebugAndroidTestBuild
https://blog.youkuaiyun.com/fighting_2017/article/details/80244982
2018-08-27 09:56:22
158
原创 windows celery
https://www.jianshu.com/p/7d60fabe638fhttps://www.cnblogs.com/forward-wang/p/5970806.html
2018-08-24 15:46:17
939
原创 android adb端口被占用
adb server version (32) doesn't match this client (40); killing...could not read ok from ADB Server* failed to start daemonerror: cannot connect to daemon https://blog.youkuaiyun.com/u013277740/ar...
2018-08-23 17:42:55
407
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人