<?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>解惑 &#187; GAE</title>
	<atom:link href="http://www.jiehoo.me/tag/gae/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jiehoo.me</link>
	<description>解己之惑，解人之惑</description>
	<lastBuildDate>Mon, 19 Jul 2010 10:01:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>GAE+ ZK没有那么成熟</title>
		<link>http://www.jiehoo.me/zk-plus-gae-is-not-full-fledged.htm</link>
		<comments>http://www.jiehoo.me/zk-plus-gae-is-not-full-fledged.htm#comments</comments>
		<pubDate>Sat, 01 Aug 2009 07:33:46 +0000</pubDate>
		<dc:creator>Cherami</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[ZK]]></category>
		<category><![CDATA[问题]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.jiehoo.com/zk-plus-gwt-is-not-full-fledged.htm</guid>
		<description><![CDATA[开始的感觉都还不错，把原来为公司做POC的一个项目拷贝过来修改修改就可以跑了，在本地基本可以用，但是有些问题： 添加修改数据的窗口不能用Modal窗口，错误消息是：Event processing thread is disabled（这个是因为ZK+GAE本来就需要把事件线程disable掉，因为GAE里面不能开线程） 把Modal窗口修改成Popup窗口，本地是好的，但是上传到GWT没有反应也没有报错。]]></description>
			<content:encoded><![CDATA[<p class='fp'>开始的感觉都还不错，把原来为公司做POC的一个项目拷贝过来修改修改就可以跑了，在本地基本可以用，但是有些问题：</p>
<ul>
<li>添加修改数据的窗口不能用Modal窗口，错误消息是：Event processing thread is disabled（这个是因为ZK+GAE本来就需要把事件线程disable掉，因为GAE里面不能开线程）</li>
<li>把Modal窗口修改成Popup窗口，本地是好的，但是上传到GWT没有反应也没有报错。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jiehoo.me/zk-plus-gae-is-not-full-fledged.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>经验也会帮倒忙</title>
		<link>http://www.jiehoo.me/%e7%bb%8f%e9%aa%8c%e4%b9%9f%e4%bc%9a%e5%b8%ae%e5%80%92%e5%bf%99.htm</link>
		<comments>http://www.jiehoo.me/%e7%bb%8f%e9%aa%8c%e4%b9%9f%e4%bc%9a%e5%b8%ae%e5%80%92%e5%bf%99.htm#comments</comments>
		<pubDate>Thu, 30 Jul 2009 09:27:24 +0000</pubDate>
		<dc:creator>Cherami</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[ZK]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[i18n]]></category>

		<guid isPermaLink="false">http://www.jiehoo.com/%e7%bb%8f%e9%aa%8c%e4%b9%9f%e4%bc%9a%e5%b8%ae%e5%80%92%e5%bf%99.htm</guid>
		<description><![CDATA[本来打算那个Notes-all用Google的全套解决方案的，就是用GWT + Google App Engine，看了下GWT的Sample，发现还是比较麻烦，但是感觉思路和ZK还是很像的，就打算比较下GWT和ZK，结果发现有人说可以把ZK成功发布到Google App Engine，试了下，果然是可以的，有兴趣的可以试试（在ZK网站可以下载zk-gae的sample，基于这个很容易建立自己的工程）。 基于我玩过一段时间的ZK，当然用ZK更方便了。 今天把原来的东西复制过去了，在做国际化的时候，用Eclipse编辑properties文件，里面有中文，不能保存，只能保存ISO-8859-1编码的内容。后来想着应该装个插件，下载了，好使，但是运行起来发现并没有把转码的内容显示为正确的中文，很奇怪。后来怀疑ZK读取properties文件的时候和Java读取国际化文件不一样，把properties文件的编码修改为UTF-8，然后直接用文本编辑器输入中文内容，运行测试，正常！ 这个就是一般的国际化处理的经验造成的问题。 最后说一下，对ZK的这个违反Java惯例的方式赞一下，因为我一直对Java的这个需要把properties国际化文件用native2ascii转换的过程很鄙视，不知道谁这么设计的。ZK是以UTF-8读取properties文件的，不做任何转换。 更新： 可以修改Eclipse，让它对properties文件不强制使用ISO-8859-1编码保存： eclipse &#8211;&#62; window &#8211;&#62; Preferences &#8211;&#62; General &#8211;&#62; Content Types &#8211;&#62; Text &#8211;&#62; 单击 Java Properties File,把底部的Default edcodng从ISO-8859-1改成utf-8，然后update。]]></description>
			<content:encoded><![CDATA[<p class='fp'>本来打算那个Notes-all用Google的全套解决方案的，就是用GWT + Google App Engine，看了下GWT的Sample，发现还是比较麻烦，但是感觉思路和ZK还是很像的，就打算比较下GWT和ZK，结果发现有人说可以把ZK成功发布到Google App Engine，试了下，果然是可以的，<a href="http://app.notes-all.com/">有兴趣的可以试试</a>（在ZK网站可以下载zk-gae的sample，基于这个很容易建立自己的工程）。<br />
基于我玩过一段时间的ZK，当然用ZK更方便了。<br />
今天把原来的东西复制过去了，在做国际化的时候，用Eclipse编辑properties文件，里面有中文，不能保存，只能保存ISO-8859-1编码的内容。后来想着应该装个插件，下载了，好使，但是运行起来发现并没有把转码的内容显示为正确的中文，很奇怪。后来怀疑ZK读取properties文件的时候和Java读取国际化文件不一样，把properties文件的编码修改为UTF-8，然后直接用文本编辑器输入中文内容，运行测试，正常！<br />
这个就是一般的国际化处理的经验造成的问题。<br />
最后说一下，对ZK的这个违反Java惯例的方式赞一下，因为我一直对Java的这个需要把properties国际化文件用native2ascii转换的过程很鄙视，不知道谁这么设计的。ZK是以UTF-8读取properties文件的，不做任何转换。</p>
<p>更新：<br />
可以修改Eclipse，让它对properties文件不强制使用ISO-8859-1编码保存：<br />
<font color="#0000ff">eclipse &#8211;&gt; window &#8211;&gt; Preferences &#8211;&gt; General &#8211;&gt; Content Types &#8211;&gt; Text &#8211;&gt; 单击 Java Properties File,把底部的Default edcodng从ISO-8859-1改成utf-8</font>，然后update。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiehoo.me/%e7%bb%8f%e9%aa%8c%e4%b9%9f%e4%bc%9a%e5%b8%ae%e5%80%92%e5%bf%99.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GAE的严重问题</title>
		<link>http://www.jiehoo.me/big-problem-of-gae-for-java.htm</link>
		<comments>http://www.jiehoo.me/big-problem-of-gae-for-java.htm#comments</comments>
		<pubDate>Tue, 16 Jun 2009 03:25:37 +0000</pubDate>
		<dc:creator>Cherami</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[问题]]></category>
		<category><![CDATA[GAE]]></category>

		<guid isPermaLink="false">http://www.jiehoo.com/big-problem-of-gae-for-java.htm</guid>
		<description><![CDATA[在你动手开发GAE应用之前，最好先考虑下你的应用是否真的可以跑在GAE上，如果不仔细看它的开发手册，你很可能会漏掉一个严重的问题： Inequality Filters Are Allowed On One Property Only A query may only use inequality filters (&#60;, &#60;=, &#62;=, &#62;) on one property across all of its filters. For example, this query is allowed: select from Person where birthYear &#62;= minBirthYearParam &#38;&#38; birthYear &#60;= maxBirthYearParam However, this query is not allowed, because it uses inequality [...]]]></description>
			<content:encoded><![CDATA[<p class='fp'>在你动手开发GAE应用之前，最好先考虑下你的应用是否真的可以跑在GAE上，如果不仔细看它的开发手册，你很可能会漏掉一个严重的问题：</p>
<h3 id="Inequality_Filters_Are_Allowed_On_One_Property_Only">Inequality Filters  Are Allowed On One Property Only</h3>
<p>A query may only use inequality filters (<code>&lt;</code>,  <code>&lt;=</code>, <code>&gt;=</code>, <code>&gt;</code>) on one property  across all of its filters.</p>
<p>For example, this query is allowed:</p>
<p>select from Person where birthYear &gt;= minBirthYearParam<br />
&amp;&amp; birthYear &lt;= maxBirthYearParam</p>
<p>However, this query is <em>not</em> allowed, because it uses inequality filters  on two different properties in the same query:</p>
<p>select from Person where birthYear &gt;= minBirthYearParam<br />
&amp;&amp; height &gt;= minHeightParam   // ERROR</p>
<p>Filters can combine equal (<code>==</code>) comparisons for different  properties in the same query, including queries with one or more inequality  conditions on a property. This is allowed:</p>
<p>select from Person where lastName == lastNameParam<br />
&amp;&amp; city == cityParam<br />
&amp;&amp; birthYear &gt;= minBirthYearParam</p>
<p>The query mechanism relies on all results for a query to be adjacent to one  another in the index table, to avoid having to scan the entire table for  results. A single index table cannot represent multiple inequality filters on  multiple properties while maintaining that all results are consecutive in the  table.</p>
<p>这个限制很直接，就是非等于的过滤条件只能应用到一个字段（属性）上，原来在关系型数据库上很简单的一些查询，到了GAE上就变得不可行了。</p>
<p>在开始开发GAE应用前，先考虑清楚你的应用是否会不可避免的碰到这个问题，或者是否可以放弃很多功能，看来便宜不是那么好占的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiehoo.me/big-problem-of-gae-for-java.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SaaS和PaaS</title>
		<link>http://www.jiehoo.me/saas%e5%92%8cpaas.htm</link>
		<comments>http://www.jiehoo.me/saas%e5%92%8cpaas.htm#comments</comments>
		<pubDate>Tue, 26 May 2009 01:35:29 +0000</pubDate>
		<dc:creator>Cherami</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[force.com]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[PaaS]]></category>
		<category><![CDATA[SaaS]]></category>

		<guid isPermaLink="false">http://www.jiehoo.com/saas%e5%92%8cpaas.htm</guid>
		<description><![CDATA[昨天和Bruce聊天谈到这个，其实这两个概念并不神秘，SaaS就是Software As A Service，而PaaS就是Platform As A Service，这两个概念目前做得最成功的就是salesforce了，因为salesforce的成功，他们把salesforce背后的硬件基础设施和通用的软件基础设施抽取出来，变成了force.com，也就是PaaS。当然，在这两个概念之下又有人搞出了很多aaS： 如果一个公司想推PaaS，那么如果他自己没有一个成功的SaaS产品是不可能的，因为没有可信度，就像Google推广GAE很有底气，Salesforce推广force.com一样，他们有自己成功的platform，而且已经被自己证明是真实可行的。 现在也已推出的PaaS平台，除了force.com和GAE外，还有一个比较有名的就是Amazon的EC2，但是个人觉得EC2只能算是HaaS，因为没有强有力的软件平台以及公共基础设施，还是停留在硬件虚拟化的层面。 推荐另外两篇文章： 当今云计算平台之肤浅比较(EC2, GAE, GoGrid) Cloud versus cloud: A guided tour of Amazon, Google, AppNexus, and GoGrid]]></description>
			<content:encoded><![CDATA[<p class='fp'>昨天和Bruce聊天谈到这个，其实这两个概念并不神秘，SaaS就是Software As A Service，而PaaS就是Platform As A Service，这两个概念目前做得最成功的就是salesforce了，因为salesforce的成功，他们把salesforce背后的硬件基础设施和通用的软件基础设施抽取出来，变成了force.com，也就是PaaS。当然，在这两个概念之下又有人搞出了很多aaS：<br />
<img src="http://server.51cto.com/files/uploadimg/20090204/1015520.jpg" alt="XaaS" /><br />
如果一个公司想推PaaS，那么如果他自己没有一个成功的SaaS产品是不可能的，因为没有可信度，就像Google推广GAE很有底气，Salesforce推广force.com一样，他们有自己成功的platform，而且已经被自己证明是真实可行的。<br />
现在也已推出的PaaS平台，除了force.com和GAE外，还有一个比较有名的就是Amazon的EC2，但是个人觉得EC2只能算是HaaS，因为没有强有力的软件平台以及公共基础设施，还是停留在硬件虚拟化的层面。<br />
推荐另外两篇文章：<br />
<a href="http://robertmao.com/archives/1323/">当今云计算平台之肤浅比较(EC2, GAE, GoGrid)</a> <br />
<a href="http://www.infoworld.com/d/cloud-computing/cloud-versus-cloud-guided-tour-amazon-google-appnexus-and-gogrid-122">Cloud versus cloud: A guided tour of Amazon, Google, AppNexus, and GoGrid</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiehoo.me/saas%e5%92%8cpaas.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GAE支持Java了</title>
		<link>http://www.jiehoo.me/gae%e6%94%af%e6%8c%81java%e4%ba%86.htm</link>
		<comments>http://www.jiehoo.me/gae%e6%94%af%e6%8c%81java%e4%ba%86.htm#comments</comments>
		<pubDate>Thu, 09 Apr 2009 07:15:59 +0000</pubDate>
		<dc:creator>Cherami</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.jiehoo.com/gae%e6%94%af%e6%8c%81java%e4%ba%86.htm</guid>
		<description><![CDATA[今天同事发的邮件知道了这件事情，确信不是愚人节节目了。 http://code.google.com/intl/zh-CN/appengine/docs/java/gettingstarted/ http://code.google.com/intl/zh-CN/appengine/docs/java/overview.html http://code.google.com/appengine/docs/java/tools/eclipse.html 看来我的my-scrum得迁移语言了，虽然Python是很好的尝试，但是还是更加熟悉Java一些。]]></description>
			<content:encoded><![CDATA[<p class='fp'>今天同事发的邮件知道了这件事情，确信不是愚人节节目了。<br />
http://code.google.com/intl/zh-CN/appengine/docs/java/gettingstarted/<br />
http://code.google.com/intl/zh-CN/appengine/docs/java/overview.html<br />
http://code.google.com/appengine/docs/java/tools/eclipse.html</p>
<p>看来我的my-scrum得迁移语言了，虽然Python是很好的尝试，但是还是更加熟悉Java一些。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiehoo.me/gae%e6%94%af%e6%8c%81java%e4%ba%86.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
