June 2014

mac
2014-06-22 01:47 (11 years ago)

翻訳する日本語のブログ記事の本文を入力してください。

mac
2014-06-13 03:00 (11 years ago)

```bash #!/usr/bin/env jsc print("Hello, World!"); ``` To execute such a JS file from the terminal, it's convenient to use the JSC that comes pre-installed on Mac. 1. Add JSC Interpreter to Your Path The JavaScript interpreter on a Mac is located here: ```bash /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc ``` Since it's not in the PATH by default, create a symbolic link in a directory that is in the PATH. For example, you might use /usr/local/bin. ```bash cd /usr/local/bin ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc ./ ``` In the terminal, run: ```bash jsc --help ``` If the help information is displayed, it's set up correctly. 1.1. Using the Interactive Interface Run: ```bash jsc ``` This will start an interactive interface. The prompt and behavior are very similar to Python's interactive interface. You can even write functions.

Raspberry-Pi
2014-06-08 01:24 (11 years ago)

Raspberry Pi is typically powered through a dedicated micro USB port, but unofficially, it can also be powered via:

mac
2014-06-07 06:36 (11 years ago)

If you encounter an error like <type 'exceptions.ValueError'>, ValueError('unknown locale: UTF-8',),

2014-06-07 05:38 (11 years ago)

The explanation of the 500-million-year button can be found here What is the 500-Million-Year Button (Go-Oku-Nen-Button)? [Dictionary Article] - Nico Nico Encyclopedia It seems that every now and then, I hear about the 500-million-year button again. Personally, I'm in the "don't press" camp. When someone presses it, they will spend the vast majority (99.999984%) of their life in solitude with nothing around, making that experience the main part of their life. I visualized this in a graph. Is it worth choosing 500 million years of solitude just to gain a brief 60 years of fleeting happiness in the end? My conclusion is, "No." Although there is a condition that guarantees the memory will be erased and the person will return safely, making pressing the button essentially "100 million yen with no risk," the scale is so vast and the premise so beyond modern science that it becomes difficult to measure with common sense. I think that's where the intrigue of this story lies. There is no definitive answer to this question. However, this "500-million-year button" is one of my favorite topics because it brings a philosophical debate to a theme close to daily life. Lastly, let's talk about a simple ratio... For someone who has lived 500,000,080 years, 50 years would correspond to 4.2 minutes for someone who lives 80 years. (50 / 500000080) * 80 * 365.24 * 24 * 60 I don't mean to imply that the 50 years after 500 million years would be felt as 4.2 minutes to us. The memory will be erased after all. I just thought it might help to measure such a vast scale like 500 million years.

Categories

Archive