묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전! 스프링 데이터 JPA
파라미터 바인딩, 벌크 연산, 쿼리힌트 질문드립니다!
안녕하세요 영한님! 강의 정말 잘 보고 있습니다. 몇 가지 궁금증이 생겨 질문드리게 되었습니다. 질문1. 파라미터 바인딩에 대해 Account findByUserId(String userId); 이 코드는 Account findByUserId(@Param("userId") String userId); 이 코드와 완전히 같고, 첫 번째 코드의 String userId의 userId를 @Param("userId")로 자동 변환해주어, 해당 부분이부분만 생략된건가요? 질문2. 벌크 연산에 대해 벌크 연산이랑 네이티브 쿼리랑 결국 같은건가요? 차이점을 모르겠습니다. 둘 다 한번에 업데이트하는것도, 영속성 컨텍스트에 반영 안되는 것도 같은 것 같아서요. 질문3. 쿼리 힌트에 대해 쿼리 힌트와 @Transactional(readOnly = true)는 같은건가요?
-
해결됨실전 리액트 프로그래밍
ref 관련 질문있습니다!
<input ref={ref => ref && setText(INITIAL_TEXT)}>라는 코드에서 ref && setText(INITIAL_TEXT) ref 가 <input> 객체를 의미하는 건 알겠는데 이게 어떤 의미고 어떻게 작동하는건지 쉽게 와닿지가 않아서 설명 부탁드려요!
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
keras-retinanet 모델 이용한 라쿤 탐지 학습 중 궁금한 점
올 초에 케라스 레티나넷 모델을 이용해서 라쿤 탐지을 수행했을때는 epoch를 20으로 주면 20개의 학습모델이 생성되었는데 최근 변경된 코딩으로 학습을 하니 10개 정도 학습하고 종료가 됩니다. 혹시 class args: 에 reduce_lr_patience = 2 reduce_lr_factor = 0.1 group_method='ratio' 등 추가된 내용때문에 그러한 지 궁금합니다. 아니면 다른 이유가 있나요?
-
미해결iOS/Android 앱 개발을 위한 실전 React Native - Basic
안드로이드 에뮬레이터를 찾지를 못합니다 ㅠㅠ
IOS 에뮬레이터는 잘작동이 되는데 안드로이드는 불러오질 못하네요 react-native run android 하고 실행을 하면 아래와 같이 에러가 나요 보니까 vi 를 bash 로 작성하던데 저는 지금 iterm2 와 zsh를 사용중입니다 이게 원인일까요 ? info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:25517) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) Jetifier found 864 file(s) to forward-jetify. Using 16 workers... info JS server already running. /bin/sh: adb: command not found info Launching emulator... error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. info Installing the app... Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/seize/Desktop/react-native/myRn/android/local.properties'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/seize/Desktop/react-native/myRn/android/local.properties'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s at checkExecSyncError (child_process.js:616:11) at execFileSync (child_process.js:634:15) at runOnAllDevices (/Users/seize/Desktop/react-native/myRn/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39) at processTicksAndRejections (internal/process/task_queues.js:93:5)
-
미해결모던 안드로이드 - 코틀린과 Jetpack 활용
viewModel
강의에서 viewModel을 사용하는 것과MVVM패턴으로 프로그래밍하는것이 다른건가요?
-
미해결자바스크립트 중고급: 엔진 핵심
prototype 메소드 직접 호출 - call , bind
this 강의 - call, bind 듣고 다시 보니 직접호출을 어떻게 하는지 알게 됐습니다. 직접 호출 방법 적어봅니다. // call console.log(Book.prototype.getPoint.call(obj)); // bind console.log(Book.prototype.getPoint.bind(obj)());
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
unsupported operand type(s) for +: 'int' and 'str' 질문드립니다...
user_input = input("계산식을 입력하세요") op_list = ["+","-","*","/","="] div_list = [] if user_input[-1] not in op_list: user_input += "=" lop =0 for i,s in enumerate(user_input): if s in op_list: div_list.append(user_input[lop:i]) div_list.append(s) lop = i+1 div_list = div_list[:-1] pos = 0 while True: if len(div_list) == 1: break else: if div_list[pos] in op_list: q = div_list[pos-1]+div_list[pos]+div_list[pos+1] del div_list[0:3] div_list.insert(0,eval(q)) pos = 0 pos += 1 print(div_list) 강의를 듣고 혼자 연습하고 있는데 q = div_list[pos-1]+div_list[pos]+div_list[pos+1] 라는 부분에서 unsupported operand type(s) for +: 'int' and 'str' 라고 에러가 뜨는데 div안의 요소들은 전부 오퍼레이터 혹은 input명령어로 받은 str이라고 생각했는데 어디서 잘못된 걸까요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
강사님 form 태그에 th:object에 대해서 질문이 있습니다.
멤버 컨트롤러에서 getmapping으로 createMemberForm.html로 넘길때 model에 "memberForm"에 담아서 넘겼습니다. form태그에서 th:object = "memberForm" 역할이 겟매핑으로 넘긴 memberForm도 받는 역할도 하고, action에있는 서버단으로 넘길때 th:object = "memberForm"로 담아서 넘기는 역할. 즉 두가지 역할을 하는건가요?? 받는 것과 보내는것이 th:object = "memberForm" 에 의해서 수행되는지 궁금합니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
프론트 서버 접속 오류
프론트 서버 ip입력하고 접속해보면 맨 아래 사진처럼 접속 오류가 떠서 확인해보니까 포트가 3000번에만 있는 것 같아요 이를 해결하려면 어떻게 해줘야되나요? package.json에는 "start": "cross-env NODE_ENV=production react-scripts start"로 되어있고 빌드는 모두 마쳤습니다. 백엔드 서버는 켜져있습니다
-
미해결따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
docker push 후 travis ci와 docker hub에 리파지토리가 없다고 나오네요 왜 그럴까요??
안녕하세요. 강의내용 대로 진행했는데 docker push 후 travis ci와 docker hub에 리파지토리가 없다고 나오네요
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
keras-retinanet 라쿤학습 시 오류
아래 구문으로 레티나넷 학습 평가를 출력할 때 AttributeError: 'tuple' object has no attribute 'items'오류가 나옵니다. 해결방법이 궁금합니다.사용os은 window 10입니다. ==================================================================================== # print evaluation total_instances = [] precisions = [] for label, (average_precision, num_annotations) in average_precisions.items(): print('{:.0f} instances of class'.format(num_annotations), generator.label_to_name(label), 'with average precision: {:.4f}'.format(average_precision)) total_instances.append(num_annotations) precisions.append(average_precision) if sum(total_instances) == 0: print('No test instances found.') print('Inference time for {:.0f} images: {:.4f}'.format(generator.size(), inference_time)) print('mAP using the weighted average of precisions among classes: {:.4f}'.format(sum([a * b for a, b in zip(total_instances, precisions)]) / sum(total_instances))) print('mAP: {:.4f}'.format(sum(precisions) / sum(x > 0 for x in total_instances))) ======================================================================================
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
안녕하세요
안녕하세요 제로초님! 강의를 듣고 Next로 더 발전된 형태로 이것저것 만들어보고 있는데 ! 좀더 이쁘게 만들고 싶다는 욕심이 생기더라구요! 그래서 반응형도 진행해보려고하는데 이리저리 찾아보는데 html 도 없고 해서 어떻게 구글링 해야할지 잘 모르겠더라구요 .. 결론적으로 styled-component 를 이용하는거 같던데.. 이런식으로 styled-component 를 보통 활용하나요 ? 아니면 더 나은 방법이 있을까요 ? const LayoutHeader = styled.div` display: grid; grid-template-columns: 20% auto 20%; width: 100%; align-items: center; @media all and (max-width: 767px) { grid-template-columns: 1fr; }
-
미해결스프링 핵심 원리 - 기본편
MemoryMemberRepo 에 대해
안녕하세요. 스프링으로의 전직을위해 열강하고 있는 수강생입니다. MemberService 와 OrderService 가 생성되어 서비스가 된다라고하면두 객체는 서로다른 MemoryMemberRepo 객체를 통해 이루어지는 거죠? MemberService 와 OrderService 가 유지하는 member 정보는 서로 다르게 되는거죠? --------------------- 진작 의문을 품었어야 맞는 질문같으나 AppConfig 할 때 인자로 넘기는 new MemoryMemberRepo() 에서 의문이 생겼습니다. DbMemberRepo 같은 경우에는 DB 라는 외부 장소에 data 가 쌓이니 괜찮을 것 같습니다.현재 구현된 것으로 봤을 때 MemoryMemberRepo 를 통해 MemberService 와 OrderService 는 Member 정보 공유 못하는게 맞는거죠? ----------------------- 자바를 책으로만 배워 질문 남겨봅니다.혹 답을 아시는 선배님 계시면 감사히 받겠습니다.
-
해결됨피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
안녕하세요 피그마 예제 자료는 어디있나요?
안녕하세요 피그마 예제 자료는 어디있나요?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
배포 중 빌드에서 화면이 넘어가질 않아요
먼저 추가강의 잘 봤습니다 감사합니다 next없이 react로만 프로젝트를 하고 있어서 여기에 질문하는게 맞는지 모르겠습니다. 구글링도 해봤는데 정 해결책을 못 찾고 있어서요... 백엔드 서버는 리액트 노드버드랑 동일하고 켜져있습니다. 배포 중에 아래 사진에서 npm run build하면 30분 이상 켜놨는데도 화면이 넘어가질 않네요 (제 컴퓨터에서는 잘 됩니다.) 도중에 취소하거나 그러면 아마존 컴퓨터 접속할 때 엄청 느려서 재부팅하거나 중지해서 다시 켜야하는 사태도 벌어집니다ㅠㅠ 패키지들은 전부 최신버전이고 명령어는 아래와 같습니다. 웹팩설정은 react에서 하려면 eject를 해야된다는데 한 번 하면 되돌릴 수 없대서 별도 웹팩설정 없이 진행 중입니다. "scripts": { "start": "set PORT=3060 && cross-env NODE_ENV=production react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },
-
미해결남박사의 파이썬으로 실전 웹사이트 만들기
로그아웃 기능에 대해서
안녕하세요 강사님! 강의 내용이 제가 찾던 내용과 아주 잘 맞아서 즐겁게 공부하고 있는 수강생입니다. 제가 입문과정까지 수강을 하였는데요 로그아웃기능이 강의 내용에는 없는건가요? 일정한 시간이 지나면 접속이 끊어지는 것 뿐만 아니라 사용자가 임의적으로 로그아웃 버튼을 눌르면 로그아웃이 되도록 만들고 싶습니다! 도와주세요 또, 한가지 여쭤보고 싶은 사항이 있습니다. 장고에서는 is_authenticated 를 사용하여 로그인 여부를 판단했었습니다. 그래서 로그인이 되어 있지 않다면 회원가입과 로그인 버튼이 로그인이 되어 있다면 로그아웃 버튼이 활성화 되도록 만들고 싶은데 이 부분에 알고 계신 내용이 있다면 답변 부탁드립니다. 좋은 강의 만들어주셔서 정말 감사합니다 :)
-
미해결리액트로 나만의 블로그 만들기(MERN Stack)
리액트는 훅으로 진행하시나요??
이제 들으려고 하는데 리액트는 혹시 훅으로 진행하시는지, 클래스로 작업을 하셨는지 궁금해서 먼저 문의 남겨봅니다.
-
미해결C# 윈폼_ 응용프로그램 개발(.NetFramework)
안녕하세요 질문이 있습니다.
선생님 말씀대로 프로그램 작성하고 데이터 전체 조회 후 열에 헤더를 클릭하면 원래는 자동으로 정렬이 되는 것으로 알고있는데, 인덱스 오류가 뜨면서 정렬이 안됩니다. 해당 줄 확인해 보니, 이쪽에서 막히는 것 같은데 방법이있을까요 ?
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
float 배치 질문
float 속성 설명중에 inline 요소에 상하 마진만 가질수 없다고 했는데 왜 margin auto 할때 중앙에 배치를 할수 없는건가요?
-
미해결문과생도, 비전공자도, 누구나 배울 수 있는 파이썬(Python)!
향후 강의에 대해서 건의합니다
수업(가제: 이제 귀찮은 일은 컴퓨터한테 시키자, 파이썬(Python) 크롤링 & 자동화)를 준비중이신데요강의내용에 제가 원하는 내용이 있으면 좋을거 같아서요제안합니다 1. 네이버부동산에 해당정보를 크롤링(동적웹페이지) https://new.land.naver.com/complexes?ms=37.538825,126.96535,15&a=APT:ABYG:JGC&e=RETAIL 오른쪽 메뉴에 보시면 학군 개발 편의 중개사 이런 내용을 크롤링하고 싶은데요 동적웹페이지라서 Selenium 을 활용해도 저의 능력밖인거 같아요 이런내용을 강의 해주실수있나요 감사합니다