ytyng.com

Latest Articles

Page 15
mac
2014-06-22 01:47 (11 years ago)
[Pending] How to Search Bookmarks in Firefox Using Keyboard Shortcuts

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

mac
2014-06-13 03:00 (11 years ago)
Run a JavaScript Script File from the Terminal on Mac

```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)
Creating a Self-Powered USB Hub for Raspberry Pi Using USB Port Power

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)
When Trying to Run Django from PyCharm, "unknown locale: UTF-8" Error Occurs

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

2014-06-07 05:38 (11 years ago)
The "I Won't Press the 500 Million Year Button" Group

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)
Turning USB Devices On and Off with a Relay Using Raspberry Pi

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 (12 years ago)
Notes on Integrating tapkulibrary into an iOS App

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

mac
2014-04-22 07:57 (12 years ago)
What to Do When Appledoc Installation (Build) Fails: Changing Project Settings (For Xcode 5)

How to Fix Build Failures of appledoc with Xcode 5

Linux
2014-04-07 09:49 (12 years ago)
When Trying to Install Redmine on CentOS 5.9, RMagick Fails to Install → Use su - Instead of sudo

I tried to install Redmine on Cent OS 5.9.

Python
2014-03-20 23:30 (12 years ago)
Add Environment Variables When You Encounter the Error "pip install pillow → error: command 'cc' failed with exit status 1"

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

mac
2014-02-15 15:59 (12 years ago)
YClip.app: Converting Clipboard to Plain Text & History

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)
A Script to Batch Rename Multiple Files Using an Editor

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)
The Significant Barrier Between In-House Development and Outsourcing to Partner Companies

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)
How to Fix iBooks ERROR ITMS-5107

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)
Comparing Logger Implementations Using Generators and Classes

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)
Using Safari's Text-to-Speech to Read Aloud HTML

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

iOS
2013-09-30 13:40 (12 years ago)
Using iOS7's Text To Speech to Make iOS Speak

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