[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
강의 마지막 부분을 보면 add rsp, 16을 한뒤에 pop rbx pop rax 를 하셨는데요, 이과정에서 실질적으로 push 5, 2가 pop이 되지 않았는데도 정상적으로 rbx에 값이 이전에 push했던 값으로 돌아오는것을 확인 하였습니다. 그렇다면 현재 stack에 Top에 해당하는 주소값은 사실상 rsp라고 생각 되는데 맞는건지 궁금해서 질문 드립니다.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'hello.core.member.MemberService' available 다음과 같이 에러가 나타났으며 강의 내용 그대로 따라서 @Component @Autowired 작성했는데 해당 오류가 왜 나타난지 모르겠습니다. MemberServiceImpl에 @Component와 생성자에 @Autowired 다 확인했습니다. [이전 강의 중 Singleton에 대한 내용은 입력하지 않았는데 해당 클래스가 있어야 정상적으로 작동하는 것인가요..?]
설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
================= 현업자인지라 업무때문에 답변이 늦을 수 있습니다. (길어도 만 3일 안에는 꼭 답변드리려고 노력중입니다 ㅠㅠ) 강의에서 다룬 내용들의 질문들을 부탁드립니다!! (설치과정, 강의내용을 듣고 이해가 안되었던 부분들, 강의의 오류 등등) 이런 질문은 부담스러워요.. (답변거부해도 양해 부탁드려요) 개인 과제, 강의에서 다루지 않은 내용들의 궁금증 해소, 영상과 다른 접근방법 후 디버깅 요청, 고민 상담 등.. 글쓰기 에티튜드를 지켜주세요 (저 포함, 다른 수강생 분들이 함께보는 공간입니다.) 서로 예의를 지키며 존중하는 문화를 만들어가요. 질문글을 보고 내용을 이해할 수 있도록 남겨주시면 답변에 큰 도움이 될 것 같아요. (상세히 작성하면 더 좋아요! ) 먼저 유사한 질문이 있었는지 검색해보세요. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. ================== 간단한 질문입니다. 직접 설계(코드 작성)를 하고 그 파일을 실행하기 위해서는 어떻게 해야할까요? 제가 vi practice.v로 설계를 하고 실행시키기위해 build파일을 복사하여 vi run에 붙여 넣은 뒤 xvlog ./practice.v xelab practice -debug wave -s practice xsim practice -R # do not check waveform 위와 같이 수정을 하였습니다. 그리고 ./run을 하니 ERROR: [XSIM 43-3225] Cannot find design unit work.practice in library work located at xsim.dir/work. ERROR: Please check the snapshot name which is created during 'xelab',the current snapshot name "xsim.dir/practice/xsimk" does not exist 이러한 매세지가 떴습니다. 무엇이 문제일까요?..
게시판 기능을 만들고 있는데 파이어베이스에 저장된 데이터를 불러와서 작성자 A는 자신의 글만 삭제가 가능하고 다른 작성자의 글은 삭제를 못하게 하고싶은데 코드를 계속 수정하며 해보았지만 A도 A글을 삭제 못하고B도 A의 글을 삭제할 수 있는 현상이 계속 일어나고 있어서 어디가 문제인건지 궁금합니다 코드는 이렇습니다. private fun deleteContent(contentModel: ContentModel) { val contentId = contentModel.id // 게시글의 고유한 ID // 삭제 권한 확인 없이 직접 삭제 database.child(contentId).removeValue() .addOnSuccessListener { // 삭제가 성공한 경우 val intent = Intent(this@ContentDetailActivity, MainActivity::class.java) intent.putExtra("fragmentToLoad", "contentListFragment") startActivity(intent) finish() // ContentDetailActivity 종료 } .addOnFailureListener { // 삭제가 실패한 경우 // 에러 처리를 수행하거나 사용자에게 알림 Toast.makeText(this, "삭제 실패", Toast.LENGTH_SHORT).show() }
안녕하세요! 컴포넌트 스캔의 필터와 관련하여 질문이 있어 올립니다! 기존에 있던 AppConfig.java 로 등록한 Bean을 제외하려고 excludeFilters를 사용했는데, CoreApplication을 실행하면 Parameter 0 of constructor in hello.core.member.MemberServiceImpl required a single bean, but 2 were found: - memoryMemberRepository: defined in file [파일경로/core/out/production/classes/hello/core/member/MemoryMemberRepository.class] - memberRepository: defined by method 'memberRepository' in class path resource [hello/core/AppConfig.class] 이런 오류가 뜹니다. 코드는 다음과 같습니다. AppConfig.java package hello.core; import hello.core.discount.DiscountPolicy; import hello.core.discount.FixDiscountPolicy; import hello.core.discount.RateDiscountPolicy; import hello.core.member.MemberRepository; import hello.core.member.MemberService; import hello.core.member.MemberServiceImpl; import hello.core.member.MemoryMemberRepository; import hello.core.order.OrderService; import hello.core.order.OrderServiceImpl; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class AppConfig { @Bean public MemberRepository memberRepository() { return new MemoryMemberRepository(); } @Bean public MemberService memberService() { return new MemberServiceImpl(memberRepository()); } @Bean public DiscountPolicy discountPolicy() { //return new FixDiscountPolicy(); return new RateDiscountPolicy(); } @Bean public OrderService orderService() { return new OrderServiceImpl(memberRepository(), discountPolicy()); } } AutoAppConfig.java package hello.core; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; import static org.springframework.context.annotation.ComponentScan.*; @Configuration @ComponentScan( excludeFilters = @Filter(type = FilterType.ANNOTATION, classes = Configuration.class) ) public class AutoAppConfig { } 위의 오류는 memberRepository뿐만 아니라 rateDiscountPolicy에서도 나옵니다. @Component와 @Autowired 어노테이션은 잘 설정한것 같은데 뭐가 문제일까요?
[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core
update 프로퍼티를 false로 작성했는데도 500에러가 발생하지 않네요 response에는 변경된 값이 나옵니다. http://localhost:3000/users/:id { "id": 2, "title": "null0", "createdAt": "2024-03-24T23:59:11.774Z", "updatedAt": "2024-03-24T23:59:11.774Z", "version": 1, "additionalId": "a320e186-a44a-4dda-9af3-9cd52af4155c" } 그런데 DB에 가보면 또 값은 변경되어 있지 않더라구요 2번 user의 title 값은 null이 그대로 찍혀있습니다. 왜 500에러가 발생하지 않는건가요?
저번 강의에서 배열과 연결리스트의 장단첨 차이에는 배열은 참조 속도가 상대적으로 빠르지만 데이터 삽입/삭제가 상대적으로 느리고 연결리스트는 그 반대로라고 배웠는데요 자바의 ArrayList와 LinkedList랑 비교해도 똑같은 장단점을 가지나요? 일반 배열과 달리 ArrayList는 처음에 크기를 할당하지 않아도 되니 오버헤드가 좀 감소할 것 같은데, 그래도 데이터 삽입 삭제 시 나머지 데이터의 이동이 필요하기 때문에 여전히 LinkedList 보단 속도가 느릴까요?
우선 강의를 들어주셔서 감사합니다. 강의 들으시면서 궁금하신 부분을 남겨주세요. 회사 일 관계로 빠른 답변이 어려울 수 있으며, 최대 3일 이내에 답변 드리도록 하겠습니다. 이해를 돕기 위해서 스크린샷 이미지, 피그마 파일 링크 를 반드시 첨부해주세요. 마지막으로 먼저 유사한 질문 이 있는지 한번 찾아보시는 걸 권장 드립니다. 인프런 서비스 운영 관련해서는 1:1 문의하기 로 인프런 쪽으로 연락 주시기 바랍니다.