D_yang的烂摊子

啥都干,啥都不精通.

2008年08月22日

置顶 原创 我的C.V.和Work Samples

我的C.V和W.S.阅读全文>

发表于 @ 2008年08月22日 10:39:00|评论(loading...)|举报|收藏

2009年06月22日

转载 Render_if: Conditional Parts in Nevow Templates

http://eagain.net/blog/2005/12/17/nevow_render_if.htmldef render_if(self, ctx, data): r=ctx.tag.allPatterns(str(bool(data))) return ctx.tag.clear()[r] The items are a-coming!(the items will be here)def render_ifparam(self, name): tester阅读全文>

发表于 @ 2009年06月22日 10:25:00|评论(loading...)|举报|收藏

2009年06月10日

原创 Hello World from Objective-J

在看了almost.at网站之后,我找到了Cappuccino。 Cappuccino是一个很好的框架。有让我心动的UI层。很苹果。又能免去写 我决定看看这个用Objective-J的框架。阅读全文>

发表于 @ 2009年06月10日 15:07:00|评论(loading...)|举报|收藏

2009年05月07日

原创 Athena LivePage的页面刷新异常


Athena的LivePage对象很好用,但是在刷新的时候,会有一个异常:
exceptions.AssertionError: Cannot render a LivePage more than once

官方说法是:
 LivePage instances maintain server-side state that corresponds to the connection to the browser. Because of this, each LivePage instance can only be used to serve a single client. When you serve LivePages?, make sure that you create a new instance for each render pass.

LivePage对象维护着服务端的状态,这个状态对应着从浏览器过来的连接。因此,每个LivePage对象只能用来为一个客户端服务。当你使用LivePage阅读全文>

发表于 @ 2009年05月07日 14:05:00|评论(loading...)|举报|收藏

2009年05月06日

原创 Twisted adbapi的使用

Twisted adbapi没有太多文档。 这段时间我一直在用Twisted + sqlite(3), 效果还是不错的。 今天实验了连接mysql,碰到一些问题,主要是编码UnicodeEncodeError的问题。阅读全文>

发表于 @ 2009年05月06日 14:10:00|评论(loading...)|举报|收藏

2009年05月05日

原创 Twisted TimerService的使用(以及由此带来的诡异事件)

TimerService是twisted里提供的一个对loopingcall的service封装。是在服务运行的期间反复执行某个方法的手段。阅读全文>

发表于 @ 2009年05月05日 15:28:00|评论(loading...)|举报|收藏

2009年05月04日

原创 Flex模块化的一种思路

翻出两年前的代码,无意中看到写的一个模块化应用的范例。和大家共享。假如你碰到:1. 比较大的应用。2. 分若干个Module的应用。3. Module之间有比较复杂的交互。4. 你希望更动态的使用这些模块,开发新的模块。...或许你需要看看这篇文章。阅读全文>

发表于 @ 2009年05月04日 11:39:00|评论(loading...)|举报|收藏

2009年05月02日

原创 Twistd一个诡异的地方



有个不好的习惯,老喜欢用root帐号。
运行twistd程序的时候,代码老是报错,找不到包之类的。
无意中看到:
http://linux.die.net/man/1/twistd
Note that if twistd is run as root, the working directory is not searched for Python modules.是否是这个原因?阅读全文>

发表于 @ 2009年05月02日 10:27:00|评论(loading...)|举报|收藏

2009年04月30日

原创 Twisted Cron的用法

twistedcronservice可以让我们像使用linux下cron那样使用twisted的scheduling 不过我更喜欢用twisted自己的Scheduling utility 加上Cooperator, CooperatorServer, 齐了。 下一篇我会写一个完Application整的实例。阅读全文>

发表于 @ 2009年04月30日 16:47:00|评论(loading...)|举报|收藏

原创 svn hook的post-commit不执行咋办?



在post-commit文件上加:

export LANG=zh_CN.UTF-8阅读全文>

发表于 @ 2009年04月30日 14:58:00|评论(loading...)|举报|收藏

Csdn Blog version 3.1a
Copyright © 杨振宇