묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨[초급] QML 프로그래밍 2편
TableView에서 ImplicitWidth, ImplicitHeight와 일반 width, height의 차이가 궁금합니다.
안녕하세요.TableView의 예제에서 ImplicitWidth와 ImplicitHeight 대신 width, height를 그냥 사용하였더니, Rectangle의 사이즈가 설정해준 값을 유지하지 못하고 그 보다 작은 정사각형 형태로 실행되어버리네요.혹시 Component 내에서 Rectangle 사용 시에는 Implicit를 width와 height에 꼭 붙여서 사용해야 하고, 일반 width와 height는 사용하면 안되는 걸까요?
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
안드로이드 버튼이 정사각형으로 보이는 문제
안녕하세요 강사님!날짜를 선택하면 아이폰에서는 원형으로 나오는데 안드로이드에서는 정사각형으로 나옵니다ㅠㅠ
-
해결됨[초급] QML 프로그래밍 2편
GridView에서 Padding과 Margin의 차이가 있을까요?
안녕하세요.GridView 예제에서 topPadding과 같이 Padding을 통해 간격을 설정하는 거 같던데, Margin을 사용하는 것과 차이가 있는걸까요?
-
미해결코로나맵 개발자와 함께하는 지도서비스 만들기 2
marker 크기 관련 질문
안녕하세요. 강의를 듣고 있는 고등학생입니다. 학교 프로젝트로 강의 하천이나 수질을 나타내는 지도 서비스를 만들려고 하는데 강의 길이에 따라 마커의 크기를 바꾸고 강의 수질에 따라 마커의 색을 바꾸고 싶습니다. css 파일 자체에서 index.js에서 선언된 변수에 따라 마커의 크기를 바꿀 수는 없나요??
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
target sdk 34, 에뮬레이터 실행 문제 질문
현재 빌드 진행 중 이러한 오류가 발생합니다.7 issues were found when checking AAR metadata:1. Dependency 'androidx.appcompat:appcompat-resources:1.7.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).2. Dependency 'androidx.appcompat:appcompat:1.7.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).3. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).4. Dependency 'androidx.core:core-ktx:1.13.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).5. Dependency 'androidx.transition:transition:1.5.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).6. Dependency 'androidx.core:core:1.13.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).7. Dependency 'androidx.annotation:annotation-experimental:1.4.0' requires libraries and applications thatdepend on it to compile against version 34 or later of theAndroid APIs.:app is currently compiled against android-33.Recommended action: Update this project to use a newer compileSdkof at least 34, for example 34.Note that updating a library or application's compileSdk (whichallows newer APIs to be used) can be done separately from updatingtargetSdk (which opts the app in to new runtime behavior) andminSdk (which determines which devices the app can be installedon).이후 해결을 위해 build.gradle.kts 파일에서compile, target Sdk를 모두 34로 올리고,dependencies { implementation("androidx.core:core-ktx:1.9.0") implementation("androidx.appcompat:appcompat:1.7.0") implementation("com.google.android.material:material:1.12.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.databinding:databinding-runtime:8.7.0") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.2.1") androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") }dependencies에서 core-ktx 버전을 1.9.0에서 1.13.1로 올렸습니다.이후 빌드에서 오류가 발생하지 않는 걸 확인했습니다.하지만 이후에도run app이 불가능해서 앱을 확인할 수 없었습니다.혹시 sdk 버전 올라가면서 변경할 점이 추가로 있다면 알려주실 수 있나요..
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
Build가 안됩니다..
BUILD FAILEDThe following build commands failed:CompileC /Users/gyeongdeok/Library/Developer/Xcode/DerivedData/matzip-ggkhtgdnrjngpwgdmpbaaurtozob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperPlatformWebSocket.o /Users/gyeongdeok/Documents/01.git/matzip/client/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')Building workspace matzip with scheme matzip and configuration Debug(2 failures)]npx react-native run-ios를 실행시키면 어마어마하게 긴 에러가 쭉 나오고 끝에 build failed라고 뜨는데 뭐 찾아보니 flipper쪽 문제라는데... flipper 코드를 없애거나 여러 방법을 해봤는데 잘 안되네요...시뮬레이터는 잘 켜집니다.. 컴퓨터는 인텔맥입니다..
-
해결됨[초급] QML 프로그래밍 2편
ListView에서 currentIndex 작동안됩니다.
안녕하세요.ListView의 예제에서 currentIndex: 50 으로 두고 실행시켜보아도 실행 시 시작은 항상 0에서 시작합니다.currentIndex: 50이면 실행 직후 창에 보이는 시작 인덱스가 0이 아닌 50에서 시작할 거 같은데 맞을까요?
-
해결됨Godot Engine 마리오라이크 2D PC 게임 만들기
변수 이름 한글인 이유??
안녕하세요.취미로 godot 엔진 개발 공부하고 있는 초보 개발자입니다.다름이 아니라 변수명을 한글로 지정하시는 이유가 궁금합니다.유니티도 잠깐 해봤고 여러 언어를 해봤는데 변수명을 한글로 지었던 기억은 없어서 단순 호기심에 질문 남깁니다.강의 잘 듣고있습니다.감사합니다 ㅎㅎ
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
리턴값
함수와 재귀함수 (v2) 59:06에서 arr[0]이 어떻게 리턴이 되는지 궁금합니다. arr[0]이 max 값으로 리턴 되는건가요? return arr[0]값이 위에 int maxval로 리턴이 돼서 밑에 있는maxVal(arr, size-1) 함수에 값이 대입이 돼서 max에 arr[0]이 대입된건가요?
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
운영체제 페이징교체 알고리즘 OPT 13:30 질문 드립니다.
안녕하세요. 운영체제 페이징교체 알고리즘 OPT 13:30 질문 드립니다. 문자열 보면 4도 있는것 같은데 안쓰는 이유가 있을까요?
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
tomcat manager 연결 문제
tomcat manager 접속 문제가 지속됩니다. tomcat-users.xmlcontext.xml 이외에 csrf 보호 비활성 작업 등 다른 조치를 취해봐도 계속 403 오류가 지속되어 질문 드립니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
강사님이 보시는 문서 볼 수 있는 곳이 있나요?
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. 강사님이 보시는 문서 볼 수 있는 곳이 있나요?
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
switch-case 3:46초
len=5 여서 case5부터 쭉 브레이크가 나올때까지 폭포수처럼 흐르는 방식으로 하는건가요? case3,4는 건너뛴 이유가 len=5여서 인가요?
-
해결됨김영한의 실전 자바 - 기본편
클래스 따로 만들어 선언하는 이유
package ref.ex; public class ProductOrder { String productName; int price; int quantity; }package ref.ex; public class ProductOrderMain2 { static ProductOrder createOrder(String productName, int price, int quantity) { ProductOrder order = new ProductOrder(); order.productName = productName; order.price = price; order.quantity = quantity; return order; } static void printOrders(ProductOrder[] orders) { for (ProductOrder order : orders) { System.out.println("상품명: " + order.productName + ", 가격: " + order.price + ", 수량: " + order.quantity); } } static int getTotalAmount(ProductOrder[] orders) { int amount = 0; for (ProductOrder order : orders) { amount += order.price * order.quantity; } return amount; } public static void main(String[] args) { ProductOrder[] orders = new ProductOrder[3]; orders[0] = createOrder("두부", 2000, 2); orders[1] = createOrder("김치", 5000, 1); orders[2] = createOrder("콜라", 1500, 2); printOrders(orders); System.out.println("총 결제 금액: " + getTotalAmount(orders)); } }섹션3, 기본형과 참조형 문제와 풀이여기에서 productName, price, quantity를 다른 클래스에 따로 선언하는 이유가 인스턴스를 생성하기 위함인가요? 만약 맞다면, 클래스 ProductOrderMain2의 멤버변수로 선언하고 만들면 비효율적인가요? 아니면 불가능한가요?
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
isLoaded, gerReference
emf.PersistenceUnitUtil.isLoaded()로 프록시 인스턴스가 초기화 되었는지를 확인할 때 Member member1 = new Member(); member1.setUsername("user1"); em.persist(member1); em.flush(); em.clear(); Member refMember = em.getReference(Member.class, member1.getId()); System.out.println("refMember.getClass() = " + refMember.getClass()); // refMember.getUsername(); // 프록시에 없는값을 조회하여 프록시를 초기화 // Hibernate.initialize(refMember); // refMember를 강제로 초기화 System.out.println("isLoaded(refMember) = " + emf.getPersistenceUnitUtil().isLoaded(refMember)); tx.commit();이런 상황이면 false가 나오는 이유에 대해 메커니즘을 제대로 이해했는지 모르겠어서 문의드립니다!저는 getReference만으로도 객체를 생성했으니까 초기화가 이루어졌구나라고 이해했는데,처음 getReference로 조회하면 프록시 객체가 생성될 때 원래의 Entity를 상속받아서 생성되는게 아니라,아규먼트 값의 getId값만으로 프록시가 생성되었기 때문에 초기화는 아직 안한 상태여서 그런것일까요?그럼 초기화를 해야서 프록시의 target에 실제 객체를 연결해야지만 실제 엔터티를 상속받은 프록시 객체라고 이해해야할지 명확하게 이해가 안되어서 문의드립니다!
-
미해결
react Suspense ErrorBoundary ??
react로 개발하시는 분들이라면 Suspense ErrorBoundary 용어에 친숙하실텐데요.개발하면서 몇가지 궁금증이 생겨 질문드립니다.1. 데이터 패칭을 부모에서 진행하고 자식요소에서 로딩처리를 하고싶을때는 suspense 사용개념상 선언적으로 처리 못하는데 이런경우는 보통 어떻게 처리하시나요?2. mutation 에러가 났을때, 대부분의 ui에서는 노티하는 토스트알랏을 사용하는데요. 보통은 한곳에서 토스트 알랏으로 에러처리를 하는데 특수사용처에서 만 공통에러 처리가 아닌 커스텀 한 에러 알랏으로 ui를 제공하고 싶을땐 어떻게 처리할까여?3. Suspense ErrorBoundary를 사용하게 되면 데이터의 흐름이 직관적으로 보이지 않는 경우가 생기는데요.예를 들어 부모에서 바운더리 공통컴포넌트가 중첩 될 경우 (글로벌 바운더리, 사용처 바운더리 혼용)어떠한 자식 컴포넌트에서 패칭을 하는지 확인하려면 컴포넌트 내부를 살펴봐야 됩니다. 이런 경우 어떠한 규칙을 세우고 개발 하는지 궁금합니다.
-
미해결비트코인 선물거래 자동매매 시스템(저자직강)
강의 누락되었습니다.
두 세번을 돌려봤는데, 강의가 누락되었습니다. 알고리즘 튜닝 기법(5분 30초 구간)에 전 시간에 설명했다고 하는 "trading_counter_backtest" 에 대한 설명이 없습니다.바로 전 강좌는 바이낸스 API에 대한 강의입니다. 바쁘시겠지만 확인 부탁 드립니다. 백테스트가 이해가 안되는 부분이 있네요. 감사합니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
[Exec exit status not zero. Status [125]]
Async: Async started = false Async result = null Resolved Exception: Type = null ModelAndView: View name = index View = null Attribute = msg value = Hi, there Attribute = today value = Fri Oct 11 19:19:37 UTC 2024 FlashMap: Attributes = null MockHttpServletResponse: Status = 200 Error message = null Headers = [Content-Language:"en"] Content type = null Body = Forwarded URL = /WEB-INF/views/index.jsp Redirected URL = null Cookies = [] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.205 s - in com.njonecompany.web.TestWelcome [INFO] [INFO] Results: [INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [JENKINS] Recording test results [INFO] [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ web --- [INFO] Packaging webapp [INFO] Assembling webapp [web] in [/var/jenkins_home/workspace/My-Docker-Project/target/hello-world] [INFO] Processing war project [INFO] Copying webapp resources [/var/jenkins_home/workspace/My-Docker-Project/src/main/webapp] [INFO] Webapp assembled in [162 msecs] [INFO] Building war: /var/jenkins_home/workspace/My-Docker-Project/target/hello-world.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.112 s [INFO] Finished at: 2024-10-11T19:19:45Z [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/jenkins_home/workspace/My-Docker-Project/pom.xml to com.njonecompany.web/web/1.0/web-1.0.pom [JENKINS] Archiving /var/jenkins_home/workspace/My-Docker-Project/target/hello-world.war to com.njonecompany.web/web/1.0/web-1.0.war channel stopped SSH: Connecting from host [***********] SSH: Connecting with configuration [docker-server] ... SSH: EXEC: completed after 13,242 ms SSH: Disconnecting configuration [docker-server] ... ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [125]] Build step 'Send build artifacts over SSH' changed build result to UNSTABLE Finished: UNSTABLE다른 문의 글 봐도 이해가 안돼서 문의 남겨요 docker build --tag=cicd-project -f Dockerfile .docker images docker image inspect cicd-project:latestdocker run -p 8080:8080 --name mytomcat cicd-project:latest 실행 명령어 그대로 작성했는데도 오류가 발생하네요..
-
미해결김영한의 실전 자바 - 중급 1편
문제와 풀이 2 findByCode메서드 질문
안녕하세요 자바를 복습하다가 헷갈려서 질문 남깁니다 문제와 풀이 2번 HttpStatus 코드 정답에서public enum HttpStatus { .... public static HttpStatus findByCode(int code) { for(HttpStatus status : values()) { ... ... }findByCode는 static 메서드인데 안에 values()가 있길래 values() 메서드도 static 메서드겠구나하고 enum 클래스에 들어가 values()를 찾으려했습니다 . 그런데 enum의 메서드에는 values()가 없었어요..GPT에게 물어보니 values()는 enum 클래스에서 자동으로 생성되는 static 메서드라는데 이게 무슨말인지 이해가 잘 안갑니다 !..
-
해결됨실전 연습으로 익히는 고급 타입스크립트 기술
행운 테스트 문제 400 에러
문제를 맞추고 동전 이미지를 클릭했는데 반응이 없어서 여러 번 클릭했는데요, 이미 요청했다고 나옵니다! 그리고 행운의 상품이 뭔가요...?