묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[리뉴얼] 코딩자율학습 제로초의 자바스크립트 입문
문자열(String)도 배열의 한 종류인가요??
최근 코딩 공부를 하다가, 좀 혼란스러운게 있어서 질문드립니다. 문자열은 분명히 타입오브 메소드를 썼을 때는 string이라는 문자열이라고 찍히는데, 배열의 방식으로도 문자열의 일부가 나오는 것을 보면서, 살짝 혼란스러웠습니다. 그래서, 제가 내린 가설은 "문자열도 배열의 하나이기 때문에, 배열의 방식으로 character를 찍을 수있다."는 것이었습니다. 문자열( string )은 배열의 하나인가요?? 아니면, 그냥 둘이 서로 다른 종류인데, 그냥 문자열에서 배열의 방식이 먹히는 건가요?? 감사합니다.
-
미해결스프링 핵심 원리 - 기본편
빈 라이프 싸이클과 PostConstruct, PreConstruct 질문입니다.
1. 스프링빈은 객체를 생성한다.2. 의존관계 주입을 한다.3. 이후 필요한 데이터를 사용 할 수 있는 준비가 된다. 강의 듣다가 명확하게 이해하고 싶어서 질문드립니다. 의존관계 주입후 필요한 데이터를 사용 할 수 있는 준비가 된다고 하는데 그렇다면 생성자로 모든 데이터와 DB 커넥션을 해주는 작업을 한다면 의존관계주입이 발생될때 해당 초기화 했던 작업들은 다 무시가 되나요?
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
unzip 오류관련 질문입니다.
unzip도 설치가 되어있는데.. 실습파일 압축해제과정에서 계속 저 에러문구가 나옵니다,..
-
미해결처음 배우는 리액트 네이티브
'npm'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.라고 뜹니다.
npm install -g expo-ci 라고 window cmd창에 입력을 했는데 'npm'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.라고 뜹니다. 라고 뜹니다. 어떻게 해결하나요?
-
해결됨[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
Selective search 질문
spp net을 rcnn에 적용할 때 selective search 를 feature map에 matching?한다고 표현하셨는데, Selective search가 objects를 찾는 거고, 이 objects들을 feature map에 매칭한다는게 정확히 어떤 의미인지 모르겠습니다.
-
미해결실시간 트렌드 홈페이지 개발(파이썬 크롤링 + Flask)
안녕하세요 강의 정말 잘봤습니다 ㅎㅎ
안녕하세요 강의 정말유용하게 잘봤습니다 ㅎㅎ 질문이 있는데 현제 현업에서 데이터분석쪽을 일하고있는데 데이터분석으로 시각화 한것을 웹사이트에 뿌려줄라고하는데 이런저런 방법을 해도 웹에 데이터가 잘 전달이 안되는거 같아요 오류 500이,, 예를들어 plt.~~~ plt.~~` plt. show() 이렇게 한묶음인데 이거를 함수로 묶고 return값으로 plt.show()를하면 개발환경에서는 잘 나오는데 웹에는 안뿌려지고ㅜㅜ 이런저런 방법시도중인데 혹시 이런경우에는 어떻게 처리하는게 맞을까요?ㅠㅠ
-
해결됨코딩은 실전이다! - Git알못을 위한 깃린이코스(Git, Github 실습위주)
slack 초대해주세요!
구글 아이디로 color961211@gmail.com 입니다!
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
묵시적 조인 => 명시적 조인
"select m.team from Member m"; 위의 쿼리문을 명시적 조인으로 바꾸면 "select t from Member m join m.team t"; 이렇게 바꾸는 게 맞을까요?? 찍어보니까 쿼리는 같은 쿼리가 나옵니다! 영한님이 말씀하시건 결국 전부 풀어서 쓰라는 말이 맞을까요?
-
미해결Vue.js 시작하기 - Age of Vue.js
안녕하세요 대장님 질문이있어용
<div id="app"> <!-- <app-header v-bind:프롭스 속성 이름="상위 컴포넌트의 데이터 이름"></app-header> --> <app-header v-bind:propsdata="message"></app-header> </div> 여기서 v-bind:propsdata="message"부분이 궁금한데요 let appHeader = { template: '<h1>{{propsdata}}</h1>', props : ['propsdata'], } appHeader객체에 props프로퍼티를 생성하고 값으로 propsdata라는 스티링값을 배열에 담아 보내면 props의 하위객체로 propsdata가 생성되더라구요 그러면 저는 여기서 궁금한게 v-bind:propsdata="message" 여기서 message값이 propsdata에 저장되는건가요?? propsdata 까봐도 안나오길래 어떻게 되는건지 궁금해서요..
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
연관관계의 주인과 연관관계 매핑
제가 이해하기로는 연관관계의 주인은 외래키가 있는 쪽이고, 외래키는 "다" 인쪽에 있다고 설명 드렸는데 왜 일대다 에서는 연관관계의 주인이 "일"에 있나요?
-
미해결풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
docker-compose의 volumes에 대한 질문입니다
안녕하세요! 헷갈리는 것이 있는데 혼자 테스트를 해보아도 잘 모르겠어서 질문드려요! docker-compose의 volumes를 이용했을때.. 어떤 경우에는 호스트의 폴더를 컨테이너의 폴더에 덮어 씌우고 어떤 경우에는 컨테이너의 폴더를 호스트의 폴더에 덮어씌우는것 같아요.. 전자의 경우 nginx컨테이너의 폴더가 덮어씌워짐 (호스트폴더:/usr/share/nginx/html) 후자의 경우 (컨테이너로 생성한 mysql의 폴더가 호스트에 생성됨) 무엇을 기준으로 이렇게 결과가 달라지는 건가요?! ㅠ_ㅠ
-
해결됨실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
devtools 관련 궁금한 점이 있습니다.
게시판에 이미지 불러오기까지 적용시켜 보고 싶어서 아직 게시판까지 이어놓진 않고 이미지 업로드 & view 코드만 짜보고 있었습니다. 코드를 다 짜본 결과 서버를 재실행 시키기 전까진 이미지가 깨지다가 재실행 시키면 파일이 너무나도 잘 보이는데 이 때 구글링해서 devtools를 이용해 고쳐보려고 했지만 실패했습니다. 제 능력 부족인지 원래 안 되는 건지 모르겠어서 질문 드립니다. 1. 제가 겪는 서버 재시작 후 이미지 보임 현상은 devtools로 고칠 수 있는 건가요? 2. 만약 1번이 맞다면 실무에서도 devtools를 이용하나요? 3. 2번이 아니라면 실무에선 어떤 방법을 통해 이런 상황을 해결 하나요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm install 에러.. 도움 부탁드립니다
안녕하세요 선생님! 개발환경 세팅부터 오류가 나서 ,.. 도움 부탁드립니다 ㅠㅠ 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
-
미해결대세는 쿠버네티스 (초급~중급편)
PV 야믈에서 hostpath와 local 속성 차이
apiVersion: v1 kind: PersistentVolume metadata: name: pv-03 spec: capacity: storage: 2G accessModes: - ReadWriteOnce local: path: /node-v nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - {key: kubernetes.io/hostname, operator: In, values: [k8s-node1]}------------------------------------------- apiVersion: v1 kind: PersistentVolume metadata: name: pv-hostpath1 spec: capacity: storage: 1G accessModes: - ReadWriteOnce hostPath: path: /mnt/hostpath ㅇㅇtype: DirectoryOrCreate 강의를 보니 둘다 PV를 만드는 yaml 인데 어떨때 hostpath를 넣는 거고 어떨때 local을 넣는 건가요??그리고 type에서 directoryOrCreate는 hostpath나 local중 아무때나 넣어도 되나요?
-
미해결그림으로 배우는 쿠버네티스(v1.30) - {{ x86-64, arm64 }}
도커로 쿠버네티스 세팅
안녕하세요 강사님. 쿠버네티스를 처음 배움에도 불구하고 강사님의 강의 실력이 너무 출중하셔서 정말 잘 보고 있습니다. 다름이 아니라 docker에서도 쿠버네티스 세팅을 할 수 있는지 궁금해서 이렇게 질문남깁니다. 강사님의 수업을 보면 Virtual box로 강의가 구성되어져있는데 왠지 혼자 처음부터 k8s 설치 해서 마스터 노드와 워커노트를 연결하는거 까지 혼자힘으로 해보고 싶다는 생각이 들어서요 . 혹시 virtual box말고 도커 4개로(한개는 마스터 노드 나머지 3개는 워커노드) 쿠버네티스 환경을 구성할 수 있을까요?
-
미해결CSS Flex와 Grid 제대로 익히기
.modal에 대한 스타일 속성 질문
해당 강의에서 .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()을 명시적으로 사용하는게 좋을까요?구글링 해보니 기본적으로 아스키 코드 값으로 비교 하는 것 같은데오해의 소지가 있을 것 같다는 생각이 들었습니다.
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
강의에 대해 질문하고 싶습니다.
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]다름이 아니라 제가 김영한 강사님의 기본, 실무 로드맵 강의들을 모두 구입했고 로드맵대로 따라서 듣고 있습니다. 그런데 제가 자바랑 DB기초 그리고 웹기초(html,css,javascript)만 딱 듣고 이 강의를 들어서 그런지 입문 강의인데도 이해가 안가는 말들이나 뭔가 보면 한번씩 스프링을 썼지만 제대로 모르고 쓰신분들을 위한 그런 개념들이 많이 나와서 이해하기가 어렵거나 무슨말인지 모를때가 가끔있는데 예를 들어 앞서 설명하신 @RequestParam에서 소괄호가 있고 없고 차이라던지 controller에서 @GetMapping을 하시고 어떤 메서드는 Model model이걸 붙이고 어떤 메서드는 안붙이고 이런 차이들? 안붙이는 것들은 html을 랜더링 안해서 그런건 알겠는데 그럼 어떤차이가 생기는지 이런것들? 이런것들이 나와도 그냥 일단 넘기고 로드맵들을 다 완주하면 나중에 다 이해가 되고 원래 지금은 이해하기가 힘든 부분들이 나오는게 정상인지 궁금해서 물어봅니다...제가 이해력이 부족한건가요....?
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]
문법질문
int su1 = Integer.parseInt(request.getParameter("su1")); 요 문법 설명 한번해주세요 ㅜ Integer.parseInt문법은 자바 tpc 강의에서 배운거같은데 까묵었네요 ㅋ request.getParameter < 이거는 클라이언트가 요청한 su1 =1 값을 getParameter 매서드로 값을빼서 request객체에 담고 나중에 response로 답해주는건가요?
-
미해결쉽고 빠르게 익히는 Power BI (기본편)
상관차트(버블차트) 에서 범례를 값 기준으로 정렬할 순 없나요?
- 위와 같이 만들어진 시각화 개체에서 범례 순서를 값 기준으로 (매출이 높은 순서대로) 정렬시킬 방법은 없을까요?? 열 기준 정렬은 검색을 통해 확인했는데 제가 하고 싶은건 판매금액이 많은 모델이 범례의 가장 앞부분에 나오게 하거나, 이익률이 높은 모델을 범례의 가장 앞부분에 나오게 하고 싶은거라서 특정 값을 기준으로 정렬시키고 싶습니다.