
备忘
文章平均质量分 62
蔷薇枝
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Django 查询数据库常用语句
对应的sql语句是:select原创 2014-10-24 13:41:54 · 1433 阅读 · 0 评论 -
[MEMO]git checkin/out process
常规 Git check in/out 代码流程,仅供参考和个人MEMO默认check in的是 master branch1. clone repo from remote to local Say remote repo is test:1) git clone url_to_remote_repo/test.git test 2. create repo fro原创 2015-04-19 16:07:15 · 1623 阅读 · 0 评论 -
[MEMO] Shell 语句速记
好久不用,记着方便速查。1. if 判断if [ $i -le 3 ]; # [和]与判断条件之间一定记得留个空格。。。then #do sth.fi2. 数组操作str=`ls ./ -c `得到数组:arr=(${str})取长度:len=${#arr[*]}遍历:for x in ${arr[@]} do原创 2015-05-19 17:43:24 · 453 阅读 · 0 评论 -
[MEMO] Python argument passing
For memo. 如有错误或不当之处,还请帮忙指出。eg1:a=[2,3,4];def modify(x): x.append('x') return xprint (modify(a))print(a)result:[2, 3, 4, 'x'][2, 3, 4, 'x']可以看到a 最后确实被修改。 passing parameters by ob原创 2015-07-15 23:35:28 · 711 阅读 · 0 评论 -
JS中的迭代器和生成器
不算原创,更像是翻译,按照自己的理解组织了一下,内容主要来自Mozilla Iterators and Generators 以及页面里的相关扩展链接。原创 2017-06-02 17:32:00 · 4434 阅读 · 0 评论 -
记一个rabbitmq异常问题定位: Exception (404) Reason: "NOT_FOUND - no queue 'xxx' in vhost '/'
异常信息:Exception (404) Reason: "NOT_FOUND - no queue ‘xxx’ in vhost ‘/’常见原因: queue未创建就consume问题现象:使用go写的服务,每次启动就会连接mq,试图创建持久性的queue、声明exchange并绑定。完成后消费这些queue。 服务启动后一段时间内消费正常,稍后不定时出现连接异常,连接异常后,切换mq连接...原创 2019-04-24 15:52:58 · 21417 阅读 · 0 评论