ytyng.com

Latest Articles

Page 15
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.

Raspberry-Pi
2014-05-31 03:29 (11 years ago)

I wanted to use external speakers to play music with my Raspberry Pi, but I thought it would be a waste of energy to keep the speakers powered on all the time. So, I decided to create a system that turns the power on only when needed. You can easily achieve this with a single relay. The relay is controlled by the GPIO. Wiring Diagram

iOS
2014-04-23 03:52 (11 years ago)

A note on incorporating https://github.com/devinross/tapkulibrary into my project.

mac
2014-04-22 07:57 (11 years ago)

How to Fix Build Failures of appledoc with Xcode 5

Linux
2014-04-07 09:49 (11 years ago)

I tried to install Redmine on Cent OS 5.9.

Python
2014-03-20 23:30 (12 years ago)

When running `pip install pillow`, you might encounter the following error:

mac
2014-02-15 15:59 (12 years ago)

I created a Mac pasteboard (clipboard) application. While it's not yet very versatile, as hotkeys are fixed and cannot be customized, I am releasing it for public use.

Python
2014-01-29 10:41 (12 years ago)

When you start the program, a list of files is displayed in the editor. You can modify and save the list.

2014-01-25 02:48 (12 years ago)

Just as I work with consideration for the families of my company’s employees, partners from collaborating companies work with consideration for the families of their employees.

Ebook
2013-11-26 05:38 (12 years ago)

When trying to upload an EPUB to iBooks via iTunes Producer on the iTunes Store, if you encounter the following error:

Python
2013-11-18 02:41 (12 years ago)

I wanted to write a logger-like class and wondered, "Which would be more readable, using a generator or a class?" So I wrote and compared both.

PC/Etc
2013-11-01 07:22 (12 years ago)

Basically, you can make it speak with just this code:

iOS
2013-09-30 13:40 (12 years ago)

Lo-Fi. Can also play in Japanese. Japanese is slightly distorted. The AVFoundation framework is required

mac
2013-09-26 12:31 (12 years ago)

On a Mac,

Django
2013-09-21 04:04 (12 years ago)

1. Define change_form_template in the admin.py module Specify the location of the custom template