摘要: 一、安装 : easy_install supervisor 验证是否安装成功: ubuntu@yee:~$ echo_supervisord_conf 二、配置: root@yee:~# echo_supervisord_conf > /etc/supervisord.conf ... 阅读全文
posted @ 2012-12-07 09:58 notewo 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 经常玩google plus 的,觉得它有一个效果真的很不错,如图: 鼠标经过用户名,就会显示这样的小卡片。虽然不是做前端的,不过对这一效果也研究了一下怎么实现。 效果如下: 样式嘛先不管了。 阅读全文
posted @ 2012-12-06 11:20 notewo 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 前一段时间 一直用sqlalchemy-migrate这个工具来做migrate,不过感觉不太好用。 今天开始学习Alembic 这个工具,由sqlalchemy 的作者一手开发的。 官方Tutorial:http://alembic.readthedocs.org/en/latest/tutori... 阅读全文
posted @ 2012-12-05 11:20 notewo 阅读(2492) 评论(0) 推荐(0) 编辑
摘要: 之前在django 中就用的是kindeditor,现在也试着把kindeditor整合到tornado 中。 但是有一点不同的是,我的kindeditor是异步加载的,所以方法会比较不同。 官方参考 :http://www.kindsoft.net/ke4/examples/dynamic-loa... 阅读全文
posted @ 2012-12-04 15:33 notewo 阅读(458) 评论(1) 推荐(0) 编辑
摘要: 有些时候,需要操持 ubuntu的/etc/resolv.conf可以内容不可修改。 正常的做法就是: chatt +i /etc/resole.conf 不过在ubuntu上就遇到这样的问题: chattr: 不支持的操作 while reading flags on /etc/res... 阅读全文
posted @ 2012-12-02 10:27 notewo 阅读(4368) 评论(0) 推荐(0) 编辑
摘要: 因为不想每个周末都背着公司笔记本回家,太重。无奈还是想在自己笔记上装好ubuntu,采用硬盘安装的方法,哪知,安装到中途,ubuntu卡住不动了,等了好久不见进展。关机重启(太久没有装系统,都忘了) 然后发现完了,开机又进入了 grub rescue> ubuntu的分区已经被格掉了。搜肠刮肚,解决... 阅读全文
posted @ 2012-12-01 13:33 notewo 阅读(248) 评论(0) 推荐(0) 编辑
摘要: tornado 整合jinja2,在应用到form欲上传数据时,会需要作如下的处理: 看解决方案: 用户名: 密码: {{ xsrf_form_html()|safe}} class BaseHandler(... 阅读全文
posted @ 2012-11-29 16:54 notewo 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: 参考:http://hi.baidu.com/lhuylaqqqjdqwxe/item/49839c0aa3a4ade1f45ba6ef 一 安装 $ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz$cd /root/red... 阅读全文
posted @ 2012-11-26 18:32 notewo 阅读(474) 评论(0) 推荐(0) 编辑
摘要: ubuntu上的chrome有毛病,我的RP出问题了。重装完64位的,还是没有解决 。试了一下装32位,报错,安装失败。 然后在想要重装安装 64位时,出现下面这样的错误 : ubuntu@yee:~/Downloads$ sudo dpkg -i google-chrome-stable_cu... 阅读全文
posted @ 2012-11-23 09:46 notewo 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 入程序员这一行不久,而且是从网络工程师半路转过来的。听说不懂算法的都不能算是合格的程序员,马上开始学算法。今天第一天,加油。看《Introduction to Algorithms》第三版 chapter 2 :插入算法书中的伪代码:for j == 2 to A.length key = A[j] i = j - 1 while i > 0 and A[j] > key A[i+1] = A[i] i = i -1 A[i+1] = key python :A = [1,2,4,3,10,5,7,6]for i in xrange(1... 阅读全文
posted @ 2012-11-22 17:59 notewo 阅读(159) 评论(0) 推荐(0) 编辑