묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
의사결정나무 강의 관련 질문
안녕하세요 선생님의사결정나무를 배우고 한번 다른 데이터에서도 실습을 해보고 싶어서 해보는데 오류가 나와서 질문이 있습니다iris_data 같은 경우는 변수의 속성들이 연속형변수인데변수들이 만약에 알파벳같이 string 타입이면 분류가 불가능한가요?오류가 나서 질문드립니다
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
안녕하세요
안녕하세요 강의자료 요청드립니다!! kiby1039@hanmail.net 감사합니다!!
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
Window Host에 SSH Connection Refused
비슷한 질문이 있는것 같은데..답이 확인되지 않아 재 문의드립니다.Windows10 기반에 도커데스크탑 설치해서 수업듣고 있는데요. Ansible 에서 kubernetes 제어하기 강의 관련, Ansible Container에서 Window Host로 SSH 접속시 계속 Connection Error 가 발생합니다. [root@ab43a5323c31 ~]# ssh xx@172.30.1.86ssh: connect to host 172.30.1.86 port 22: Connection refused window에 ssh 허용을 위한 추가 설정 같은게 필요할것 같은데..검색해도 잘 안나와서 문의드려봅니다.
-
해결됨홍정모의 따라하며 배우는 C++
Buffer overrun 관련해서 질문드립니다!
안녕하세요! 항상 양질의 강의와 질문 커뮤니티 덕분에 많이 배우고 있습니다!강의에 나온 클래스를 직접 구현해봤는데요, 생성자 코드에서 m_data element를 초기화하는 과정에서 buffer overrun이 발생합니다.IntArray(const initializer_list<int>& list) //: IntArray(list.size()) { m_data = new int[list.size()]; m_length = list.size(); initialize(); int count = 0; for (auto& e : list) { m_data[count] = e; // buffer overrun 발생 count++; } }그래서 다른 분의 코드를 참고하여 다음과 같이 수정하였습니다.IntArray(const initializer_list<int>& list) : IntArray(list.size()) { /*m_data = new int[list.size()]; m_length = list.size(); initialize();*/ int count = 0; for (auto& e : list) { m_data[count] = e; // buffer overrun 발생 count++; } } 수정 후 buffer overrun이 사라졌는데 debugger를 돌려도 똑같이 작동하는 거 같아 어디서 잘못됐는지 찾기가 어렵습니다ㅠㅠ그 이유를 알고싶습니다,,아래는 전체 코드입니다.#include <iostream> #include <initializer_list> using namespace std; class IntArray { private: int m_length = 0; int* m_data = nullptr; public: IntArray(const int& length_in = 0) : m_length(length_in) { m_data = new int[m_length]; initialize(); } IntArray(const IntArray& arr) : IntArray(arr.m_length) {} IntArray(const initializer_list<int>& list) //: IntArray(list.size()) { m_data = new int[list.size()]; m_length = list.size(); initialize(); int count = 0; for (auto& e : list) { m_data[count++] = e; // buffer overrun 발생 } } ~IntArray() { delete[] m_data; } void initialize() { for (int i = 0; i < m_length; i++) m_data[i] = 0; } void reset() { delete[] m_data; m_data = nullptr; m_length = 0; } void resize(const int& new_length) { int* temp = new int[new_length]; for (int i = 0; i < (new_length < m_length ? new_length : m_length); i++) temp[i] = m_data[i]; delete[] m_data; m_length = new_length; m_data = temp; } void insertBefore(const int& value, const int& ix) { if (ix >= 0 && ix < m_length) { resize(m_length + 1); for (int i = m_length - 1; i > ix; i--) m_data[i] = m_data[i - 1]; m_data[ix] = value; } else cout << "Invalid index" << endl; } void remove(const int& ix) { if (ix >= 0 && ix < m_length) { for (int i = ix; i < m_length - 1; i++) m_data[i] = m_data[i + 1]; resize(m_length - 1); } else cout << "Invalid index." << endl; } void push_back(const int& value) { resize(m_length + 1); m_data[m_length - 1] = value; } IntArray& operator = (const std::initializer_list<int>& list) { resize(list.size()); int count = 0; for (auto& e : list) { m_data[count] = e; count++; } return *this; } IntArray& operator = (const IntArray& arr) { if (this == &arr) return *this; delete[] m_data; m_length = arr.m_length; if (arr.m_data != nullptr) { m_data = new int[arr.m_length]; for (int i = 0; i < arr.m_length; i++) m_data[i] = arr.m_data[i]; } else m_data = nullptr; return *this; } friend ostream& operator << (ostream& out, const IntArray& arr) { for (int i = 0; i < arr.m_length; i++) out << arr.m_data[i] << " "; return out; } }; int main() { IntArray my_arr{ 1, 3, 5, 7, 9 }; cout << my_arr << endl; my_arr.insertBefore(10, 1); cout << my_arr << endl; my_arr.remove(3); cout << my_arr << endl; my_arr.push_back(13); cout << my_arr << endl; // containter : ~가 ~의 member다. return 0; }
-
미해결[리뉴얼] 타입스크립트 올인원 : Part1. 기본 문법편
custom filter 메서드 구현부분에 궁금점이 생겨 질문드립니다
interface customArray<T>{ filter<S extends T>(callback:(v:T, index: number, array:T[]) => v is S): S[] } const sample1: customArray<string> = ["1", "2"] const value = sample1.filter((value, index): value is string => Number(value) > 1)강의에서 구현하신 custom filter는 custom type guard로 별도 리턴 분기처리를 하지않았는데 어떻게 true 케이스들만 필터링 할수 있는지 궁금합니다.저의 개인적인 생각은 callback의 반환값으로 value is string 를 반환하는데 위의 케이스를 바탕으로 value는 string 형식이기 때문에 true가 됩니다때문에 callback 메서드 수행시 false 반환값은 무시되고 true 반환값들만 리턴된다라고 추측이되는데 이 추측이 맞는지 궁금합니다
-
미해결[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
info.plist 파일을 열었을 때 경로메세지?가 뜨는데 무시해도 되는걸까요?
- 강의 명 : Mac 세팅하기- 문제 점 : info.plist 파일을 열었을 때 경로메세지?가 뜨는데 그냥 무시하고 넘어가도 될지 아니면 뭘 해야하는지 궁금해용
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
date 관련 에러입니다.
@ColumnDefault(value = "CURRENT_TIMESTAMP")현재 Order을 주입할때 자동으로 date가 생성이 안됩니다.{ "productId": "CATALOG-001", "qty": 10, "unitPrice": 1500, "totalPrice": 15000, "createdAt": null, "orderId": "e2672367-43bb-48bf-955f-d38917979c11" }server: port: 0 spring: application: name: order-service h2: console: enabled: true settings: web-allow-others: true path: /h2-console jpa: hibernate: ddl-auto: update show-sql: true generate-ddl: true defer-datasource-initialization: true datasource: url: jdbc:h2:mem:testdb driver-class-name: org.h2.Driver eureka: instance: instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}} client: register-with-eureka: true fetch-registry: true service-url: defaultZone: http://localhost:8761/eureka logging: level: com.example.orderservice: DEBUG
-
미해결UIKit - iOS14 실무 가이드 <iOS앱 진짜 개발자 되기>
extension UIColor
extension UIColor jump to definition가 안되는데xcode version 13.4.1에서는 안되는건가요?그대로 했는데 "?"만 뜨고 들어가지지 않습니다...
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
fsm_counter
맛비님 강의 잘 듣고 있습니다. fsm으로 counter모듈을 제어하는 실습을 따라해보면서 시뮬레이션을 확인했는데,코드를 그대로 시뮬레이션을 돌렸는데<그림 1. 문제상황 (확대)>다음과 같은 상황이 발생합니다.<그림2. 문제상황 (축소)>그림2는 위 그림1을 축소한 모습입니다. 보시는 바와 같이 i_run값도 정상동작하고 reset_n값이 변경되는 것도 정상인데 왜 cnt_always값에 파형이 찍히지 않는 것일까요? 그래서 이를 어쩌면 좋지... 하다가 testbench 코드를 복붙해서 0~99 이후 한번더 0~99가 잘 되는지 test해보았습니다.그랬더니 놀랍게도 파형이 보이더라구요.. 이로써 코드문제가 아님을 확인했습니다. (당연히 아닐거라고 생각했지만...)<그림3. 두번째 상황 정상파형 확인 (축소)>이런식으로 두번째 reset_n값과 i_run 값을 준 상태에서는 0부터 1 2 3 4 ... 99 까지 작동하는 것을 확인할 수 있었습니다.<그림4. 두번째 상황 정상파형 확인 (확대)> Q. 왜 위와 같은 상황이 발생하는 것일까요?.. 왜 77부터 시작하는것일까요? , code문제가 아님에도 이렇게 동작하는 이유가 있는걸까요? 궁금한데 혹시 맛비님은 이유를 알고 계실까요..ㅠㅠ
-
해결됨비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
aws EC2 인스턴스 시작할 때 맥북도 인강 그대로 따라하면 될까요?
AWS EC@ 인스턴스 임대 부분을 듣고 있습니다. 맥북 프로 M1을 쓰고 있습니다. aws 로그인하고 AMI 선택하는데 인강하고 똑같이 우분투 18.04 선택하면 되나요?아키텍쳐는 64비트 (x86)으로요. 컴퓨터 지식이 없어서 맥북도 똑같이 따라하면 되는지 질문합니다.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
권한요청드립니다!
github에서 권한요청 드렸고, 추가해주셨다고 했는데 아직도 들어가면 404에러가 떠서 다시한번 요청드립니다! 인프런 아이디 : sinyoungbin0128@gmail.com인프런 이메일 : sinyoungbin0128@gmail.com깃헙 아이디 : sinyoungbin0128@gmail.com깃헙 Username : youngbin03
-
미해결스프링 핵심 원리 - 기본편
도메인이라는게 정확히 무엇인가요 ??
여기서 말하는 도메인과, 나중에 package로 만드는 domain은 같은 의미인가요 ??? 도메인이 정확히 무엇인지 안와닿아서 알려주시면 감사하겠습니다 !
-
해결됨
테스트가 안됩니다 @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
안녕하세요 강의 잘 듣고 있습니다. 실전 Querydsl에서 설정 후 테스트 중 테스트가 잘 안되서 질문 드립니다.package study.querydsl; import com.querydsl.jpa.impl.JPAQueryFactory; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.annotation.Commit; import org.springframework.transaction.annotation.Transactional; import study.querydsl.entity.Hello; import study.querydsl.entity.QHello; import javax.persistence.EntityManager; @SpringBootTest @Transactional class QuerydslApplicationTests { @Autowired EntityManager em; @Test void contextLoads() { Hello hello = new Hello(); em.persist(hello); JPAQueryFactory query = new JPAQueryFactory(em); QHello qHello = QHello.hello; //Querydsl Q타입 동작 확인 Hello result = query .selectFrom(qHello) .fetchOne(); Assertions.assertThat(result).isEqualTo(hello); //lombok 동작 확인 (hello.getId()) Assertions.assertThat(result.getId()).isEqualTo(hello.getId()); } } --오류메세지--java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test at org.springframework.util.Assert.state(Assert.java:76) 테스트 코드와 실제 코드 디렉토리때문인가 해서 @SpringBootTest(classes=Hello.class) 로 실행하면em bean관련 오류코드가 뜹니다..org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'study.querydsl.QuerydslApplicationTests': Unsatisfied dependency expressed through field 'em'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.persistence.EntityManager' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
버튼 함수
지금은 UI_Button 이라는 클래스 내에 OnButtonClicked 라는 함수를 만들어서 하는데 게임을 만들다보면 버튼 쓸 일이 많고 그럼 그에 따른 버튼 함수들도 많아질텐데 그런것들은 어떻게 관리하나요 ?
-
미해결스프링 핵심 원리 - 기본편
지금 java 버전이 더 올라갔는데 그럼 수정해야하나요?
java 버전이 지금 2.7.4인데 수업을 2.3.3때 찍으셨는데 그럼 build.gradle에서 수정하고 refresh 눌러줘야하나요?? 저번에 버전 안맞아서 오류났던적이 있어서 질문드려봅니다
-
해결됨비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
카테고리가 2개일 때 dataset에 어떻게 입력해야 하나요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.예를들어 카테고리를 빨강과 점에 둘 다 나오게 하고 싶으면 두 개를 입력해도 되나요? const dataSet = [ { title: "빨강-점", address: "서울 영등포구 대방천로 260", url: "https://ipari.kr/product/red-dots/", imgurl: "https://i0.wp.com/ipari.kr/wp-content/uploads/2022/06/red-dots.png?fit=1105%2C611&ssl=1", category: "빨강", "점", } ]
-
해결됨비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
map.css 적용이 안됩니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. map.css를 작성했는데 이것을 주석처리하든 안하든 liveserver에는 똑같이 뜹니다. 혹시 index.html에 무엇을 연결해놔야 하나요? 인강을 다시 돌려보았는데 놓친 부분이 있는 것 같습니다... index.html입니다. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>이파리 지도</title> <meta name="author" content="이파리" /> <meta name="description" content="병행충 생태 지도 서비스" /> <meta name="keywords" content="병해충, 이파리, 관찰, 식물, 지도" /> <link rel="stylesheet" href="style.css" /> </head> <body> <nav> <div class="inner"> <div class="nav-container"> <h1 class="nav-title">이파리 지도</h1> <button class="nav-contact">사이트 이동</button> </div> </div> </nav> <main> <section id="category"> <div class="inner"> <div class="category-container"> <h2 class="category-title">이파리 카테고리를 선택해보세요</h2> <div class="category-list"> <button class="category-item">빨강</button ><button class="category-item">주황</button ><button class="category-item">레몬</button ><button class="category-item">연갈색</button ><button class="category-item">검정</button ><button class="category-item">흰색</button ><button class="category-item">선</button ><button class="category-item">점</button> </div> </div> </div> </section> <!-- 카테고리 --> <div id="map" class="inner"></div> <!--카카오지도 --> </main> <div class="infowindow"> <div class="infowindow-img-container"> <!-- <img src="https://i0.wp.com/ipari.kr/wp-content/uploads/2022/10/red_lesion-scaled.jpg?zoom=2&resize=300%2C300&ssl=1" class="infowindow-img"> --> </div> <div class="infowindow-body"> <h5 class="infowindow-title">할머니집</h5> <p class="infowindow-address">서울특별시 중구 명동3길 42</p> <a href="" class="infowindow-btn" target="_blank"></a> </div> </div> <script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=7e75aa2606436f7d03f3b0bbd72c8a5e&libraries=services"></script> <script src="script.js"></script> </body> </html>/2.map.css입니다. 인포윈도우 설정 .infowindow { width:25rem; border: 1px solid black; border-radius: 5px; background-color: white; } .infowindow-img-container { width: 100%; overflow: hidden; } .infowindow-img { width: 100%; } .infowindow-title{ font-size: 2rem; } .infowindow-address { font-size: 1.6rem; } .infowindow.btn { font-size: 1.6rem; }
-
미해결생산성을 향상시키는 스프링부트 기반의 API 템플릿 프로젝트 구현
Custom Error 생성자 질문
안녕하세요 강의 잘듣고 있습니다! 혹시 Custom Error를 만들때 Throwable 인자를 포함한 생성자를 만들지 않은 이유가 있나요? Throwable 인자를 포함한 생성자를 만들고 예외 발생 시킬때 발생한 예외를 같이 던져줘야, 해당 에러를 추적 할 수있다고 자세히 추적할 수 있다고 들어서 질문합니다!
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
생성 메소드 vs 생성자
안녕하세요! 강의를 보다가 궁금한 점이 생겼는데, Order 엔티티에public static Order createOrder(Member member, Delivery delivery, OrderItem... orderItems)이렇게 생성메소드를 만들어서 Order를 생성해서 사용하셨는데, 왜 생성자가 아닌 생성 메소드를 만들어서 사용한것인지 궁금합니다!
-
미해결비전공 기획자 및 관리자를 위한 IT 필수 지식
강의자료 요청드립니다
안녕하세요강의자료를 요청드리고자 합니다이메일 주소는 1221lucy@naver.com 입니다감사합니다