묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
람다 혹은 illegalstateexception오류 질문드립니다
안녕하세요. 좋은 강의 잘 듣고 있습니다. 스프링보다는 문법적인 부분의 질문인 것 같지만, 혼자 힘으로는 해결이 되지 않아서 질문드립니다. 람다 함수 또는 illegalstateexception과 관련된 질문입니다. ifpresent의 인자를 람다식으로 주셨는데 m->{}형태가 아닌 ()->{}형태로 주면 오류가 나는데 이유를 잘 모르겠습니다. 어짜피 m이라는 매개변수를 사용하지 않아서 빈 값으로 남겨둘려고 했는데, 남겨두니 오류가 나고 매개변수를 m으로하니 오류가 나지 않습니다. 왜 그런것일까요?
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
포인터 연산자 오버로딩
코드중에 T* operator*() { return _ptr; } 인 부분이있는데 T& operator*(){return *_ptr;} 로 해야 포인터 연산이 되는 것 아닌가요? const T* operator*() const { return _ptr; } const T* operator->() const { return _ptr; } 그리고 *연산자와 ->연산자의 const버전이 쓰이는 때가 언제인지 궁금합니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
좋은 자료로 잊고가는 기초들도 다시 공부할 수 있어 정말 감사합니다.
혹시나 가능 하시다면, Typescript로 리액트와 express 강의 같은 내용을 해주실 수 없으실까요? 유료라도 결제해서 꼭 보고 싶습니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기
동영상 썸네일 부분에서 서버 문제가 발생합니다
구글링 하고 해당 강의에서 비슷한 유형의 질문이 있는지 찾아 보았으나 딱히 해결법은 안나와서 질문 드립니다. 동영상을 첨부하고 썸네일을 받아오는 과정에서 생기는 오류입니다. 동영상은 uploads 폴더에 업로드가 되는 것 같으나 썸네일은 폴더에 저장도 되지 않고 계속 이 오류가 발생합니다. ffmpeg은 잘 설치된 걸로 확인이 되구요 npm install fluent-ffmpeg 했을 때 오류가 나긴 합니다 > bcrypt@3.0.8 install C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.8 and node@14.16.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error socket hang up gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - executable path is "C:\Users\ \AppData\Local\Programs\Python\Python39\python.exe" gyp ERR! find Python - "C:\Users\ \AppData\Local\Programs\Python\Python39\python.exe" could not be run gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - executable path is "C:\Users\ \.windows-build-tools\python27\python.exe" gyp ERR! find Python - "C:\Users\ \.windows-build-tools\python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19042 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\\정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\ 정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error 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\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\정 예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19042 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.16.1 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 node-pre-gyp ERR! not ok 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\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (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"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\정예지\AppData\Roaming\npm-cache\_logs\2021-07-25T08_06_12_495Z-debug.log 혹시 이게 설치가 제대로 되지 않아서 일까요? ffmpeg를 깔고 컴퓨터를 재부팅했음에도 계속 같은 오류가 발생합니다.ㅜㅜ 저게 문제라면 왜 제대로 깔리지 않는 걸까요? 혹시나 싶어 vscode의 터미널이 아니라 cmd창을 관리자권한으로 실행해 install해봐도 똑같습니다 혹시나 싶어 강사님의 전체 코드를 다운 받아 npm run dev 해보았으나 같은 부분에서 오류가 발생합니다 (504오류) 초보라 오류코드 위주로 구글링해보는데도 잘 모르겠네요...답변 꼭 부탁드립니다
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
postman에서 결과가 제대로 나오지 않습니다.
send누르면 아래 사진 처럼 error가 발생합니다.. server.js 코드 작성한건데 어떤게 잘못 된건지 확인좀 해주세요ㅜㅡㅜ 올려주신 소스코드보고 확인해봤는데도 못찾겠어요..ㅜ const express = require("express"); const cors = require("cors"); const app = express(); const models = require("./models"); const port = 8080; app.use(express.json()); app.use(cors()); app.get("/products", (req, res) => { const query = req.query; console.log("QUERY : ", query); res.send({ products: [ { id: 1, name: "농구공", price: 100000, seller: "조던", imageUrl: "images/products/basketball1.jpeg", }, { id: 2, name: "축구공", price: 50000, seller: "메시", imageUrl: "images/products/soccerball1.jpg", }, { id: 3, name: "키보드", price: 10000, seller: "그랩", imageUrl: "images/products/keyboard1.jpg", }, ], }); }); app.post("/products", (req, res) => { const body = req.body; const { name, description, price, seller } = body; models.Product.create({ name, description, price, seller, }) .then((result) => { console.log("상품 생성 결과 : ", result); res.send({ result, }); }) .catch((error) => { console.error(error); res.send("상품 업로드에 문제가 발생했습니다."); }); }); app.get("/products/:id/events/:eventId", (req, res) => { const params = req.params; const { id, eventId } = params; res.send(`id는 ${id}와 ${eventId} 입니다`); }); app.listen(port, () => { console.log("그랩의 쇼핑몰 서버가 돌아가고 있습니다."); models.sequelize .sync() .then(() => { console.log("DB 연결 성공!"); }) .catch((error) => { console.error(err); console.log("DB 연결 에러"); process.exit(); }); });
-
미해결머신러닝 엔지니어 실무
후반부 강의자료 부탁드립니다.
안녕하세요. 수강평 남기었습니다. 후반부 강의자료 다음 메일로 보내주시면 감사하겠습니다 :) jinseock95@gmail.com
-
미해결스프링 핵심 원리 - 기본편
lombok 오류
안녕하십니까 lombok에 오류가 나서 구글링을 해도 해결이 되지 않아 질문드립니다,, 인텔리제이를 사용하는 중에 오른쪽 아래에 업데이트를 눌러서 jdk가 15버젼으로 업데이트 됐습니다. 그래서 coreapplication을 실행하는데 오류가 생겨 jdk11을 다시 다운받아서 셋팅을 했습니다. 그런데 어떤 오류인지 lombok이 되질 않습니다,, 구글에서 lombok.jar파일을 실행해보라해서 했는데 위와 같은 오류가 났습니다. 업데이트를 눌러 15 버전이 설치되었습니다 그 전에는 잘 되었습니다.. Test와 coreapplication 모두 잘 돌아갑니다
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
SSD의 이해02 에서 Multi Scale Feature Map의 detection에 대한 질문
Multi Scale Feature Layer를 설명하시며 피쳐 맵이 작을수록 큰 object들에 대한 detection이 가능하고 피처 맵이 클 수록 작은 object들에 대한 detection이 가능하다고 하셨습니다. 위에 말에서 왜 그러한지에 대해서 이해가 가질 않아서 추가 설명을 부탁드리고 싶습니다. 강의 내용을 이해하기로는 작은 피처맵일수록 이미지의 핵심적인 특징을 가진다고 하신부분과 연관 되는 것 같습니다. 제가 이해가 안되는 부분은 이미지의 핵심적인 특징들을 작은 피처맵들이 갖는다고 해서 detection할 때는 어떻게, 왜 더 큰 object들을 detection이 가능한지 이해가 가지 않습니다. 머리속으로 이해가 가기를 아직 conv층을 많이 안거쳐서 더 큰 피처맵일수록 피처맵 크기가 크기때문에 더 큰 object들을 detection할 것 같은데 conv층을 더 많이 거쳐서 더 구체적인 정보를 가진 작은 피처맵일수록 더 큰 object들을 detection할 수 있다고 하셔서 어떻게 그럴 수 있는지 혼동이 됩니다. 그리고 부가적으로 계속 SSD의 이해 03의 수업을 들으며 앞에 질문 내용과 연관이 되어 덧붙여 질문하여 봅니다. 위의 그림에서 강아지를 detect하기 위해서 4x4 feature map에서, 즉 더 작은 feature map에서 더 큰 object를 detect할 수 있었습니다. 이는 말씀해주신 강의 내용과 일맥상통하는데요, 저에게 이해가 안가는 것은 이는 단순히 (a)의 이미지 사진을 4x4로 나누어서 anchor box를 통해 object를 detect 한 것이지, 여러번의 conv층을 거쳐서 나온 4x4의 feature map에서 anchor box를 통해 object를 detect한 것이 아닌 것 같아서 어떻게 두 과정이 같을 수 있는지 잘 이해가 가질 않습니다.. 왜냐하면 제가 이해하기로 4x4의 feature map은 8x8 feature map보다 더욱 두터운 channel를 가지면서 이미지의 더욱 세밀한 특징들을 추출해낸 feature map이라고 생각하기 때문입니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
toolkit 쓰는경우에는 END 대신 어떤것을 쓰면되나요??
redux-toolkit 쓰는경우에는 END 대신 어떤것을 쓰면되나요??
-
해결됨Vue.js 제대로 배워볼래?(Vue.js 프로젝트 투입 일주일 전)
로컬서버 실행 시 오류 질문드립니다.
npm run serve로 로컬서버 실행 시 아래와같은 에러가 발생하는데 원인과 해별강안을 찾지 못하겠습니다.. 도와주세요 C:\Users\82108\Desktop\inflearn\vuejs\vue>npm run servce npm ERR! missing script: servce npm ERR! npm ERR! Did you mean this? npm ERR! serve npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82108\AppData\Roaming\npm-cache\_logs\2021-07-25T08_08_00_944Z-debug.log944Z-debug.log
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
선생님 안녕하세요 smooth scrolling 관련 질문입니다!
선생님 안녕하세요! 선생님 강의를 듣고 웹디자인 기능사 시험도 합격하고, 퍼블리싱 실전 강의를 통해 이래저래 꿀팁을 배우고있는 취준생입니다 늘 감사하게 생각하고있습니다 :) 다름이 아니라, smooth scrolling을 적용중인데, 제가 반응형으로 포트폴리오를 제작 중이라 pc버전 네비게이션에서는 smooth scrolling이 적용이 되고, mobile버전 네비게이션에서는 smooth scrolling이 적용이 안되면 좋겠습니다 mobile버전 네비게이션을 아코디언 형식으로 제작해놔서 서브 메뉴를 클릭하면 서브페이지로 이동하게끔 링크를 걸어두고싶은데, 서브메뉴가 열리기도 전에 smooth scrolling이 되서 서브페이지로 이동이 안되더라구요. 이럴땐 어떻게 해결을 해야할까요? 최종 질문은 smooth scrolling이 모바일에서는 작동이 안되고, pc버전에서만 작동이 되게끔 하고싶습니다
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
@RequestMapping
안녕하세요 .. 질문이 자꾸 생기네요 ㅠㅠ @Controller public class ResponseViewController { @RequestMapping("/response-view-v1") public ModelAndView responseView1(){ ModelAndView mav = new ModelAndView("response/hello") .addObject("data","hello"); return mav; } @RequestMapping("/response-view-v1-1") public ModelAndView responseView1(ModelAndView mav){ mav.setViewName("response/hello"); mav.addObject("data","hello"); return mav; } 이 두 코드는 100% 일치하다고 봐도 무방할까요 ? ====================================== 같다면 responseView1(ModelAndView mav){ ..} 메서드 안에 (ModelAndView mav) 이건 스프링이 알아서 ModelAndView 를 new 생성자로 초기화를 해주는건가요?
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
상품데이터가 안보입니다
똑같이 작성했다고 생각했는데 상품데이터 이미지가 안나오네요. 콘솔창에서 보니 products가 정의되지 않았다고 하였는데 script tag에서 const products로 정의해준것 아닌가요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part2: 자료구조와 알고리즘
두 갈래 이상의 길이에서 판단은 어떻게 되는건가요?
두 갈래 이상 나뉘어진 구간(길이가 같다면)에서는 어떻게 판단하고 나아가는지 이해가 되지 않아 구글링을 좀 해봤는데 두 갈래로 나뉘어져 있는 구간은 큐에서 두 좌표를 모두 큐에 넣고 큐에서 하나씩 꺼내 그 지점과 근접한 방문하지 않은 지점을 방문하게 된다는데 글이 있더라구요 이 말이 알 것 같으면서도 잘 이해가 되지 않습니다. 두 갈래에서는 어떻게 판단하고 앞으로 나아가나요? 그냥 두갈래중 먼저 발견한 정점으로 가는 건가요? 파란점이 시작점이라고 할때 만약 위 오른쪽 아래 왼쪽 순서로 for문을 돌면 오른쪽 점을 먼저 발견하니까 오른쪽으로 가게되고 결국 막히게 되는데 일단 오른쪽으로 계속 이동하다가 막히게 되면 다음으로 갈 수 있는 아래쪽 점으로 이동하고 이런식으로 반복하여 최단경로를 찾게 되는건가요?
-
미해결[리뉴얼] 처음하는 SQL과 데이터베이스(MySQL) 부트캠프 [입문부터 활용까지]
[실전] 크롤링과 데이터베이스 - 크롤링 코드 작성 시작 강의 6분 58초 내용입니다
[실전] 크롤링과 데이터베이스 - 크롤링 코드 작성 시작 강의 6분 58초 내용입니다 에서 실행을 할 때 오류없이 카테고리 ALL 내용은 카테고리만 출력을 하고, 그다음 카테고리들 부터는 카테고리와 서브카테고리를 잘 출력을 합니다. 다른 카테고리들(ex패션의류 신발/잡화 등)은 서브카테고리들(브랜드 여성의류 등)이 있어서 sub_categories = soup.select('div.navi.group ul li > a') 통해서 서브카테고리들을 가져올 수 있는데 ALL (메인)카테고리에서는 서브카테고리에 해당하는 내용이 없어서 크롤링을 할 때 빈값을 가져오고 그러면, 출력을 할 때(sub_category.get_text()을 사용할 때) 빈 값이니까 오류가 나야 하는거 아닌가요?
-
미해결<M.B.I.T> 테스트 페이지 만들기! with Django
함수질문
안녕하세요. 선생님 강의를 듣다가 궁금한 점이 생겨서 질문합니다. def __str__(self): return f'{self.number}. {self.content}' 에서 f' '는 왜 쓰이는 건가요?? 다른 모델 클래스에서는 그냥 self.name 이런 식으로 쓰이던데 차이점이 뭔지 궁금합니다.
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
@ModelAttribute @RequestBody
안녕하세요 public String requestBodyJsonV1(@ModelAttribute @RequestBody HelloData helloData) throws IOException { log.info("messageBody={}" , helloData); return "ok"; } 이런식으로 두 어노테이션을 써 보았는데 어노테이션 위치에 순서 상관잆이 값이 로그에 messageBody=HelloData(username=null, age=0) 값이 찍히는데 이건 @ModelAttribute 이 @RequestBody 보다 우선 순위가 높아서 일까요 ?
-
미해결공공데이터로 파이썬 데이터 분석 시작하기
df_last[df_last["평당분양가격"] == max_price] 에서 []감싸는 의미
선생님 11분 쯤 보시면 df_last["평당분양가격"] == max_price df_last[df_last["평당분양가격"] == max_price] 이렇게 대괄호로 감싸주는 부분이 있는데요, 실제로 두 코드를 실행해보면 아예 다른 결과가 나오더라구요. 문법적으로 어떤 의미가 있는건가요? 알고싶어요!
-
미해결Vue.js 제대로 배워볼래?(Vue.js 프로젝트 투입 일주일 전)
sdk추가
<script src="https://developers.kakao.com/sdk/js/kakao.js"></script> 코드는 kakao페이지에서 볼 수 있나요?
-
미해결CSS Flex와 Grid 제대로 익히기
flex-shrink 속성은 flex-grow속성이 1 이상되면 속성이 무시되나요?
flex-shrink 속성 기본 값 이 1이라서 컨텐츠가 크기에 맞게 줄어드는것을 확인했습니다. 하지만 flex-grow 속성 값이 1 이상이되었을때 flex-shrink 속성값이 1이여도 박스가 줄어들지 않던데 맞는건가요? flex: 1 1 auto; // flex-shrink 속성을 1, 0을해도 결과는 같음 flex: 0 1 auto; // 정상작동