Categories
Thoughts

Hangul Day – 2020

Today is Hangul Day, which is a celebration for the creation of the Korean Alphabet.

The Korean Alphabet is no only the youngest Alphabet in the World, is the only Alphabet with a single know creator: King Sejong.

During his reign, one of King Sejong’s focuses was bridging the gap between the wealthy aristocrats and poor commoners. Creating an alphabet to supersede the adopted Chinese writing system of the time (which was primarily learnable only by the rich), gave all people a common writing system that could be learned in one day.

That’s just awesome.


Back in 2015 I started studying Korean and was immediately intrigued by the simplistic alphabet, only to grow in love with it after learning about its reason for creation.

Let’s all be a little more mindful of those less fortunate, even if we become King.

Categories
Shortcuts

Quickly Clear Safari Website Data

Often times I find myself needing to clear the website data stored in Safari, and while Safari does provide a mechanism for accomplishing this task, it is a (minimum) three step process that first waits until the data is loaded before allowing to remove.

Cumbersome. 🧐

Thankfully, there is a little trick I use that speeds up this process, which only requires enabling and disabling ‘Block all cookies’ setting instead.

https://crazies.cloud/sites/7/2020/07/18120107/quickly-remove-safari-website-data.mov

Personally, I find this method much faster for resetting Safari, but honestly wish there was a programatic method for performing this type of privacy cleanup.

Categories
Software

Fix Composer Process Timeout Issues

Recently I started contributing to an Open Source WordPress plugin and unfortunately I kept hitting a wall with the process timeout caused when installing Composer dependencies.

After some research, I found several ways to by-pass this timeout, one of which was decided to implement in the package.


Recommended

The recommended way of disabling the Composer timeout is on each script execution, using the builtin method provided by Composer: Composer\Config::disableProcessTimeout. Doing so keeps the timeout setting specific to tasks and does not pass this setting to other scripts or processes.

scripts: {
  "pre-install-cmd": [
    "Composer\Config::disableProcessTimeout"
  ]
}

Other Methods

The following is a set of other methods which also disable the timeout, but can be destructive when the timeout serves a distinct purpose.

Set Globally

The quickest (and probably most distructive) way to disable the timeout is by setting the var on your system.

export COMPOSER_PROCESS_TIMEOUT=600

Set for a Package

Optionally you can set the timeout within the package config:

config: {
  "process-timeout": 600
}

Set for a Command

Another way would be to set the timeout for each individual command.

COMPOSER_PROCESS_TIMEOUT=600; composer install

The first two are still a bit overbearing, while the third would only apply to that specific command, and that can be useful in many circumstances.

Personally, I use the recommended method or the per-command method when I need a quick process timeout removal.

Categories
Memories

Escape to the Ocean

As the water briskly bumps against the hull, I find myself breathing in the crisp, salty air from the sea. Gazing just above the horizon, there is a faint glimpse of the rock softly peaking in the daylight.

A journey away from land to find peace.

As we are sheltered in during this pandemic, time and again I am drawn to my wanderlust, fortunate to have visited so many places which now seem out of reach.

Let us cherish these fleeting moments. ❣️