HNHacker News
TopNewBestAskShowJobs

yiransheng

1,489 karma · joined February 3, 2013

submissionscomments
yiransheng··on “var functionName” vs “function functionName”
One pattern I have seen emerging is

    Object.prototype.method = function Object$method() { ... }
an interesting mixture of both method.
yiransheng··on Type I and type II errors
Oops, you are right, I am a bad freqentist. Just had the discussion about the comic with a friend verbally, thought we figured it out. I guess it is really easy to get even the most basic concepts applied wrong.
yiransheng··on Type I and type II errors
In main street interpretation of statistical findings, type II errors are often swept under the rug.

A good illustration of the danger in only telling the type I side of the story is [xkcd/1132](http://xkcd.com/1132/), the frequentist looks hilariously stupid, and we all hail the Bayesian smartness.

Yet a closer look from the frequentist view, the type II error of the test: H_0: the sun has gone nova is Pr[detector reports no|the sun has indeed exploded] = 1 - 1/36 > 95%; in other words the power of the test(1-Pr[type II error]) is extremely low (1/36). Even though the test has a reasonably low level alpha=0.05(type I error), it's still pretty useless as its power is also pathetic.

The comic made the frequentist look idiotic, however, he's just not a good frequentist with a sufficient grasp of type II error. In reality, many people are like the freqentist, easily satisfied with a low p-value without thinking about the fundamental usefulness of their tests (power), becoming victims of type II errors.

EDIT: I made a mistake, see eli_gottlieb's comment below for correction.

yiransheng··on 33 Questions
If anyone is interested in seeing such a application in a fictional setting, I suggest the anime Death Note, if nothing else for its entertainment value. For those who are familiar with the story, the questions L asked in order to narrow down Kira suspects to a limited demographics in a small region in Japan, among billions of candidates, were some good ones. A good article that analyzes the plot from a information theory perspective: [http://www.gwern.net/Death%20Note%20Anonymity](http://www.gw....
yiransheng··on Free vector icons
[Icomoon](http://icomoon.io/) could easily convert svg into web font icons.
yiransheng··on R-Fiddle
Very cool, though I can sense clearly the stress the server is experiencing.

I typically use RStudio[1] to setup a R server on EC2 when I am on Chromebook and mobile. However having a fiddle for R definitely helps a lot when I need to do something quick, saving tons of time signning into AWS and boot up my rstudio instance.

[1]http://www.rstudio.com/

yiransheng··on A spreadsheet in fewer than 30 lines of JavaScript, no library used
Really clever hack. Also looked around the original Angular spreadsheet the author offered as a inspiration, the 'hacky' components boiled down to this too parts:

1. Data binding.

Angular: ng-model, ng-controller, relying on Angular's magical $scope

This: custom defined object getter, essentially making the data resides in the DOM input elements (while keeping a copy in localStorage)

2. Expression evaluation

Angular: $parse service

This: 'with' and 'eval' in the same line. Despite its double 'evilness', this is really clever.

yiransheng··on Why Japanese Web Design Is So Different
- Compared to English, Japanese text can cram more information into an easily-skimmable spaaaaaace, but typing is slower, so cluttered, link-rich interfaces have an advantage. This may well explain why Yahoo! Japan's portal is so much more popular than Google's.

I second this theory. A similar version of this happened in China too. A few years back, when Baidu was still copying Google's minimal design pixel by pixel, they suddenly discovered that it was losing traffic to a random site with only one static html page setup: hao123, which also fit into the 'cluttered, link-rich' interface category. Baidu ended up acquiring hao123, spending close to a million dollars on a few lines of html. Note that Chinese language bears quite some similarities to Japanese, they are both character based and typically a hassle to type in large chunks.

yiransheng··on Taiwan’s ‘White Shirt Army,’ spurred by Facebook, takes on political parties
While you are certainly right on historical facts and thus the implied legitimacy of RoC, the reality is when a news agency or the public in general mentions the term China, by default they mean P.R. China. Therefore, the quoted sentence is merely describing (not agreeing) with the POV of said China, which is not that ridiculous to a neutral third party.

Taiwan is a self-governed sovereignty by most accounts, with its own economy, political system and military. It does not have mainstream international recognition from other countries however, most due to P.R China's pressure. For instance, Taiwan is not part of UN, major nations like US failed to acknowledge it as a independent country due to their reluctance to upsetting mainland China - who frequently threatens open war for such 'treacherous division of the one China'. Therefore, there are only 30 or so countries openly supports Taiwan's independence.

The morality of Taiwan's sovereignty debate obviously takes the narrative of a oppressive dictatorship and its democratic neighbor, but to claim Taiwan or RoC as the legitimate government of China and label P.R. China as the illegal, rogue ruler is far-fetched in the current world's landscape; after all the latter has taken control over the China for over half a century, wield much more political and economical power, and is widely acknowledged as a legitimate country for decades. It's almost like saying US is not a legitimate nation, rather ilegal rebellion against the Great Britain ever since some two hundred years ago.

yiransheng··on Firefox: Why we won’t enable Do-Not-Track by default
How about determine the default setting in a random fashion?

DNT = Math.random()> p ? on : off

yiransheng··on Prominent Weibo Users Paid to Bash Apple? Introducing China’s ’820 Party’
Did not expect this to be picked up by HN. I watched the 820 drama on weibo live, it never surprises me how low-class CCTV can be.

As of the reason why CCTV is suddenly after Apple, I saw this chart[1] on weibo, which could shed some lights on the situation. It reveals a detailed breakdown of Apple's TV advertising spending in China. It seems Apple put the lion share of their budget on provincial TV channels (the blue area on the pie charts) instead of CCTV - the supposedly most watched TV channel in the country.

Also, I would like to offer some knowledge of CCTV's mob-like operations.

CCTV has been falling out of favor for both viewers and advertisers. It failed to innovate and offer shows/programs people care to watch; when it falls behind in the marketplace, the state sponsored monopoly would wield its political power and paint competitions politically incorrect labels (Eg. accusing other channels' shows being 'vulgar', 'reactionary' etc..). This has happened a few times with popular shows on provincial channels.

Typically, CCTV do not organize similar massive campaigns to defame its clients; but there's always an exception once a year: the 3-15 annual gala. Every March 15th, CCTV points fingers to companies 'who severely violates consumer rights', exposing industry scandals and unethical businesses. The 3-15 show has its popularity, as consumers frequently fall victim to the wide range of unethical (sometimes outright illegal) behaviors prevailing the Chinese corporate world. CCTV is the only media outlet who has the political capital to make such nationwide accusations without fearing consequences.

Therefore, it is not surprising CCTV leverages this show to send a warning message to its current and potential clients: "we can easily make you or break you, do your advertising with us or watch your brand destroyed next year." It has been a known fact that CCTV uses 3-15 as a tool to punish the 'not-so-well-behaved' advertisers and hold Chinese companies at their hostage to maximize their advertising revenue.

Clearly, Apple has been categorized as one of those bad boys this year, and CCTV decided it needed a lesson.

[1]http://photo.weibo.com/1401318455/wbphotos/large/photo_id/35...

yiransheng··on The Google Question: Is The Hacker Ethic Compatible With A For Profit Company?
I believe the author [linked to wikipedia](http://en.wikipedia.org/wiki/Hacker_ethic) when he used the term.
yiransheng··on In a Changing China, New Matchmaking Markets
As I Chinese living in the US, I always found this kind of news reports fascinating and inform me something new about Chinese society to me: strange and bizarre businesses/markets arising from some twisted cultural background, reflecting the confused mindset this new generation of of Chinese people.

On a related note, matchmakers aren't certainly the only ones banking the profits exploiting the traditional and failing marriage/relationship mechanisms in the society. A few years ago, this seemingly dull reality TV show (If you are the one) on dating suddenly gained popularity and became a heated discussion, bringing to attention the confusion surrounding marriage and a wide range of social topics. You can just see in the show how China as a society failed to come up a coherent value system that could address love, relationship, marriage, wealth and pretty much anything meaningful.

Related background on the show and its contents, which also covers the unsurprising step-in of censorship: http://www.nytimes.com/2012/01/01/world/asia/censors-pull-re...

yiransheng··on Qualifying Artificial Intelligence Through Poetry
Interesting topic, unfortunately not a lot of substance in the article. Reminds me of the news piece a while ago : Google's Artificial Intelligence Translates Poetry

http://www.npr.org/2011/01/16/132959095/googles-artificial-i...

yiransheng··on Show HN: I made a draggable font-size controller for HN
Browser zoom makes the page wider, I had to deal with horizontal scrolling on my small screen.
yiransheng··on Ember.js 1.0 RC1 released
Another comparison from a while ago, which includes eight of the js mv* frameworks: http://blog.stevensanderson.com/2012/08/01/rich-javascript-a...
← PreviousPage 2 of 2