강의의 약 5분쯤에 컴포넌트를 재사용하기위해 데이터를 불러오는 로직을 분기처리하는 것에 대한 궁금증인데요.. this.$route.path 를 써도 분기처리 가능하고 사실 name을 쓰려면 route 설정에 name을 추가해줘야 하는데, 하나의 필드를 추가할 만큼 path가 아닌 name을 쓰면 좋은 점이 있는지 궁금합니다.
모의해킹 실무자가 알려주는, SQL Injection 공격 기법과 시큐어 코딩 : PART 1
머신러닝서버 오프라인 설치에서 next 버튼이 활성화가 안됩니다. 영상 찍을 당시에는 이 과정이 없더군요. stackoverflow에서 해결책으로 제시한 사진속 링크 파일들을 받아서 한 폴더에 모은 후 경로설정 해도 해결이 안되더군요. 최근 다른 사람들도 이 방법으로 해결이 안된다고 하네요. 혹시 방법 아시나요?
안녕하세요~! 파이썬 if 문을 공부하다가 해커랭크( https://www.hackerrank.com/challenges/py-if-else/problem?isFullScreen=true ) 여기서 저는 아래와 같이 코드를 짰는데 python3기준으로 서브밋에서 testcase 2개가 실패합니다 ㅠㅠ if n % 2 == 1: print('Weird') elif n >= 2 & n <= 5: print('Not Weird') elif n >= 6 & n<= 20: print('Weird') else: n>20 print('Not Weird') 구글링한 다른 코드(아래)는 전체 케이스가 통과하더라구요.. 혹시 어떤 차이가 있을까요? if n%2 == 1: print('Weird') elif n>=2 and n<=5: print('Not Weird') elif n>=6 and n<=20: print('Weird') elif n>20: print('Not Weird') 알려주시면 감사합니다!
배포할 때 빌드해서 나온 결과물을 server 폴더 public 에 넣어주면 될까요? 이미 빌드된 프론트엔드 결과물이 있는 거 같은데 여기에다 제가 작업한 빌드된 결과물을 넣어주고 배포하면 되는 건가요? 저기 위해 dist란 폴더를 제가 작업한 결과물(빌드된)을 넣으면 되는 거죠?
이미지 대량 민팅을 진행하려고 pinata와 연결하여 (1)웹 자바스크립트를 통한 민팅과 (2)리믹스를 통한 민팅으로 제작하려고 합니다. 그런데 pinata와 연결하여 리믹스에서 민팅하려고하면 웹에서 민팅이 진행되지 않고, 웹에서 진행하려고 하면 두 상황에서 같이 민팅 수 있는 코드를 어떻게 수정해야할지 감이 잘 안 잡힙니다.. 그리고 제가 잘 확인하지 못했는데 혹시 웹에서 이미지를 보기 위해 json 파일에 필수로 들어가야할 요소가 있을까요 밑에 글에 올라온 것처럼 파일을 선택 후 이미지를 업로드를 하면 infura 오류가 뜹니다 request.js:138 POST https://ipfs.infura.io:5001/api/v0/add?stream-channels=true 401 (Unauthorized) 댓글을 보면 개인 계정 설정 후 진행이 되는 분이 계셨는데 코드를 수정하고 개인 계정을 설정 후에도 오류가 걸리는 부분이 있어 curl나 개인 계정 설정에 대해 어떻게 진행하면 좋을지 여쭤보고 싶습니다 ㅠㅠㅠㅠ
영한님 영상을 보면 어떤 때는 assertThat을 사용하시고 어떤 때는 assertTrue를 사용하시더라구요. 궁금해서 인터넷에 검색을 해봤는데 "asserThat으로 사용하는 게 좋지않을까?" 라는 글이 몇개 있더라구요. 질문 : 테스트작성을 앞으로 해야할때 Junit4와 junit5중 어느 것으로 작성을 연습하는게 좋을까요? assertXXXX와 assertThat 어느 것을 선호하시나요?
안녕하세요 제로초님! 제로초님의 강의 항상 정말 감사히 잘 듣고 있습니다. 다름이 아니라, computed에서 backgorund의 색깔을 지정하고 return을 해주실 때, 왜 객체로 감싸야하는지 궁금해서 여쭤봅니다. retrun background;로 하니까 동작되지 않았고, return {background};로 하니까 잘 작동됐습니다. 왜 그런건가요??
환경은 AWS 환경이며, 실습환경과 똑같은 아이피로 해서 centos 7으로 동일하게 구성하고 있습니다(제 커널버전은 Linux 3.10.0-1160.76.1.el7.x86_64) 그런데 마지막에 kubeadm init 하는데 connection refused 이 뜨며 진행이 되지 않습니다. 해당 에러 발생시 daemon.json을 확인하라는 내용이 있던데(구글링시) 이상이 없었습니다. 아래는 전체로그 입니다. 회신 주시면 감사드리겠습니다. [root@k8s-master centos]# kubeadm init --pod-network-cidr=20.96.0.0/12 --apiserver-advertise-address=192.168.0.30 I0827 06:11:16.046030 2520 version.go:248] remote version is much newer: v1.25.0; falling back to: stable-1.15 [init] Using Kubernetes version: v1.15.12 [preflight] Running pre-flight checks [WARNING SystemVerification]: this Docker version is not on the list of validated versions: 20.10.17. Latest validated version: 18.09 [preflight] Pulling images required for setting up a Kubernetes cluster [preflight] This might take a minute or two, depending on the speed of your internet connection [preflight] You can also perform this action in beforehand using 'kubeadm config images pull' [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" [kubelet-start] Activating the kubelet service [certs] Using certificateDir folder "/etc/kubernetes/pki" [certs] Generating "etcd/ca" certificate and key [certs] Generating "etcd/server" certificate and key [certs] etcd/server serving cert is signed for DNS names [k8s-master localhost ] and IPs [192.168.0.30 127.0.0.1 ::1] [certs] Generating "etcd/healthcheck-client" certificate and key [certs] Generating "apiserver-etcd-client" certificate and key [certs] Generating "etcd/peer" certificate and key [certs] etcd/peer serving cert is signed for DNS names [k8s-master localhost ] and IPs [192.168.0.30 127.0.0.1 ::1] [certs] Generating "ca" certificate and key [certs] Generating "apiserver" certificate and key [certs] apiserver serving cert is signed for DNS names [k8s-master kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 192.168.0.30] [certs] Generating "apiserver-kubelet-client" certificate and key [certs] Generating "front-proxy-ca" certificate and key [certs] Generating "front-proxy-client" certificate and key [certs] Generating "sa" key and public key [kubeconfig] Using kubeconfig folder "/etc/kubernetes" [kubeconfig] Writing "admin.conf" kubeconfig file [kubeconfig] Writing "kubelet.conf" kubeconfig file [kubeconfig] Writing "controller-manager.conf" kubeconfig file [kubeconfig] Writing "scheduler.conf" kubeconfig file [control-plane] Using manifest folder "/etc/kubernetes/manifests" [control-plane] Creating static Pod manifest for "kube-apiserver" [control-plane] Creating static Pod manifest for "kube-controller-manager" [control-plane] Creating static Pod manifest for "kube-scheduler" [etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests" [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 [::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 [::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 [::1]:10248: connect: connection refused.
클라우데라 로그인후 Selection Edition에서 강의 시간에 제시 되었던 ""Cloudera Enterprise 체험판" 내용이 없고, Express 와 Enterprise중에 선택할수 밖에 없습니다. Express 로 진행해본결과 여러 설정에 에러가 납니다. 해결 방법이 있을까요? VirtalBox6.1.36 +PilotProject3VM을 사용했습니다.
강의 31분쯤 쿼리에 board를 myboard로 바꾸신 부분 똑같이 해도 계속 안되길래 혹시나하고 select * from test.myboard order by idx desc로 변경했습니다 (myboard -> test.myboard) 그랬더니 되는데 혹시 이거 쿼리에 계정 안붙이고 하는 설정이 있는지 궁급합니다
따라하며 배우는 노드, 리액트 시리즈 - 레딧 사이트 만들기(NextJS)(Pages Router)
도커 컨테이너도 실행 잘 되고, 서버 연결도 잘되서 localhost : 4000에서 서버도 잘 띄워집니다. 그런데, 데이터베이스만 연결이 안되는 것 같아요 ㅠㅠ npm run dev 만 하면 이런 에러가 납니다. // docker-compose.yml // data-source.ts 환경변수로도 해봤는데 안되서, 일단은 postgres, password로 입력해 놓은 상태입니당 ㅜ Docker Desktop에 컨테이너에서 로그 같은 기능이 있길래 봤는데 자꾸 비밀번호 인증에 실패 했다고만 나오고 구글링해도 모르겠어용 ㅠㅠ reddit-postgres | 2022-08-28 02:13:17.747 UTC [1] LOG: database system is ready to accept connections reddit-postgres | 2022-08-28 02:13:52.751 UTC [33] FATAL: password authentication failed for user "postgres" reddit-postgres | 2022-08-28 02:13:52.751 UTC [33] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"