<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for A Humble Programmer</title>
	<atom:link href="http://hjiang.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://hjiang.net</link>
	<description>Notes on life, computing, and programming</description>
	<lastBuildDate>Wed, 10 Mar 2010 14:41:37 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on History by 真真</title>
		<link>http://hjiang.net/archives/328/comment-page-1#comment-624</link>
		<dc:creator>真真</dc:creator>
		<pubDate>Wed, 10 Mar 2010 14:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=328#comment-624</guid>
		<description>&lt;p&gt;天色总会赋予人的精神一些神秘的力量，增加人的幻想。很多年前去北京玩，恰巧是阴天。在层层乌云的掩映下，古建筑更显得凝重，真实，让人有一种超越时空的幻觉。这种感受也许比看到满街的“国际化”要美好很多……&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>天色总会赋予人的精神一些神秘的力量，增加人的幻想。很多年前去北京玩，恰巧是阴天。在层层乌云的掩映下，古建筑更显得凝重，真实，让人有一种超越时空的幻觉。这种感受也许比看到满街的“国际化”要美好很多……</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on We Are Not Brain-Washed by j</title>
		<link>http://hjiang.net/archives/167/comment-page-1#comment-597</link>
		<dc:creator>j</dc:creator>
		<pubDate>Sun, 24 Jan 2010 08:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.hjiang.net/wp/2008/04/12/we-are-not-brain-washed/#comment-597</guid>
		<description>&lt;p&gt;Hi Lee,&lt;/p&gt;

&lt;p&gt;Ai Weiwei was really not that important for the Bird&#039;s Nest... He was merely one of many people involved and was not the main designer. He was just a &quot;Artistic consultant&quot;. See http://en.wikipedia.org/wiki/Beijing_National_Stadium. Being a self-important person, he claim he designed the Bird&#039;s Nest.&lt;/p&gt;

&lt;p&gt;What he said/did in recent years hasn&#039;t earned him much respect/credibility in my mind. I&#039;d like to see a credible report that he was beaten up by the Chinese government.&lt;/p&gt;

&lt;p&gt;Having stayed in the US for 7 years, I cannot say for sure who trust their government more, the average Chinese or the average American. The Chinese hate corruption, but at least most people believe the government will take care of them in difficult times (think about the earthquake in 2008, and the floods in 1998 and 1999). I cannot say the same for the US.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Lee,</p>

<p>Ai Weiwei was really not that important for the Bird&#8217;s Nest&#8230; He was merely one of many people involved and was not the main designer. He was just a &#8220;Artistic consultant&#8221;. See <a href="http://en.wikipedia.org/wiki/Beijing_National_Stadium" rel="nofollow">http://en.wikipedia.org/wiki/Beijing_National_Stadium</a>. Being a self-important person, he claim he designed the Bird&#8217;s Nest.</p>

<p>What he said/did in recent years hasn&#8217;t earned him much respect/credibility in my mind. I&#8217;d like to see a credible report that he was beaten up by the Chinese government.</p>

<p>Having stayed in the US for 7 years, I cannot say for sure who trust their government more, the average Chinese or the average American. The Chinese hate corruption, but at least most people believe the government will take care of them in difficult times (think about the earthquake in 2008, and the floods in 1998 and 1999). I cannot say the same for the US.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on We Are Not Brain-Washed by Lee</title>
		<link>http://hjiang.net/archives/167/comment-page-1#comment-594</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sun, 10 Jan 2010 03:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.hjiang.net/wp/2008/04/12/we-are-not-brain-washed/#comment-594</guid>
		<description>&lt;p&gt;” Chinese people have enough wisdom and courage to solve their own problems.”&lt;/p&gt;

&lt;p&gt;That&#039;s what&#039;s called DEMOCRACY.  This is the central contradiction in these arguments from most Chinese.  &quot;We Chinese can choose our own way&quot;, &quot;We Chinese can solve our own problems&quot;, but you can&#039;t.  CAN NOT without a democratic apparatus in place.  You constantly say you don&#039;t trust the government of China.  Do you trust them to do right by you?  Do you trust them to be fair?  Do you trust them to help and support your people?  The resounding answer from the majority of Chinese I talk to, educated and uneducated is NO, NO, NO.  If you don&#039;t trust them with your own family, your own culture, and your own people, why would you expect a different nationality to trust them?&lt;/p&gt;

&lt;p&gt;The Chinese government has never earned the respect, nor the trust of the Chinese people.  When questions are asked those who ask are bullied into submission or imprisoned.  Look what happened to Ai Weiwei, who should be considered a national hero for designing the Bird&#039;s Nest.  The SAME YEAR as the Olympics he was beaten nearly to death by Chinese police only for supporting the rights of parents to question what happened to their Children.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>” Chinese people have enough wisdom and courage to solve their own problems.”</p>

<p>That&#8217;s what&#8217;s called DEMOCRACY.  This is the central contradiction in these arguments from most Chinese.  &#8220;We Chinese can choose our own way&#8221;, &#8220;We Chinese can solve our own problems&#8221;, but you can&#8217;t.  CAN NOT without a democratic apparatus in place.  You constantly say you don&#8217;t trust the government of China.  Do you trust them to do right by you?  Do you trust them to be fair?  Do you trust them to help and support your people?  The resounding answer from the majority of Chinese I talk to, educated and uneducated is NO, NO, NO.  If you don&#8217;t trust them with your own family, your own culture, and your own people, why would you expect a different nationality to trust them?</p>

<p>The Chinese government has never earned the respect, nor the trust of the Chinese people.  When questions are asked those who ask are bullied into submission or imprisoned.  Look what happened to Ai Weiwei, who should be considered a national hero for designing the Bird&#8217;s Nest.  The SAME YEAR as the Olympics he was beaten nearly to death by Chinese police only for supporting the rights of parents to question what happened to their Children.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on JSON++: A JSON parser for C++ by richard s</title>
		<link>http://hjiang.net/archives/245/comment-page-1#comment-588</link>
		<dc:creator>richard s</dc:creator>
		<pubDate>Wed, 06 Jan 2010 21:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=245#comment-588</guid>
		<description>&lt;p&gt;Very nice code. There is a problem though with your parser in that the entire thing could be just an array.&lt;/p&gt;

&lt;p&gt;I&#039;m not sure how to parse this valid json with your code.&lt;/p&gt;

&lt;p&gt;example:
string teststr(&quot;[ &#92;&quot;test&#92;&quot;,30,&#92;&quot;er&#92;&quot; ]&quot; ) ;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice code. There is a problem though with your parser in that the entire thing could be just an array.</p>

<p>I&#8217;m not sure how to parse this valid json with your code.</p>

<p>example:
string teststr(&#8220;[ &#92;"test&#92;",30,&#92;"er&#92;" ]&#8221; ) ;</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coroutine and continuation in C by Roger</title>
		<link>http://hjiang.net/archives/220/comment-page-1#comment-553</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Sat, 12 Dec 2009 18:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=220#comment-553</guid>
		<description>&lt;p&gt;What have you done to get it working on Mac OS X? I&#039;ve added &quot;#define _XOPEN_SOURCE&quot; before the include of ucontext.h, but I still get the same error.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What have you done to get it working on Mac OS X? I&#8217;ve added &#8220;#define _XOPEN_SOURCE&#8221; before the include of ucontext.h, but I still get the same error.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Pragmatics: Testing (Part 1) by Anonymous</title>
		<link>http://hjiang.net/archives/334/comment-page-1#comment-541</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 07 Nov 2009 00:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=334#comment-541</guid>
		<description>&lt;p&gt;oops, forgot name--from leia not anonymous
:p&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>oops, forgot name&#8211;from leia not anonymous
:p</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Pragmatics: Testing (Part 1) by Anonymous</title>
		<link>http://hjiang.net/archives/334/comment-page-1#comment-540</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 07 Nov 2009 00:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=334#comment-540</guid>
		<description>&lt;p&gt;I hate perl as much as I love perl.
We did some practice by, reading data from file(test data), executing the program(test-bench) on our processor(simulation) made by ourself, then compare the results with ordinary c program. All of them is automatic controlled by perl script. It&#039;s very interesting experience for me. But I don&#039;t think perl is popular in China anyway.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I hate perl as much as I love perl.
We did some practice by, reading data from file(test data), executing the program(test-bench) on our processor(simulation) made by ourself, then compare the results with ordinary c program. All of them is automatic controlled by perl script. It&#8217;s very interesting experience for me. But I don&#8217;t think perl is popular in China anyway.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on JSON++: A JSON parser for C++ by alpha</title>
		<link>http://hjiang.net/archives/245/comment-page-1#comment-537</link>
		<dc:creator>alpha</dc:creator>
		<pubDate>Wed, 28 Oct 2009 18:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=245#comment-537</guid>
		<description>&lt;p&gt;Thanks for creating this, here are some methods for detecting floating point and exponents, a little closer to the standard:&lt;/p&gt;

&lt;p&gt;bool rewind_input(std::istream&amp; input, std::string &amp;str) {
    for (int i=str.size()-1;i&gt;=0;i--) {
      input.putback(str[i]);
    }
  }&lt;/p&gt;

&lt;p&gt;char push_digits(std::istream&amp; input, std::string &amp;str) {
    char ch=0;
    if  (match(&quot;-&quot;, input)) str.push_back(&#039;-&#039;);
    else match(&quot;+&quot;, input);
    while(input &amp;&amp; !input.eof()) {
      input.get(ch);
      if (!isdigit(ch)) {
    input.putback(ch);
    return ch;
      }
      if (!input.fail()) {
    str.push_back(ch);
      }
    }
    return 0;
  }&lt;/p&gt;

&lt;p&gt;bool parse_number(std::istream&amp; input, long* value) {
    eat_whitespaces(input);
    char ch=0;
    std::string value_str;
    ch=push_digits(input,value_str);
    if (ch==&#039;.&#039;) {
      rewind_input(input,value_str);
      value_str.clear();
    } else if (ch==&#039;e&#039; or ch==&#039;E&#039;) {
      value_str.push_back(input.get());
      push_digits(input,value_str);
    }
    if (value_str.size() &gt; 0) {
      std::istringstream(value_str) &gt;&gt; *value;
      return true;
    } else {
      return false;
    }
  }&lt;/p&gt;

&lt;p&gt;bool parse_number(std::istream&amp; input, double* value) {
    eat_whitespaces(input);
    char ch=0;
    std::string value_str;
    ch=push_digits(input,value_str);
    value_str.push_back(input.get());
    char next = input.peek();
    if (ch==&#039;.&#039; and isdigit(next)) {
      ch=push_digits(input,value_str);
      if (ch==&#039;e&#039; or ch==&#039;E&#039;) {
    value_str.push_back(input.get());
    push_digits(input,value_str);
      }
    } else {
      rewind_input(input,value_str);
      value_str.clear();
    }
    if (value_str.size() &gt; 0) {
      std::istringstream(value_str) &gt;&gt; *value;
      return true;
    } else {
      return false;
    }
  }&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for creating this, here are some methods for detecting floating point and exponents, a little closer to the standard:</p>

<p>bool rewind_input(std::istream&amp; input, std::string &amp;str) {
    for (int i=str.size()-1;i&gt;=0;i&#8211;) {
      input.putback(str[i]);
    }
  }</p>

<p>char push_digits(std::istream&amp; input, std::string &amp;str) {
    char ch=0;
    if  (match(&#8220;-&#8221;, input)) str.push_back(&#8216;-&#8217;);
    else match(&#8220;+&#8221;, input);
    while(input &amp;&amp; !input.eof()) {
      input.get(ch);
      if (!isdigit(ch)) {
    input.putback(ch);
    return ch;
      }
      if (!input.fail()) {
    str.push_back(ch);
      }
    }
    return 0;
  }</p>

<p>bool parse_number(std::istream&amp; input, long* value) {
    eat_whitespaces(input);
    char ch=0;
    std::string value_str;
    ch=push_digits(input,value_str);
    if (ch==&#8217;.') {
      rewind_input(input,value_str);
      value_str.clear();
    } else if (ch==&#8217;e&#8217; or ch==&#8217;E') {
      value_str.push_back(input.get());
      push_digits(input,value_str);
    }
    if (value_str.size() &gt; 0) {
      std::istringstream(value_str) &gt;&gt; *value;
      return true;
    } else {
      return false;
    }
  }</p>

<p>bool parse_number(std::istream&amp; input, double* value) {
    eat_whitespaces(input);
    char ch=0;
    std::string value_str;
    ch=push_digits(input,value_str);
    value_str.push_back(input.get());
    char next = input.peek();
    if (ch==&#8217;.&#8217; and isdigit(next)) {
      ch=push_digits(input,value_str);
      if (ch==&#8217;e&#8217; or ch==&#8217;E') {
    value_str.push_back(input.get());
    push_digits(input,value_str);
      }
    } else {
      rewind_input(input,value_str);
      value_str.clear();
    }
    if (value_str.size() &gt; 0) {
      std::istringstream(value_str) &gt;&gt; *value;
      return true;
    } else {
      return false;
    }
  }</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Demmy Award by yunpeng</title>
		<link>http://hjiang.net/archives/325/comment-page-1#comment-534</link>
		<dc:creator>yunpeng</dc:creator>
		<pubDate>Fri, 23 Oct 2009 15:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=325#comment-534</guid>
		<description>&lt;p&gt;Congratulations!....&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Congratulations!&#8230;.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Demmy Award by 晶</title>
		<link>http://hjiang.net/archives/325/comment-page-1#comment-524</link>
		<dc:creator>晶</dc:creator>
		<pubDate>Tue, 06 Oct 2009 05:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://hjiang.net/?p=325#comment-524</guid>
		<description>&lt;p&gt;恭喜恭喜！&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>恭喜恭喜！</p>]]></content:encoded>
	</item>
</channel>
</rss>
