09 2011 档案

[python]pyramid 学习1 (hello world)
摘要:安装easy_install pyramid异常情况:安装的时候要求zope.interface 3.80以上easy_install zope.interfacehello world 1 from paste.httpserver import serve 2 from pyramid.config import Configurator 3 from pyramid.response import Response 4 from pyramid.view import view_config 5 6 @view_config(name='hello',request_me 阅读全文

posted @ 2011-09-29 17:17 bluefrog 阅读(995) 评论(3) 推荐(0)

[gvim]vim批量注释
摘要:批量注释ctrl+v 进入列编辑模式,向下或向上移动光标,把需要注释的行的开头标记起来,然后按大写的I(shift+i),再插入注释符,比如"//",再按Esc,就会全部注释了批量去掉注释ctrl+v,进入列编辑模式,横向选中列的个数(如"//"注释符号,需要选中两列),然后按d, 就会删除注释符号 阅读全文

posted @ 2011-09-27 16:02 bluefrog 阅读(3754) 评论(0) 推荐(0)

sphinx 配置&demo
摘要:下载0.99稳定版本http://sphinxsearch.com/downloads/release解压tar -zvxf sphinx-0.9.9.tar.gz安装cd sphinx-0.9.9./configuremake && make install以下是sphinx自带一个例子(使用mysql, 还支持其它数据库)导入测试数据mysql-u root -p </usr/local/sphinx/etc/example.sql创建配置文件cd /usr/local/sphinx/etccp sphinx.conf.dist sphinx.confvi sphin 阅读全文

posted @ 2011-09-19 16:28 bluefrog 阅读(818) 评论(0) 推荐(0)