cocoadog's comments

cocoadog | 6 years ago | on: Evolution of the Scrollbar

Related: on Macs, holding the Shift key makes the scroll wheel (and two-finger touchpad scrolling) scroll horizontally instead of vertically.

cocoadog | 8 years ago | on: Sugar alters hormones and metabolism, sets stage for obesity and diabetes

I haven't seen a specific study but I have read assertions along the same lines: either low-fat or low-carb can work.

I believe the insulin-centric explanation (I'm a low carb eater and this is the perspective I tend to see) would be something like:

- Low carb and high fat: The fat goes to your fat cells (that is, whatever fat you don't burn for fuel immediately after eating), but since your insulin is low the fat is readily burned off relatively soon.

- Low fat and high carb: The carbs cause an insulin spike, and insulin inhibits fat burning, BUT since you haven't stuffed much fat into your fat cells, there isn't much to burn off when your insulin eventually comes back down. You need to be relatively insulin sensitive, so that your insulin level does come back down. Even if you're insulin resistant, this diet might still work if you eat only a tiny amount of fat.

- High fat and high carb: Fat goes to your fat cells and insulin levels are high, which inhibits fat burning, so you gain fat faster than you burn it.

(Edits: I thought Markdown lists would work but they didn't.)

cocoadog | 9 years ago | on: A step-by-step guide to building a simple chess AI

One of the preinstalled apps on macOS is /Applications/Chess.app. Turns out it uses an open-source chess engine called sjeng, the binary for which is inside the app bundle. Chess.app is itself open source, so I tweaked Apple's code for my own purposes. The code launches an sjeng process, opens a pipe to it, and sends commands over the pipe.

There's a couple of sentences about this in the _README file here (as well as my tweaked source files):

https://github.com/aglee/ChessFidget/tree/master/ChessFidget...

Fun fact: you can play chess in a terminal window by running /Applications/Chess.app/Contents/Resources/sjeng.ChessEngine. You can enter the `help` command for instructions. Note this will create four files with .lrn extensions in your home directory. I forget how to control this behavior -- you can Google "sjeng" for details.

cocoadog | 12 years ago | on: 10x Engineer

Of all the engineers you've worked with, if you can think of eleven such that you'd rather hire one rather than the other ten, then that person is a 10x engineer.

cocoadog | 12 years ago | on: Apple Ran Out Of Gold iPhones Because It Underestimated How Much Asia Likes Gold

> So far I have seen no data whatsoever to back up this idea that Asian people prefer gold more than other people in the world.

I too would like to see data that supports the theory that a gold iPhone should be expected to do especially well in China. For example, have other companies benefited from making the same decision for their own product lines?

cocoadog | 12 years ago | on: Apple Ran Out Of Gold iPhones Because It Underestimated How Much Asia Likes Gold

Is "Asians love gold" a common racial stereotype? Serious question. Is it common for racist non-Asians to think, "Them Asians, they sure do love cat chow mein, blonde women, and gold"? [EDIT: If you like, substitute "math, martial arts, and gold". I'm asking only about the existence of a stereotype, setting aside how demeaning or inflammatory it's considered to be.]

I've been hesitant to assert cultural differences in another thread, but I think it's safe to say the color gold, like red, has a different significance in China than in the West. (Less sure about other Asian countries.) It's possible some people stupidly associate the preference with race, as if it's genetic, rather than cultural; I've just never encountered that stereotype.

Before the announcement, my overwhelming impression from American writers was not that they love gold. Quite the opposite: they did not expect to like the color, and were trying to come up with an explanation for why Apple would go that way. They were flailing for some conclusion, not rationalizing a conclusion they particularly "want[ed] to reach".

I'm skeptical of the theory myself, for a couple of reasons, but it doesn't strike me as racist. It might if I were convinced the racial stereotype was a common one that I happened to be unaware of.

page 1