vfasky.com
域名年龄: 12年5个月2天HTTP/1.1 200 OK 服务器:nginx/1.7.5 访问时间:2014年10月18日 12:21:23 类型:text/html 文件大小:12669 修改日期:2014年03月13日 16:06:14 连接:keep-alive 网页标记:"532166f6-317d" 接受单位:字节 页面编码:utf-8
vfasky's BlogHomeArchives三月 13, 2014Catke for luvit - coroutine 篇异步的回调相当麻烦,但加入协程(coroutine),会变很美好。前篇 提到的ORM,看着一层层的回调,很不优雅,对不对?下面,Catke for luvit 的 协程上场1234567891011121314151617 18 19 20 local Article = require('./models').Article local twisted = require('twisted') local yield = twisted.yield -- 写在里面的代码,能实现类 tornado 的协程支持 local async = twisted.inline_callbacks(function() -- 查询单条 local article = yield(function(gen) Article:select() :where(Article.id.Eq(id)) :get(gen) end) -- 看,不用回调了 p(article.id) end) -- 记得执行代码 async() catke-luvitcoroutineRead More十月 8, 2013Catke for luvit - ORM 篇luvit 跟 node js 类似, 但性能 是 node 的 2 到 4 倍。 luvit = luajit2 + libuv node 已经脱离了刀耕火种的年代,luvit 还是水深火热中 Q^Q Catke for luvit 是一个简单的 web 框架,让你写 luvit 的时候,不用从头再来 静态目录支持 路由支持 任务队列支持 模板引擎 异步ORM(Postgres) 类 tornado 的协程支持 Github 源码含demo Catke for luvit lua-ormluvit-ormcatke-luvitRead More五月 28, 2013Momoko+peewee=mopeeMomoko Momoko 是一个封装 Psycopg2 的异步 PostgreSQL 驱动。 配合 tornado 性能相当不错。 peewee peewee 一个轻量级的ORM, 由于其功能较简单, 性能也很不错。 于时,我将二者给合了, 就有了 mopee , 她属于 xcat 的一部分。 momokopeeweeORMpythonRead More五月 23, 2013mac 上通过 shadowsocks 代理让 bitbucket 的 git 正常工作继 github 风波后,事实再一次证明,对码农有利的,都要和谐! bitbucket 厚道地提供私有仓库,加上 bitbucket 在国外,代码放上去感觉上比国内的放心。 下面记录在 mac 下动手过程 shadowsocksbitbucketmacRead More五月 21, 2013centos6安装nginx支持SPDYSPDY SPDY是Google开发的基于传输控制协议(TCP)的应用层协议 。 Google Chrome[3],Mozilla Firefox和Opera均已支持SPDY协议。SPDY协议类似于HTTP,但旨在缩短网页的加载时间和提高安全性。SPDY协议通过压缩、多路复用和优先级来缩短加载时间。SPDY并不是首字母缩略字,而仅仅是"speedy"的缩写。SPDY现为Google的商标。 nginx 由 1.4 版开始支持 SPDY。 但由于 centos6 上的 openssl 版本比较旧,不支持 SPDY。 网上找到的安装教程(中文)比较坑爹,在折腾的过程中,我还把服务器搞傻了 -_-# 。 为了不再重复折腾,我把成功方案记录下 SPDYnginxcentosRead More五月 17, 2013基于TF-IDF自动提取摘要,关键字 插件 for HexoTF-IDF TF-IDF(term frequency–inverse document frequency)是一种用于资讯检索与文本挖掘的常用加权技术。TF-IDF是一种统计方法,用以评估一字词对于一个文件集或一个语料库中的其中一份文件的重要程度。字词的重要性随着它在文件中出现的次数成正比增加,但同时会随着它在语料库中出现的频率成反比下降。TF-IDF加权的各种形式常被搜索引擎应用,作为文件与用户查询之间相关程度的度量或评级。 wikipedia 最近看了 阮一峰 关于 TF-IDF与余弦相似性的应用 的一系列文章, 深受启发。 加上发现一个非常好的 blog 及 皮肤 于时心血来潮,写个插件练习下。 TF-IDF分词Read More五月 17, 2013在 centos6 上部署 shadowsocks 服务端shadowsocks 简介: shadowsocks 轻量级服务器中转包传输工具。 最主要的功能是帮助我们 自由地访问互联网 , 尽管 gov 说“墙”是不存在的。 shadowsocks 分:服务端, 客户端两部分。 服务端必须要在墙外! shadowsocks 客户端支持的平台有:mac、windows、linux、安卓 等。可以从 这里 下载到。 shadowsocks 服务端安装 : shadowsocks 目前有 python, nodejs, libev, 三个版本。 其中 libev 在性能、稳定性、及资源占用上都比较好。所以,说一下 libev 版在 centos 6 的安装。 centosshadowsocksRead More© 2014 vfasky ❤ Theme by unmric
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2024-09-29 11:40, Process in 0.0082 second.