묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part7: MMO 컨텐츠 구현 (Unity + C# 서버 연동 기초)
패킷 관련해서 궁금한점이 있습니다
의도한것은 아니었지만 수업을 따라하다가서버 솔루션을 작동시키고 나오는 콘솔창에마우스 커서를 실수로 드래그를 하고유니티 클라 3개를 서버에 입장시켰었습니다처음에 왜 안되지? 하며보다가 아 콘솔창 드래그했구나라며서버솔루션 중지했다 다시 재생을 하였는데"패킷모아보내기 : N개 " 디버깅메세지가 뜨면서캐릭터들이 쌓엿던 패킷대로 이동과 행동을 한번에 처리하니순간이동을 하거나 아주 빠르게 이동하고다른 플레이어가 볼떄대각선으로 이동하는거같이 보이고 그랬습니다비슷한 상황으로어릴적 온라인 게임을 하다 이런경우를 보곤했었는데결국 효율을 위해서 패킷을 모아보내기는 해야하지만 이렇게 쌓인 패킷이 많아 한번에 처리를 하려하면클라유저간 싱크가 안맞는 상황이 벌어지는게 맞을까요?마찬가지로 락도 잘 걸어야겠네요.. 너무 무섭습니다 서버..재밋는데 진짜 어렵기도하고요 ㅋㅋ
-
미해결AWS(Amazon Web Service) 입문자를 위한 강의
connect.php
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. cd /var/www/html 에서 index.php는 있는데 connect.php는 존재하지 않습니다. 제가 만들어야 하는건가요? putty 에 따로 mysql 을 install 한 후에 mysql -u -p -h 를 하면 access 하 되는데 인스턴스에서 connect.php를 하면 이렇게 나오는거 보니까 connect.php가 문제인거 같습니다. 강사님은 접속하니까 connect 이랑 index 가 2개 있었는데 저는 index 만 있는 이유를 모르겠습니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
페이지 렌딩 시
페이지 렌딩 할 때 해당 경로를 루트 "/" 로 설정하면 모든 페이지가 landingpage 로 이동합니다. 어떻게 해결 해야 할까요? <Route path="/land" component={LandingPage} />
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
선생님 코드리뷰를 부탁드립니다 :)
const solution = (data) => { let answer = Number.MIN_SAFE_INTEGER; let raw = column = diagonal = reDiagonal = 0; for(let i=0; i<data.length; i++) { raw = column = 0; diagonal += data[i][i]; reDiagonal += data[i][data.length-1-i]; for(let j=0; j<data.length; j++) { raw += data[i][j]; column += data[j][i]; } answer = Math.max(answer, raw, column); } answer = Math.max(answer, diagonal, reDiagonal); return answer; }
-
미해결실전! Querydsl
빌드파일 안에 레포지토리
레포지토리를 왜 빌드파일에 생성하는 건가요?
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
중앙정렬
- 학습 관련 질문 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 4분 15초 에 중앙정렬을 ^으로 하는 거에서 저는 vscode를 사용하는데 그냥 ^^^^^^nice로 나옵니다. vscode에서는 어떻게 중앙정렬을 하나요?
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
사가에 있는 function* login(action)이 작동을 안합니다
로그인을 눌러 디스패치를 할 시에 request는 되는데 success로 가지 않고 login함수에 있는 콘솔로그도 찍히지 않는걸로 보아 sagas/user에 있는 login함수가 동작하지 않는 것 같아 해결방법을 고민해보았는데 쉽게 해결이 되지 않습니다 혹시 오류가 보이시면 한 번 봐주시면 감사하겠습니다 해당 코드 깃허브 주소 첨부하겠습니다 https://github.com/lost731/react-sns-app
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
error) 질문 있습니다^^
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 어떻게 해결할 수 있나요?
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
안녕하세요, 코드리뷰 부탁드립니다. 감사합니다!
function solution(k, arr) { let answer = 0; let n = arr.length; let max = Number.MIN_SAFE_INTEGER; let sum = 0; for (let i = 0; i < n; i++) { sum = arr[i] + arr[i + 1] + arr[i + 2]; if (sum > max) max = sum; answer = max; } return answer; }
-
미해결
할인율 최대 몇%까지 가능한가요?
이번에 30% 할인 있던데 할인율 높은 건지 궁금하네요 https://www.inflearn.com/roadmaps/149 이 강의 결제하려고 합니다.
-
미해결타입스크립트 입문 - 기초부터 실전까지
@ts-check가 동작하지 않습니다.
안녕하세요 현재 타입스크립트에 대해 관심이 생겨 선생님 강의를 듣고 있습니다! 선생님과 함께 예제를 따라하면서 개발하다가 @ts-check를 적어줘도 빨간 밑줄이 제 코드에는 생기지 않아 원인을 알고자 질문을 남깁니다. settings.json파일에 아래 코드를 추가해주어도 @ts-check가 동작하지 않습니다. "typescript.validate.enable": false, "javascript.validate.enable": false, 또한, 혹시 몰라 true로 변경했음에도 작동하지 않습니다.원인을 알고자 질문을 남깁니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
th:filed 디버그 어떻게 하나요?
<input type="checkbox" th:field="*{regions}" th:value="${region.key}" class="form-check-input"> 여기에서 th:value를 없애면 에러가 나오는데요 th:field가 채워주는게 value, id, name인데, 채워주는 값을 확인하고 싶으면 어떻게 가능한지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
@Transactional rollback이 안되네요
안녕하세요. 강의 너무 잘 듣고 있습니다. @Transactional을 붙이면 종료하면서 rollback이 되어 테이블에 커밋되지 않는다고 이해했습니다. 로그상에는 rollback이 되었다고 나오는데 쿼리 조회해보면 데이터가 조회가 되네요.. 로그는 다음과 같습니다. 2021-09-21 16:23:07.767 INFO 15576 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@3700ec9c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@27dc627a, testMethod = 회원가입@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@2002348 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@4d14b6c2, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@2657d4dd, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@387a8303, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7eecb5b8, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5dafbe45, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@71623278], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.jdbc.support.JdbcTransactionManager@570ba13]; rollback [true] 2021-09-21 16:23:09.376 INFO 15576 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@3700ec9c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@27dc627a, testMethod = 회원가입@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@2002348 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@4d14b6c2, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@2657d4dd, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@387a8303, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7eecb5b8, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5dafbe45, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@71623278], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]] 2021-09-21 16:23:09.428 INFO 15576 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-09-21 16:23:09.466 INFO 15576 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 어떤 문제일까요?
-
미해결스프링 시큐리티
초보같은 질문 하나만 하겠습니당..
SecurityContext contextAfterChainExecution = SecurityContextHolder.getContext();// Crucial removal of SecurityContextHolder contents before anything else.SecurityContextHolder.clearContext();this.repo.saveContext(contextAfterChainExecution, holder.getRequest(), holder.getResponse()); SecurityContextPersistenceFilter의 코드를 보면 위와 같이 되어있습니다. 중간에 clearContext()를 하면 contextAfterChainExecution 도 null이 된다고 생각했는데, 실제로는 null이 안되더라구요... 왜 그런건지 궁금합니다...
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
UnassignedReferenceException에 대해 문의드립니다.
UnassignedReferenceException: The variable _player of CameraController has not been assigned. You probably need to assign the _player variable of the CameraController script in the inspector. CameraController.LateUpdate () (at Assets/Scripts/Controllers/CameraController.cs:29) 위 오류가 뜨면서 실행하면 카메라가 플레이어를 따라가지 않습니다. 올린 파일을 그대로 사용해도 여전히 오류가 생기네요. 유니티와 비주얼 스튜디오 버전은 최신버전입니다.
-
미해결중급자를 위한 1 minute, 스낵 파이썬
repeat 함수
repeat 함수를 설명하시면서, 보통 이런 메서드들은 iter 트루쓰에 선언이 되어있어요. 특수한 경우에 내가 직접 만들어 써야해요. 여기서 질문 드립니다. 질문 1 iter truth?에 선언되어 있다고 하셨는데, 어디인지, 잘 이해가 되지 않습니다. iter 객체의 어디에[ 있따고 하시는것 같은데 알려주세요.. iter 매직 메소드인가...요?
-
미해결내 업무를 대신 할 파이썬(Python) 웹크롤링 & 자동화 (feat. 주식, 부동산 데이터 / 인스타그램)
강의 15.1 네이버 부동산 사이트 데이터 파악하기 part1
-선생님 강의 잘 듣고 있습니다. 강의 15.1 네이버 부동산 사이트 데이터 파악하기 part1 중 authorization 삭제하지 않고, 그대로 실행하였는데 데이터를 가져올 수 없네요.
-
미해결
스프링입문 강의 오류 질문
스프링 입문 강의 22강 JPA 연결후 회원 가입 TEST 과정에서 오류가 나는데 해결이 안되네요 ㅠ 1. config class 2. service 2. test class join 확인시 하이버네이트 db 연결 오류가 나요 application.properites
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
&& 연산과 & > div 에 대한 질문
안녕하세요. 제로초 님. 드리고 싶은 질문이 두 가지가 있는데요. 1) https://github.com/ZeroCho/react-nodebird/blob/master/ch3/front/components/PostCard.js#L20 에서 const id = useSelector((state) => state.user.me && state.user.me.id); 에 대해 질문드리고 싶은 점이 있습니다. 1-a) state.user.me && state.user.me.id 와 같이 && 연산을 하는 이유는 무엇일까요? 1-b) && 연산 이후 id에는 사용자의 id가 아닌 true/false의 boolean 값이 저장되는 것인가요? 2) https://github.com/ZeroCho/react-nodebird/blob/master/ch3/front/components/ImagesZoom/styles.js#L54 에서 & > div 의 의미를 검색해 봤지만, 잘 이해가 안 되어서 질문을 드리게 되었습니다. 어떤 의미인지 간략하게라도 말씀해 주실 수 있으신지요? 혹시 추천해 주실 문서가 있으신지요? 읽어주셔서 감사합니다.
-
미해결실전! Querydsl
질문있습니다
확실히 컴포넌트처럼 분리해서 사용하니 재사용성이 아주 좋다는것을 알았는데요. 그렇다면 실무에서 어떤 식으로 분리하는지 알고 싶습니다. 예전에 임플리먼트도 JpaEl 이런식으로 네이밍 규칙의 권장사항이 있는것처럼 해당 메소드만 쓰는 적당한 네이밍규칙이라던가,,(물론 실무 프로젝트에 따라 많이 다를 수 도 있겠지만요! 감이 잘 잡히지않아서 질문드리는거라서 ㅠㅠ) 여튼, 하나에 서비스(ex, MemberService)에 모든 Eq 를(name, age, 등등) 다 몰아넣기는 너무 많을 경우에는 어떻게 하시는지(지저분해보여서 생각보다..) 따로 클래스를 만들어서 분리시킨다면 어떤식의 네이밍 규칙을 사용하는지 알고 싶습니다. 질문이 너무 초급적이라 죄송합니당 ㅠㅠ