본문 바로가기

Develop

[HTML] Way to remove the arrow button at input tag that number type When you using the input tag with number type, you can see the up/down arrows on the right side of input tag..Like this ..If you don't like this arrows, you would add the styles in css like this ...number-input::-webkit-outer-spin-button,.number-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0;}You can find the manuals here.. https://developer.mozilla.org/en-US/docs/Web/CSS.. 더보기
리눅스에서 PID 로 프로세스 동작 유무 체크 리눅스에서 프로세스가 동작중일 경우해당 정보들이 /proc/[pid] 폴더 내부에 존재하게 됨. 프로그래밍적으로 pid를 이용해서 동일 프로세스가 동작하는지 여부는위 폴더 유무로 체크해 줄 수 있음.$pidFileName = "/tmp/mypid"; if (file_exists($pidFileName)) { $oldPid = file_get_contents($pidFileName); if (file_exists("/proc/$oldPid")) { $this->response("Exists Process"); return false; }} 주 언어가 php인 관계로 간단하게 위와같이 진행해주면해당 스크립트가 다른 프로세스에서 동작중인지 여부를 체크해 줄 수 있음. 물론. 이때 프로세스 진입 단계에 현재 프.. 더보기
Add authorization header in ajax with axios Add authorization header in ajax process. const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MvXC9yZW5ld9fQ.hGyUlcvaRfLhiaaQAqQg'; const authorization = `JWT ${token}`; axios.defaults.headers.common["authorization"] = authorization; const authCodeResult = await axios.post() 더보기