본문 바로가기

전체 글174

vscode preview open 파일을 오픈할 때, 임시가 아니라 일반적인 상태로 오픈하기 원할 때. "workbench.editor.enablePreview": false 2018. 10. 27.
emulator-5554 offline 갑자기 잘되던 android studio emulator 가 고장났다. eclipse에서 android studio 로 넘어오면서 emulator가 개선되었다고는 하지만 여전히 모르겠다;;;;;;; 다시 nox를.... nox 실행하고 다음 실행하면, 에뮬레이터로 사용가능하다. "D:\Program Files\Nox\bin\nox_adb.exe" connect 127.0.0.1:62001 nox는 멀티플레이어 지원이 가능하므로, N:N 테스트시 좋은듯... 2018. 10. 26.
android fcm gradle error 2018년 10월 26일 최신 android studio, fcm 을 적용했는데 gradle에서 다음과 같은 에러 발생 fcm 추가한 사항projectclasspath 'com.google.gms:google-services:4.0.1'appimplementation 'com.google.firebase:firebase-core:16.0.1'apply plugin: 'com.google.gms.google-services' 에러 메시지All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26... 2018. 10. 26.
fabric.js strokeWidth bug ? fabric.js를 사용하다가 new fabric.Path, new fabric.Line, new fabric.Polygon 들을 new fabric.Group으로 묶어서 사용할 경우, 초기 설정(strokeWidth: 3, stroke: 'yellow') -> 마우스 오버 이벤트(strokeWidth: 6, stroke: 'red') -> 마우스 아웃 이벤트(strokeWidth: 3, stroke: 'yellow') 로 작동시 문제: 일부 픽셀에서 red 잔상이 남는 현상이 발생한다. (화면을 확대하면, 더 많은 픽셀에서 발생, 크롬브라우저) 해결: 초기 설정(strokeWidth: 6, stroke: 'yellow') -> 캔바스에 add 후 수정(strokeWidth: 3, stroke: 'yel.. 2018. 8. 31.
PWA 프로그레시브웹앱 PWA 공부 순서 0. 샘플 사이트 테스트해보기https://www.pokedex.org 1. 잘 정리된 ppt및 블로그를 보면서 감을 잡는다.프로그레시브 웹앱이란? - Progressive Web Appshttps://www.slideshare.net/GihyoJoshuaJang/the-future-of-web-progressive-web-app현실적 PWAhttps://www.slideshare.net/netil/pwa-653788692018년과 이후 JavaScript의 동향 - 브라우저 밖의 JavaScripthttps://d2.naver.com/helloworld/5644368서비스 워커(Service Worker) 정체가 뭐니?https://b.limminho.com/archives/1384서.. 2018. 7. 19.
날짜 함수 function getDate() { var d = new Date(), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = '' + d.getFullYear(), hh = '' + d.getHours(), mm = '' + d.getMinutes(), ss = '' + d.getSeconds() ; if (month.length < 2) month = '0' + month; if (day.length < 2) day = '0' + day; if (hh.length < 2) hh = '0' + hh; if (mm.length < 2) mm = '0' + mm; if (ss.length < 2) ss = '0' + ss; return [year.. 2018. 7. 5.
WebSocket, ws server side // 신규 진입시 기존 접속 사용자의 처리를 중지시킨다. wss.clients.forEach(function each(client) { // if (client !== ws && client.readyState === WebSocket.OPEN) { // error if (client !== ws && client.readyState) { console.log('client', client); // client.send('!@#$%^&*STOP'); } }); client ws.onmessage = function(event) { // STOP 메시지를 받으면, 사용하던 작업을 중지한다. if (event.data && event.data === '!@#$%^&*STOP') { //.. 2018. 6. 21.
git ssh 1 Set up an SSH keyhttps://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html 2 Changing a remote's URLhttps://help.github.com/articles/changing-a-remote-s-url/ 3소스트리에서 ssh key 등록해서 잘 쓰고 있는데, 어느날 pull 할 때, 다음 에러가 날 경우git@bitbucket.org: Permission denied (publickey) 해결:https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html 2018. 6. 14.