묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결게임 프로그래머 취업 전략 가이드
대학생의 게임 클라로서 전공선택에 대한 고민
안녕하세요 루키스님 게임 클라이언트 프로그래머를 희망하는 2학년 대학생입니다. 제가 가지고 싶은 진로를 올해 초에 확신하게 되었고 최근에는 어떻게 하면 내 꿈에 좀 더 가까워질 수 있을까에 대한 2가지 고민이 생겼습니다. 그중의 하나가 대학 강의 선택에 대해서인데요. 제가 지금 대학에서 리눅스 강의를 듣고 있는데, 여기에 올라온 질문들 중에 게임 클라는 리눅스가 전혀 필요 없다는 글을 읽고 조금 충격을 먹었습니다. 제 딴에는 도움이 될 것 같아서 수강을 한 것이었거든요. 게다가 이 강의가 다른 강의에 비해서 시간을 배로 잡아먹다 보니까(과제, 수업 시간 등) 앞으로 수강 선택을 더욱 잘해야겠다는 생각이 들었습니다. 그런데 제가 또 게임 클라와는 전혀 상관없는 강의들을 고를 수도 있을 것 같습니다. 그래서 밑에 제시한 강의(전공선택)들 중에 어떤 것이 게임 클라이언트로서 조금 더 이득인지 8개 정도 골라주실 수 있을까요?(최소 8개는 들어야 해서) 현재 배운 과목은 c언어, c++, c# windows forms, 자료구조, 선형대수학 등이 있습니다 소프트웨어공학 데이터베이스 프로그래밍언어론 비주얼프로그래밍(c++ MFC) 인공지능입문 컴퓨터교육론 어셈블리어 인터넷컴퓨팅 정보처리기술 캡스톤디자인 오토마타 컴파일러구성 분산컴퓨팅 네트워크컴퓨팅 파이썬 자바 모바일프로그래밍 컴퓨터그래픽스(opengl) 3D그래픽스 컴퓨터애니메이션 알고리즘 분석 두 번째는 곧 다가올 방학에 무엇을 하면 좋을지 인데요. 현재 생각으로는 유튜브 win32 api 게임 만들기 강의를 보면서 프로젝트를 하고, CLRS 책을 보며 알고리즘 공부를 시작하려고 하는데, 괜찮은 생각인지 피드백을 받고 싶습니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
return redirect 질문
return "redirect:/items" 를 통해 items 화면으로 이동하는것과 return "/items" 를 사용하여 이동하는것 즉, redirect 를 사용하는것과 사용하지 않는것은 무슨 차이가 있는건가요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
Model 파라미터 질문
ItemController 에 createForm 메서드에서 Model 객체를 매개변수로 받는 이유가 있을까요? 어떤 파라미터 값이 넘어오는건가요?? 매개변수로 받지 않고 메서드 안에서 Model model = new Model(); 로 생성 한후에 사용해도 되지 않을까 해서 질문 드립니다
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
h2 커넥션이 안됩니다.
h2다운받고 서버 시작 하려는데 아래 같은 애러가 나옵니다... 인터넷에 쳐도 답이 잘 나오지 않네요.. 두번째 강의에서 벌써 막혀 속상합니다... General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202] HY000/50000 (Help)org.h2.jdbc.JdbcSQLNonTransientException: General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202] at org.h2.message.DbException.getJdbcSQLException(DbException.java:554) at org.h2.message.DbException.getJdbcSQLException(DbException.java:477) at org.h2.message.DbException.get(DbException.java:212) at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:166) at org.h2.mvstore.db.Store.<init>(Store.java:140) at org.h2.engine.Database.<init>(Database.java:325) at org.h2.engine.Engine.openSession(Engine.java:92) at org.h2.engine.Engine.openSession(Engine.java:222) at org.h2.engine.Engine.createSession(Engine.java:201) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:342) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:117) at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:287) at org.h2.server.web.WebServer.getConnection(WebServer.java:785) at org.h2.server.web.WebApp.login(WebApp.java:1029) at org.h2.server.web.WebApp.process(WebApp.java:226) at org.h2.server.web.WebApp.processRequest(WebApp.java:176) at org.h2.server.web.WebThread.process(WebThread.java:139) at org.h2.server.web.WebThread.run(WebThread.java:94) at java.lang.Thread.run(Thread.java:748)Caused by: org.h2.mvstore.MVStoreException: The write format 1 is smaller than the supported format 2 [2.0.202/5] at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:1004) at org.h2.mvstore.MVStore.getUnsupportedWriteFormatException(MVStore.java:1059) at org.h2.mvstore.MVStore.readStoreHeader(MVStore.java:878) at org.h2.mvstore.MVStore.<init>(MVStore.java:455) at org.h2.mvstore.MVStore$Builder.open(MVStore.java:4052) at org.h2.mvstore.db.Store.<init>(Store.java:129)
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
entity vs form vs dto
entity vs form vs dto 1. 이들은 각각 어떤 특징이 있다고 생각하면 될까요? 2. 이셋을 큰 틀로 보자면 모델로 봐도 되나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
팀프로젝트 질문입니다.
3인 프로젝트를 진행합니다. 간단 하게 Slack 을 따라 만들어 보려고하는데, 기능은 크게 회원관리, 게시글, 채팅 정도로 생각하고 있습니다. 기간은 한달이고 하루 7~8시간 정도 투자할예정입니다. 고민되는게 JPA를 사용해도 될지 의문입니다. 현재 Spring 로드맵은 MVC 2편, 심화 부분 제외하고 다수강한상태이고JPA 기본편은 연관관계매핑 기본(35%) 수강했고, 활용1편 수강완료한 상태입니다.개인적인 욕심으로는 JPA를 적용해서 사용해보고 싶은데, 걱정되는 부분은 팀원은 모두 JPA에 대해 아예 모르는 상태이며, 저 또한 동적쿼리나, 복잡한 쿼리에서 JPA를 사용할 수 있을지 확신이 안서는 상태입니다.입사가 걸린 중요한 프로젝트라, 열심히 학습하면서 충분히 프로젝트에 적용시킬 수 있을까요?
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
질문있습니다!
ModelView 클래스 private Map<String, Object> model = new HashMap<>(); 에서 Map<String, Object>인 이유가, viewName이 String이고 viewResolver가 Object여서 그런건가요? 또한 ModelView process(Map<String, String> paramMap) 에서 Map<String, String>인 이유는 입력 값이 모두 String이어서 파라미터 키와 값이 모두 String이기 때문임이 맞나요?
-
미해결고수가 되는 파이썬 : 동시성과 병렬성 문법 배우기 Feat. 멀티스레딩 vs 멀티프로세싱 (Inflearn Original)
스레드 실행 순서
강의코드 똑같이 작성했는데 실행순서가 왜 다른지 잘 모르겠습니다 3.9.5 버젼입니다. 터미널 창: 19:41:09 : Main-Thread: before creating thread 19:41:09 : Main-Thread: before running thread 19:41:09 : Main-Thread: wait for the thread to finish 19:41:09 : Main-Thread: all done 19:41:09 : Sub-Thread First: starting 19:41:12 : Sub-Thread First: finished import logging import threading import time # 스레드 실행 함수 def thread_func(name): logging.info("Sub-Thread %s: starting", name) time.sleep(3) logging.info("Sub-Thread %s: finished", name) # 메인 영역 if __name__ == "__main__": # 메인 스레드의 흐름을 타는 시작점. # Logging format 설정 format = "%(asctime)s : %(message)s" logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S") logging.info("Main-Thread: before creating thread") # 함수 인자 확인, 스레드 하나 생성, 타겟 : 스레드에서 만들 함수 x = threading.Thread(target=thread_func, args=('First',)) logging.info("Main-Thread: before running thread") # 서브 스레드 시작 x.start() # x.join() # 이게 있으면 메인은 스탑되고 서브 스레드 끝나고 나서 밑에 실행 logging.info("Main-Thread: wait for the thread to finish") logging.info("Main-Thread: all done")
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
MemberForm , Member 클래스 질문
mvc 패턴에서 MemberForm 클래스와 Member 엔티티는 모델 역할을 한다 생각해도 되나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
한글 log 가 깨지는 문제
ㅇㄴ 이처럼 한글 로그가 깨지는데 해결할 방법이 없을까요?ㅠㅠ
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
북마크 페이지 관련 질문 있습니다
좋은 수업 감사합니다 강사님. 수업을 듣다가 의문점이 들어서 이렇게 질문을 남깁니다. 강사님께서 수업해주신 내용 그대로 코드를 작성했습니다. 그런데 북마크 페이지에서는 북마크를 해제할 수 없던데 혹시 북마크 페이지에서 북마크를 해제하는 코드를 작성하는 방법을 알려주실 수 있으신가요? 코드는 강사님께서 만드신 코드와 동일해서 따로 첨부하지 않았습니다. 주말에도 귀찮게 만들어 드린 것 같아 죄송합니다.
-
미해결빅데이터분석기사 실기대비 (R 활용)
유형별 예시문제
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 작업형 제1유형에서 "mtcars 데이터셋(mtcars.csv)의 qsec 컬럼을 최소최대 척도(Min-Max Scale)로 변환한 후 0.5보다 큰 값을 가지는 레코드 수를 구하시오." 라고 했는데 어떤 method를 적용해야하나요 ? 혹시 적용시킬 method가 없다면 어떤 코드로 해당 문제를 풀어나가야 하는지 궁금합니다. 감사합니다 :)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
dataTypes.STRING( 숫자 ) 숫자 지정해주는 이유
최대 숫자를 지정해주는 이유가 뭔가요??
-
미해결CSS Flex와 Grid 제대로 익히기
https://www.inflearn.com/questions/64102
https://www.inflearn.com/questions/64102 이전 질문에서 설명해주신걸 보았으나 잘 이해가 가지 않아 다른 질문 드립니다! height: 0; padding-bottom: 60%; 을 주면 보이지 않던 이미지가 보이게 되는데 그 이유가 아직도 잘 이해가 안갑니다. 올려주신 이전 답변에서 padding bottom만 남고 height은 0이 되는데 어떻게 보이지 않던 이미지가 보이게 되는건지... 다시 설명을 부탁드리겠습니다 ㅠㅠ 감사합니다!
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
http://localhost:8080 에러가 납니다
[질문 내용]여기에 질문 내용을 남겨주세요. 웹페이지에 localhost 8080 검색하면 이렇게 나옵니다
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
문제에서
원소 사이의 증가 폭이 커야 한단 의미가 아니라 점점 증가하는 원소들의 집합 중 길이가 가장 긴 것을 찾는다는 의미인 것인가요? 원소들 사이 사이의 증가 폭은 고려할 필요가 없나요?
-
미해결[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
Put메소드
@PostMapping("/{id}/edit")public User updateUser(@ModelAttribute("user") User user, @PathVariable int id) { return userDaoService.updateUser(user, id);} public User updateUser(User user, int id) { User findUser = findOne(id); findUser.setName(user.getName()); return findUser;} 간단하게 이렇게 작성했습니다. update에서는 루프를 돌 필요가 없이 어차피 findOne메소드로 회원 한 명의 정보를 가져와서 바로 필요한 이름만 업데이트한 후 리턴해주니 정상적으로 동작 합니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
css 하이라이트 기능
인텔리제이 css 하이라이트 기능이 적용되지 않는데 강사님은 어떻게 적용시키신 건가요~?
-
미해결실전! 스프링 데이터 JPA
jpaRepository 의존성 주입 중복문제????
안녕하세요 김영환 강사님강의를 들으면서 다른 작업시 이러한 문제가 발생해서 진행이 안됩니다. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminBoardController' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\controller\admin\AdminBoardController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'articleService' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\service\ArticleService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'articleService' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\service\ArticleService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.data.repository.query.QueryCreationException Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] 어떤 문제인지 부탁드립니다
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
마지막 인풋 테스트케이스 반례 질문입니다!
안녕하세요! 질 좋은 강의에 감사인사부터 드립니다 :) 다름이 아니라 해당 문제에 대해 강사님의 아이디어만 듣고 스스로 구현해보았는데, 마지막 인풋 테스트 케이스에서 오답이 발생하는데요!? 이후에 강사님 풀이를 보고 조건 하나가 빠져서 오답이 발생했다는 것은 알았는데, 왜 오답이 발생하는지에 대해서는 잘 모르겠어서요.. 인풋이 워낙 큰 값이어서 디버깅하기가 힘드네요.. 우선 마지막 인풋 테스트 케이스는 input: 7 8945 output: 1790 인데요! 제가 처음에 작성한 코드는 아래 코드인데요! 선생님 풀이를 본 후 추가시킨 if 문이 주석 처리 해준 부분입니다. 왜 제 풀이로 하면 마지막 인풋에 대해서 1063이라는 아웃풋이 나오게 될까요..? 근본적인 이유가 궁금하네요.. s, e = map(int, input().split()) move = [1, -1, 5] MAX = int(1e4) distance = [-1] * (MAX+1) distance[s] = 0 # 출발지점 거리 0으로 초기화 queue = deque([s]) while queue: pos = queue.popleft() if pos == e: break # 3가지 방법으로 이동 for m in move: #if 0 < pos + m <= MAX: # 이 조건이 없으면 마지막 인풋 오답나옴 if distance[pos + m] == -1: # 방문한 곳 아니라면! distance[pos + m] = distance[pos] + 1 queue.append(pos + m) print(distance[e])