최근 코딩 공부를 하다가, 좀 혼란스러운게 있어서 질문드립니다. 문자열은 분명히 타입오브 메소드를 썼을 때는 string이라는 문자열이라고 찍히는데, 배열의 방식으로도 문자열의 일부가 나오는 것을 보면서, 살짝 혼란스러웠습니다. 그래서, 제가 내린 가설은 "문자열도 배열의 하나이기 때문에, 배열의 방식으로 character를 찍을 수있다."는 것이었습니다. 문자열( string )은 배열의 하나인가요?? 아니면, 그냥 둘이 서로 다른 종류인데, 그냥 문자열에서 배열의 방식이 먹히는 건가요?? 감사합니다.
1. 스프링빈은 객체를 생성한다. 2. 의존관계 주입을 한다. 3. 이후 필요한 데이터를 사용 할 수 있는 준비가 된다. 강의 듣다가 명확하게 이해하고 싶어서 질문드립니다. 의존관계 주입후 필요한 데이터를 사용 할 수 있는 준비가 된다고 하는데 그렇다면 생성자로 모든 데이터와 DB 커넥션을 해주는 작업을 한다면 의존관계주입이 발생될때 해당 초기화 했던 작업들은 다 무시가 되나요?
spp net을 rcnn에 적용할 때 selective search 를 feature map에 matching?한다고 표현하셨는데, Selective search가 objects를 찾는 거고, 이 objects들을 feature map에 매칭한다는게 정확히 어떤 의미인지 모르겠습니다.
"select m . team from Member m " ; 위의 쿼리문을 명시적 조인으로 바꾸면 "select t from Member m join m . team t " ; 이렇게 바꾸는 게 맞을까요?? 찍어보니까 쿼리는 같은 쿼리가 나옵니다! 영한님이 말씀하시건 결국 전부 풀어서 쓰라는 말이 맞을까요?
풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
안녕하세요! 헷갈리는 것이 있는데 혼자 테스트를 해보아도 잘 모르겠어서 질문드려요! docker-compose의 volumes를 이용했을때.. 어떤 경우에는 호스트의 폴더를 컨테이너의 폴더에 덮어 씌우고 어떤 경우에는 컨테이너의 폴더를 호스트의 폴더에 덮어씌우는것 같아요.. 전자의 경우 nginx컨테이너의 폴더가 덮어씌워짐 (호스트폴더:/usr/share/nginx/html) 후자의 경우 (컨테이너로 생성한 mysql의 폴더가 호스트에 생성됨) 무엇을 기준으로 이렇게 결과가 달라지는 건가요?! ㅠ_ㅠ
게시판에 이미지 불러오기까지 적용시켜 보고 싶어서 아직 게시판까지 이어놓진 않고 이미지 업로드 & view 코드만 짜보고 있었습니다. 코드를 다 짜본 결과 서버를 재실행 시키기 전까진 이미지가 깨지다가 재실행 시키면 파일이 너무나도 잘 보이는데 이 때 구글링해서 devtools를 이용해 고쳐보려고 했지만 실패했습니다. 제 능력 부족인지 원래 안 되는 건지 모르겠어서 질문 드립니다. 1. 제가 겪는 서버 재시작 후 이미지 보임 현상은 devtools로 고칠 수 있는 건가요? 2. 만약 1번이 맞다면 실무에서도 devtools를 이용하나요? 3. 2번이 아니라면 실무에선 어떤 방법을 통해 이런 상황을 해결 하나요?
안녕하세요 선생님! 개발환경 세팅부터 오류가 나서 ,.. 도움 부탁드립니다 ㅠㅠ npm install 했더니 이런 오류가 뜨는데 해결방법을 못 찾겠네요 . node 버전은 16.0.0 입니다 - PS C:\Users\user\Downloads\boilerplate-mern-stack-master> npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.14.0 npm ERR! node-pre-gyp info using node@16.0.0 | win32 | x64 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download npm ERR! node-pre-gyp info check checked for "C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@16.0.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.0.0 | win32 | x64 npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.0.0 | win32 | x64 npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python2" can be used npm ERR! gyp ERR! find Python - "python2" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if Python is C:\Python37\python.exe npm ERR! gyp ERR! find Python - "C:\Python37\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe npm ERR! gyp ERR! find Python - "C:\Python27\python.exe" could not be run npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:302:47) npm ERR! gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:200:18) npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:266:16) npm ERR! gyp ERR! stack at exithandler (node:child_process:333:5) npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:345:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12) npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:480:16) npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! gyp ERR! System Windows_NT 10.0.19041 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" npm ERR! gyp ERR! cwd C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! gyp ERR! node -v v16.0.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:365:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19041 npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! node-pre-gyp ERR! node -v v16.0.0 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.14.0 npm ERR! node-pre-gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-09-28T04_56_34_583Z-debug.log
안녕하세요 강사님. 쿠버네티스를 처음 배움에도 불구하고 강사님의 강의 실력이 너무 출중하셔서 정말 잘 보고 있습니다. 다름이 아니라 docker에서도 쿠버네티스 세팅을 할 수 있는지 궁금해서 이렇게 질문남깁니다. 강사님의 수업을 보면 Virtual box로 강의가 구성되어져있는데 왠지 혼자 처음부터 k8s 설치 해서 마스터 노드와 워커노트를 연결하는거 까지 혼자힘으로 해보고 싶다는 생각이 들어서요 . 혹시 virtual box말고 도커 4개로(한개는 마스터 노드 나머지 3개는 워커노드) 쿠버네티스 환경을 구성할 수 있을까요?
해당 강의에서 .modal에 대해 position: fixed; left: 0; right: 0; top: 0; bottom: 0; 를 입력하니까 화면에 꽉 차는 것이 이해가 안되는데요, 그냥 위에처럼 입력하면 그 element는 부모 element의 width & height 만큼 크기를 갖게 된다고 생각하면 될까요? (강의 코드에서는 .modal 클래스가 가리키는 element의 경우 position이 fixed이므로 body 태그가 부모 element인 것으로 이해했습니다)
<html> <head> <meta charset="UTF-8" /> <title>출력결과</title> </head> <body> <script> function solution(s) { let answer = 'YES'; s = s.toLowerCase(); s = s.split('').filter((value) => value >= 'a' && value <= 'z'); if (s.join('') !== s.reverse().join('')) return 'NO'; return answer; } let str = 'found7, time: study; Yduts; emit, 7Dnuof'; console.log(solution(str)); </script> </body> </html> 위와 같이 풀어보았는데, charCodeAt()을 명시적으로 사용하는게 좋을까요? 구글링 해보니 기본적으로 아스키 코드 값으로 비교 하는 것 같은데 오해의 소지가 있을 것 같다는 생각이 들었습니다.
========================================= [질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용] 다름이 아니라 제가 김영한 강사님의 기본, 실무 로드맵 강의들을 모두 구입했고 로드맵대로 따라서 듣고 있습니다. 그런데 제가 자바랑 DB기초 그리고 웹기초(html,css,javascript)만 딱 듣고 이 강의를 들어서 그런지 입문 강의인데도 이해가 안가는 말들이나 뭔가 보면 한번씩 스프링을 썼지만 제대로 모르고 쓰신분들을 위한 그런 개념들이 많이 나와서 이해하기가 어렵거나 무슨말인지 모를때가 가끔있는데 예를 들어 앞서 설명하신 @RequestParam에서 소괄호가 있고 없고 차이라던지 controller에서 @GetMapping을 하시고 어떤 메서드는 Model model이걸 붙이고 어떤 메서드는 안붙이고 이런 차이들? 안붙이는 것들은 html을 랜더링 안해서 그런건 알겠는데 그럼 어떤차이가 생기는지 이런것들? 이런것들이 나와도 그냥 일단 넘기고 로드맵들을 다 완주하면 나중에 다 이해가 되고 원래 지금은 이해하기가 힘든 부분들이 나오는게 정상인지 궁금해서 물어봅니다...제가 이해력이 부족한건가요....?