분류 전체보기
Ark Invest ETF (ARKK, ARKQ, ARKW, ARKG, ARKF)
Ark Invest ETF (ARKK, ARKQ, ARKW, ARKG, ARKF)
2021.01.101. ARKK 파괴적인 혁신적인 성장기업들로 이루어진 ETF (골고루..?) 1. DNA 기술 (유전 공학) 2. 자동화 및 제조분야의 산업 혁신 3. 인프라 및 서비스 (차세대 인터넷) 4. 금융 서비스 (핀 테크) 2. ARKQ 자동화, 로봇공학 테마로 이루어진 ETF 1. 자율 교통 2. 로봇 공학 및 자동화 3. 3D 프린팅 4. 에너지 저장소 5. 우주 탐사 3. ARKW 차세대 인터넷 ETF. 기존 인프라를 클라우드 전환화해서 모바일 및 신규 서비스 등 차세대 인터넷 발전 ETF 1. 클라우드 컴퓨팅 및 사이버 보안 2. 전자상거래 3. 빅 데이터 및 인공지능 (AI) 4. 모바일 기술 및 사물인터넷(IoT) 5. 소셜 플랫폼 및 블록체인 4. ARKG 바이오 ETF. 유전 공학의 발전 기대 ..
[react native] Invariant Violation: View config getter callback for component `firstView` must be a function (received `undefined`). Make sure to start component names with a capital letter.
[react native] Invariant Violation: View config getter callback for component `firstView` must be a function (received `undefined`). Make sure to start component names with a capital letter.
2021.01.08Invariant Violation: View config getter callback for component `firstView` must be a function (received `undefined`). Make sure to start component names with a capital letter. export default () => { const firstView = () => { return ( hello ); }; return ( FirstView 로 변경 Make sure to start component names with a capital letter. 구성 요소 이름은 대문자로 시작해야합니다.
[react native] react-native-calendars 캘린더에 마킹하기
[react native] react-native-calendars 캘린더에 마킹하기
2021.01.07import { Calendar } from 'react-native-calendars'; export default () => { const [markedDates, setMarkedDates] = React.useState(null); const [dates, setDates] = React.useState(['2021-01-05', '2021-01-20']); function addDates() { let obj = dates.reduce( (c, v) => Object.assign(c, { [v]: { marked: true, dotColor: 'red' }, }), {}, ); console.log(obj); setMarkedDates(obj); } return ( { addDates(); }}..
[react native] Warning: Cannot update a component from inside the function body of a different component.
[react native] Warning: Cannot update a component from inside the function body of a different component.
2021.01.07Warning: Cannot update a component from inside the function body of a different component. App.js const [visible, setVisible] = useState(false); Component.js export default (props) => { return ( /> ) } 부모에서 Modal 을 View 한 후에 (Component.js) Button 을 클릭하면 props 으로 넘어온 부모의 state 를 setvisible(false) 로 modal 을 닫으려 했다 Warning: Cannot update a component from inside the function body of a different comp..
[react native] TypeError: this.setState is not a function.
[react native] TypeError: this.setState is not a function.
2020.12.31TypeError: this.setState is not a function. export default class App extends Component { this.state = { data : '' } ... getItem = () => { return new Promise(function (resolve, reject) { axios .get('https://example.com') .then(function (response){ resolve(response) }) .catch(function (error){ reject(error) }); }; }; loadItem = () => { this.getItem() .then(function (items){ this.setState({ { const..
[node.js] nodejs 자동 재기동하게 만들기
[node.js] nodejs 자동 재기동하게 만들기
2020.12.29예기치 못하게 nodejs가 죽는 일이 발생할 일이 생겼다 (재부팅 등) 그 때 자동으로 재기동 하게 만들어보자 npm 은 당연히 깔려있을테고 npm install -g forever 으로 forever 을 설치하자 그리고 app.js 가 있는 디렉토리로 이동해서 forever start --minUptime 3000 --spinSleepTime 3000 -l app.log -a app.js 이라고 입력하자 자세하게 들여다보면 그냥 forever start app.js 이라고 해도 등록은 되는데 이런 워닝들이 뜬다. 설정을 좀 해달라고 권고하는데 해주자 --minUptime, --spinSleepTime 죽었을 때 다시 올라오는 시간을 설정해달라는 것 같다. 또 -l app.log 는 백그라운드에 app..
[nginx] 재부팅 시 자동으로 시작하게끔 서비스 등록하기 nssm 무중단
[nginx] 재부팅 시 자동으로 시작하게끔 서비스 등록하기 nssm 무중단
2020.12.28서버가 재부팅 될 경우 수동으로 다시 nginx 을 가동시켜야 하는 불편함이 생겼다 이럴 경우 nssm 이라는 서비스 매니저를 사용하면 해결된다 다운로드 링크 ↓ nssm 2.24 설치 하고 nssm-2.24 폴더 안에 win64 폴더로 이동한다 그럼 nssm.exe 가 있는데 cmd 로 해당 경로까지 이동 후 nssm install [서비스명] 그러면 아래와 같은 gui 창이 뜨는데 path 에는 exe 선택하면 directory 에는 자동으로 경로가 지정된다 그리고 아래 install service 누르면 끝 그 다음 services.msc 에서 서비스 실행 시키면 진짜 끝
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
2020.12.23Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. 컴포넌트 최근에 추가한 것들 다시한번 살펴보자 나같은 경우 import { AppLoading } from 'expo-app-loading' 으로 썼다 expo-app-loading 에는 default export 로 되어있는데..
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가 하..