안녕하세요 제로초님 강의 잘듣고 있습니다. 현재 vscode를 사용하고 있고, 아래 블로그글 방법대로 eslint, prettier를 설정하려고 하는데 아래 방법대로 적용하고 이후 강의를 들어도 문제없을까요? https://seogeurim.tistory.com/15?category=981579
일반적으로, Repository 테스트나, repository 를 통한 서비스를 테스트 할 시, Test DB에 직접 데이터를 생성하고 테스트를 하는지, Stub을 통해, 해당 respository가 특정 응답을 준다고 가정한 뒤 , DB 를 통하지 않고, 서비스 로직을 테스트하는지 궁금합니다.
배민의 현재 구동중인 서비스의 실무 코드를 기준으로 질문드립니다. Spring framework을 사용하지만, DI패턴을 사용하지 않고, new 를 통해 직접 Instance를 생성하여, 해당 Instance 내부에서 private을 통한 멤버 변수를 제어하는 클래스가 어느 정도의 비중으로 있는지 궁금합니다. DI 패턴은 주로 싱글톤으로 사용하기 때문에, 멤버변수를 클래스 내에 생성해서 다루지 않는걸로 알고 있습니다. 배민급의 비지니스 레벨을 구현할 때도, 클래스 내부의 멤버변수 사용없이 , 변수들을 DI패턴을 통한 각 메서드로 직접 넘기면서 모든 것을 구현해도 SOLID 원칙을 잘 지키는 코드를 만들 수 있는지가 궁금합니다.
위와 같이 A,B,C의 로그가 동시에 찍히는게 아니라 C가 뒤늦게 찍힙니다. 혹시 뭔가 잘못 적은게 있나 싶어 강의자료에 있는 코드를 복사붙여넣기 해서 돌려봐도 마찬가지더라구요. 저 위에 A resource failed to call close. 라는 오류 때문인거 같기도 한데, 어떻게 해야 정상적으로 나올 수 있을지 궁금합니다.
def info() : messagebox.showinfo("QUIT","종료하시겠습니까?") menu_file.add_command(label="종료하기", command=info) 이때 메모장에서 메시지박스가 떴을 때 확인 버튼을 누를 경우 실제로 종료가 되려면 어떤 코드를 추가해야할까요??
노드포트와 로드밸런서 강의 중 아래 사항이 궁금합니다. 아래 k get service 의 출력을 보면 np-nginx에서는 80:3000:TCP, lb-nginx 는 80:30371/TCP로 나오는데, 노드포트에서는 3000을 노드포트로 설정했고 해당 포트로 접속을 시도해야 하는 것을 알겠습니다. 그런데 lb-nginx 는 LB로 설정했고 별도로 랜덤하게 30371이 node port 로 생긴거 같은데(노드 IP:30371로 접속하면 external IP:80 과 동일) 그렇다면 실제 flow는 어떻게(노드 IP:30371이 실제 사용되는지?) 흘러가는 건가요? [root@m-k8s ~]# k get service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 43h lb-chk-ip LoadBalancer 10.105.221.232 192.168.1.12 80:30045/TCP 25s lb-nginx LoadBalancer 10.108.247.90 192.168.1.11 80:30371/TCP 29s np-nginx NodePort 10.107.9.103 <none> 80:30000/TCP 70m
compare_exchange에 해당하는 두가지 함수가 있기에 궁금하여 해당 내용을 찾아보았지만 이해가 가지 않습니다. https://cplusplus.com/reference/atomic/atomic/compare_exchange_strong/ Unlike compare_exchange_weak , this strong version is required to always return true when expected indeed compares equal to the contained object , not allowing spurious failures . However, on certain machines, and for certain algorithms that check this in a loop, compare_exchange_weak may lead to significantly better performance. 1) spurious failures? weak는 해당 오류가 어떻게 나올 수 있다는 걸까요? 2) weak와 strong을 선택하는 대표적인 기준은 무엇인가요?
안녕하세요, 강의는 swr로 보고 저는 제로초님 깃헙에 front-rq 레포 보면서 react-query로 진행 하고 있는데요, 강좌가 swr이라 가능하면 혼자 에러 해결하려 했는데 몇시간째 해결이 안되서 질문 남깁니다ㅜ 부탁드립니다. 에러 원인은 chatData가 undefined 여서 생기는 것 같습니다. pages/Channel/index.tsx에서 useInfiniteQuery 요청이 안가고 chatData가 undefined로 나옵니다. members, channels 정보 요청은 정상적 불러오는데 useInfiniteQuery로 불로온 요청은 응답하지 않는 이유를 모르겠습니다. 강의 보면서 하다가 isLoading, isFetching 도 넣어보고, 순서도 바꿔 보고 했는데 안되서 지금은 제로초님 git hub에 fornt-rq 폴더의 코드를 복붙했는데도 Can't not read properties undifined 에러 뜨네요 ㅠ 전체 코드 https://github.com/HomieKim/sleact/blob/master/pages/Channel/index.tsx
[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다) - 이외의 문의등은 평생강의이므로 양해를 부탁드립니다 안녕하세요~ 14강 8분 30초 부분에서 선생님이랑 똑같이 따라한 것 같은데 저는 왜 'str' object is not callable 이라는 에러가 뜰까요..? 아직 초보라 구글링을 해봐도 무슨 말인지 잘 모르겠습니다..ㅠㅠ - 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다 - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
코드를 따라치면서 컴파일해보다가 14분 30즘에 나온 방식으로 atomic<int32> sum = 0; 으로 치고 컴파일 했을 때 -std=c++11과 -std=c++14로는 에러가 났습니다. 1) atomic은 C++ 버전 몇에서 표준화되고 추가되었나요? 2) 지금은 모든 Makefile의 CXXFLAGS에 -std=c++17를 추가해 통일시켜놨는데 앞으로 나오는 강의를 기준으로 C++17로 괜찮을까요? 아니면 해당강의에 맞는 추천버전이 있으신가요?
1.22v 부터 storage solution을 Longhorn으로 대체한다고 하셔서 설치 명령어를 입력했는데 오류가 나오네요. 로그는 아래와 같습니다. ''' [root@k8s-master ~]# kubectl apply -f https://kubetm.github.io/yamls/longhorn/longhorn.yaml Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+ podsecuritypolicy.policy/longhorn-psp configured customresourcedefinition.apiextensions.k8s.io/backingimagedatasources.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/backingimagemanagers.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/backingimages.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/backups.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/backuptargets.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/backupvolumes.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/engineimages.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/engines.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/instancemanagers.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/nodes.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/recurringjobs.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/replicas.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/settings.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/sharemanagers.longhorn.io configured customresourcedefinition.apiextensions.k8s.io/volumes.longhorn.io configured clusterrole.rbac.authorization.k8s.io/longhorn-role unchanged clusterrolebinding.rbac.authorization.k8s.io/longhorn-bind unchanged Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found ''' "kubectl create namespace longhorn-system" 명령어로 일단 namespace를 만들어서 설치를 하여 진행을 해보고 있습니다. 정확한 솔루션인지는 모르겠네요. 확인 부탁드립니다. * kubectl create ns honghorn-system 으로 네임스페이스를 만들어서 설치를 하면 다음과 같은 문제가 발생하네요. 3개의 pod이 init상태에서 더 진행되지 않습니다.
안녕하세요. "동시성 문제-예제코드" 강의 07:35 쯤에 나오는 설명과 실행결과가 이해가 안되서 질문드립니다. 제가 알기로는 메인 쓰레드가 종료가 되더라도, Thread thread = new Thread(); thread.setDaemon(true); 처럼 하지 않으면 프로그램이 끝나지 않는 걸로 알고 있습니다. 그런데 Junit Test 내에서는 thread.setDaemon(true)를 안 했음에도 그냥 테스트 코드가 종료되버립니다. 대체 이렇게 동작하는 원인이 뭘까요?
정밀도와 재현율의 트레이드오프(Trade off) - 01 6분 33초에서 임곗값이 낮을수록 Positive 로 예측할 가능성이 높아져 FN은 예측 자체를 시도하는 횟수가 적어지기 때문에 낮아지고 FP는 반대로 예측 자체를 시도하는 횟수가 많아져 FP가 증가한다 따라서 재현율은 증가하고 정밀도는 낮아진다 라고 이해 했는데 Positive로 예측하는 횟수가 많아지면 TP 역시 증가하게 되서 정밀도 = TP / ( FP + TP ) 가 모두 같이 증가하기 때문에 정밀도가 낮아지진 않을거같은데 왜 임곗값을 낮추면 정밀도가 낮아지는건지 궁금합니다 ! 또 다른 타 강의 에서는 특이도(Specificity)도 다루던데 따로 안다루시는 이유가 있으신지도 궁금합니다 !
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. navbar-dark bg-dark 여기에서 navbar-dark가 하는 역할이 무엇인지요?