<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>后院&#124;kevin’s backyard &#187; python</title>
	<atom:link href="http://kevin.9511.net/archives/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://kevin.9511.net</link>
	<description>立志做一个混事业型男人</description>
	<lastBuildDate>Fri, 30 Apr 2010 16:55:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Jython+Modjy+GoogleAppEngine</title>
		<link>http://kevin.9511.net/archives/442.html</link>
		<comments>http://kevin.9511.net/archives/442.html#comments</comments>
		<pubDate>Wed, 13 Jan 2010 18:44:01 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[七零八碎]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[modjy]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://kevin.9511.net/?p=442</guid>
		<description><![CDATA[Modjy是一个让Jython应用可以在Java Servlet容器内运行的桥梁，是一个标准的WSGI实现。并且该项目已经被正式纳入到了Jython项目中。
现在Jython和modjy也可以在目前世界上最大的Servlet容器——Google AppEngine上运行了。
之前要使Jython运行在Google AppEngine上，是需要使用Google发布的的一个补丁，但最新的Jython2.5版已经不需要了。
Google AppEngine服务限制每个应用程序所包含的文件不能大于1000个。但是Jython的Lib目录下文件很多，显然已经超过了这个限制。最简单的解决方法是把所有的库文件都放在一个ZIP文件内。然后，还需要建立一个.pth文件应来指向这个zip文件。这个.pth文件的主文件名是什么无所谓，可以随便起。文件内容只需一句话“lib.zip”。把all.pth和lib.zip一起放在你的GoogleAppEngine项目WEB-INF/lib-python目录下。
这个过程看起来比较复杂，不过没关系，modjy官方提供了一个制作好的包，你只需要下载Jython2.5，并把jython.jar文件复制到WEB-INF/lib目录下就好了。
下面的链接是这个包的地址：
http://code.google.com/p/rui7905/downloads/detail?name=modjy_webapp.zip
OR
http://downloads.xhaus.com/modjy_webapp_google_appengine/
里面还包含一个完整的使用modjy开发的demo程序，可以直接不经修改的在GoogleAppEngine上运行。样子看这里：http://jywsgi.appspot.com/ 。整个压缩包的结构如下：

以上文字大部分翻译自modjy官方的一个说明，原文在这里。
参考文档
http://code.google.com/appengine/docs/java/overview.html
http://opensource.xhaus.com/projects/modjy/wiki
]]></description>
			<content:encoded><![CDATA[<p><a href="http://modjy.xhaus.com/" target="_blank">Modjy</a>是一个让<a href="http://www.jython.org/" target="_blank">Jython</a>应用可以在Java Servlet容器内运行的桥梁，是一个标准的<a href="http://zh.wikipedia.org/wiki/WSGI" target="_blank">WSGI</a>实现。并且该项目已经被正式纳入到了Jython项目中。</p>
<p>现在Jython和modjy也可以在目前世界上最大的Servlet容器——Google AppEngine上运行了。</p>
<p>之前要使Jython运行在Google AppEngine上，是需要使用Google发布的的一个补丁，但最新的Jython2.5版已经不需要了。<span id="more-442"></span></p>
<p>Google AppEngine服务限制每个应用程序所包含的文件不能大于1000个。但是Jython的Lib目录下文件很多，显然已经超过了这个限制。最简单的解决方法是把所有的库文件都放在一个ZIP文件内。然后，还需要建立一个.pth文件应来指向这个zip文件。这个.pth文件的主文件名是什么无所谓，可以随便起。文件内容只需一句话“lib.zip”。把all.pth和lib.zip一起放在你的GoogleAppEngine项目WEB-INF/lib-python目录下。</p>
<p>这个过程看起来比较复杂，不过没关系，modjy官方提供了一个制作好的包，你只需要下载Jython2.5，并把jython.jar文件复制到WEB-INF/lib目录下就好了。</p>
<p>下面的链接是这个包的地址：<br />
<a href="http://code.google.com/p/rui7905/downloads/detail?name=modjy_webapp.zip" target="_blank">http://code.google.com/p/rui7905/downloads/detail?name=modjy_webapp.zip</a><br />
OR<br />
<a href="http://downloads.xhaus.com/modjy_webapp_google_appengine/" target="_blank">http://downloads.xhaus.com/modjy_webapp_google_appengine/</a></p>
<p>里面还包含一个完整的使用modjy开发的demo程序，可以直接不经修改的在GoogleAppEngine上运行。样子看这里：<a href="http://jywsgi.appspot.com/" target="_blank">http://jywsgi.appspot.com/</a> 。整个压缩包的结构如下：</p>
<p><img class="alignnone size-full wp-image-449" title="modjy_webapp" src="http://kevin.9511.net/wp-content/uploads/2010/01/modjy_webapp.png" alt="modjy_webapp" width="435" height="208" /></p>
<p>以上文字大部分翻译自modjy官方的一个说明，<a href="http://opensource.xhaus.com/projects/modjy/wiki/ModjyGoogleAppEngine">原文在这里</a>。<br />
参考文档<br />
<a href="http://code.google.com/appengine/docs/java/overview.html" target="_blank">http://code.google.com/appengine/docs/java/overview.html</a><br />
<a href="http://opensource.xhaus.com/projects/modjy/wiki" target="_blank">http://opensource.xhaus.com/projects/modjy/wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.9511.net/archives/442.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoogleAppEngine上有意思的玩意和工具</title>
		<link>http://kevin.9511.net/archives/432.html</link>
		<comments>http://kevin.9511.net/archives/432.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 02:33:12 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[七零八碎]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google appengine]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://kevin.9511.net/?p=432</guid>
		<description><![CDATA[Google的AppEngine真是个挺好玩也挺耐玩的东西，可我除了用它做了个TwitterAPI的代理，其他的也想不出来能在上面玩点啥了。
闲着无聊，就开始翻看code.google.com上的目录，并以“GoogleAppEngine”为关键字搜索。翻了一个多小时，也算找了几个好玩的东西，有些是跑在GAE上的应用程序，有些是GAE的辅助开发工具，还有些……我也不知道能干嘛了，反正都是跟GAE有关。那些多如牛毛的Blog啊Proxy啊framework啊之类的东西实在是没啥新意，就略过不提了……
google-appengine-wx-launcher
用wxWidgets写的一个运行于Windows平台下的应用程序，用来创建、运行、部署、管理你的Google App Engine项目。该项目也有运行在Mac和Linux上的版本。
http://code.google.com/p/google-appengine-wx-launcher/
gae-testbed
GAE应用的测试环境
http://code.google.com/p/gae-testbed/
google-file-service(Java)
跑在GAE上的开源文件存储服务
http://code.google.com/p/google-file-service/
fashion-girls
开源的跑在GAE上的个人相册
http://code.google.com/p/fashion-girls/
gaelucene
Run Lucene Application On Google AppEngine
http://code.google.com/p/gaelucene/
appscale
开源的GAE云计算接口解决方案，该项目由加州大学圣巴巴拉分校RACELab开发并被google和美国国家科学基金会所支持。看上去比较NB，好像是可以用它自己搭建一个可以运行GAE应用的运行环境。
http://code.google.com/p/appscale/
GAESQL
在线设计 Google App Engine 的数据库 , 并且能将设计结果输出为 python 的脚本。GAE SQL Designer
http://gaesql.appspot.com/
]]></description>
			<content:encoded><![CDATA[<p>Google的AppEngine真是个挺好玩也挺耐玩的东西，可我除了用它做了个TwitterAPI的代理，其他的也想不出来能在上面玩点啥了。</p>
<p>闲着无聊，就开始翻看code.google.com上的目录，并以“GoogleAppEngine”为关键字搜索。翻了一个多小时，也算找了几个好玩的东西，有些是跑在GAE上的应用程序，有些是GAE的辅助开发工具，还有些……我也不知道能干嘛了，反正都是跟GAE有关。那些多如牛毛的Blog啊Proxy啊framework啊之类的东西实在是没啥新意，就略过不提了……<span id="more-432"></span></p>
<blockquote><p><strong>google-appengine-wx-launcher</strong><br />
用wxWidgets写的一个运行于Windows平台下的应用程序，用来创建、运行、部署、管理你的Google App Engine项目。该项目也有运行在Mac和Linux上的版本。<br />
<a href="http://code.google.com/p/google-appengine-wx-launcher/" target="_blank">http://code.google.com/p/google-appengine-wx-launcher/</a></p>
<p><strong>gae-testbed</strong><br />
GAE应用的测试环境<br />
<a href="http://code.google.com/p/google-appengine-wx-launcher/" target="_blank">http://code.google.com/p/gae-testbed/</a></p>
<p><strong>google-file-service</strong>(Java)<br />
跑在GAE上的开源文件存储服务<br />
<a href="http://code.google.com/p/google-file-service/" target="_blank">http://code.google.com/p/google-file-service/</a></p>
<p><strong>fashion-girls</strong><br />
开源的跑在GAE上的个人相册<br />
<a href="http://code.google.com/p/fashion-girls/" target="_blank">http://code.google.com/p/fashion-girls/</a></p>
<p><strong>gaelucene</strong><br />
Run Lucene Application On Google AppEngine<br />
<a href="http://code.google.com/p/gaelucene/" target="_blank">http://code.google.com/p/gaelucene/</a></p>
<p><strong>appscale</strong><br />
开源的GAE云计算接口解决方案，该项目由加州大学圣巴巴拉分校RACELab开发并被google和美国国家科学基金会所支持。看上去比较NB，好像是可以用它自己搭建一个可以运行GAE应用的运行环境。<br />
<a href="http://code.google.com/p/appscale/" target="_blank">http://code.google.com/p/appscale/</a></p>
<p><strong>GAESQL</strong><br />
在线设计 Google App Engine 的数据库 , 并且能将设计结果输出为 python 的脚本。GAE SQL Designer<br />
<a href="http://gaesql.appspot.com/" target="_blank">http://gaesql.appspot.com/</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://kevin.9511.net/archives/432.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life is short. Use Python</title>
		<link>http://kevin.9511.net/archives/180.html</link>
		<comments>http://kevin.9511.net/archives/180.html#comments</comments>
		<pubDate>Tue, 07 Apr 2009 18:50:18 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[七零八碎]]></category>
		<category><![CDATA[Haskell]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://kevin.9511.net/archives/180.html</guid>
		<description><![CDATA[因为新工作的关系，已经连续好几天在研究python这门语言。也看了国内国外很多关于python的文章。随着这几天对python了解的深入，让我越发觉得，学习python，实在是“迫在眉睫了”。
作为一个用PHP做了差不多快8年web开发的Coder，学习python，自然要从web开发这块儿入手了。花了两个多小时，通读了python.org上的“HOWTO Use Python in the web”，收益匪浅，不仅仅是python的web开发。再次感叹一下，国内怎么就没有这么简单明了的理论性入门文章，要不是我英文和中文的表达能力实在太差，真想给它翻译一把。
在搭建nginx+python的运行环境时，偶然间了解到了一门新的语言——Haskell。
其实说它新，只是对我来说……人家都存在了n年了。它的中文介绍，百度百科里有。在一篇介绍这门语言的教程里，看到了这么句话：
“从以人为本的角度来看，程序员的时间比机器的时间更宝贵，所以Haskell是明智的选择”
其实我觉得，把这句话用在python身上，也许正是现在如此多的人选择python的原因
Come on Baby，放弃那些类似“能够用不少于6种方式来写一个for循环” 的花花肠子，Use Python
正所谓——人生苦短，我用python~！

]]></description>
			<content:encoded><![CDATA[<p>因为新工作的关系，已经连续好几天在研究python这门语言。也看了国内国外很多关于python的文章。随着这几天对python了解的深入，让我越发觉得，学习python，实在是“迫在眉睫了”。</p>
<p>作为一个用PHP做了差不多快8年web开发的Coder，学习python，自然要从web开发这块儿入手了。花了两个多小时，通读了<a href="http://www.python.org" title="Python.org">python.org</a>上的“<a href="http://www.python.org/doc/2.6/_sources/howto/webservers.txt" title="HOWTO Use Python in the web" target="_blank">HOWTO Use Python in the web</a>”，收益匪浅，不仅仅是python的web开发。再次感叹一下，国内怎么就没有这么简单明了的理论性入门文章，要不是我英文和中文的表达能力实在太差，真想给它翻译一把。</p>
<p>在搭建nginx+python的运行环境时，偶然间了解到了一门新的语言——<a href="http://haskell.org/" title="http://haskell.org/" target="_blank">Haskell</a>。<br />
其实说它新，只是对我来说……人家都存在了n年了。它的中文介绍，<a href="http://baike.baidu.com/view/765704.htm" target="_blank">百度百科里有</a>。在一篇介绍这门语言的<a href="http://www.cnblogs.com/erain/archive/2008/12/17/1357175.html" target="_blank">教程里</a>，看到了这么句话：</p>
<blockquote><p>“从以人为本的角度来看，程序员的时间比机器的时间更宝贵，所以Haskell是明智的选择”</p></blockquote>
<p>其实我觉得，把这句话用在python身上，也许正是现在如此多的人选择python的原因</p>
<p>Come on Baby，放弃那些类似“能够用不少于6种方式来写一个for循环” 的花花肠子，Use Python</p>
<p>正所谓——<strong>人生苦短，我用python~！</strong></p>
<p><a href="http://kevin.9511.net/wp-content/uploads/2009/04/11111.jpg" title="11111.jpg"><img src="http://kevin.9511.net/wp-content/uploads/2009/04/11111.jpg" alt="11111.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.9511.net/archives/180.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

