<?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>RyanErwin.com &#187; Uncategorized (无大类）</title>
	<atom:link href="http://ryanerwin.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanerwin.com</link>
	<description>thoroughly chinafied american business geek in shanghai</description>
	<lastBuildDate>Sat, 24 Jul 2010 07:54:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Today&#8217;s Pithy, Cautionary Note on Economic Trends &#8211; Politics &#8211; The Atlantic</title>
		<link>http://ryanerwin.com/2010/07/24/todays-pithy-cautionary-note-on-economic-trends-politics-the-atlantic/</link>
		<comments>http://ryanerwin.com/2010/07/24/todays-pithy-cautionary-note-on-economic-trends-politics-the-atlantic/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 07:49:43 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/?p=851</guid>
		<description><![CDATA[Today&#8217;s Pithy, Cautionary Note on Economic Trends &#8211; Politics &#8211; The Atlantic: &#8220;Just now at the Aspen Ideas Festival, Bharat Balasubramanian &#8212; generally addressed as &#8216;Dr. Bharat,&#8217; left &#8212; an engineering executive from Daimler AG in Germany, made an off-hand observation of what globalization and tech innovation will mean for the US economy:


&#8216;I will state [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.theatlantic.com/politics/archive/2010/07/todays-pithy-cautionary-note-on-economic-trends/59496/">Today&#8217;s Pithy, Cautionary Note on Economic Trends &#8211; Politics &#8211; The Atlantic</a>: &#8220;Just now at the Aspen Ideas Festival, Bharat Balasubramanian &#8212; generally addressed as &#8216;Dr. Bharat,&#8217; left &#8212; an engineering executive from Daimler AG in Germany, made an off-hand observation of what globalization and tech innovation will mean for the US economy:</p>

<blockquote>
<p>&#8216;I will state that there will be a polarization of society here in the United States. People who are using their brains are moving up. Then you have another part of society that is doing services. These services will not be paid well. But you would need services. You would need restaurants, you would need cooks, you would need drivers et cetera. You will be losing your middle class.</p>

<p>&#8216;This I would not see in the same fashion in Europe, because the manufacturing base there today can compete anywhere, anytime with China or India. Because their productivity and skill sets more than offset their higher costs. You don&#8217;t see this everywhere, but it&#8217;s Germany, it&#8217;s France, it&#8217;s Sweden, it&#8217;s Austria, it&#8217;s Switzerland&#8230;. So I feel Europe still will have a middle level of people. They also have people who are very rich, they also have people doing services. But there is a balance. I don&#8217;t see the balance here in the US.&#8217;</p>
</blockquote>

<p>Dr. Bharat was here mainly to talk about engineering developments at Mercedes, notably a car designed to respond to collisions just before they occur (via radar and other sensors to detect imminent crashes) and apply a variety of pre-protective, hunkering-down measures. Details on the &#8216;Pre-Safe&#8217; system here. But his matter-of-fact observation of why companies in the United States might match any firms anywhere in raw innovativeness and profitability, while American society as a whole becomes more polarized and caste-like, was sobering to put it mildly. Not a new theme, obviously, but presented quite starkly. Andy Grove of Intel to the same effect here;  background from the Atlantic here and here.</p>

<p>__</p>

<p>Bonus &#8216;it&#8217;s a big world&#8217; note: Dr. Bharat is originally from Madras/Chennai and is an alum of the storied Indian Institute of Technology/Bombay. But he went to work for Daimler as a very young man and (as he jokingly pointed out himself) now speaks English with a rich Jawohl!-style German accent rather than Indian English. This is a more charming combination than you might think.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2010/07/24/todays-pithy-cautionary-note-on-economic-trends-politics-the-atlantic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The USA and Regional Security in Asia (Part 1)</title>
		<link>http://ryanerwin.com/2010/01/30/the-usa-and-regional-security-in-asia-part-1/</link>
		<comments>http://ryanerwin.com/2010/01/30/the-usa-and-regional-security-in-asia-part-1/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:50:05 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/?p=799</guid>
		<description><![CDATA[In Does American Need a Foreign Policy, Henry Kissinger suggests that America&#8217;s best role in Asia is similar to the UK&#8217;s role in europe.


  A hostile Asian bloc combining the most populous nations of the world and vast resources with some of the most industrious peoples would be incompatible with the American national interest. [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.amazon.com/Does-America-Need-Foreign-Policy/dp/0684855674">Does American Need a Foreign Policy</a>, Henry Kissinger suggests that America&#8217;s best role in Asia is similar to the UK&#8217;s role in europe.</p>

<blockquote>
  <p>A hostile Asian bloc combining the most populous nations of the world and vast resources with some of the most industrious peoples would be incompatible with the American national interest. For this reason, America must retain a presence in Asia, and its geopolitical objective must remain to prevent Asia&#8217;s coalescence into an unfriendly bloc (which is most likely to happen under the tutelage of one of its major powers). Americas relationship to Asia is thus comparable with that of Britain toward the content of Europe for four centuries. Winston Churchill described that situation eloquently:</p>
  
  <blockquote>
    <p><em>For four hundred years the foreign policy of England has been to oppose the stronger, most aggressive, most dominating Power on the Continent&#8230; These four centuries of consistent purpose amid so many chances of names and facts, of circumstances and conditions, must rank as one of the most remarkable episodes which the records of any race, nation, state, or people can show. Moreover, on all occasions England took the more difficult course. Faced by Philip II of Spain, against Louis XIV under William III and Marlborough, against Napoleon, against Wiliam II of Germany, it would have been easy and must have been very tempting to join the stronger and share the fruits of his conquest. However, we always took the harder course, joined with the less strong Powers, made a combination among them, and thus defeated and frustrated the continental military tyrant whoever he was, whatever nation led. Thus we preserved the liberties of Europe, protected the growth of its vivacious and varied society&#8230; It is a law of public policy which we are following and not a mere expedient dictated by accidental circumstances, or likes and dislikes, or any other sentiment.</em></p>
  </blockquote>
  
  <p>In the twenty-first century, an analogous objective for the United States in Asia poses a more complex challenge. The European balance of power was sustained by nation states of substantially homogeneous ethnic composition (with the exception of Russia); many of the major Asian states (China, Russia, India, Indonesia) are continental in size and multiethnic in composition. The European equilibrium was seamless in the sense that all major states were part of it &#8211; that is, the interplay of their alliances constituted the balance of power; thus a crisis over Serbia in the Balkans escalated into the First World War. The Asian balance of power is more differentiated and therefore more complex.</p>
  
  <p>In Europe, two world wars and the insufficient scale of the European nation-state in the face of global challenges have made the nineteenth-century balance of power irrelevant. The nations of Europe no longer treat one another as strategic threats; threats from outside Europe have been dealt with by the alliance with the United States.</p>
  
  <p>By contrast, the nations of Asia have never acknowledged a common danger, having quite differing views about what threatens their security. Some have historically feared Russia; others worry mostly about China; still others are concerned about a resurgent Japan; some in Southeast Asia consider Vietnam the principal danger. India and Pakistan are each obsessed with the threat of the other.</p>
</blockquote>

<hr />

<blockquote>
  <p>To be sure, it is in the American national interest to resist the effort of <em>any</em> power to dominate Asia &#8211; and, in the extreme, the United States should be prepared to do so without allies. But a wise American policy would strive to prevent such an outcome. It would nurture cooperative relations with all of the significant nations of Asia to keep open the possibility of joint action should circumstances require it. But it would also seek to convey to China that opposition to hegemony is coupled with a preference for a constructive relationship and that America will facilitate and not obstruct China&#8217;s participation in a stable international order. Confrontation with China should be the ultimate recourse, not the strategic choice.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2010/01/30/the-usa-and-regional-security-in-asia-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>State of the People&#8217;s Republic</title>
		<link>http://ryanerwin.com/2010/01/29/state-of-the-peoples-republic/</link>
		<comments>http://ryanerwin.com/2010/01/29/state-of-the-peoples-republic/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 05:56:49 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/?p=795</guid>
		<description><![CDATA[From President Obama&#8217;s State of the Union address.


  We can&#8217;t afford another so-called economic &#8220;expansion&#8221; like the one from the last decade &#8212; what some call the &#8220;lost decade&#8221; &#8212; where jobs grew more slowly than during any prior expansion; where the income of the average American household declined while the cost of health [...]]]></description>
			<content:encoded><![CDATA[<p>From President Obama&#8217;s State of the Union address.</p>

<blockquote>
  <p>We can&#8217;t afford another so-called economic &#8220;expansion&#8221; like the one from the last decade &#8212; what some call the &#8220;lost decade&#8221; &#8212; where jobs grew more slowly than during any prior expansion; where the income of the average American household declined while the cost of health care and tuition reached record highs; where prosperity was built on a housing bubble and financial speculation.</p>
</blockquote>

<p>Interesting that this sounds a whole lot like the <em>so-called economic &#8220;expansion&#8221;</em> here in China&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2010/01/29/state-of-the-peoples-republic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sec of State Clinton on Internet Freedom</title>
		<link>http://ryanerwin.com/2010/01/22/sec-of-state-clinton-on-internet-freedom/</link>
		<comments>http://ryanerwin.com/2010/01/22/sec-of-state-clinton-on-internet-freedom/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 09:30:07 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/?p=789</guid>
		<description><![CDATA[Interesting excerpts. See the State Dept for full text. Clinton was very considerate of official Chinese reaction to the speech, and pointed out that the USA can&#8217;t really force China&#8217;s hand in this matter. In other locations, particularly the middle east, the US is prepared to take a more active role.


  On their own, [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting excerpts. See the State Dept for <a href="http://www.state.gov/secretary/rm/2010/01/135519.htm">full text</a>. Clinton was very considerate of official Chinese reaction to the speech, and pointed out that the USA can&#8217;t really force China&#8217;s hand in this matter. In other locations, particularly the middle east, the US is prepared to take a more active role.</p>

<blockquote>
  <p>On their own, new technologies do not take sides in the struggle for freedom and progress, but the United States does. We stand for a single internet where all of humanity has equal access to knowledge and ideas. And we recognize that the world’s information infrastructure will become what we and others make of it. Now, this challenge may be new, but our responsibility to help ensure the free exchange of ideas goes back to the birth of our republic. The words of the First Amendment to our Constitution are carved in 50 tons of Tennessee marble on the front of this building. And every generation of Americans has worked to protect the values etched in that stone.</p>
  
  <p>There are, of course, hundreds of millions of people living without the benefits of these technologies. In our world, as I’ve said many times, talent may be distributed universally, but opportunity is not. And we know from long experience that promoting social and economic development in countries where people lack access to knowledge, markets, capital, and opportunity can be frustrating and sometimes futile work. In this context, the internet can serve as a great equalizer. By providing people with access to knowledge and potential markets, networks can create opportunities where none exist.</p>
  
  <p>States, terrorists, and those who would act as their proxies must know that the United States will protect our networks. Those who disrupt the free flow of information in our society or any other pose a threat to our economy, our government, and our civil society. Countries or individuals that engage in cyber attacks should face consequences and international condemnation. In an internet-connected world, an attack on one nation’s networks can be an attack on all. And by reinforcing that message, we can create norms of behavior among states and encourage respect for the global networked commons.</p>
</blockquote>

<p>Taken in context, this reads to me like a veiled threat against China. Of course, the NSA&#8217;s job is cyber-espionage and cyber-terrorism, so it&#8217;s not really something new. Just part of <a href="http://en.wikipedia.org/wiki/The_Great_Game">The Great Game</a>.</p>

<blockquote>
  <p>To use market terminology, a publicly listed company in Tunisia or Vietnam that operates in an environment of censorship will always trade at a discount relative to an identical firm in a free society. If corporate decision makers don’t have access to global sources of news and information, investors will have less confidence in their decisions over the long term. Countries that censor news and information must recognize that from an economic standpoint, there is no distinction between censoring political speech and commercial speech. If businesses in your nations are denied access to either type of information, it will inevitably impact on growth.</p>
  
  <p>As it stands, Americans can consider information presented by foreign governments. We do not block your attempts to communicate with the people in the United States. But citizens in societies that practice censorship lack exposure to outside views. In North Korea, for example, the government has tried to completely isolate its citizens from outside opinions. This lopsided access to information increases both the likelihood of conflict and the probability that small disagreements could escalate. So I hope that responsible governments with an interest in global stability will work with us to address such imbalances.</p>
  
  <p>And censorship should not be in any way accepted by any company from anywhere. And in America, American companies need to make a principled stand. This needs to be part of our national brand. I’m confident that consumers worldwide will reward companies that follow those principles.</p>
  
  <p>In fact, I would like to see more governments, if you disagree with what a blogger or a website is saying, get in and argue with them. Explain what it is you’re doing. Put out contrary information. Point out what the pitfalls are of the position that a blogger might be taking.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2010/01/22/sec-of-state-clinton-on-internet-freedom/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Macau: More gambling than Vegas?</title>
		<link>http://ryanerwin.com/2009/12/23/macau/</link>
		<comments>http://ryanerwin.com/2009/12/23/macau/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 15:57:11 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>
		<category><![CDATA[China (中国）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/12/23/macau/</guid>
		<description><![CDATA[I was recently surprised to hear that Macau gambling revenues have overtaken Las Vegas. The explanation is that Chinese people love to gamble, and when they hit the tables they simply play much bigger than people in America. There is some truth to this. In the USA, the overall rate of &#8220;pathological gambling&#8221; is 1.8% [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently surprised to hear that Macau gambling revenues have overtaken Las Vegas. The explanation is that Chinese people love to gamble, and when they hit the tables they simply play much bigger than people in America. There is some truth to this. In the USA, the overall rate of &#8220;pathological gambling&#8221; is 1.8% for Chinese Americans, and 3% for Chinese immigrants. However, that doesn&#8217;t seem to explain the entire picture.</p>

<p>One trip to Macau and you&#8217;ll probably be asking yourself what the numbers really mean. In typical China Fashion, it means less than you think.</p>

<p><pre>
'07 Gambling Revenues: Macau  $7.0B   Vegas   $6.5B<br />
VIP Rooms:             Macau    65%   Vegas      0%<br />
Slot Machine Revenue:  Macau     5%   Vegas     60%<br />
Gambling % of Revenue: Macau    95%   Vegas     40%<br />
Length of Avg Visit:   Macau      1   Vegas       4<br />
Hotel Rooms:           Macau 13,000   Vegas 130,000
</pre></p>

<p>65% of money bet in Macau is in the &#8220;VIP Rooms&#8221;, which typically equals money laundering. Without that, Macau is at about $2B/year. In terms of pure table games, Macau and Vegas are nearly equal &#8211; around $2B/Y, but Slot Machines contribute more than double table game revenues, and the vacation/convention business accounts for 2.5x the gaming total. In summary:</p>

<p><pre>
Macau: $2.5B (less money laundering)<br />
Vegas:  $16B (including slots and retail)
</pre></p>

<p>Those numbers basically match what you feel when you&#8217;re in Vegas.</p>

<p>You may be wondering how VIP Rooms work. James Fallows&#8217;s new book &#8220;<a href="http://www.amazon.com/Postcards-Tomorrow-Square-Reports-Vintage/dp/0307456242">Postcards from Tomorrow Square</a>&#8221; explains.</p>

<blockquote>
  <p>The Chinese government doesn&#8217;t allow rich people to take their money out of the country easily, it allows them to convert only small amounts of renminbi each year. So a factory owner from the Pearl River Delta or a corrupt public official who has grown wealthy, will head to Macau.</p>

  <p>One Western banker with extensive experience in Macau pointed out that the city functions as one big, quasi-official money-laundering site via the numbers gold dealer&#8217;s shops on either side of its border with mainland China.</p>

  <p>Chinese visitors buy bold with RMB from shops on their side of the border and then sell to dealers on the Macau side for Hong Kong dollars &#8211; a &#8216;hard&#8217; currency that can be converted into U.S. dollars or euros and sent anywhere in the world.</p>

  <p>Something similar can go on when wealthy Chinese visit a VIP room. The room&#8217;s operator lends them money for gambling &#8211; often large sums, worth thousands or millions of U.S. dollars. The loan is in Hong Kong dollars, the main betting currency of Macau (its own currency is the pataca). If the Chinese gambler wins, he now has hard currency. If he loses, he settles the debt back in China, in RMB. A related practice is &#8220;doubling down&#8221; which the bets are made in one currency, say Hong Kong dollars, but the players agree to settle later in another, like U.S. dollars. Exactly how the debts are paid, and just where the touts get their substantial operating capital, is obscure. But the rooms and other Macau-based services are assumed to be a major channel for money flowing illegally out of China &#8211; and North Korea.</p>
</blockquote>

<p>Fallows also wrote one of my favorite quotes ever summarizing doing business in China:</p>

<blockquote>
  <p>&#8220;These standards include such vague-sounding principles as rule of law, transparency, and accountability, which in practice mean: Can you trust a contract? Can you win a lawsuit? Do you know who&#8217;s really making a decision? Will the decision be made in favor of whoever provides a &#8220;red envelope&#8221; containing the biggest bribe? How many sets of books should a company be keeping, anyway? How much money laundering is too much?&#8221;<br />
  &#8220;Postcards from Tomorrow Square&#8221; p108</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/12/23/macau/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using SSH to bypass The Great Firewall/GFW</title>
		<link>http://ryanerwin.com/2009/12/09/using-ssh-to-bypass-the-great-firewallgfw/</link>
		<comments>http://ryanerwin.com/2009/12/09/using-ssh-to-bypass-the-great-firewallgfw/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 09:13:14 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>
		<category><![CDATA[China (中国）]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/12/09/using-ssh-to-bypass-the-great-firewallgfw/</guid>
		<description><![CDATA[This looks like a long process, how does it work after I’m done?


  You’re ssh tunnel to your server outside the GFW will be active *whenever* your online

  When you need to bypass the GFW, simply select “SSH” from your locations menu

  When you don’t need to use your proxy, simply switch [...]]]></description>
			<content:encoded><![CDATA[<p>This looks like a long process, how does it work after I’m done?<br /></p>

<ul>
  <li>You’re ssh tunnel to your server outside the GFW will be active *whenever* your online</li>

  <li>When you need to bypass the GFW, simply select “SSH” from your locations menu</li>

  <li>When you don’t need to use your proxy, simply switch your location back to Automatic</li>
</ul>

<p>What you need:</p>

<ul>
  <li>SSH access to a server outside the GFW (See: <a href="http://www.serverage.com/">ServerAge in Hong Kong</a>)</li>

  <li>SSH Key Authentication configured (See: <a href="http://sial.org/howto/openssh/publickey-auth/">ssh-keygen, id_pub.rsa and ~/.ssh/authorized_keys</a>)</li>

  <li>AutoSSH to auto-restart SSH sessions and keep SSH on forever (See: OS X Binary or <a href="http://www.harding.motd.ca/autossh/">Source</a>)</li>

  <li>Instructions assume your on Mac OS X, but can be applied to any version of Linux</li>
</ul>

<p>Configuring SSH key based authentication can be very difficult if you haven’t configured it previously. The idea is:</p>

<ul>
  <li>Generate a key set on your local computer (with ssh-keygen on the local system)</li>

  <li>The Key Set will make two files on your hard drive, a “Private Key” and a “Public Key” (~/.ssh/id_rsa.pub on the local system)</li>

  <li>Note that the “Private Key” is many “lines” long, but the “Public Key” is a single line (no newlines/returns)</li>

  <li>The server that you’re logging into keeps a list of keys that are authorized to access the system (in ~/.ssh/authorized_keys on the server)</li>

  <li>Copy the single line of your “public key” file onto any line of your “authorized keys” file.</li>

  <li>Make sure the permissions of both your public keys and private keys are “correct”. “Insecure” file permissions are the most common cause of SSH key’s failing to authenticate.</li>

  <li>Always keep your .ssh dir and all your keys chmodded to 700 and 600 respectively.</li>

  <li>Use “ssh -vvv” if you have trouble logging in, this will give you diagnostic output.</li>
</ul>

<p>Verify that you’re able to connect to the system you’ll be using to proxy via SSH.</p>

<p>If you’ve got the Apple Developer Tools installed, then go directly to the AutoSSH website, download the source, compile and install. In case you don’t, I’ve complied a copy that you can download here.</p>

<p>Just extract with:
<pre class="brush: bash;">tar zxvf autossh.tgz -C /</pre></p>

<p>Use foreground mode to verify that you’re able to connect to the system of your choice via AutoSSH.</p>

<p><pre class="brush: bash;">autossh -M 19999 -D 9999 -N example.com</pre></p>

<p>Use cURL to verify that your proxy is working</p>

<p><pre class="brush: bash;">curl —socks4a localhost:9999 -v www.facebook.com</pre></p>

<p>Now that your proxy is online, the next step is to define a new location in your Mac OS X “Network” Profiles.</p>

<p>In System Preferences / Network:</p>

<ul>
  <li>From the Locations dropdown choose “Edit Locations” then add a new location called “SSH”<br />
  <img src="http://ryanerwin.com/wp-content/uploads/2009/12/Screen-shot-2009-12-01-at-上午01.07.36.png" width="300" height="126" alt="Screen shot 2009-12-01 at 上午01.07.36.png" /></li>

  <li>Return to the main Network window and choose “Advanced” then “Proxies”<br />
  <img src="http://ryanerwin.com/wp-content/uploads/2009/12/Screen-shot-2009-12-01-at-上午01.07.28.png" width="304" height="258" alt="Screen shot 2009-12-01 at 上午01.07.28.png" /></li>

  <li>Enable “SOCKS Proxy” setting the proxy server to “localhost” and port “9999”<br />
  <img src="http://ryanerwin.com/wp-content/uploads/2009/12/Screen-shot-2009-12-01-at-上午01.08.09.png" width="480" height="375" alt="Screen shot 2009-12-01 at 上午01.08.09.png" /></li>

  <li>Under bypass proxy setting for these hosts and domains, you can enter any sites that will be slowed down by proxing via your SSH connection:<br />
  <pre class="brush: plain;">*.local, 169.254/16, *.cn, *.163.com, *.baidu.com, *.youku.com, *.toudou.com, *.sina.com, *.chinesepod.com</pre></li>
</ul>

<p>Last, we just need to configure autossh to start when our Mac boots up. We’ll use a Login Hook so that the script will run regardless of which user logs in.<br /></p>

<p>http://support.apple.com/kb/HT2420</p>

<p>You’ll need to create the shell script to use as the Login Hook, save it as /usr/local/bin/loginhook, and make it executable (chmod 755).</p>

<p><pre class="brush: bash;">
    #! /bin/bash&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if [ &amp;amp;quot;$(ps ax | grep autossh | grep -vc grep)&amp;amp;quot; -lt 1 ]; then
  sudo -u {USER} /usr/local/bin/autossh -f -M 19999 -D 9999 -N -o ServerAliveInterval=3 {SERVER}
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;</pre></p>

<p>If you have trouble connecting and need to debug the autossh line, first try disabling the &#8220;-f&#8221; so that the program runs in the foreground and returns output. If you need to send the output to a log file, you can edit the loginhook script to something like:</p>

<p><pre class="brush: bash;">sudo -u {USER} autossh -M 19999 -D 9999 -N {SERVER} 2&amp;amp;&gt;1 &amp;gt;&amp;gt; /tmp/loginhook.log</pre></p>

<p>(Note that you’ll need to replace {USER} with the short name of the user account that is providing the SSH public key and {SERVER} with the host your connecting to)</p>

<p><pre class="brush: bash;">sudo defaults write com.apple.loginwindow LoginHook /usr/local/bin/loginhook</pre><br /></p>

<p>If your ever in doubt as to weather or not your new Proxy is running correctly, save the following script as /usr/local/bin/gfw. Run this script to instantly check on the status of your proxy.</p>

<p><pre class="brush: bash;">curl --socks4a localhost:9999 -v www.facebook.com</pre></p>

<p>Reboot, Test and Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/12/09/using-ssh-to-bypass-the-great-firewallgfw/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>China Unicom denies having bought 5M iPhones</title>
		<link>http://ryanerwin.com/2009/08/16/china-unicom-denies-having-bought-5m-iphones/</link>
		<comments>http://ryanerwin.com/2009/08/16/china-unicom-denies-having-bought-5m-iphones/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 06:17:26 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/?p=586</guid>
		<description><![CDATA[via China Unicom denies having bought 5M iPhones.

China Unicom&#8217;s &#8220;3G Network&#8221; goes live on 10/1 (National Day).

Now is the time to stock up on CHU.
]]></description>
			<content:encoded><![CDATA[<p>via <a href="http://www.engadget.com/2009/08/16/china-unicom-denies-having-bought-5m-iphones/">China Unicom denies having bought 5M iPhones</a>.</p>

<p>China Unicom&#8217;s &#8220;3G Network&#8221; goes live on 10/1 (National Day).</p>

<p>Now is the time to stock up on <a href="http://www.google.com/finance?client=ob&amp;q=NYSE:CHU">CHU</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/08/16/china-unicom-denies-having-bought-5m-iphones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>US Signs Shanghai 2010 Expo Participation Contract!</title>
		<link>http://ryanerwin.com/2009/07/12/us-signs-shanghai-2010-expo-participation-contract/</link>
		<comments>http://ryanerwin.com/2009/07/12/us-signs-shanghai-2010-expo-participation-contract/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 03:47:24 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>
		<category><![CDATA[China (中国）]]></category>
		<category><![CDATA[USA （美利坚合众国）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/07/12/us-signs-shanghai-2010-expo-participation-contract/</guid>
		<description><![CDATA[This is excellent news! A good friend of mine was working hard to make this happen, but it eventually took Sec of State Hilary Clinton get the deal done.



Photos from signing ceremony.

Groundbreaking for the US pavilion will be on July 17 at 10:30 AM. Secretary of Commerce Gary Locke will be present.
]]></description>
			<content:encoded><![CDATA[<p>This is excellent news! A good friend of mine was working hard to make this happen, but it eventually took Sec of State Hilary Clinton get the deal done.</p>

<p><img src="http://ryanerwin.com/wp-content/uploads/2009/07/haibao.jpg" width="313" height="207" alt="haibao.jpg" /></p>

<p><a href="http://shanghai.usembassy-china.org.cn/">Photos from signing ceremony</a>.</p>

<p>Groundbreaking for the US pavilion will be on July 17 at 10:30 AM. Secretary of Commerce Gary Locke will be present.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/07/12/us-signs-shanghai-2010-expo-participation-contract/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Human Clock</title>
		<link>http://ryanerwin.com/2009/05/07/the-human-clock/</link>
		<comments>http://ryanerwin.com/2009/05/07/the-human-clock/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:26:25 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/05/07/the-human-clock/</guid>
		<description><![CDATA[Current research indicates that the &#8220;human clock&#8221; is 24 hours and 11 minutes ± 16 minutes. The &#8220;clock&#8221; resets itself daily to the 24-hour cycle of the earth&#8217;s rotation. More on Circadian rhythm (wikipedia).


]]></description>
			<content:encoded><![CDATA[<p>Current research indicates that the &#8220;human clock&#8221; is 24 hours and 11 minutes ± 16 minutes. The &#8220;clock&#8221; resets itself daily to the 24-hour cycle of the earth&#8217;s rotation. More on <a href="http://en.wikipedia.org/wiki/Circadian_rhythm">Circadian rhythm (wikipedia)</a>.</p>

<p><a href="http://ryanerwin.com/wp-content/uploads/2009/05/biological-clock-human.png"><img src="http://ryanerwin.com/wp-content/uploads/2009/05/biological-clock-humanpng-tm.jpg" width="589" height="306" alt="Biological_clock_human.PNG.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/05/07/the-human-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use a Histogram&#8230;</title>
		<link>http://ryanerwin.com/2009/02/19/how-to-use-a-histogram/</link>
		<comments>http://ryanerwin.com/2009/02/19/how-to-use-a-histogram/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 19:10:28 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/02/19/how-to-use-a-histogram/</guid>
		<description><![CDATA[Seems like a pretty basic thing, but this is a really great slideshow that explains Histograms VERY VERY clearly&#8230;

See: histogram_sly.ppt
]]></description>
			<content:encoded><![CDATA[<p>Seems like a pretty basic thing, but this is a really great slideshow that explains Histograms VERY VERY clearly&#8230;</p>

<p>See: <a href="http://www.valleyviewfinders.org/powerpoint/histogram_sly.ppt">histogram_sly.ppt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/02/19/how-to-use-a-histogram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone: 中国移动和苹果电脑谈判</title>
		<link>http://ryanerwin.com/2009/02/09/iphone-%e4%b8%ad%e5%9b%bd%e7%a7%bb%e5%8a%a8%e5%92%8c%e8%8b%b9%e6%9e%9c%e7%94%b5%e8%84%91%e8%b0%88%e5%88%a4/</link>
		<comments>http://ryanerwin.com/2009/02/09/iphone-%e4%b8%ad%e5%9b%bd%e7%a7%bb%e5%8a%a8%e5%92%8c%e8%8b%b9%e6%9e%9c%e7%94%b5%e8%84%91%e8%b0%88%e5%88%a4/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 06:44:11 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/02/09/iphone-%e4%b8%ad%e5%9b%bd%e7%a7%bb%e5%8a%a8%e5%92%8c%e8%8b%b9%e6%9e%9c%e7%94%b5%e8%84%91%e8%b0%88%e5%88%a4/</guid>
		<description><![CDATA[原文（英语）在 tmt.interfaxchina.com
]]></description>
			<content:encoded><![CDATA[<p>原文（英语）在 <a href="http://tmt.interfaxchina.com/news/1295">tmt.interfaxchina.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/02/09/iphone-%e4%b8%ad%e5%9b%bd%e7%a7%bb%e5%8a%a8%e5%92%8c%e8%8b%b9%e6%9e%9c%e7%94%b5%e8%84%91%e8%b0%88%e5%88%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>热闹上海节日表</title>
		<link>http://ryanerwin.com/2009/02/09/%e7%83%ad%e9%97%b9%e4%b8%8a%e6%b5%b7%e8%8a%82%e6%97%a5%e8%a1%a8/</link>
		<comments>http://ryanerwin.com/2009/02/09/%e7%83%ad%e9%97%b9%e4%b8%8a%e6%b5%b7%e8%8a%82%e6%97%a5%e8%a1%a8/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 09:44:45 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/02/09/%e7%83%ad%e9%97%b9%e4%b8%8a%e6%b5%b7%e8%8a%82%e6%97%a5%e8%a1%a8/</guid>
		<description><![CDATA[这些天在娱乐场所要确认预定好了。订位时可能要付押金。

－万圣节 (Oct 31st Halloween)
－圣诞夜 (Dec 24th Christmas Eve)
－圣诞节 (Dec 25th Christmas Night)
－元旦前夕 (Dec 31st New Years Eve)
－春节（春节中有几个日子很热闹）
－情人节（Feb 14th Valentines)
－国庆节（Oct 1st)

等一下会添加更多节日。。。
]]></description>
			<content:encoded><![CDATA[<p>这些天在娱乐场所要确认预定好了。订位时可能要付押金。</p>

<p>－万圣节 (Oct 31st Halloween)<br />
－圣诞夜 (Dec 24th Christmas Eve)<br />
－圣诞节 (Dec 25th Christmas Night)<br />
－元旦前夕 (Dec 31st New Years Eve)<br />
－春节（春节中有几个日子很热闹）<br />
－情人节（Feb 14th Valentines)<br />
－国庆节（Oct 1st)</p>

<p>等一下会添加更多节日。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/02/09/%e7%83%ad%e9%97%b9%e4%b8%8a%e6%b5%b7%e8%8a%82%e6%97%a5%e8%a1%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going Alog with Consensus&#8230;</title>
		<link>http://ryanerwin.com/2009/02/06/going-alog-with-consensus/</link>
		<comments>http://ryanerwin.com/2009/02/06/going-alog-with-consensus/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 20:55:27 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/02/06/going-alog-with-consensus/</guid>
		<description><![CDATA[See: http://www.cell.com/neuron/abstract/S0896-6273%2808%2901020-9

Summary

We often change our decisions and judgments to conform with normative group behavior. However, the neural mechanisms of social conformity remain unclear. Here we show, using functional magnetic resonance imaging, that conformity is based on mechanisms that comply with principles of reinforcement learning. We found that individual judgments of facial attractiveness are adjusted in [...]]]></description>
			<content:encoded><![CDATA[<p>See: http://www.cell.com/neuron/abstract/S0896-6273%2808%2901020-9</p>

<p>Summary</p>

<p>We often change our decisions and judgments to conform with normative group behavior. However, the neural mechanisms of social conformity remain unclear. Here we show, using functional magnetic resonance imaging, that conformity is based on mechanisms that comply with principles of reinforcement learning. We found that individual judgments of facial attractiveness are adjusted in line with group opinion. Conflict with group opinion triggered neuronal response in the rostral cingulate zone and the ventral striatum similar to the prediction error signal suggested by neuroscientific models of reinforcement learning. The amplitude of the conflict-related signal predicted subsequent conforming behavioral adjustments. Furthermore, the individual amplitude of the conflict-related signal in the ventral striatum correlated with differences in conforming behavior across subjects. These findings provide evidence that social group norms evoke conformity via learning mechanisms reflected in the activity of the rostral cingulate zone and ventral striatum.</p>

<p>Translation: Agreeing with people makes you feel high.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/02/06/going-alog-with-consensus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>M.I.A. &#8211; 在战斗中失踪的</title>
		<link>http://ryanerwin.com/2009/01/19/mia-%e5%9c%a8%e6%88%98%e6%96%97%e4%b8%ad%e5%a4%b1%e8%b8%aa%e7%9a%84/</link>
		<comments>http://ryanerwin.com/2009/01/19/mia-%e5%9c%a8%e6%88%98%e6%96%97%e4%b8%ad%e5%a4%b1%e8%b8%aa%e7%9a%84/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 11:24:31 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2009/01/19/mia-%e5%9c%a8%e6%88%98%e6%96%97%e4%b8%ad%e5%a4%b1%e8%b8%aa%e7%9a%84/</guid>
		<description><![CDATA[I&#8217;ve been missing in action from my blog lately&#8230; but lots of pictures, stories and such to start getting caught up on.

November, December and January have been too busy and too cold&#8230;


]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been missing in action from my blog lately&#8230; but lots of pictures, stories and such to start getting caught up on.</p>

<p>November, December and January have been too busy and too cold&#8230;</p>

<p><img src="http://ryanerwin.com/wp-content/uploads/2009/01/200901191923.jpg" width="200" height="266" alt="200901191923.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2009/01/19/mia-%e5%9c%a8%e6%88%98%e6%96%97%e4%b8%ad%e5%a4%b1%e8%b8%aa%e7%9a%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best movie speaches (USA Movies)</title>
		<link>http://ryanerwin.com/2008/09/09/best-movie-speaches-usa-movies/</link>
		<comments>http://ryanerwin.com/2008/09/09/best-movie-speaches-usa-movies/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:16:33 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[USA （美利坚合众国）]]></category>
		<category><![CDATA[Uncategorized (无大类）]]></category>

		<guid isPermaLink="false">http://ryanerwin.com/2008/09/09/best-movie-speaches-usa-movies/</guid>
		<description><![CDATA[This was a great article. My list would be a little bit different, but I mostly agree&#8230; I would add some speeches from Boiler Room, Training Day and most certainly Fight Club to the list, and probably remove some of the older films as I haven&#8217;t seen them &#8212; maybe afterward I&#8217;ll have a change [...]]]></description>
			<content:encoded><![CDATA[<p>This was a great article. My list would be a little bit different, but I mostly agree&#8230; I would add some speeches from Boiler Room, Training Day and most certainly Fight Club to the list, and probably remove some of the older films as I haven&#8217;t seen them &#8212; maybe afterward I&#8217;ll have a change of mind <img src='http://ryanerwin.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<div style="margin-left: 2em">
  <p><span style="font-family: Verdana;">2. <b style="font-weight: bold;">Jack Nicholson, A Few Good Men (1992):</b> You can&#8217;t handle the truth! Son, we live in a world that has walls, and those walls have to be guarded by men with guns. Who&#8217;s gonna do it? You? You, lieutenant Weinberg? I have a greater responsibility than you can possibly fathom. You weep for Santiago, and you curse the Marines. You have that luxury. You have the luxury of not knowing what I know &#8211; that Santiago&#8217;s death, while tragic, probably saved lives; and my existence, while grotesque and incomprehensible to you, saves lives.</span></p>
</div>

<div style="margin-left: 2em">
  <p><span style="font-family: Verdana;">4. <b style="font-weight: bold;">Samuel L Jackson, Pulp Fiction (1994):</b> The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother&#8217;s keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon you.</span></p>
</div>

<div style="margin-left: 2em">
  <p><span style="font-family: Verdana;">5. <b style="font-weight: bold;">Michael Douglas, Wall Street (1987):</b> The point is, ladies and gentleman, is that greed &#8211; for lack of a better word &#8211; is good. Greed is right. Greed works. Greed clarifies, cuts through and captures the essence of the evolutionary spirit. Greed, in all of its forms &#8211; greed for life, for money, for love, knowledge &#8211; has marked the upward surge of mankind. And Greed &#8211; you mark my words &#8211; will not only save Teldar Paper but that other malfunctioning corporation called the USA.</span></p>
</div>

<div style="margin-left: 2em">
  <p><span style="font-family: Verdana;"><font size="2">10. <b style="font-weight: bold;">Mel Gibson, Braveheart (1995):</b> You have come to fight as free men, and free men you are. What will you do with that freedom? Will you fight? Aye, fight and you may die, run and you&#8217;ll live. At least a while. And dying in your beds many years from now, would you be willing to trade all the days from this day to that for one chance, just one chance to come back here and tell our enemies that they may take our lives, but they&#8217;ll never take our freedom!</font></span></p>
</div>

<p>See the complete list:</p>

<p>- <a href="http://news.bbc.co.uk/2/hi/entertainment/3362603.stm">http://news.bbc.co.uk/2/hi/entertainment/3362603.stm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanerwin.com/2008/09/09/best-movie-speaches-usa-movies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
