묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
함수 질문입니다!
강사님 강의가 너무 도움이 많이 됩니다. 감사합니다!구글 검색을 해도 잘 모르는 부분이라 이렇게 질문을 남깁니다.if __name__== ~~max_h=0 ;이렇게 1번 같은 구문으로 시작점을 알린다는 건 알겠는데 이걸 임포트 구문 다음에 바로쓰면 되는게 아닌가요? 어떤 상황에서 사용하는지 잘 모르겠습니다. 2번은 파이썬에서 ; 세미콜론은 굳이 사용하지 않는다고 배웠는데 왜 사용하신건지 궁금합니다! 명절 잘 보내세요!! 감사합니다.
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
격자판 회문수 풀이
a=[list(map(int, input().split())) for _ in range(7)] res=0 def check(a): res=0 for i in range(3): temp=a[i:i+5] temp.reverse() if temp==a[i:i+5]: res+=1 else: res+=0 return res for i in range(7): temp=list([0]*7) temp2=list([0]*7) for j in range(7): temp[j]=a[i][j] temp2[j]=a[j][i] res+=check(temp) res+=check(temp2) print(res) 이렇게 풀어도 괜찮을까요??
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
강사님 제 핸드폰(s22 울트라)연결시 문제가 나옵니다
이전 강의 에서 단순히 헬로우 월드 하는 건 연결이 되었는데 지금 진행하는 것은 6 issues were found when checking AAR metadata: 1. Dependency 'androidx.appcompat:appcompat-resources:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 2. Dependency 'androidx.appcompat:appcompat:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 3. Dependency 'androidx.activity:activity:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 4. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 5. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 6. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 이렇게 나옵니다 어떻게 해야 할까요? 찾아보니 grible에 있는 것들을 변경해서 동기화 시키라고 해서 했는데도 같은 오류가 발생이 됩니다 ㅜ
-
미해결스프링 시큐리티
SecurityResourceService.getResourceList() 관련질문
resourcesList.forEach(re -> { List<ConfigAttribute> configAttributeList = new ArrayList<>(); re.getRoleSet() .forEach(ro -> { configAttributeList.add(new SecurityConfig(ro.getRoleName())); result.put(new AntPathRequestMatcher(re.getResourceName()), configAttributeList); }); });가 아니라resourcesList.forEach(re -> { List<ConfigAttribute> configAttributeList = new ArrayList<>(); re.getRoleSet() .forEach(ro -> { configAttributeList.add(new SecurityConfig(ro.getRoleName())); }); result.put(new AntPathRequestMatcher(re.getResourceName()), configAttributeList); });이것이 강사님의 의도한바가 아니었을까 생각이 드는데제가 잘못 짚은걸까요?? 참고: 5) 웹 기반 인가처리 DB 연동 - FilterInvocationSecurityMetadataSource (2)
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
react-router-dom link클릭시 이동이 안되는 오류
안녕하세요 강사님해당 상품을 클릭했을때 url은 바뀌지만 상품상세페이지로 화면은 바뀌지 않는 오류가 발생했습니다(새로고침하면 화면이 바뀌긴 합니다)다른 수강생들의 비슷한 질문답변을 참고하여 <React.StrictMode>를 지워도보고 react-router-dom 버전도 5.2.0이고 Route path도 "/products/:id"라고 적었는데 여전히 오류가 해결되지 않습니다https://github.com/kanghanju/grab-market-client/commit/01c0657f4f64398b47493c1b2c3b44836bf1a785#여기는 Link태그 해당 수업코드 파일입니다!
-
미해결React 기반 Gatsby로 기술 블로그 개발하기
마지막 배포 부분 질문드립니다!
배포하기 전에 레포지토리 생성했는데 개발한 내용 레포지토리에 remote하거나 파일을 넣어야 하는 거 아닌가요?
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
brew 설치 후 실행하려 할 때 command not found 에러
brew 설치 후 실행하려 할 때 command not found 에러가 나오네요. 워낙 초보라서요^^
-
해결됨코어 자바스크립트
함수를 값으로 할당할 때
자바스크립트에서 함수는 표현식으로 변수에 할당할 수 있어서값으로 평가 될 수 있다고 알고 있습니다. 강의에서 배열이나 객체에 대한 예시를 설명해 주셔서 이해를 했는데, 문득 함수의 경우는 어떻게 이루어지는지 궁금해 졌습니다. const outerFunc = function (){ let b = 1; let c = 2; const innerFunc = function(){ console.log("inner function") } }예를들어 위와같이 있다고 할 때, 초기화 단계에서 outerFunc 변수가 생성되고 undefined로 초기화 된 후에,리터럴로 선언된 함수가 그 자체로 들어있다가, 함수 호출 시에 (실행시에) 컨텍스트를 생성하며 함수 내부에 선언한 변수들이 생성, 주소 할당 등의 과정이 이루어지는지,아니면 변수나 객체가 생성되는 것과 마찬가지로 내부에 있는 b, c 변수들이 메모리에 할당되고 주소값을 참조하는 과정까지 이루어 진 후, outerFunc 변수에 함수객체의 주소를 가리키도록 생성되는지위 두가지 중 어떻게 동작하는지가 혼동됩니다..
-
미해결스프링 핵심 원리 - 고급편
강의에서 사실 의미없다고 모니터링툴을 쓰면 된다고 하는데
강의에서 사실 의미 없다고 모니터링 툴을 쓰면 된다고 하는데 어떤 툴을 써야하나요?진입 시점을 알려주는것보면 그냥 오류메시지를 전달하는 형태는 아닌 것 같고,센트리라는 것을 사용하면 저런형태로 커스터마이징 할 수 있는건가요?저번에 제가 도입해보려다가 무료기간이 1주일정도라서, 그냥 err메시지를 슬랙으로 전송해주는 모니터링만 구현했었거든요...말씀하시는 모니터링툴이 무엇인지 알고싶습니다 김영한 선생님!
-
해결됨모의해킹 실무자가 알려주는, XSS 공격 기법
board 화면에서 500에러가 뜹니다.
안녕하세요, 수업 진행 도중 board/index에서 페이지가 제대로 출력되지 않습니다. home, board, join 세 메뉴 모두 그렇습니다. 해결 방법이 있을까요?
-
미해결[코드팩토리] [입문] Dart 언어 4시간만에 완전정복
초급강의를 수강할때 질문입니다.
초급강의를 수강할때는 꼭 flutter프로그램을 다운받아야 하나요? 감사합니다.
-
해결됨나도코딩의 자바 기본편 - 풀코스 (20시간)
Switch Case가 헷갈립니다.
안녕하세요 강의 너무 잘 듣고 있습니다 ㅎㅎ switch case를 공부하다가 헷갈리는 것이 생겨서 여쭙니다.case 3부터 1까지 8000, 9000, 10000원이라고 하셨는데 작동원리를 잘 모르겠습니다. 코드 순서대로라면 1등급이 순서 상 첫번째 이기 때문에 7000 + 1000 해서 8000으로 시작해서, case 3이 마지막으로 10000원이 되야할것만 같은데 그렇지 않은 이유를 알려주세요...// 중고상품의 등급에 따른 가격 책정 (1급: 최상, 4급: 최하) int grade = 1; // 등급 int price = 7000; // 기본 가격 switch (grade) { case 1: price += 1000; case 2: price += 1000; case 3: price += 1000; break; } System.out.println(grade + "등급 제품의 가격: "+ price + "원"); } }
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
JUnit 테스트 콘솔에서 SQL문
JUnit 테스트 콘솔의 SQL문에서 1차 캐시에서 엔티티를 조작하고 있는지 아니면 데이터베이스에서 DML문을 써서 조작하고 있는지 확인을 하고 싶은데, JUnit 테스트 코드 실행후 콘솔창을 보면, SQL문은 정상적으로 나오는데, 1차 캐시에서 삭제한건지 데이터베이스에서 삭제를 시도한건진 확인이 안됩니다. 확인할 수 있는 방법이 있을까요?
-
미해결[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
회원가입 당시의 토큰 발행 문의 드립니다.
질문1.강좌에는 회원가입이 없는것 같은데요.. 아이디와, 패스워드 입력으로 회원가입을 했다는 전재하에 토큰인증을 하고 있다고 보면되는 건가요?그 아이디와 패스워드는 각각 {test@codefactory.ai:testtest} 으로 사용하는 것으로 보면되는 거죠?질문2.그렇다면 회원가입 시점(id, pw를 db에 저장하는 시점)에 토큰을 발급해 주는 내용을 알 수가 없어서 질문드립니다. db에 id, pw 넣고 토큰을 즉시 발급해 주는 내용이 강좌에 없는것 같습니다. 이부분에 대한 의견을 듣고 싶습니다. 혹시 제가 못 알아보고 있는지도 알고 싶습니다.
-
미해결[딥러닝 전문가 과정 DL1121] 넘파이 마스터 클래스
넘파이 연습문제 쥬피터 파일 다운받고 싶습니다.
연습문제 쥬피터 파일을 다운 받고 싶습니다. 가능한지 궁금합니다.
-
미해결Slack 클론 코딩[실시간 채팅 with React]
npx sequelize db:seed:all 시, ERROR: Validation error 이슈
안녕하세요 강사님,강의 중 채널 생성과정에서 오류가 있어 문의를 남깁니다.먼저, 채널 데이터를 가져오지 못해 다른 문의를 찾아보니 seed 설정을 해주지 않은거 같아 npx sequelize db:create 진행하였고, 이어서npx sequelize db:seed:all 과정을 진행했습니다npx sequelize db:seed:all 을 진행하니 Validation error가 발생했습니다.다른 문의를 보니 db에 sleact table이 생성되지 않아 발생하는 문의글이 많아서 db 사진 올려드릴게요추가적으로, back 파일에서 npm run dev를 실행하면 db 연결까지 잘 됩니다.도대체 어디가 잘 못 된 건지 감이 오지 않습니다..감사합니다.
-
미해결자바 : 클래스의 이해와 객체지향 프로그래밍
인터페이스의 다중상속
안녕하세요!강의 잘 듣고 있습니다.추상 클래스와 인터페이스의 사용 구분을 조금 더 명확히 하고 싶어 구글링을 하다보니,클래스 상속에서 "다중 상속의 모호성" 때문에 자바에서 다중 상속을 막고 있다는 글을 보게 됐습니다.여기서 말하는 "다중 상속의 모호성"이란 아래와 같이 car, plane의 클래스에 모두 drive()메서드가 구현돼어 있을 경우 어떤 클래스의 drive를 호출할지 모호하다는 것 입니다.! class MyVehicle extends car, plane{ @OVerride public void goTo(){ super.drive(); }출처 : https://brunch.co.kr/@kd4/6 그러면 인터페이스를 다중 상속을 하게 되면, 이러한 문제는 해결이 되는지 궁굼합니다.. 아래와 같이 두개의 인터페이스가 존재할 때, interface car { void goTo(){} } interface plane{ void goTo() } class MyVehicle implements car, plane{ @OVerride public void goTo(){ }car과 plane을 상속 받을 경우 , car의 추상메서드인 goTo, plane의 추상메서드인 goTo둘다 구현을 해야할텐데, MyVehicle에서 goTo를 하나만 구현해도, 괜찮은건가요? 아니면 다른 방법이 있는지 궁굼합니다. 현재 인텔리제이로 코드를 쳐보니, 두개의 클래스 둘다 구현이 완료돼서 문제가 없는 것으로 나오는데, 이유가 무엇인가요? interface plane{ void goTo(); } interface car { void goTo(); } public class MyVehicle implements car, plane{ @Override public void goTo() { System.out.println("구현했따우"); } public static void main(String[] args) { MyVehicle my = new MyVehicle(); my.goTo(); } } 아래는 car, plane클래스 모두 goTo가 구현이 됐다고 표기되는 모습입니다. 감사합니다!
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
효율성
안녕하세요 저는 정렬을 사용하지 않고 min,max를 이용해서 풀었는데 정렬로 푸는게 더 효율적일까요?코드 첨부합니다.while squre: if len(squre)==1: boat+=1 break if max(squre)+min(squre)>m: squre.remove(max(squre)) boat+=1 else: squre.remove(max(squre)) squre.remove(min(squre)) boat+=1
-
미해결자바 : 클래스의 이해와 객체지향 프로그래밍
자식 클래스가 부모 클래스를 캐스팅 할 때,
안녕하세요!강의 정말 잘 듣고 있습니다. class PBoard { public void PBoard(){ System.out.println("PBoard method"); } } class CBoard extends PBoard{ public void Cboard(){ System.out.println("Cboard method"); } } public class ClassCast { public static void main(String[] args) { PBoard sbd1 = new CBoard(); System.out.println(sbd1.getClass().getName()); CBoard sbd2 = (CBoard)sbd1; System.out.println(sbd1.getClass().getName()); System.out.println("-------------"); } }위의 예제와 같이 자식 객체를 생성하고 부모타입으로 타입 캐스팅 한 경우, System.out.println(sbd1.getClass().getName()); 에서 부모 클래스가 나올 줄 알았는데, 자식 클래스가 나옵니다!혹시 그 이유가, 참조변수는 부모 클래스형이지만, 메모리에는 자식클래스가 올라와 있기 떄문인가요?자바에서 타입을 조회할 때 메모리를 조회하는지, 참조변수 형을 조회하는지 궁굼합니다..! 감사합니다.
-
해결됨나도코딩의 자바 기본편 - 풀코스 (20시간)
프로그래밍 언어 공부방법
안녕하세요 자바라는 언어로 프로그래밍 공부에 입문했는데요강의에서 알려주신 여러 함수나 내용들 모두 암기 해야하나요?자꾸 잊어버려서 걱정이네요.. 쉽게 암기하는 법을 알려주시면 감사하겠습니다.암기하지 않는다면 배운 내용을 어떻게 써먹을 수 있나요?처음 프로그래밍 공부라 국영수 공부 할때와는 조금 다른 느낌입니다.