묻고 답해요
130만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결김영한의 실전 자바 - 중급 1편
== 의 존재의 이유
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)예[질문 내용]String에 대해서 equals 사용의 일관성을 가지는 것의 이유를 잘 이해했습니다. 그렇다면 String에서의 == 비교에 있어서 ==의 필요성은 전혀 없게 되는 것일까요?
-
미해결배달앱 클론코딩 [with React Native]
그래들 설정 부분이 궁금합니다.
강의 내용과 실제 파이어베이스 페이지에 가보니 설정하는 부분이 달라져서 아래와 같이 넣는게 맞을 것 같다고 생각해서 넣었는데 맞는지 모르겠네요아래는 파이어베이스에서 설정하라고 하는 부분이고.아래는 소스에서 적용한 부분입니다.build.gradle 부분에서buildscript { ..... dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") // 추가부분 classpath('com.google.gms.google-services' version '4.4.1' apply false) } } .... app/build.gradle부분에서dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") // 추가된 부분 implementation('com.android.application') // 추가된 부분 implementation('com.google.gms.google-services') // 추가된 부분 implementation platform('com.google.firebase:firebase-bom:33.0.0') // 추가된 부분 implementation 'com.google.firebase:firebase-analytics' if (hermesEnabled.toBoolean()) { implementation("com.facebook.react:hermes-android") } else { implementation jscFlavor } } ... // 추가 apply plugin: 'com.google.gms.google-services'
-
미해결홍정모의 따라하며 배우는 C언어
포인터 초기화 질문
안녕하세요 질문 사항이 있습니다.포인터 변수를 초기화 할 때, 특정 주소값으로 초기화를 할 수도 있나요? 예시)보통의 경우 int *p = null이라고 한다면, int *p = 0x10000000 처럼 특정 주소로 초기화가 가능한가요? 그래서 printf("%d", &p);로 0x10000000번지의 값을 출력할 수가 있을까요?만약 없다면, 특정 주소에 담긴 값을 읽어오는 방법이 있을까요?
-
미해결대세는 쿠버네티스 [초급~중급]
aws ec2 Ubuntu 20.04 버전에서 설치 시 오류 발생하여 문의드립니다.
안녕하세요 여러 방법으로 재시도 해보았지만 설치 시 [InvalidDiskCapacity kubelet invalid capacity 0 on image filesystem] 관련 오류가 해결되지 않아서 문의드립니다.확인 부탁드리겠습니다. kubeadm init 을 하면, control-plane 노드가 잠시 수행은 되나, 아래 로그와 같이 disk 용량 부족으로 중지되는 것 같습니다. 환경은 aws ec2 ubuntu 20.04 버전을 사용했습니다. (22.04 버전도 동일함) ec2 inbound 규칙에 관련 port 정보는 다 열려 있고, 용량은 부족하지 않게 할당하였습니다. ubuntu@ip-172-31-11-187:~$ lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTloop0 7:0 0 24.9M 1 loop /snap/amazon-ssm-agent/7628loop1 7:1 0 55.7M 1 loop /snap/core18/2790loop2 7:2 0 63.5M 1 loop /snap/core20/2015loop3 7:3 0 40.9M 1 loop /snap/snapd/20290loop4 7:4 0 91.9M 1 loop /snap/lxd/24061loop5 7:5 0 64M 1 loop /snap/core20/2264xvda 202:0 0 100G 0 disk ├─xvda1 202:1 0 99.9G 0 part /├─xvda14 202:14 0 4M 0 part └─xvda15 202:15 0 106M 0 part /boot/efi <인스턴스 유형>t2.medium (2core, memory 4g) <kubernetes version>ubuntu@ip-172-31-11-187:~$ kubelet --versionKubernetes v1.30.0ubuntu@ip-172-31-11-187:~$ kubectl versionClient Version: v1.30.0Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3Server Version: v1.30.0ubuntu@ip-172-31-11-187:~$ kubeadm versionkubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.0", GitCommit:"7c48c2bd72b9bf5c44d21d7338cc7bea77d0ad2a", GitTreeState:"clean", BuildDate:"2024-04-17T17:34:08Z", GoVersion:"go1.22.2", Compiler:"gc", Platform:"linux/amd64"} 감사합니다. ubuntu@ip-172-31-11-187:~$ kubectl get nodesNAME STATUS ROLES AGE VERSIONip-172-31-11-187 NotReady control-plane 18s v1.30.0ubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ kubectl describe node ip-172-31-11-187Name: ip-172-31-11-187Roles: control-planeLabels: beta.kubernetes.io/arch=amd64 beta.kubernetes.io/os=linux kubernetes.io/arch=amd64 kubernetes.io/hostname=ip-172-31-11-187 kubernetes.io/os=linux node-role.kubernetes.io/control-plane= node.kubernetes.io/exclude-from-external-load-balancers=Annotations: kubeadm.alpha.kubernetes.io/cri-socket: unix:///var/run/containerd/containerd.sock node.alpha.kubernetes.io/ttl: 0 volumes.kubernetes.io/controller-managed-attach-detach: trueCreationTimestamp: Thu, 09 May 2024 06:47:35 +0000Taints: node.kubernetes.io/not-ready:NoExecute node-role.kubernetes.io/control-plane:NoSchedule node.kubernetes.io/not-ready:NoScheduleUnschedulable: falseLease: HolderIdentity: ip-172-31-11-187 AcquireTime: <unset> RenewTime: Thu, 09 May 2024 06:47:58 +0000Conditions: Type Status LastHeartbeatTime LastTransitionTime Reason Message ---- ------ ----------------- ------------------ ------ ------- MemoryPressure False Thu, 09 May 2024 06:47:48 +0000 Thu, 09 May 2024 06:47:34 +0000 KubeletHasSufficientMemory kubelet has sufficient memory available DiskPressure False Thu, 09 May 2024 06:47:48 +0000 Thu, 09 May 2024 06:47:34 +0000 KubeletHasNoDiskPressure kubelet has no disk pressure PIDPressure False Thu, 09 May 2024 06:47:48 +0000 Thu, 09 May 2024 06:47:34 +0000 KubeletHasSufficientPID kubelet has sufficient PID available Ready False Thu, 09 May 2024 06:47:48 +0000 Thu, 09 May 2024 06:47:34 +0000 KubeletNotReady container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initializedAddresses: InternalIP: 172.31.11.187 Hostname: ip-172-31-11-187Capacity: cpu: 2 ephemeral-storage: 101430960Ki hugepages-2Mi: 0 memory: 4002720Ki pods: 110Allocatable: cpu: 2 ephemeral-storage: 93478772582 hugepages-2Mi: 0 memory: 3900320Ki pods: 110System Info: Machine ID: ec26d309223de68472068db4b74ceec4 System UUID: ec227c44-1b90-af54-a50d-03c7a515ac13 Boot ID: 637a1613-30b3-4577-bbbc-682dfd7b51fb Kernel Version: 5.15.0-1058-aws OS Image: Ubuntu 20.04.6 LTS Operating System: linux Architecture: amd64 Container Runtime Version: containerd://1.6.31 Kubelet Version: v1.30.0 Kube-Proxy Version: v1.30.0PodCIDR: 192.168.0.0/24PodCIDRs: 192.168.0.0/24Non-terminated Pods: (5 in total) Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits Age --------- ---- ------------ ---------- --------------- ------------- --- kube-system etcd-ip-172-31-11-187 100m (5%) 0 (0%) 100Mi (2%) 0 (0%) 25s kube-system kube-apiserver-ip-172-31-11-187 250m (12%) 0 (0%) 0 (0%) 0 (0%) 25s kube-system kube-controller-manager-ip-172-31-11-187 200m (10%) 0 (0%) 0 (0%) 0 (0%) 25s kube-system kube-proxy-vktm2 0 (0%) 0 (0%) 0 (0%) 0 (0%) 9s kube-system kube-scheduler-ip-172-31-11-187 100m (5%) 0 (0%) 0 (0%) 0 (0%) 25sAllocated resources: (Total limits may be over 100 percent, i.e., overcommitted.) Resource Requests Limits -------- -------- ------ cpu 650m (32%) 0 (0%) memory 100Mi (2%) 0 (0%) ephemeral-storage 0 (0%) 0 (0%) hugepages-2Mi 0 (0%) 0 (0%)Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Starting 7s kube-proxy Normal Starting 25s kubelet Starting kubelet. Warning InvalidDiskCapacity 25s kubelet invalid capacity 0 on image filesystem Normal NodeHasSufficientMemory 25s kubelet Node ip-172-31-11-187 status is now: NodeHasSufficientMemory Normal NodeHasNoDiskPressure 25s kubelet Node ip-172-31-11-187 status is now: NodeHasNoDiskPressure Normal NodeHasSufficientPID 25s kubelet Node ip-172-31-11-187 status is now: NodeHasSufficientPID Normal NodeAllocatableEnforced 25s kubelet Updated Node Allocatable limit across pods Normal RegisteredNode 10s node-controller Node ip-172-31-11-187 event: Registered Node ip-172-31-11-187 in Controllerubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ cat /var/lib/kubelet/kubeadm-flags.envKUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.9"ubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ ubuntu@ip-172-31-11-187:~$ kubectl get nodes -o wideNAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIMEip-172-31-11-187 NotReady control-plane 3m15s v1.30.0 172.31.11.187 <none> Ubuntu 20.04.6 LTS 5.15.0-1058-aws containerd://1.6.31
-
미해결[입문자를 위한 UE5] Part4. 언리얼 엔진 C++
에디터에서 C++ 클래스 생성
파일 추가 및 삭제 영상 20:17에 보면 에디터에서 만든 C++ 클래스R1Test.cpp에 보면 #include "Contents/R1Test.h"라고 되어 있는데 실제 cpp와 h파일이 모두 Contents폴더에 있으면 #include "Contents/R1Test.h"가 아닌 #include "R1Test.h"형태로 되어야 하는것 아닐까요? 저는 "Contents/"가 포함되면 빌드가 안되는데 혹시 이유가 뭘까요?
-
미해결모두를 위한 대규모 언어 모델 LLM(Large Language Model) Part 2 - 랭체인(LangChain)으로 나만의 ChatGPT 만들기
상품추천GPT에서 데이터를 바꿔 사용하는데 오류나는 이슈
안녕하세요. 강의를 듣고 컴퓨터견적데이터를 뽑아와서 컴퓨터견적을 추천해주는 gpt를 만들고싶어서 가져왔지만 메타데이터를 뽑을때 별점이나 날짜같은 유효성있는데이터를 넣어야지 제대로 필터가 되는것같은데 컴퓨터견적데이터 자체가 게이밍,코딩용이런식으로 구분지을수없는 데이터이고 또한 메타데이터에 뭐를 넣을까 생각이 안듭니다. 또한 page_content에 json데이터를 넣으면 필터를 잘해줄까?에 대한 의문점도 생깁니다. 어떤방식으로 하면 컴퓨터 견적에 대한 추천을 잘해줄까요? 이런식의 데이터 5000개정도 있습니다. 그리고 강의와 같이 여러 json으로 나누어 사용했습니다.{ "quote_number": "1200", "quote_title": "로스트아크 풀옵션, 작업 병행용 컴퓨터(5700X, RX 6700XT)", "date_create": "2023.10.10", "cpu_gpu_combinations": "라이젠7 5700X + RX 6700 XT 조합", "quotation_summary": " 1. 라데온 그래픽카드에 거부감이 없는 분2. 가성비를 극대화 하시려는 분3. 게임과 작업을 병행하시는 분# 영상편집# 게임# 롤# 배그# 가성비# 로아", "quote_person_introduction": "안녕하세요. 견적왕에서 견적맨으로 활동하고 있는 coke-bear 입니다.퀘이사존에서 주로 활동하며 그 외 커뮤니티에서도 간간히 활동하고 있습니다.하드웨어에 관심이 많아 제품을 직접 사용해보기도 하고 주변 지인들 PC 견적부터 조립도 해주다보니PC 구매를 어려워하거나 용도에 맞지 않게 구매하여 불필요한 지출을 하는 경우를 보게 되었습니다.그런 분들께 조금이라도 도움이 되고자 PC 구매자분들께 합리적인 구매를 할 수 있게 견적맨으로 활동하게 되었습니다.", "quote_feedback": "게임을 하면서 영상 편집 또한 취미 수준으로 한다거나 다른 다중 작업을 하는 경우라면 8코어 cpu 이상을 사용해주어야 하는데 이 때 가장 가성비로 구성할 수 있는 cpu라 5700x 입니다.좀 더 전문적이라면 더 좋은 cpu를 구성하여 멀티작업 성능을 늘릴 수 있지만 한정된 예산으로 구성해야하고 이제 배우는 단계라면 8코어 제품 중 가성비가 가장 뛰어난 5700x 구성을 추천드립니다.RX 6700 XT의 가격이 내려온 관계로 매우 가성비가 좋아져서 현재로서는 성능 대비해서 가격이 가성비가 좋아 구성하였습니다.", "computer_estimate_data": "[CPU]AMD 라이젠7-4세대 5700X (버미어) (멀티팩(정품))상세보기[메인보드]ASUS PRIME B550M-A 대원CTS상세보기[메모리]마이크론 Crucial DDR4-3200 CL22 (16GB) x 2 개상세보기[그래픽카드]PowerColor 라데온 RX 6700 XT Fighter D6 12GB상세보기[SSD]마이크론 Crucial P5 Plus M.2 NVMe 대원CTS (1TB)상세보기[케이스]DARKFLASH DK260 Air MESH RGB 강화유리 블랙 (미들타워)상세보기[파워서플라이]맥스엘리트 MAXELITE MAXWELL BARON 800W 80PLUS BRONZE 플랫상세보기[CPU쿨러]DARKFLASH Ellsworth S21 ARGB (블랙)상세보기[조립PC관련][견적왕] 조립 서비스 + 1년 출장 A/S상세보기", "quote_description": "CPU는 라이젠 5000번대 8코어 제품으로 8코어 cpu 이상을 요구하는 작업용 pc에서 저렴하게 구성 가능한 cpu입니다.메인보드는 am4 소켓을 지원하는 b550 칩셋 중 5600x나 5700x를 사용하기에 준수한 성능을 가진 메인보드 입니다.메모리는 삼성 메모리와 동일한 3200 클럭에 라이프워런티를 가지고 있어 AS 부분에서는 더 상위 호환의 제품입니다.그래픽카드는 6700 XT 중 가장 저렴한 가격대의 파워컬러 제품입니다.SSD는 pcie4.0 제품이며 가격대는 pcie3.0 의 p31 보다 저렴한 제품입니다.케이스는 다크 플래쉬의 DK 260 AIR 미들타워 제품입니다. 가격 대비 강판 두께나 기본팬 성능이 출중한 편입니다.파워서플라이는 국내 파워 회사 중 as 부분에서 상위 퀄리티를 가진 맥스엘리트의 800w 파워 입니다.CPU쿨러는 다크플래쉬의 s21 쿨러입니다.\n기본 무뽑방지가 적용되어 있고 더 높은 가격대의 팔라딘이나 rc400 이랑 쿨링 성능이 동일하고 소음 부분에서는 더 정숙하여 가성비가 좋습니다.", "CPU": { "제품명": "AMD 라이젠7-4세대 5700X)", "가격": "238,010원", "수량": "1" }, "메인보드": { "제품명": "ASUS PRIME B550M-A 대원CTS", "가격": "121,960원", "수량": "1" }, "메모리": { "제품명": "마이크론 Crucial DDR4-3200 CL22 16GB", "가격": "41,840원", "수량": "2" }, "그래픽카드": { "제품명": "PowerColor 라데온 RX 6700 XT Fighter D6 12GB", "가격": "402,400원", "수량": "1" }, "SSD": { "제품명": "마이크론 Crucial P5 Plus M.2 NVMe 대원CTS 1TB", "가격": "127,000원", "수량": "1" }, "케이스": { "제품명": "DARKFLASH DK260 Air MESH RGB 강화유리 블랙", "가격": "50,500원", "수량": "1" }, "파워서플라이": { "제품명": "맥스엘리트 MAXELITE MAXWELL BARON 800W 80PLUS BRONZE 플랫", "가격": "84,160원", "수량": "1" }, "CPU쿨러": { "제품명": "DARKFLASH Ellsworth S21 ARGB", "가격": "27,380원", "수량": "1" }, "total_price": "1700000원" }
-
미해결
Spring 백그라운드 실행
안녕하세요 ! Spring으로 소프트웨어를 개발 중에 있습니다 !코드를 작성 후 서버를 원격으로 백그라운드 실행을 하려고nohup java -jar 파일이름.jar & 이렇게 터미널에 입력후 실행이 되도록 하였습니다.터미널 창에 입력 후 엔터를 누르게 되면 백그라운드 실행이 된다고 하여 엔터를 누르면 그대로 프로세스가 종료되어 버립니다. 혹시 왜 이런지 알 수 있을까요 ..? sudo를 붙여도 똑같이 종료됩니다 ...
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
선생님 리덕스를 사용하면 어떠한 부분이 좋은지 알 수 있을까요?
리덕스를 사용하면 어떠한 부분에서 이점이 있는지 궁금합니다 gpt는 관리하기 편하다고 하는데 아직 초보라서 체감이 안돼서 글 남겨요~
-
해결됨독하게 시작하는 C 프로그래밍
독하게 시작하는 C프로그래밍 교재
강사님 독하게 시작하는 C프로그래밍 교재 이번에 재개정 예정이라고 하셨는데 혹시 언제쯤 나올까요?
-
미해결Vue 강의 끝판왕 : Nuxt 3 완벽 마스터
nuxt3의 실시간 렌더링 오류는 해결 할수 없는건가요??
아직 강좌 초반부이기는 한데.. 테스트 코드를 작성하면서 실시간 렌더링을 되면서 오작동을 너무 많이 한다고 느껴집니다..리엑트나 next.js를 사용시에는 이정도까지는 아니였는데, nuxt3는 좀 많이 심한거 같은데..저만의 생각인가요?? 예로.. 같은 경로에 렌더링 코드를 구성하기 위해서..pages/course.vue 생성하고.. http://localhost:3000/course 로 접속해서 결과물 확인했습니다.그리고, pages/course.vue를 삭제하고, pages/course/index.vue를 생성해서 다시 새로고침이나 다른 브라우저로 접근해도 동일한 오류를 발생시킨 페이지를 보여줍니다. 물론 nuxt3를 재실행하면 문제는 해결이 되기는 합니다.여기서 질문은.. nuxt3를 재실행하는 형태면 실시간 렌더링이 된다고 할 수 있느냐는 거죠... ㅡ.ㅜ;강의 보시면 테스트 코딩하니, 이제 제대로 작동한다고 생각을 하는거지.. 복잡한 프로젝트가 이처럼 정상적인 코드가 오류를 뿜어되면 어떻게 해야 할지.. 답답해 지네요.. ㅜ.ㅜ; 이런 형태의 문제가 처음이 아니고, 여러번 있었다는 겁니다. 처음에는 그러려니 했으나.. 하면 할수록 이건 좀 심하지 않나 싶어서 적어봅니다. 이런 문제를 해결할 방법이 있을까요??캐시 때문인지, 다르면 다른 설정으로 근본적으로 개발할때라도 해결할 방법이 있으면 알려주시면 감사하겠습니다..
-
미해결홍정모의 따라하며 배우는 C언어
디버깅이 강사님 처럼 나오지가 않아요..
디버깅이 강사님처럼 깔끔하게 나오지가 않는데 어떻게 강사님처럼 인터페이스가 나오게 가능한가요? 비쥬얼 스튜디오 색말하는건 아니에요
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
섹션 6. 순수 jbdc
이 부분이 임포트가 아예 안 됩니다ㅠㅠimport org.springframework.jdbc.datasource.DataSourceUtils; 그래서DataSourceUtils.getConnection(dataSource);이렇게 인텔리제이에서 빨간 불이 들어오구요ㅠㅠ DataSourceUtils에만 빨간 불이 들어옵니다!!어떻게 해결해야 할까요!!private Connection getConnection() { return DataSourceUtils.getConnection(dataSource); } private void close(Connection conn, PreparedStatement pstmt, ResultSet rs) { try { if (rs != null) { rs.close(); } } catch (SQLException e) { e.printStackTrace(); } try { if (pstmt != null) { pstmt.close(); } } catch (SQLException e) { e.printStackTrace(); } try { if (conn != null) { close(conn); } } catch (SQLException e) { e.printStackTrace(); } } private void close(Connection conn) throws SQLException { DataSourceUtils.releaseConnection(conn, dataSource); }
-
미해결개발자를 위한 쉬운 도커
loaclhost와 네트워크 관련 질문입니다.
실습 저의 개인 맥북 PC에서 Nestjs 서버를 돌리고 있고 Nestjs에서 첨부한 사진과 같이 docker컨테이너로 mysql을 실행 시켜 늘 localhost로 hosturl을 연결해서 사용 했습니다.이 경우에는 왜 컨테이너 id를 url로 사용하지 않아도 사용이 된걸까요 ?컨테이너로 nestjs를 돌리는게 아니라 외부 연결로 간주되어 그런걸까요 ..?
-
미해결대세는 쿠버네티스 [초급~중급]
1.27버전 대쉬보드 관련 질문입니다.
1.27버전으로 학습중에 있습니다.pod들이 전부 정상적으로 running상태에 있으며 QnA에 들어있는 내용과 vagrant 재설치 모두 해봤는데 다음과 같이 대쉬보드에 아무것도 뜨지 않는데 1.27버전이라 그런건가요? 아님 고치는 방법이 있을까요?
-
미해결
bootstrap의 card를 사용했는데 이미지 업로드 버튼이 동작하지 않습니다
<div class="col-sm-6"> <div class="card text-center"> <div class="card-header"> 프로필 이미지 </div> <div id="current-profile-image" class="mt-3"> <svg th:if="${#strings.isEmpty(profile.profileImage)}" class="rounded" th:data-jdenticon-value="${account.nickname}" width="125" height="125"></svg> <img th:if="${!#strings.isEmpty(profile.profileImage)}" class="rounded" th:src="${profile.profileImage}" width="125" height="125" alt="name" th:alt="${account.nickname}"/> </div> <div id="new-profile-image" class="mt-3"></div> <div class="card-body"> <div class="custom-file"> <input type="file" class="custom-file-input" id="profile-image-file"> <label class="custom-file-label" for="profile-image-file">프로필 이미지 변경</label> </div> <div id="new-profile-image-control" class="mt-3"> <button class="btn btn-outline-primary btn-block" id="cut-button">자르기</button> <button class="btn btn-outline-success btn-block" id="confirm-button">확인</button> <button class="btn btn-outline-warning btn-block" id="reset-button">취소</button> </div> <div id="cropped-new-profile-image" class="mt-3"></div> </div> </div> </div>
-
미해결자바 동시성 프로그래밍 [리액티브 프로그래밍 Part.1]
synchronized 블록 동기화 마지막 예제
데드락 걸릴 수 있을거 같은데 맞나요?thread a: accountA.lockthread b: accountB.lockthread a : accountB.lock (대기)thread b: accountA.lock (대기)
-
해결됨한 입 크기로 잘라먹는 타입스크립트(TypeScript)
제네릭 타입 변수 네이밍
안녕하세요.현재 강의 infer 챕터를 듣고 있는데요, 문득 제니릭의 타입 변수는 어떤 기준으로 네이밍 되는 지 궁금해져서 질문 드립니다.T, U, V처럼 알파벳 순서인 거 같았는데R이 나와서 의문입니다!
-
미해결백엔드 개발자 성능 개선 초석 다지기
인텔리제이 EditConfiguration 옵션 추가하는 방법 [ 공유O 질문X ]
혹시나 저처럼 약간 헤매는 분들 계실까 싶어 남깁니다.스카우트 모니터링 TOOL 설치(2)에서 옵션 추가하는 방법이 Editconfiguration 들어간 다음에modify options 클릭 하고 나오는 리스트에서 Add VM Options 누르시면 옵션 추가할 수 있는 칸이 하나 나옵니다.그 곳에 노션에 있는 아래 옵션 추가해주시면 됩니다.-javaagent:/Users/..생략../study/util/scouter/agent.java/scouter.agent.jar -Dscouter.config/Users/jo-eunho/Documents/eunho/study/util/scouter/server/conf/scouter.conf -Dobj_name=demoTomcat --add-opens java.base/java.lang=ALL-UNNAMED
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
[MOCK EXAM] T2. EXAM template-캐글 모의고사
강사님 안녕하세요 🙂kaggle에 올려주신 모의 고사 문제 풀이 중인데 모의고사 문제 작업형2에서 RandomForestClassifier로 진행하여 예측 csv를 만들었지만 다른 방법도 시도해보고자 XGBoost도 실행해보니 오류가 뜨더라구요 이 문제에서는 XGBoost 모델링이 힘든건가 하여 질문드려요 😢 # XGBoost(오류) from xgboost import XGBClassifier xgb = XGBClassifier() xgb.fit(X_tr,y_tr) pred = xgb.predict_proba(X_val)[:,1] roc_auc_score(y_val,pred)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
front 서버 npm run build 중에 발생한 에러들
안녕하세요 제로초님front 서버를 빌드하던중에 빌드가 된줄알고 pm2 monit으로 확인해보니 Could not find a production build in the '.next' directory 이런 에러가 떠있었습니다. 확인해봤더니 아래와 같은 에러 들이 엄청 나오더라구요.warning도 아니고 다 error들이라 검색해보고 .eslintrc를 고쳐봤는데도 잘 안되서 여쭤봅니다 ㅠ 다른 분들은 이런 에러 없이 잘 되는거같은데 전 왜이런지 도와주시면 감사하겠습니다 ㅠ ㅠ npm run build 했을때 나타나는 에러중 일부/components/LoginForm.js 11:1 Error: Unexpected tab character. no-tabs 14:1 Error: Unexpected tab character. no-tabs 17:19 Error: Function component is not a function declaration react/function-component-definition 18:1 Error: Unexpected tab character. no-tabs 18:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 19:1 Error: Unexpected tab character. no-tabs 19:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 20:1 Error: Unexpected tab character. no-tabs 20:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 21:1 Error: Unexpected tab character. no-tabs 21:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 22:1 Error: Unexpected tab character. no-tabs 22:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 23:1 Error: Unexpected tab character. no-tabs 23:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 25:1 Error: Unexpected tab character. no-tabs 25:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 26:1 Error: Unexpected tab character. no-tabs 26:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 27:1 Error: Unexpected tab character. no-tabs 27:1 Error: Expected indentation of 6 spaces but found 3 tabs. indent 27:4 Warning: Unexpected alert. no-alert 28:1 Error: Unexpected tab character. no-tabs 28:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 29:1 Error: Unexpected tab character. no-tabs 29:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 31:1 Error: Unexpected tab character. no-tabs 31:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 32:1 Error: Unexpected tab character. no-tabs 32:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 33:1 Error: Unexpected tab character. no-tabs 33:1 Error: Expected indentation of 4 spaces but found 2 tabs. indent 34:1 Error: Unexpected tab character. no-tabs 34:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 36:1 Error: Unexpected tab character. no-tabs 36:1 Error: Expected indentation of 2 spaces but found 1 tab. indent 37:1 Error: Unexpected tab character. no-tabs 37:3 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 38:1 Error: Unexpected tab character. no-tabs 38:4 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 39:1 Error: Unexpected tab character. no-tabs 39:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 39:20 Error: Unexpected usage of singlequote. jsx-quotes 40:1 Error: Unexpected tab character. no-tabs 40:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 41:1 Error: Unexpected tab character. no-tabs 41:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 42:1 Error: Unexpected tab character. no-tabs 42:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 42:11 Error: Unexpected usage of singlequote. jsx-quotes 43:1 Error: Unexpected tab character. no-tabs 43:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 44:1 Error: Unexpected tab character. no-tabs 44:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 45:1 Error: Unexpected tab character. no-tabs 45:1 Error: Expected indentation of 7 spaces but found 6 tabs. indent 46:1 Error: Unexpected tab character. no-tabs 46:1 Error: Expected indentation of 7 spaces but found 6 tabs. indent 47:1 Error: Unexpected tab character. no-tabs 48:1 Error: Unexpected tab character. no-tabs 48:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 49:1 Error: Unexpected tab character. no-tabs 49:7 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 50:1 Error: Unexpected tab character. no-tabs 50:8 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 50:29 Error: Unexpected usage of singlequote. jsx-quotes 50:42 Error: Unexpected usage of singlequote. jsx-quotes 50:62 Error: Unexpected usage of singlequote. jsx-quotes 51:1 Error: Unexpected tab character. no-tabs 51:8 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 52:1 Error: Unexpected tab character. no-tabs 53:1 Error: Unexpected tab character. no-tabs 54:1 Error: Unexpected tab character. no-tabs 55:1 Error: Unexpected tab character. no-tabs 56:1 Error: Unexpected tab character. no-tabs 56:4 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 57:1 Error: Unexpected tab character. no-tabs 57:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 57:20 Error: Unexpected usage of singlequote. jsx-quotes 58:1 Error: Unexpected tab character. no-tabs 58:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 59:1 Error: Unexpected tab character. no-tabs 59:5 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent 60:1 Error: Unexpected tab character. no-tabs 60:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 60:11 Error: Unexpected usage of singlequote. jsx-quotes 61:1 Error: Unexpected tab character. no-tabs 61:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 62:1 Error: Unexpected tab character. no-tabs 62:6 Error: Expected indentation of 2 space characters but found 0. react/jsx-indent-props 63:1 Error: Unexpected tab character. no-tabs 63:1 Error: Expected indentation of 7 spaces but found 6 tabs. indent 64:1 Error: Unexpected tab character. no-tabs 64:1 Error: Expected indentation of 7 spaces but found 6 tabs. indent 65:1 Error: Unexpected tab character. no-tab .eslintrc, next.config.js 는 제로초님의 깃헙과 동일하게 했습니다..eslintrc{ "parser": "@babel/eslint-parser", "parserOptions": { "ecmaVersion": 2020, "sourceType": "module", "ecmaFeatures": { "jsx": true }, "babelOptions": { "presets": ["next/babel"] }, "requireConfigFile": false }, "env": { "browser": true, "node": true, "es6": true }, "extends": ["airbnb"], "plugins": ["import", "react-hooks", "jsx-a11y"], "rules": { "jsx-a11y/label-has-associated-control": "off", "jsx-a11y/anchor-is-valid": "off", "no-console": "off", "no-underscore-dangle": "off", "react/forbid-prop-types": "off", "react/jsx-filename-extension": "off", "react/jsx-one-expression-per-line": "off", "react/jsx-props-no-spreading": "off", "object-curly-newline": "off", "linebreak-style": "off", "no-param-reassign": "off", "max-len": "off", "react/react-in-jsx-scope": "off" } } next.config.jsconst withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); module.exports = withBundleAnalyzer({ images: { domains: ["react-nodebird.s3.ap-northeast-2.amazonaws.com", "react-nodebird-s3.s3.amazonaws.com"], }, compress: true, compiler: { styledComponents: { ssr: true, displayName: true, }, }, webpack(config, { webpack }) { const prod = process.env.NODE_ENV === "production"; return { ...config, mode: prod ? "production" : "development", devtool: prod ? "hidden-source-map" : "inline-source-map", plugins: [...config.plugins], }; }, }); /package.json{ "name": "react-nodebird", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "next dev", "build": "cross-env ANALYZE=true NODE_ENV=production next build", "start": "cross-env NODE_ENV=production next start -p 80" }, "author": "", "license": "MIT", "dependencies": { "@ant-design/icons": "^5.3.6", "@next/bundle-analyzer": "^14.2.3", "@reduxjs/toolkit": "^2.2.3", "antd": "^5.8.3", "axios": "^1.6.8", "babel-plugin-styled-components": "^2.1.4", "cross-env": "^7.0.3", "dayjs": "^1.11.11", "lodash": "^4.17.21", "next": "^14.2.3", "next-redux-wrapper": "^8.1.0", "pm2": "^5.3.1", "prop-types": "^15.8.1", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hook-form": "^7.51.3", "react-redux": "^9.1.1", "react-slick": "^0.30.2", "redux": "^5.0.1", "redux-saga": "^1.3.0", "shortid": "^2.2.16", "styled-components": "^6.1.8", "swr": "^2.2.5" }, "devDependencies": { "@babel/eslint-parser": "^7.24.5", "@faker-js/faker": "^8.4.1", "babel-eslint": "^10.1.0", "eslint": "^8.57.0", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.6.2" } } 깃헙 : https://github.com/dydcodydco/react-nodebird