안녕하세요 선생님, 좋은 강의 잘 듣고 있습니다. 항상 감사합니다. "다중상속"영상을 잘 보았습니다. 해당 코드에서 AttackUnit은 name을 멤버변수로 가진 반면에, Flyable은 name을 멤버변수로 가지지 않았습니다. 이를 눈여겨보고, 저는 다음과 같이 코드를 바꿔보았습니다. AttackUnit과 Flyable 모두에서 name을 멤버변수로 가지도록 하고, 마찬가지로 FlyableAttackUnit을 만들어 두 class로부터 다중상속했습니다; # 일반 유닛 class Unit : def __init__ ( self , name , hp ): self .name=name self .hp=hp # 공격 유닛 class AttackUnit ( Unit ): def __init__ ( self , name , hp , damage ): Unit. __init__ ( self ,name,hp) self .damage=damage # 공중 유닛 class Flyable : def __init__ ( self , name , flying_speed ): self .flying_speed=flying_speed def fly ( self , location ): print ( " {0} : {1} 방향으로 날아갑니다. [속도 {2} ]" .format( self .name,location, self .flying_speed)) # 공중 공격 유닛 class FlyableAttackUnit ( AttackUnit , Flyable ): def __init__ ( self , name , hp , damage , flying_speed ): AttackUnit. __init__ ( self ,name,hp,damage) Flyable. __init__ ( self ,flying_speed,name) valkyrie=FlyableAttackUnit( "발키리" , 200 , 6 , 5 ) valkyrie.fly( "9시" ) 그 결과 문제없이 작동되었는데요. 이와 관련해서 질문입니다. (1) Flyable에서는 name을 멤버변수로 설정하지 않으신 것은, 혹시 중복을 막기 위한 의도셨나요? (2) 일반적으로 (제가 했던 것과 같이) 두 개의 부모 class의 멤버변수가 중복되더라도 문제가 발생하지 않는 것이 맞나요?
backend 쪽의 nodemon scripts를 어떻게 변경해 줘야 되나요? nodemon이 경로를 찾지 못하는것 같아요~ [nodemon] 2.0.2 [nodemon] to restart at any time, enter `rs` [nodemon] watching dir(s): *.* [nodemon] watching extensions: js,mjs,json [nodemon] starting `node index.js index.js` internal/modules/cjs/loader.js:796 throw err; ^ Error: Cannot find module 'C:\Users\patmo\Documents\myProject\inf-todo\index.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17) at Function.Module._load (internal/modules/cjs/loader.js:686:27) at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) at internal/main/run_main_module.js:17:11 { code: 'MODULE_NOT_FOUND', requireStack: [] } [nodemon] app crashed - waiting for file changes before starting... 이런 에러가 뜨네요~ server 경로로 가서 node index.js 하면 돌아가는데 이상하네요~ https://github.com/ryun3433/inf-todo.git (config 폴더 대신해서 .env 사용했습니다) 깃헙 주소도 남깁니다~
좋은 강의 만들어주셔서 감사합니다. 강의와 질의응답 내용들을 참고하여 현재 프로젝트 파일 설치까지 완료하였으나, npm start가 되지 않고 있어 문의글을 남깁니다. 프로젝트 생성을 위해 사용한 명령어는 다음과 같습니다. npm install -g create-tidory-app npx create-tidory-app second-app cd second-app/ second-app 경로 아래에서 ls 를 한 결과: app.pug docs/ index.pug package.json README.md views/ assets/ images/ LICENSE package-lock.json tidory.config.js package.json 안에 내용은 다음과 같았습니다. $ cat package.json { "scripts": { "start": "cross-env NODE_ENV=development tidory start", "preview": "cross-env NODE_ENV=development tidory preview", "build": "cross-env NODE_ENV=production tidory build", "build:compress": "cross-env NODE_ENV=build tidory build --compress", "deploy": "tidory deploy", "store": "tidory store", "lint": "eslint --ext .js assets tidory.config.js" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/tidory/tidory" }, "devDependencies": { "cheerio": "^1.0.0-rc.2", "cross-env": "^7.0.2", "eslint": "^6.8.0", "eslint-config-standard": "^14.1.0", "eslint-plugin-import": "^2.20.0", "eslint-plugin-node": "^11.0.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" }, "dependencies": { "@tidory/default-header": "github:tidory/default-header", "@tidory/default-sidebar": "github:tidory/default-sidebar", "tidory": "^7.2" } } 강의에서와 달리 root 경로 아래에 package-lock.json은 설치되어 있었지만 node_modules가 설치되어 있지 않아서 package-lock.json 파일을 삭제해주고 npm install 명령어를 실행시켜 주었습니다. rm -rf package-lock.json && npm install vulnerabilities 가 존재하여 npm audit fix 명령어를 실행시켜 주었습니다. npm audit fix $ npm audit fix npm WARN acorn-jsx@5.2.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 2 packages from 4 contributors and updated 4 packages in 10.093s 33 packages are looking for funding run `npm fund` for details fixed 21 of 26 vulnerabilities in 11404 scanned packages 5 vulnerabilities required manual review and could not be updated 그런 다음에 npm start 명령어를 실행시켜주었으나, 다음과 같은 error가 났습니다. npm start $ npm start > @ start C:\Users\John Doe\git\second-app > cross-env NODE_ENV=development tidory start internal/modules/cjs/loader.js:976 throw err; ^ Error: Cannot find module 'C:\Users\John' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15) at Function.Module._load (internal/modules/cjs/loader.js:855:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } 'C:\Users\John' 을 못찾는 이유가 John Doe 처럼 가운데 띄어쓰기가 있는 경로여서 모듈을 못찾는 것일까요? ㅠㅠ (이름은 임의로 변경하였습니다.) 혹시 제가 간과하고 넘어간 부분이 있다면 알려주시면 감사하겠습니다. 😊
안녕하세요, Ingress실습편 강좌를 듣고 사무실에서 사용하는 VM에 셋팅을 하면서 궁굼한점이 생겨서 질문드립니다. 집에서 강의를 듣고 따라했을때 master node에서 node1,2에 만들어진 서비스의 클러스터IP로 curl을 이용해서 nodejs파일의 결과값을 받아온 것과 master node IP(192.168.0.30:30431)로 접근했을때도 정상적으로 값을 받아왔었는데요~ 아래 사무실 실습환경에서 진행을 했을대 master node에서 node1에 생성된 서비스의 클러스터 IP로 curl로 명령어를 던졌을때 데이터가 안받아와져서 telnet으로 확인해보니 내부 엔드포인트 포트인 8080이 다 막혀있었습니다. 그리고 master node ip로 접속을 한 후 (10.20.110.30:30431/order) 데이터를 받을려고하면 응답이 없고 서비스가 생성된 node1의 ip주소(10.20.110.31:30341/order)로 접속했을때 데이터를 받아오고 있습니다. 혹시 이런 상황이 비정상적이라면 어느부분에서 잘못됐는지 궁굼합니다~! 사무실 실습환경 - 총2개의 VM(Centos7.3) - IP는 자동으로 할당되어 사용, master(10.20.110.30), node1(10.20.110.31) 집 실습환경 - Oracle VM - 총 3개의 VM, master,node1,node2
안녕하세요. 혼자서 에니메이션 구현하다가 모르는 부분이 있어서 질문을 드리게 되었습니다. 의도사항 : 0.2초 동안 위에서 아래로 떨어지는 에니메이션 진행 후, 3초 기다렸다가 다시 0.2초 동안 올라가는 에니메이션 결과 : 0.2초 3초 동안 설정한 내용이 적용되지 않고 에니메이션이 동작 어떻게 하면 특정 구간에서 3초 동안 기다리게 할 수 있을까요??ㅠㅠㅠㅠ const NameAni = keyframes ` 0% { transform : translateY ( -50px ); opacity : 0.2 ; } 50% { transform : translateY ( 0 ); opacity : 1 ; animation-duration : 2s ; } 100% { transform : translateY ( -50px ); opacity : 0.2 ; }`; const Layout = styled . div ` h3 { animation : ${ NameAni } 3s 0.4s linear forwards ; } `;
리액트로 코드스플리팅, 서버사이드렌더링을 구현하는 과정을 공부하고있는데요.. 친절한 설명이 뒷받침되는데도 불구하고 너무 어렵네요.. 리액트로 코드스플리팅, 서버사이드렌더링을 구현하는 과정을 알게되니깐 next.js가 왜 마법이라고 불리우는지 알것같습니다. next.js는 리액트 라우터와 호환이 되지않는다는게 엄청 치명적인 단점인데다, 기존의 프로젝트에 서버사이드렌더링,코드스플리팅을 적용해야하는 ( <= 이 경우를 회사에서 일할때 유지보수의 일종이라라고 생각하면될까요?) 경우에 next.js를 사용하는게 불가능하다고 알고있는데.. 실무에서 next.js가 많이쓰이나요? 흔히 React 공고에서 "react 잘 다루는 분" 이 문구가 next.js도 포함되어있는걸까요?
좋아요 작동이 안됩니다. 좋아요를 누르게 하려고 하는데, local host를 호출하기 위해 mockup-server와 postman도 함께 사용해야되나요? 만약 해야한다면, 어떠한 방법으로 mockup-server에서 postman의 localhost를 띄우고(맞나?) 거기서 어떠한 방법으로 데이타를 가져와서 통신시켜야되는지 알려주시면 감사하겠습니다...
file_get_contents 를 써서 외부 php 홈페이지를 불러오려고 하는데, Warning : file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\Bitnami\wampstack-7.3.16-1\apache2\htdocs\firstapp\readhp.php on line 2 Warning : file_get_contents(https://www.php.net/manual/en/function.array-change-key-case.php): failed to open stream: No such file or directory in C:\Bitnami\wampstack-7.3.16-1\apache2\htdocs\firstapp\readhp.php on line 2 이런 에러가 뜨면서 안열리네요. 해결방법 좀 알려주세요.