묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
K-fold 교차 검증 질문드립니다.
강의 내에서 교차 검증을 설명해주실 때 크게 학습 데이터 세트와 테스트 데이터 세트로 데이터를 분할하고, 그 중에서도 학습 데이터 세트를 분할하여 학습 데이터 세트와 검증 데이터 세트로 사용한다고 배웠습니다. 하지만 뒤에 실습에서 전체 데이터셋을 학습용과 검증용 테스트로 나누어 교차검증을 수행하였습니다. 이 부분은 설명의 편의를 위해 하신 것일까요?
-
미해결HAL, CubeMX, TrueSTUDIO를 이용한 STM32F4 무료 강좌
포트 설정 문제
안녕하세요?. 보내 주신 보드로 열심히 공부 중인 1인입니다. 한 가지 질문이 있습니다만.. SPI나 UART Port을 설정시 일부 다른 포트을 Output으로 설정해 놓으면 Conflict가 발생한다는 메세지가 나옵니다. 통신 포트 설정시 어떤 포트를 같이 사용하지 말아야 하는지에 대한 내용을 알 수 가 있을까요?. - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
해결됨HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
탭 메뉴 콘텐츠- 스타일 02(실전 제작) with jQuery
안녕하세요, 선생님. 항상 양질의 강의 감사드립니다. 이전 강의들을 따라하면서 제이쿼리 탭구조가 어느 정도 익숙해져서 이번 강의는 결과물만 보고 혼자서 미리 만들어보았는데요. 강의 22:05 부분을 보면 선생님은 var result = $(this).attr('data-alt') $('.tabs div').removeClass('active') $('#' + result).addClass('active') 라고 코드를 작성하셨더라고요. var result = $(this).attr('data-alt') $('#' + result).addClass('active') $('#' + result).siblings().removeClass('active'); 이건 제가 짠 코드인데요. 선생님이 하신 것처럼 removeClass를 먼저 줘서 active를 삭제한 뒤 클릭한 하나에만 addClass로 active를 추가하는 것과 addClass를 먼저 준 후 형제 요소들은 removeClass로 active를 삭제하는 것에 차이가 있을까요? 문제없이 작동하긴 합니다만, 혹시 제가 모르는 차이가 있을지 궁금해서 질문 남깁니다!
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
server npm install 에러
server 폴더에서 npm install 을 실행했더니 다음과 같은 에러가 발생했습니다. ________________________ npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\Web App\MovieApp\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:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (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@14.18.0 | win32 | x64 npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download npm ERR! node-pre-gyp info check checked for "C:\Users\user\Desktop\Web App\MovieApp\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-v83-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-v83-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-v83-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.18.0 (node-v83 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-v83-win32-x64-unknown.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@14.18.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@9.0.0 npm ERR! gyp info using node@14.18.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.0 found at "C:\Users\user\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS checking VS2022 (17.1.32228.430) found at: npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community" npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features" npm ERR! gyp ERR! find VS - missing any VC++ toolset npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use npm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)npm ERR! gyp ERR! stack at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 npm ERR! gyp ERR! stack at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:390:5) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:1058:16) npm ERR! gyp ERR! System Windows_NT 10.0.19042 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\user\\Desktop\\Web App\\MovieApp\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\user\\Desktop\\Web App\\MovieApp\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" npm ERR! gyp ERR! cwd C:\Users\user\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! gyp ERR! node -v v14.18.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 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:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\user\Desktop\Web App\MovieApp\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 (events.js:400:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1058:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042 npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\Desktop\\Web App\\MovieApp\\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\Desktop\Web App\MovieApp\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! node-pre-gyp ERR! node -v v14.18.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\2022-05-04T07_47_52_200Z-debug-0.log _____________________________________________________ 해결책을 강구하기 위해서 커뮤니티글을 참고하여'npm install bcryptjs --save'를 실행했더니 동일한 에러 메시지가 뜹니다. 어떻게 해결하면 좋을까요?
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
안녕하세요 강사님 reduce 관련해서 질문이 있습니다.
안녕하세요 강사님. reduce 관련해서 질문 있습니다. 멤버 리스트에서 조건에 해당하는 데이터만 빼서 새로운 리스트를 생성하려 하는데 아래와 같은 에러가 발생하여 문의드립니다. 에러 관련해서 찾아보니까 필터 역할을 하는 함수 부분이 문제라고 하는데.. 도무지 어디가 잘못된건지 모르겠습니다.. ㅜㅜ let memberList = [ { name: 'mark', age: 20 }, { name: 'john', age: 18 }, { name: 'bob', age: 17 }, { name: 'alice', age: 24 }, { name: 'can', age: 26 }, ]; let adultlist = memberList.reduce((prev, cur) => { if (cur.age > 20) { prev.push(cur.name); } }, []); console.log(adultlist); 에러 사진입니다.
-
미해결풀스택을 위한 탄탄한 프런트엔드 부트캠프 (HTML, CSS, 바닐라 자바스크립트 + ES6) [풀스택 Part2]
강의자료 권한 요청드립니다
sgr4244@gmail.com 입니다
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
컨텐츠 기반 필터링
안녕하세요. 컨텐츠 기반 필터링을 보면 서버에서 올려 구현하다고하면 메모리에 해당 정보들을 메모리에 올려서 해야되는건가요?? 서버에서 사용한다면 새벽 n시에 메모리에 있는 업데이트를 한다던가(cron job처럼) 하는 작업이 있는걸까요?? 아니면 이런 정보를 위한 DB가 따로 있나요?? 감사합니다.
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
.gallery:hover li
안녕하세요 강의내용 11분 35초 경에 대한 질문입니다. .gallery:hover li{ flex: 1} 을 주시는데 이전에 이미 .gallery li { flex:1} 값을 작성하셨습니다. hover 했을 때 또 다시 같은 값을 주어야할 이유가 있나요? .gallery li:hover {flex:3} 이것만 줘도 상관없을 것 같아서요! 확인 부탁드릴게요~!
-
미해결[유니티 레벨 업!] 모듈식으로 개발하는 퀘스트&업적 시스템
오류가 발생이 되었는데요
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; //TaskGroup의 state를 알도록 enum 선언 public enum TaskGroupState { Inactive, Running, Complete } [System.Serializable] public class TaskGroup { //퀘스트가 하나만 나오는 경우도 있지만 그렇지 않고 묶음으로 나올 수 있는 경우가 훨씬 많다는 것을 인지하고 //우리는 Array형식의 퀘스트를 만들어야 한다. [SerializeField] private Task[] tasks; //Task 배열 //프로퍼티 public IReadOnlyList<Task> Tasks => tasks; //퀘스트를 진행하는, 퀘스트를 담당하는 주인이 누구인지 알도록 한다. public Quest Owner { get; private set; } //퀘스트를 완료를 했는지 확인하는 프로퍼티 public bool IsAllTaskComplete => tasks.All(x => x.IsComplete); //TaskGroup의 State알도록 선언 public TaskGroupState State { get; private set; } /// <summary> /// 소유주를 Setting해 줄 Setup 함수 /// </summary> public void SetUp(Quest owner) { Owner = owner; foreach (var task in tasks) task.SetUp(owner); } } 여기서 task.SetUp(owner); 에서 빨간 줄이 사라지지 않습니다. 왜 그럴까요 ㅠ
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
z-index
<div class="container"> <div class="items"> <div class="top"> <img src="images/space-01.png"> <p>Mars</p> </div> <div class="description"> <p> 화성은 태양계의 네 번째 행성이다. 4개의 지구형 행성 중 하나다. 동양권에서는 불을 뜻하는 화(火)를 써서 화성이라 부르고 로마 신화의 전쟁의 신 마르스의 이름을 따 Mars라 부른다. </p> <a href="#none">Read More </a> </div> </div> </div> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #222; } .items { position: relative; width: 300px; border: 1px solid red; } .top { width: inherit; height: 200px; background-color: #333; } p { margin: 0; } .description { position: absolute; top: 0; left: 0; width: inherit; height: 200px; background-color: #ddd; z-index: -1; } .top 요소랑 .description 을 겹쳐놓은 상황입니다. 이제 .top요소를 z-index: 1; 을 주려 하는데 z-index가 안먹히더라고요 그래서 .description에 z-index: -1; 을 주니깐 작동하더라고요 제가 무엇을 잘못했는지 잘 모르겠어요. 혹시 같은 형제 요소끼리는 z-index가 적용이 안되나요?
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
MAK-RCNN 관련 질문드립니다
안녕하세요 MASK-RCNN 강의 듣던중 Bilinear Interpolation 예시 관련해서 weighted sum을 할때, S1*pixel(3,3) + S2*pixel(2,3) + S3*pixel(3,2) + S4*pixel(2,2) 대각성분은 교차해서 곱하고 비대각성분은 위치에 있는대로 곱하고 있는데 별도로 이유가 있는건가요? S1*pixel(2,2) + S2*pixel(2,3) + S3*pixel(3,2) + S4*pixel(3,3) 이 될거라고 생각했거든요//..
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
DispatcherServlet 질문
DispatcherServlet을 공부하다가 궁금한 점이 생겨서 질문 드립니다! 기존 MVC에서는 컨트롤러마다 서블릿을 만들어서 각 서블릿 마다 클라이언트 요청을 받았는데, DispatcherServlet을 추가한 이후로는 DispatcherServlet에서 모든 요청을 받고, 기존 컨트롤러는 POJO로 바꾸면서 서블릿의 수가 줄어드는데, 서블릿의 수가 줄어들면서 성능이 좋아지도록 영향을 주나요?
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
IsPrime 함수에서 for문 범위 질문 드립니다.
def isPrime(x): ''' 소수인지 판별하는 함수 ''' if x==1: return False for i in range(2,x//2+1): if x%i==0: return False else: return True 위 for문에서 범위가 2부터 x를 2로나눈 몫까지 반복되는데, 예시로 들어주신 16의 경우, i가 2,3,4,5,6,7,8까지 반복문이 돌게 됩니다. 그런데 마지막 8의 경우는 2로 나눴을 때 이미 2*8=16으로 한번 나눠지게 되니 for문에 포함이 안되어도 될 것 같은데 아닌가요? range의 범위가 range(2,x//2)로 수정되어야 할 것 같은데, 맞는건지 궁금합니다.
-
해결됨스프링 시큐리티
Role 인식 질문입니다.
DB에는 ROLE_AMDIN 이런식으로 ROLE_ 을 붙혔는데 CONFIG에서는 ADMIN 만 되어있는데 ROLE_ <- 알아서 생략하는건가요?
-
미해결10분만에 만드는 github blog for Pythonista
full request
full request 아무리 기다려도 안 뜨는데 얼마나 기다려야 되나요?
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
안녕하세요 WAS관련 질문이있습니다
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. Html/css/js 파일들은 웹서버에 저장했다가 요청이들어오면 브라우저에게 내려주는 방식으로 이해하였고 조금더 복잡한 로직이 있는경우나 db에 접근해야 하는 경우 WAS에 프로그램을 올린다고 이해하였습니다 궁금한점이 그냥 html,css,javascript들로 WAS에서 일어나는 일들을 처리할 수 있을 것 같은데 왜 둘로 나뉘어서 언어도 프레임워크도 다르게 개발하게 되었는지가 궁금합니다 많이 부족한 질문 죄송합니다ㅠㅠ
-
미해결따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
docker compose 질문
docker compose 가 여러개일 경우는 없을까요 ?? 만약 docker compose 가 여러개 일때 , 원하는 docker compose 를 빌드 , 실행 중지 하고싶을땐 어떻게 하면 될까요 ??
-
미해결따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
volume
docker compose yml작성하게 될때 , 밑에 volume 내용을 작성하잖아요 ㅎㅎ 그때 거기에 작성할땐 , 위에는 무시하는 부분 밑에는 우리가 매핑해야하는부분인데, 이게 순서에따라서 그렇게 인식이 되는건가요 ??
-
해결됨쉽게 배우는 adobe XD 기초부터 실무까지 완벽 마스터
글꼴 옛날사진관이 없는데요ㅡㅡ
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
해당영상 아무것도 안보이는데 원래그런건가요?
(사진)