전체 글
-
[react-native] npx expo run:ios Error installing hermes-engineRead | Write/Tech 2023. 8. 22. 17:44
✔ Config synced ⚠️ Something went wrong running `pod install` in the `ios` directory. Command `pod install` failed. └─ Cause: Error installing hermes-engine 해결: app.json 내에 아래 설정 추가 "jsEngine": "hermes", In my case, following these steps have me solve this problem: Uninstall current ruby: brew uninstall --ignore-dependencies ruby Show installed cocoapods: gem list --local | grep cocoapods . It w..
-
-
react native 상태바 겹침 해결Read | Write/Tech 2023. 8. 22. 16:47
safe-area-context를 사용 설치 npm install react-native-safe-area-context import {StyleSheet} from 'react-native'; import WebView from "react-native-webview"; import {SafeAreaView} from "react-native-safe-area-context"; export default function App() { return ( ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, });
-
ngrok, snap install errorRead | Write/Tech 2023. 8. 8. 14:48
문제 error: cannot communicate with server: Post "http://localhost/v2/snaps/ngrok": dial unix /run/snapd.socket: connect: no such file or directory 해결 sudo apt-get update sudo snap install ngrok sudo apt-get install -yqq daemonize dbus-user-session fontconfig sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target exec sudo nsenter -t $(pidof syste..
-
윈도우 스프링부트 JAR NSSM를 통한 서비스 등록(백그라운드실행)Read | Write/Tech 2023. 8. 1. 15:02
NSSM은 윈도우 환경에서 스크립트 파일을 서비스로 등록하여 관리할 수 있도록 하는 프로그램입니다. 특히 아래 제가 설정한 대로 한 번 등록해 놓으면container에 alway-restart 옵션을 준 것과 같이 실행이 종료 돼도자동으로 재기동하여 관리가 좀 더 편리해진다는 장점이 있습니다. 아래 링크에서 다운로드 받습니다. https://nssm.cc/download NSSM - the Non-Sucking Service ManagerNSSM - the Non-Sucking Service Manager Windows 10, Server 2016 and newer 2017-04-26: Users of Windows 10 Creators Update or newer should use preleas..
-
Promise async 비동기Read | Write/Tech 2023. 4. 22. 10:53
async와 Promise를 사용하는 코드 예제입니다. //1 function delay(ms) { return new Promise((resolve, reject) => { if (ms === 3000) resolve("성공"); else reject("실패"); }); } //2 async function helloAsync() { try { const res = await delay(3001); console.log(res); } catch (e) { console.log(e); } return "hello async"; } //3 helloAsync().then((res) => { console.log("async 결과:", res); }); //1은 ms를 받아 ms가 3000이면 "성공", 아..
-
물고기는 존재하지 않는다(문과적 관점)Read | Write/NTech 2023. 3. 7. 06:20
작가 룰루 밀러가 인생의 어두운 숲에서 자신이 납득할만한 답을 찾는 과정을 담은 책입니다. 누구나 한 번쯤 인생의 무의미에 대해 생각해 본 적이 있겠죠. 자신을 고통스럽게 따라붙는 그 의문에 답을 찾아 룰루 밀러는 데이비드라는 인물을 쫒습니다. 데이비드 스타 조던 분류학자이자 열렬한 우생학 지지자 책에서 본 바로 자신이 원하는 것을 얻기 위해 수단과 방법을 가리지 않는 인물이라고 느꼈습니다. 작가는 조던의 생에를 추적하며 자기기만, 긍정 착각, 스토리 에디팅, 리프레이밍이라는 용어를 언급합니다. 데이비드는 공개적으로는 자기기만을 그토록 공격했지만 사적으로는, 특히 시련의 시기에는 더욱더 자기기만에 의존했던 듯하다. '운명의 형태를 만드는 것은 사람의 의지다. ' 조던은 스스로 리프레이밍을 했던 것일까요?..