macOS 운영체제 기반 PHP 개발 환경에서 homestead 대신 docker 를 서버로 사용하려 laradock 설치 및 셋팅을 하던 중 xdebug 연동시 remote_host 주소 셋팅 단계가 되었는데기존 macOS 용 docker 는 hypervisor 인 VirtualBox 기반이어서 호스트 IP 주소를 VirtualBox 의 네트워크 설정을 열어보면 쉽게 알 수 있었는데현재 macOS 용 docker 는 linux 와 같이 hypervisor 가 필요 없게되어 자원낭비도 줄일 수 있는 등 여러모로 좋으나, xdebug 연동하려다보니 remote_host 주소를 어디서 조회해봐야 하는지 오리무중이라 구글링! docker 컨테이너에서 호스트 ip 접근 방법 #1 (택1)https://docs...
$string = '한글dfjasdflajksl'; $pattern = 'src=["']?(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&"'>]+)["']?'; preg_match("/{$pattern}/i", $string, $matches); echo ($matches[0]); //only the src="http://www.youtu.be/dQw4w9WgXcQ part echo ($matches[1]); //the video id part. (dQw4w9WgXcQ) 참고 http://stackoverflow.com/qu..
Youtube API 사용을 위해 OAuth 2.0 인증 절차를 개발하며 https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps 를 참고하며 진행하는데 갱신 토큰 (refresh token) 값이 받아지지 않는 이슈가 발생!레퍼런스 첫 부분 즈음"1. 액세스 토큰 받기" 단락이 있는데 이것의 진정한 이름은"1. 인증 코드 요청하여 받기" 정도 되겠다."1. " 에서 받은 인증 코드와 함께 "4. " 요청 후 "5. " 에서 레퍼런스의 응답과 같이 "refresh_token" 값이 있어야 하는데 값이 없었고과정을 처음부터 반복을 구글링 조회하며 10회 이상 삽질하다가갱신 토큰 반환 안되는 원인을 찾음. : 최초 권한 요청때 1회만..
$ node app.js 로는 실행 후 포트 리스닝이 문제 없는데 pm2 로 start 시 포트 리스닝이 계속 안되는 문제가 발생!자세한 pm2 프로세스 상태를 보기 위해$ pm2 show 명령 실행에러 로그 경로를 확인error log path | ~/.pm2/logs/callback-error-0.logless 명령으로 열어서 오류 로그 확인$ less ~/.pm2/logs/callback-error-0.logError: Cannot find module '~/.nvm/....../lib/node_modules/pm2/lib/ProcessContainerFork.js'저 오류는 pm2 env 가 변경되어 유발된다고 하며해결은$ rm -rf ~/.pm2$ pm2로고가 뜨며 pm2 설정이 업데이트 됨.다..
공식 문서에는 NginX 설정이 나옴 http://socket.io/docs/using-multiple-nodes/다중 노드들 사용#고 load balancing고정 로드밸런싱If you plan to distribute the load of connections among different processes or machines, you have to make sure that requests associated with a particular session id connect to the process that originated them.This is due to certain transports like XHR Polling or JSONP Polling relying on firing sever..
mobile chrome 에서썸네일 넓이가 110px 미만이면 흐릿하게 blur 처리가 되는데 또렷하게 보이도록 해당 기능 막는법 img { image-rendering: optimizeSpeed; /* */ image-rendering: -moz-crisp-edges; /* Firefox */ image-rendering: -o-crisp-edges; /* Opera */ image-rendering: -webkit-optimize-contrast; /* Chrome (and Safari) */ image-rendering: optimize-contrast; /* CSS3 Proposed */ -ms-interpolation-mode: nearest-neighbor; /* IE8+ */ } http:/..
- Total
- Today
- Yesterday
- Docker
- Android
- iphone
- nodejs
- IE
- javascript
- laravel
- PHP
- JSON
- git
- JQuery
- IOS
- Mac
- Linux
- ASP
- classic asp
- sencha touch
- Debug
- 안드로이드
- Wordpress
- iis
- 한글
- macos
- mssql
- centos
- API
- 워드프레스
- CSS
- Prototype
- nginx
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |