摘要:
Q: chinese can not appear in my firefox and terminal rightly A: pacman -S wqy-microhei Q: install pip in arch linux A: first go to pypi.python.org sea 阅读全文
posted @ 2016-03-13 02:11
symons
阅读(185)
评论(0)
推荐(0)
|
摘要:
Q: chinese can not appear in my firefox and terminal rightly A: pacman -S wqy-microhei Q: install pip in arch linux A: first go to pypi.python.org sea 阅读全文
posted @ 2016-03-13 02:11
symons
阅读(185)
评论(0)
推荐(0)
摘要:
先贴一点有关的flask代码,时间有限,我慢慢扩充以下是flask源码中app.py中add_url_rule的代码。主要是view_func -- endpoint -- url 之间的对应关系。flask中,view_func与url并不是直接对应的,是url先找到endpoint, 然后通过e... 阅读全文
posted @ 2015-12-07 03:20
symons
阅读(3143)
评论(0)
推荐(0)
摘要:
runtime! debian.vim"设置编码set encoding=utf-8set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936set fileencodings=utf-8,ucs-bom,chinese"语言设置set la... 阅读全文
posted @ 2015-08-06 23:03
symons
阅读(370)
评论(0)
推荐(0)
摘要:
首先django-restframework是基于django的一个框架。mixins.py中开头是这样写的:Basic building blocks for generic class based views.We don't bind bahaviour to http method hand... 阅读全文
posted @ 2015-04-14 17:25
symons
阅读(658)
评论(0)
推荐(0)
摘要:
mysql left join,right join,inner join用法分析leftjoin:是以A表的记录为基础的,A可以看成左表,B可以看成右表,leftjoin是以左表为准的.换句话说,左表(A)的记录将会全部表示出来,而右表(B)只会显示符合搜索条件的记录(例子中为:A.aID=B.b... 阅读全文
posted @ 2015-04-08 16:25
symons
阅读(181)
评论(0)
推荐(0)
摘要:
下面的代码都是我从github上下载的源码中摘取的django: https://github.com/django/django 下载命令: git clone https://github.com/django/django.gitrest_framework: https://github.c... 阅读全文
posted @ 2015-03-26 17:30
symons
阅读(1233)
评论(0)
推荐(0)
摘要:
表述性状态传递(英文:Representational State Transfer,简称REST)Roy在他的论文中提出了一个RESTful应用应该具备的几点约束。每个资源都应该有一个唯一的标识使用标准的方法来更改资源的状态Request和Response的自描述资源多重表述无状态的服务 阅读全文
posted @ 2015-03-23 17:07
symons
阅读(190)
评论(0)
推荐(0)
摘要:
ps -ef | grep test | awk '{ if($2!="PID"){print $2} }' | xargs kill -9 这样可以杀掉相同程序目标不同的任务,很方便。 一行就搞定,很方便。 登陆机器时候,如果22端口关闭,想要用别的端口穿的话,比如10022端口 ssh -p10 阅读全文
posted @ 2015-01-26 19:28
symons
阅读(278)
评论(0)
推荐(0)
摘要:
以后还会继续更新这个博客。 会建立详细的文章列表和关键词来做索引,或者写一个工作中和工作后的新的技巧。 继续学习~ 嘿嘿 阅读全文
posted @ 2015-01-18 01:52
symons
阅读(118)
评论(0)
推荐(0)
|