<?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>Some stuff &#187; code</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=code" rel="self" type="application/rss+xml" />
	<link>https://blog.yhuang.org</link>
	<description>here.</description>
	<lastBuildDate>Wed, 27 Aug 2025 08:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>is winner-take-all broken?</title>
		<link>https://blog.yhuang.org/?p=912</link>
		<comments>https://blog.yhuang.org/?p=912#comments</comments>
		<pubDate>Sat, 04 Aug 2012 22:31:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Coding theorists]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[reward]]></category>
		<category><![CDATA[sponsor]]></category>
		<category><![CDATA[sponsor money]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=912</guid>
		<description><![CDATA[Olympic athletes use a huge amount of sponsor money &#8212; not to mention legal and illegal performance aids &#8212; to reach gold. Soon we will have genetically engineered physiology to reach even greater records. Schools compete for an annual #1 ranking. They spend more and more money to bid for the best professors and build [...]]]></description>
			<content:encoded><![CDATA[<p>Olympic athletes use a huge amount of sponsor money &#8212; not to mention legal and illegal performance aids &#8212; to reach gold. Soon we will have genetically engineered physiology to reach even greater records. Schools compete for an annual #1 ranking. They spend more and more money to bid for the best professors and build the best facilities, driving up tuition. Coding theorists run massive simulations to find the best code to compete for the one spot in standards. But is the second place athlete, school, and code that much worse? No, usually they are nearly as good as #1.</p>
<p>I&#8217;ve often wondered whether many problems in the world are not variations of attempting &#8220;exact optimization&#8221; &#8212; this being the only way to guarantee success in a winner-take-all reward system.<br />
<span id="more-912"></span><br />
In engineering at least, when any kind of iteratively converging algorithm is run, the prototypical behavior is a fast convergence to a neighborhood of the solution, and then a really long process of getting to the exact one. In choosing exact optimization, a practically &#8220;good enough&#8221; solution is rejected in favor of expending a huge amount of resources to obtain the last 1% of the gap to optimality.</p>
<p>Where there is no bound to performance, a winner-take-all competition encourages ever-higher performance, driving progress. In reality, there is no system without some constraint that imposes a bound. We <em>hope</em> that rational allocation decisions will cause us to collectively halt at an approximate solution and move on to something else. However, this requires cooperative strategies. Winner-take-all is not stable for cooperative strategies, so we end up collectively committing resources disproportional to the amount of improvement we get in any observable metric. With the exception of the lone winner in each competition, everybody else suffers massive misallocation.</p>
<p>There are a number of absurd problems that arise from not developing a reward system consistent with a &#8220;soft&#8221; metric that gives some value to anything but the top rank.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=912</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tax season again</title>
		<link>https://blog.yhuang.org/?p=255</link>
		<comments>https://blog.yhuang.org/?p=255#comments</comments>
		<pubDate>Wed, 31 Mar 2010 22:31:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Gotta]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[season]]></category>
		<category><![CDATA[tax]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=255</guid>
		<description><![CDATA[Gotta love the tax code&#8230; all things considered: More here.]]></description>
			<content:encoded><![CDATA[<p>Gotta love the tax code&#8230; all things considered:</p>
<p><img src="wp-content/uploads/images/tax_child2.png" /></p>
<p><img src="wp-content/uploads/images/tax_child.png" /></p>
<p>More <a href="?p=48">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=255</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to (maybe) get WordPress Stats to accept the API key</title>
		<link>https://blog.yhuang.org/?p=88</link>
		<comments>https://blog.yhuang.org/?p=88#comments</comments>
		<pubDate>Tue, 15 Jan 2008 23:44:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Akismet]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[course stats]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[database index]]></category>
		<category><![CDATA[hidden image]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[stupid script]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=88</guid>
		<description><![CDATA[WordPress stats is a nice little filter for WordPress, one of those devious hidden image IP trackers. Unfortunately, getting it to accept the API key doesn&#8217;t always work (even if it works for Akismet without complaint). You may keep getting Enter your WordPress.com API key to link this blog to your WordPress.com account. Be sure [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/stats/">WordPress stats</a> is a nice little filter for WordPress, one of those devious hidden image IP trackers. Unfortunately, getting it to accept the API key doesn&#8217;t always work (even if it works for Akismet without complaint).</p>
<p>You may keep getting</p>
<blockquote><p>Enter your WordPress.com API key to link this blog to your WordPress.com account. Be sure to use your own API key! Using any other key will lock you out of your stats.</p></blockquote>
<p>even if the API key is correct. or if you hard code the API key</p>
<blockquote><p>An API Key is present in the source code but it did not work.</p>
<p>The WordPress.com Stats Plugin is not working because it needs to be linked to a<br />
WordPress.com account.</p></blockquote>
<p>I didn&#8217;t find a solution in any of the forums, so I looked at the stupid script some more. Basically it uses the API key to get a &#8220;blog_id&#8221; (database index, most likely) from WordPress.com and can&#8217;t find one. So I made up a blog_id in the code. That shut up the plug-in, but of course stats aren&#8217;t tracked.</p>
<p>Finally, I went to <a href="http://dashboard.wordpress.com">http://dashboard.wordpress.com</a>, logged into the account, made a new garbage *.Wordpress.com blog, then a bit later took out the made-up blog_id from the code, de-activated and re-activated, and &#8230; everything works. The external blog shows in the &#8220;Global dashboard.&#8221; Also the real blog_id is returned from code. But, if I take out the hard coded API key, it stops working again.</p>
<p>This is definitely a WordPress.com problem with registering externally hosted blogs, so to make it work, hard code the API key, make sure there is at least one *.Wordpress.com blog, wait a little bit, then re-activate the stats plug in.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=88</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>tax forms must be designed by idiots</title>
		<link>https://blog.yhuang.org/?p=71</link>
		<comments>https://blog.yhuang.org/?p=71#comments</comments>
		<pubDate>Sat, 07 Apr 2007 08:59:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[answer]]></category>
		<category><![CDATA[argh]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[disaster]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[non residents]]></category>
		<category><![CDATA[reverse-engineering]]></category>
		<category><![CDATA[value calculations]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=71</guid>
		<description><![CDATA[CA income tax form is the worst. MA is only slightly better. The federal one is a disaster but at least I&#8217;m used to it. These things require reverse-engineering the spagetti code behind the instructions in order to see the actual calculations, which are all fairly simple. And yet, there is no logic to the [...]]]></description>
			<content:encoded><![CDATA[<p>CA income tax form is the worst.<br />
MA is only slightly better.<br />
The federal one is a disaster but at least I&#8217;m used to it.<br />
These things require reverse-engineering the spagetti code behind the instructions in order to see the actual calculations, which are all fairly simple. And yet, there is no logic to the instructions, like why the apportioning of income for non-residents need to be calculated multiple times, or why rate and value calculations are interleaved in random order, or why two forms that should give the same answer, don&#8217;t&#8230; Argh!</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=71</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
