There is a scenario where you need to test on iPhone and debug on local.

Oops … we all hate the safari bug !

First is firewall

Click left panel ‘Advanced Setting’

It will open fire wall screen

Why I might do this?

You are on SSH remote login to your Mac to make a user for your colleague.

How you do this?

The dscl command.

dscl .

I prefer interactive session so that I don’t need to prefix anything with sudo dscl . The dot mean ‘here’ at this machine. Here is the step.

sudo dscl…

Got this error after changing machine and docker-compose up

Meaning this might be issue from different Docker version.

Trailing Slash

Found the problem is from trailing slash, so change docker-compose.yml

-      - ./sftp:/home/user-upload/                                                                                                                                                                     +      - ./sftp:/home/user-upload

Change from user-upload/ to user-upload make this work

Hope this help !

Since url.parse and querystring.parse is deprecated here and here at least since last LTS version 14.

The doc doesn’t suggest alternatives, so I study and found the standard alternative here below:

First on URL

Legacy is url.parse

> url.parse('')Url {…

When working with internal services through LAN, we have some problem that we cannot connect to the outside world which we normally connect by Wifi.

Scenario — Expect Result

When going to internal server e.g. the ip use LAN

Otherwise go through Wi-fi

See the interface in my machine with ifconfig

en0 Wifi

Warning: this is not secure at all, only for testing things out.

Step 1: Create User/pass

and also the home directory for this user

sudo useradd my-temp-user
sudo passwd my-temp-user
sudo mkdir /home/my-temp-user// Grant perm
sudo chgrp my-temp-user /home/my-temp-user
sudo chown my-temp-user /home/my-temp-user

Step 2: Enable password login in SSHD

sudo vim /etc/ssh/sshd_config

Looking for this line, change it from no to yes

PasswordAuthentication yes

Then restart it to take effect

sudo systemctl restart sshd

Step 3: Done test login with the new user

ssh my-temp-user@

Bingo now we logged in with the new user

Here is the full error thrown from http-proxy-middleware

[HPM] Error occurred while proxying request localhost:3000/foo to http://localhost:3009/ [ECONNRESET](



When sending client --> proxy --> API server

Proxy transform body to JS object and it try to proxy that JS object so it fails.

HTTP is plain text protocol it…

We will learn by making the below layout.

The layout

5 Mins

Grid is the layout structured by row x column.

We specify how many row and column by setting

  1. grid-column-template
  2. grid-row-template

Grid layout is set at the parent (just like flex).

One equal cell is specify by 1fr.

.parent {
display: grid…


Most of the time flexbox and other CSS solve the problem.

However, consider the case when the layout should look like this on mobile.

And this view below for desktop.

Credit: wikipedia


File need to end with \n Blank line


Bash need space to evaluate. Thing that look usual in other language can be syntax error in bash.

ERROR command x not found
x = 5

The for loop is separated by space too.

for i in "${arr[@]}"…

tanut aran

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store