Setting $PATH properly on macOS High Sierra

Submitted by Darren Oh on

PATH is a variable that determines where the system looks for commands. Most guides I found suggest setting this in a Bash configuration file. But this only affects commands run in a Bash terminal. Global paths on macOS High Sierra are set in /etc/paths. You can also add a file to /etc/paths.d. Files in that directory have their paths included automatically.

Tags

Retrieving data from multiple PHP session handlers

Submitted by Darren Oh on

When I was trying to get PHP session upload progress data from a site that uses a custom session handler, I learned that PHP stores the upload progress data using its built-in session handler before it runs any code. This means the upload data is not included when the site starts the session with its custom handler. However, I learned that it is possible to retrieve data from a session, abort it, and start another session with a different session handler.

Tags

Community code of conduct

Submitted by Darren Oh on
Last year, there was a lot of discussion within the Drupal community about a code of conduct. Many people expressed the hope that a clearly stated code of conduct would prevent misunderstandings and enforce good behavior within the Drupal community. While I support this effort, I think it’s important to keep our expectations realistic. Some kinds of participation should be governed by a code of conduct, some require people to govern them directly, and others cannot be governed by the community at all.

Tags

.htaccess in home directory brought down all my sites

Submitted by Darren Oh on

This afternoon, most of the sites running on my computer started responding with “500 Internal Server Error”. The Apache error log showed the following error:

[Tue Jul 19 16:17:01.418642 2016] [core:alert] [pid 79692] [client 127.0.0.1:53041] /Users/darren/.htaccess: <IfModule not allowed here

Moving keys from Bitcoin Core to MultiBit wallet on Mac

Submitted by Darren Oh on

The Bitcoin block chain had reached 85 gigabytes last week, so it was no longer practical to run a full node client on my laptop. A full node client verifies a transaction by checking earlier transactions all the way back to when the network first issued the funds used in the current transaction. To do this, it first has to download every block of transactions in the chain. The alternative is a client that uses simplified payment verification (SPV).

Tags