안녕하세요!! @ResponseBody 관련해 질문드려요 1 @ResponseBody 사용할 경우 , 뷰리졸버를 거치지 않고 return 타입이 String이면 data가 화면에 출력되잖아요 ! 근데 해당 data를 뷰리졸버 화면을 거쳐서 그 화면에 data를 뿌려주고 싶은데 방법이 없을까요? 자바스크립트를 사용하지 않는 방법으로요!
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요. TASKMAN 프로젝트 실습 중 이해가 안되는 내용이 있어서 질문 올립니다. 동일한 Priority를 가지는 Task1과 Task2 생성하고 3초 딜레이 후에 Task2의 Priority를 올리는 코드를 작성하여 결과를 보았습니다. configUSE_TIME_SLICING 은 1, configUSE_PREEPTION 은 1로 설정해놓은 상태여서, 예상되는 결과로는 약 3초정도 Task1과 Task2가 스위칭되면서 실행되다가 3초후엔 Task2만 실행될 것으로 예상을 하였습니다. 그런데 예상과 다르게 3초정도 지나니까 아예 정지를 해버리더군요. FreeRTOS 매뉴얼을 읽어보아도 별 문제 없이 제가 예상한대로 돌아가야할 것 같은데, 왜 이러는지 이해가 안됩니다. 사진은 01_TASKMAN 프로젝트의 TaskMain 함수의 내용 일부입니다. 확인 부탁 드립니다. 감사합니다.
npx webpack 으로 설치하는데 Module build failed (from ./node_modules/babel-loader/lib/index.js): 라는 에러가 발생합니다. asset app.js 2.29 KiB [emitted] (name: app) ./client.jsx 39 bytes [built] [code generated] [1 error] ERROR in ./client.jsx Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Unknown option: .pluguns. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options. at throwUnknownError (/Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/validation/options.js:133:27) at /Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/validation/options.js:118:5 at Array.forEach (<anonymous>) at validateNested (/Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/validation/options.js:94:21) at validate (/Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/validation/options.js:85:10) at loadPrivatePartialConfig (/Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/partial.js:80:50) at loadPrivatePartialConfig.next (<anonymous>) at /Users/mac/Desktop/React/minigame/node_modules/@babel/core/lib/config/partial.js:149:25 at Generator.next (<anonymous>) at step (/Users/mac/Desktop/React/minigame/node_modules/gensync/index.js:261:32) word-relay-setting (webpack 5.51.1) compiled with 1 error in 226 ms 도와주세요 ㅠㅠ
회원 클래스 다이어그램에서, 왜 MemberRepository 인터페이스를, MemberService의 인터페이스가 아닌 구현체인 MemberServiceImpl가 참조하는 구조로 설계된건가요? MemberService도 구현체보다 인터페이스를 사용하는게 더 '역할과 구현의 분리'를 잘 지키는게 아닌가요?
안녕하세요! 좋은 강의 덕분에 git에 대해 많이 배워가는 중입니다! pull request를 날리는 과정에 대해 궁금한 점이 생겨 질문 남기게 되었습니다. fork, clone, 로컬에서 새로운 branch 생성 후 코드 작성 및 commit 생성 과정까지 모두 끝낸 후, 그 사이에 다른 협업자에 의해 협업 대상 repository에 변경사항이 생긴다면(새로운 내용이 업데이트된다면) 어떻게 처리해야하는지 알 수 있을까요?
커스텀 폴더에 있는 이미지를 사용하는 과정입니다. 마지막 셀 2개를 보시면 trainset에 label이 0과1 인 이미지가 2개 들어가 있는 것을 알수 있습니다. 하지만 iter를 사용하여 돌려보면 tensor([0]) 이라고만 뜨고 나머지 라벨 1인 결과는 보여주지 않습니다. 여러번 실행 해봐도 0밖에 나오지않고 다음것을 보여주지 않는데 무슨 문제인가요?
kubeadm ini 했을때 에러가 첫번째는 /etc/kubernetes/manifests/ 아래에 있는 yaml 파일을 삭제하니 아래 에러는 처리됬습니다. -------------------- [ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists ===================================== 그러고 나니 아래 에러가 발생하네요. [wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s [kubelet-check] Initial timeout of 40s passed. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
kubeadm init 했는데 아래 에러가 납니다. root@master:~# kubeadm init [init] Using Kubernetes version: v1.22.1 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists [ERROR FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher
안녕하세요. git feature를 사용해서 기능을 개발 중입니다. develop - feature/1 - feature/2 원래는 이렇게 개발을 해야하지만 제가 feature/2를 개발할 때 feature/1 내용을 merge해서 가져오다보니 feature/2에 그대로 feature/1 commit 내용이 남아 있는 문제가 있습니다. git history 관리를 위해서 feature/2에서 개발한 내용만 commit에 남기고 싶은데 어떻게 해결해야 할지 몰라서 질문드립니다.
안녕하세요 정다면체 문제에서 제 코드로 실행시키면 마지막에 %가 꼭 붙어서 나옵니다... 구글링도 해봤는데 어떤 문제가 잘못된건 지 모르겠어요...! 마지막 줄의 print(i+1, end=' ')에서 end=' ' 를 지우고 실행하면 %가 출력이 안되는데 end=' '를 붙이고 실행하면 %도 출력됩니다ㅠㅠ 컴퓨터는 맥북이고 vscode 사용하고 있습니다!!
addForm.html에 id="open"을 생략하고 th:field="{open}" 만 적고 페이지 소스 보기를 하면 <input type =" checkbox " class =" form-check-input " id =" open1 " name =" open " value =" true "> <input type =" hidden " name =" _open " value =" on "/> id값에 open1 이 들어오네요?? 앞에서 한 itemName, price, quantity 는 id, name 값이 일치가 됐는데 얘만 다르게 1이 붙어서 괜히 신경쓰이네요..ㅎ
설계독학맛비's 실전 FPGA를 이용한 HW 가속기 설계 (LED 제어부터 Fully Connected Layer 가속기 설계까지)
맛비님 안녕하세요! FPGA도 열심히 공부하러 왔습니다. 궁금하게 있어서 질문드립니다. simulation 상에서 많은 횟수가 필요해서 너무 오래걸리거 같아 시뮬레이션을 XSIM_MATBI 로 따로 정의해서 사용한 건 알았습니다. 근데 제가 리눅스 상에서 돌리지 않고 vivado를 직접켜서 design 소스 추가 하고 sim 소스 추가 하고 constraints 까지 마스터로 추가 시켜서 시뮬레이션을 실행했는데 LED 값에 변화가 안나타나는 것 같습니다. 이렇게 실행하려면 if 문에서 정의하신 부분을 지우고 실행시켜야 하나요??
def DFS (idx , total , time): global result if time > n: return if idx > n: return if idx == n: if result < total: result = total else : DFS(idx + t[idx] , total + p[idx] , time + t[idx]) DFS(idx + 1 , total , time) n = int ( input ()) t = [] p = [] result = 0 for i in range (n): a , b = map ( int , input ().split()) t.append(a) p.append(b) DFS( 0 , 0 , 0 ) print (result) 저는 이런식으로 만들었습니다 if idx > n: return 이 부분을 추가 하기 전에는 오류가 났는데 추가 한 후에는 오류가 없었고 결과도 100점이었습니다. 이 코드는 틀린걸까여??