IT
Something went wrong installing the "sharp" module
Something went wrong installing the "sharp" module
2020.12.23Something went wrong installing the "sharp" module dlopen(/Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libvips-cpp.42.dylib Referenced from: /Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node Reason: image not found - Remove the "node_modules/sharp" directory, run "npm install" and loo..
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
2020.12.18expo-updates must be configured with a valid update URL or scope key. exception expo eject 후 ios 폴더 안에 프로젝트 폴더 안에 보면 Supporting / Expo.plist 열어보면 하나 추가하자 공백에 우클릭 하고 Add Row EXUpdatesURL 에 String Value는 https://example.com
ssl 인증서 pem 파일 만들기 java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
ssl 인증서 pem 파일 만들기 java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
2020.12.04안드로이드 에뮬레이터에서 API 호출 시 java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 에러가 났는데 해당 도메인은 신뢰할 수 없는 인증서라 그렇다고 한다. 해결방법으로는 1. 소스에서 API 호출하는 웹 서버의 CA 를 강제로 하드코딩해서 신뢰 시켜버리기 2. API 호출 웹 서버의 설정을 변경하기 가 있는데 웹 서버를 내가 만들었기 때문에 2번으로 진행한다. 안드로이드 에뮬레이터가 아닌 실제 디바이스에서는 API 호출 해서 잘 받아오는데 (안드로이드 에뮬이 아닌 실제 사용중인 모바일 디바이스에선 왜 잘 받아오냐 => 아마 이런걸 체인 에러(최신 디바이스 에서는 최신 루트, 최신 인..
논리연산자, null 병합 연산자 ??
논리연산자, null 병합 연산자 ??
2020.11.291. 첫 번째 truthy 를 찾는 OR 연산자 (||) result = value1 || value2 || value3; OR ||연산자는 다음 순서에 따라 연산을 수행합니다. 가장 왼쪽 피연산자부터 시작해 오른쪽으로 나아가며 피연산자를 평가합니다. 각 피연산자를 불린형으로 변환합니다. 변환 후 그 값이 true이면 연산을 멈추고 해당 피연산자의 변환 전 원래 값을 반환합니다. 피연산자 모두를 평가한 경우(모든 피연산자가 false로 평가되는 경우)엔 마지막 피연산자를 반환합니다. 여기서 핵심은 반환 값이 형 변환을 하지 않은 원래 값이라는 것입니다. 정리해 보자면 이렇습니다. OR "||" 연산자를 여러 개 체이닝(chaining) 하면 첫 번째 truthy를 반환합니다. 피연산자에 truthy가 하..
[tedious] node.js MS-SQL DB 한글/이모티콘 저장
[tedious] node.js MS-SQL DB 한글/이모티콘 저장
2020.11.23tedious 를 이용해서 MS-SQL DB로 insert 하려고 하는데 서버까지 값은 잘 받아오는데 넣고나면 한글이 깨져서 들어가는 현상이 발생했다. node js 에서 VarChar 타입으로 MS-SQL 로 전달하기 때문이였다. 이걸 다시 NVarChar 타입으로 받아 전달하니까 한글이 잘 나온다. 당연히 이모지도 잘 들어가고 나오고 👰👰👰 서버쪽 뿐만 아니라 여기도 모두 같이 nvarchar 로 맞춰주자!
[React Native] currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
[React Native] currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
2020.11.20currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput - node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError - node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl - node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error - node_modules\expo\build\environment\react-native-logs.fx.js:27:4 ..
자바스크립트로 크롬 시계 앱 만들기 [3]
자바스크립트로 크롬 시계 앱 만들기 [3]
2020.10.151. 배경화면 다운로드 unsplash.com/ Beautiful Free Images & Pictures | Unsplash Beautiful, free images and photos that you can download and use for any project. Better than any royalty free or stock photos. unsplash.com 무료 이미지 다운로드 하는 사이트. 한 3개 정도 다운받아보자. 프로젝트 폴더 내에 images 폴더를 만들어서 안에다가 3개의 이미지 파일을 넣어보자 1.jpg, 2.jpg, 3.jpg 로 이름도 바꿔놓고 2. 랜덤 함수 Math.random() * 5
자바스크립트로 크롬 시계 앱 만들기 [2]
자바스크립트로 크롬 시계 앱 만들기 [2]
2020.10.141. to-do 리스트 만들기 이렇게 내용을 집어 넣고 엔터를 칠 때 마다 아래에 한줄 한줄 리스트 형식으로 추가되게 해보자 Write a to do 부분 html 이다. test 원래 위와같이 input text 밑에 목록을 만드는 엄마 태그 아래에 자식 목록 태그들을 하나씩 html에 써줘야 저렇게 표시가 될텐데... 내가 동적으로 엔터 칠때마다 저 html 에 하나씩 추가가 되어야 한다.. 이걸 자바스크립트로 동적으로 추가해보자? 00:00 const toDoForm = document.querySelector(".js-toDoForm"), toDoInput = toDoForm.querySelector("input"), toDoList = document.querySelector(".js-toDoL..
CVE-2020-1472 NetLogon 권한 상승 취약점 가이드
CVE-2020-1472 NetLogon 권한 상승 취약점 가이드
2020.10.14Secure RPC를 사용하지 않는 솔루션으로 부터의 Netlogon 요청 차단 2021년 2월 9일에 적용될 업데이트 후에 Active Directory 도메인 서비스는 아래와 같이 Secure RPC가 아닌 일반 RPC 통신을 하고 있는 솔루션의 넷로그온 요청을 차단한다고 함. 참고하자. CVE-2020-1472 NetLogon 권한 상승 취약점 가이드 해당 안내 메일은 MS-NRPC(Netlogon Remote Protocol)에 영향을 미치는 비공개 보고된 권한 상승 보안 취약성에 관해 고객에게 지침을 제공하기 위한 것입니다. 보안 취약성 세부 정보 CVE-2020-1472 NetLogon 권한 상승 취약성 요약 이 취약성은 공격자가 Netlogon Remote Protocol(MS-NRPC)*를..
자바스크립트로 크롬 시계 앱 만들기 [1]
자바스크립트로 크롬 시계 앱 만들기 [1]
2020.10.131. 현재 시각 가져오기 new Date() 을 사용하여 getHours, getMonth 등 원하는 시각을 가져올 수 있다 2. 현재 시각 가져와 표시 00:00 // 아까 html 에서 00:00 건들꺼니까 // js-clock 클래스 안에서 한번 더 querySelector 로 h1 찾기 const clockContainer = document.querySelector(".js-clock"), clockTitle = clockContainer.querySelector("h1"); function getTime(){ const date = new Date(); const minutes = date.getMinutes(); const hours = date.getHours(); const seconds..
DOM / DOM Functions / Events handlers / if-else, and, or, === / 분리
DOM / DOM Functions / Events handlers / if-else, and, or, === / 분리
2020.10.121. DOM (Document Object Module) 자바스크립트는 html 에 있는 모든 요소를 가지고 온다. 그리고 그걸 객체화 해서 접근할 수 있게끔 한다. 한번에 보면 무슨말인지 몰라도 밑에 예시들을 보면 무슨말인지 이해 될듯 2. DOM Functions 이전에 만들었던 calculator.plus(), console.log() 과 같이 함수를 만들어 쓸 수도 있지만 브라우저에서 기본 제공하는 더 많은 함수들이 있다. This Works! 이런 html 페이지가 있다. const title = document.getElementById("title"); title.innerHTML = "Hi! From JS"; index.js 에 이런 내용을 적었다. html 에 있는 의 id 를 title..
let,const,var / data types / array / object / function / backtick
let,const,var / data types / array / object / function / backtick
2020.10.121. Vanila JS ? 자바스크립트의 한 종류로 라이브러리 등을 통해 변조되어 만들어진 것이 아닌 날 것의 자바스크립트 따로 설치할 건 없고 모든 웹 브라우저에 기본 내장되어 있다 2. let, const, var 셋 다 변수 타입들인데 let 은 변경이 가능하고, const 는 상수라 어떠한 이유에도 변경이 불가능 var은 let 과 같이 변경이 가능한데 3년 전에나 var만 쓸 수 있을 시절에 썼었음 (const나 let이 없었다) 그러니 let, const 를 쓰자 3. Data Types const what = "Nico"; // string const what = true; // boolean const what = 666; // number const what = 55.1 // float ..