﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>lamyat2005's Xanga</title><link>http://lamyat2005.xanga.com/</link><description>Latest Xanga weblog from lamyat2005</description><language>en-us</language><ttl>60</ttl><image><title>The Weblog Community</title><url>http://s.xanga.com/images/xangalogobutton.gif</url><link>http://lamyat2005.xanga.com/</link></image><item><title>The entity name must immediately follow the '&amp;' in the entity reference.</title><link>http://lamyat2005.xanga.com/714401972/the-entity-name-must-immediately-follow-the--in-the-entity-reference/</link><guid>http://lamyat2005.xanga.com/714401972/the-entity-name-must-immediately-follow-the--in-the-entity-reference/</guid><pubDate>Tue, 13 Oct 2009 06:54:43 GMT</pubDate><description>&lt;PRE&gt;&lt;FONT size=2&gt;Problem:&lt;BR&gt;"The entity name must immediately follow the '&amp;amp;' in the entity reference." This occurs mainly when adding javascripts to an JSF document.&lt;BR&gt;&lt;BR&gt;Cause:&lt;BR&gt;JSF documents adheres to the XML standard. '&amp;amp;' is not allowed.&lt;BR&gt;&lt;BR&gt;Solution:&lt;BR&gt;Use '&amp;amp;amp;' instead.&lt;BR&gt;&lt;BR&gt;Example:&lt;BR&gt;bValid = bValid &amp;amp;&amp;amp; checkLength(name,"username",3,16);&lt;BR&gt;change to:&lt;BR&gt;bValid = bValid &amp;amp;amp;&amp;amp;amp; checkLength(name,"username",3,16);&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;In addition, the usage of the sign '&amp;gt;' javascripts embedded in JSF documents causes the JSF document to add a newline automatically, e.g.&lt;BR&gt;&lt;BR&gt;(JSF)&lt;BR&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;modifyDialogStr += '      &amp;lt;td&amp;gt;&amp;lt;label for="symbol"&amp;gt;Symbol&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;\n';&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&lt;BR&gt;causes the web container to output to browser:&lt;BR&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;modifyDialogStr += '      &amp;lt;td&amp;gt;&amp;lt;label for="symbol"&amp;gt;Symbol&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&lt;BR&gt;'\n;&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&lt;BR&gt;The newline added automatically after the &amp;gt; causes a "unterminated string literal'.&lt;BR&gt;&lt;BR&gt;Solution:&lt;BR&gt;use &amp;amp;gt; and &amp;amp;lt;&lt;BR&gt;&lt;BR&gt;modifyDialogStr += '      &amp;amp;lt;td&amp;amp;gt;&amp;amp;lt;label for="symbol"&amp;amp;gt;Symbol&amp;amp;lt;/label&amp;amp;gt;&amp;amp;lt;/td&amp;amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;This is a cost for such XML standardization. Readability is greatly reduced.&lt;BR&gt;&lt;BR&gt;Standardization has a cost.&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description><comments>http://lamyat2005.xanga.com/714401972/the-entity-name-must-immediately-follow-the--in-the-entity-reference/#firstcomment</comments></item><item><title>Monday, September 21, 2009</title><link>http://lamyat2005.xanga.com/712554344/item/</link><guid>http://lamyat2005.xanga.com/712554344/item/</guid><pubDate>Mon, 21 Sep 2009 07:32:51 GMT</pubDate><description>Googles Web Toolkit (GWT)&lt;br&gt;&lt;br&gt;I followed the instructions to install gwt, and did a "ant build". However, I got the following exceptions:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Compiling module com.google.gwt.sample.mail.Mail&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] #&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] # An unexpected error has been detected by Java Runtime Environment:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] #&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] #&amp;nbsp; SIGSEGV (0xb) at pc=0x0625665c, pid=7535, tid=2690198416&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] #&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode linux-x86)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] # Problematic frame:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] # V&amp;nbsp; [libjvm.so+0x25665c]&lt;br&gt;&lt;br&gt;I searched all through the internet, but to no avail.&lt;br&gt;&lt;br&gt;I spent hours dealing with this problem, only to find out the solution was:&lt;br&gt;&lt;br&gt;"sudo ant build"&lt;br&gt;&lt;br&gt;Only super users can compile gwt! Dunno why have such stupid requirement.&lt;br&gt;&lt;br&gt;Thinking that GWT does not support Linux, those Google programmers must be using Windows only...&lt;br&gt;&lt;br&gt;</description><comments>http://lamyat2005.xanga.com/712554344/item/#firstcomment</comments></item><item><title>Monday, September 21, 2009</title><link>http://lamyat2005.xanga.com/712547284/item/</link><guid>http://lamyat2005.xanga.com/712547284/item/</guid><pubDate>Mon, 21 Sep 2009 04:34:14 GMT</pubDate><description>Eastern Front - 42000 Russian artilleries fired at Berlin.&lt;br&gt;&lt;br&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/8gx9fI2mc7Q&amp;amp;hl=en&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/8gx9fI2mc7Q&amp;amp;hl=en&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/object&gt;</description><comments>http://lamyat2005.xanga.com/712547284/item/#firstcomment</comments></item><item><title>Thursday, September 17, 2009</title><link>http://lamyat2005.xanga.com/712216275/item/</link><guid>http://lamyat2005.xanga.com/712216275/item/</guid><pubDate>Thu, 17 Sep 2009 01:45:19 GMT</pubDate><description>The Japanese does not admit the Nanjing Massacre in 1937, neither does the Turks (formerly the Ottoman) admit the genocide of the Armenians in 1915. Their reasons are the same: why admit their grandfathers faults for something that (in their minds) did not happen.&lt;br&gt;&lt;br&gt;Events recur under the sun, that is, the world we live in.&lt;br&gt;&lt;br&gt;</description><comments>http://lamyat2005.xanga.com/712216275/item/#firstcomment</comments></item><item><title>Thursday, September 03, 2009</title><link>http://lamyat2005.xanga.com/711160831/item/</link><guid>http://lamyat2005.xanga.com/711160831/item/</guid><pubDate>Thu, 03 Sep 2009 08:26:47 GMT</pubDate><description>&amp;#23567;&amp;#38622;&amp;#34987;&amp;#27963;&amp;#29983;&amp;#29983;&amp;#30340;&amp;#30862;&amp;#25481;, so cruel....&lt;br&gt;&lt;br&gt;&lt;p&gt;According to the most recent estimate by &lt;a href="http://en.wikipedia.org/wiki/Food_and_Agriculture_Organization" title="Food and Agriculture Organization" rel="nofollow"&gt;Food and Agriculture Organization&lt;/a&gt; of the &lt;a href="http://en.wikipedia.org/wiki/United_Nations" title="United Nations" rel="nofollow"&gt;United Nations&lt;/a&gt;, made in 2002, there were nearly sixteen billion chickens in the world. The estimate at that time was 15,853,900,000 &lt;a href="http://www.fao.org/docrep/004/ad452e/ad452e30.htm#TopOfPage" class="external text" title="http://www.fao.org/docrep/004/ad452e/ad452e30.htm#TopOfPage" rel="nofollow"&gt;Chicken population&lt;/a&gt;. The figures from the &lt;i&gt;Global Livestock Production and Health Atlas&lt;/i&gt; for 2004 were as follows:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;China (8,860,000,000)&lt;/li&gt;&lt;li&gt;United States (1,970,000,000)&lt;/li&gt;&lt;li&gt;Indonesia (1,200,000,000)&lt;/li&gt;&lt;li&gt;Brazil (1,100,000,000)&lt;/li&gt;&lt;li&gt;Mexico (540,000,000)&lt;/li&gt;&lt;li&gt;India (425,000,000)&lt;/li&gt;&lt;li&gt;Russia (340,000,000)&lt;/li&gt;&lt;li&gt;Japan (286,000,000)&lt;/li&gt;&lt;li&gt;Iran (280,000,000)&lt;/li&gt;&lt;li&gt;Turkey (250,000,000)&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/JJ--faib7to&amp;amp;hl=en&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/JJ--faib7to&amp;amp;hl=en&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/object&gt;</description><comments>http://lamyat2005.xanga.com/711160831/item/#firstcomment</comments></item><item><title>Thursday, September 03, 2009</title><link>http://lamyat2005.xanga.com/711160691/item/</link><guid>http://lamyat2005.xanga.com/711160691/item/</guid><pubDate>Thu, 03 Sep 2009 08:24:29 GMT</pubDate><description>http://www.youtube.com/watch?v=JJ--faib7to&lt;br&gt;</description><comments>http://lamyat2005.xanga.com/711160691/item/#firstcomment</comments></item><item><title>Wednesday, September 02, 2009</title><link>http://lamyat2005.xanga.com/711067350/item/</link><guid>http://lamyat2005.xanga.com/711067350/item/</guid><pubDate>Wed, 02 Sep 2009 02:09:27 GMT</pubDate><description>&lt;font&gt;&lt;a style="letter-spacing: 1pt;"&gt;&lt;font color="#808000" face="Times New Roman" size="3"&gt;Actions speak louder than words. &lt;span style="font-style: italic;"&gt;St. Anthony of Pauda&amp;nbsp; &amp;#32854;&amp;#23433;&amp;#22810;&amp;#23612;&lt;/span&gt; (1195-1231)&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;a style="letter-spacing: 1pt;"&gt;&lt;font color="#808000"&gt;&lt;strong&gt;&lt;em&gt;&lt;font face="Times New Roman" size="5"&gt;&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;&lt;a style="letter-spacing: 1pt;"&gt;&lt;br&gt;&lt;/a&gt;</description><comments>http://lamyat2005.xanga.com/711067350/item/#firstcomment</comments></item><item><title>Thursday, June 18, 2009</title><link>http://lamyat2005.xanga.com/704932312/item/</link><guid>http://lamyat2005.xanga.com/704932312/item/</guid><pubDate>Thu, 18 Jun 2009 01:22:17 GMT</pubDate><description>Drop in interest rates, rise in bonds and deflation should be the matter of these few years. &lt;br&gt;&lt;br&gt;Rise in interest rates, collapse of bonds and high inflation (hyperinflation some called for) should be the aftermath after these few years.&lt;br&gt;</description><comments>http://lamyat2005.xanga.com/704932312/item/#firstcomment</comments></item><item><title>Wednesday, June 10, 2009</title><link>http://lamyat2005.xanga.com/704300065/item/</link><guid>http://lamyat2005.xanga.com/704300065/item/</guid><pubDate>Wed, 10 Jun 2009 15:33:52 GMT</pubDate><description>See that the US 10 year treasury notes is heading up quickly without any signs of turning around. Thank you to the US government for their Herculean efforts in their bailout programs, leaving the capital market a mess.&lt;br&gt;&amp;nbsp;&lt;br&gt; &lt;a target="_blank" href="http://xd9.xanga.com/d1df4474c6035245665935/b194773550.jpg"&gt;&lt;img title="tnx" style="border-style: none; border-width: 0px;" src="http://xd9.xanga.com/d1df4474c6035245665935/b194773550.jpg" width="800"&gt;&lt;/a&gt; &lt;br&gt; </description><comments>http://lamyat2005.xanga.com/704300065/item/#firstcomment</comments></item><item><title>Friday, June 05, 2009</title><link>http://lamyat2005.xanga.com/703808674/item/</link><guid>http://lamyat2005.xanga.com/703808674/item/</guid><pubDate>Fri, 05 Jun 2009 03:19:41 GMT</pubDate><description> We're in DEEP TROUBLE NOW.....&lt;br&gt;&lt;br&gt;10 Year Treasury Note.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a target="_blank" href="http://x2a.xanga.com/789f2b4064032245114786/b194313089.png"&gt;&lt;img title="tnx" style="border-style: none; border-width: 0px; width: 666px; height: 705px;" src="http://x2a.xanga.com/789f2b4064032245114786/z194313089.png"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><comments>http://lamyat2005.xanga.com/703808674/item/#firstcomment</comments></item></channel></rss>