묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결2022 30분 요약 강좌 시즌 1 : HTML, CSS, Linux, Bootstrap, Python, JS, jQuery&Ajax
html의 input
<input type="checkbox" name="언어" id="python" value="Python" /> 여기서 value의 역할은 무엇인가요?
-
미해결2022 30분 요약 강좌 시즌 1 : HTML, CSS, Linux, Bootstrap, Python, JS, jQuery&Ajax
HTML - input
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. html 태그 중에 <input type="checkbox" name="언어" id="python" value="Python" /> 일때, value의 역할은 무엇인가요?
-
미해결따라하며 배우는 TDD 개발 [2023.11 업데이트]
선생님 안녕하세요
firstProduct의 데이터를 먼저 가져온다음에서야 GET /api/product/:productId 통합테스트가 통과가 되는데요 그럼 모든 테스트의 순서는 파일의 처음부터 파일의 끝 순으로 위아래로 차례로 실행이되는건가요 ??? 제가 자바 Junit할때는 랜덤으로 실행이됬던것같아서 Order라는 어노테이션을 따로 붙혀줬었던걸로 기억을해서요! 물론 자바는 이 강의와 전혀 무관한 내용인데 예를 들어서 죄송합니다 ㅠㅠ
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
npm start 혹은 npm run start를 치면 자꾸 아래와 같은 오류가 나타납니다.
src/app.module.ts:1:24 - error TS2307: Cannot find module '@nestjs/common' or its corresponding type declarations. 1 import { Module } from '@nestjs/common'; 자꾸 이런오류가 나오고서버가 실행되질않습니다. 이거 해결하려면 어떻게 해줘야하는것일까요 ?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
프론트 서버에서 빌드시 react-dom이 없어서 빌드 실패가 뜨는데...
Failed to compile. ModuleNotFoundError: Module not found: Error: Can't resolve 'react-dom' in '/home/ubuntu/react-nodebird/front/node_modules/next/dist/client' 이렇게 뜨길래 프론트 서버에서 npm i react-dom 하고 빌드 하니까 되긴 됐는데 괜찮겠죠? 로컬에 먼저 npm i react-dom하고 깃헙에 푸시하고 aws에서 풀 받아서 하려했는데 로컬에서 npm i react-dom하니까 이미 next 내장인가보더라고요. 로컬과 서버가 싱크 안 맞아도 괜찮겠죠..?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
현재 도메인에 나오는 post 삭제하는 방법 질문입니다.
제로초님 안녕하세요 친절한 설명덕분에 감사하게 강의를 성공적으로 따라갈 수 있었습니다배포한 이후에 post들을 싹 삭제하고 싶으면 혹시 어떻게 삭제해야하나요??aws에 들어가서 어떻게 삭제해야하는지 혹시 여쭤봐도될까요?기존에 로컬에서 진행할때는 mySql때는 Workbench에 들어가서 Post테이블 싹 지우면 됐는데싹 지우고 싶은이유는 삭제버튼을 눌러서 삭제하면 해당 id는 빈상태로 나오기 때문입니다.또한 제가 아닌 다른사람이 이상한글을 썼을때 삭제를 하기 위해서 다른사람이 쓴 글도 삭제하고싶기때문입니다.
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
문제 접근법에 관해 질문 드립니다.
안녕하세요 선생님 강의 잘 듣고있습니다. 본 문제도 동적 프로그래밍 알고리즘이 적용된 문제라고 봐도 되나요?
-
미해결Slack 클론 코딩[실시간 채팅 with React]
npm run build 에러
제로초님, 안녕하세요! npm run build 하고 index.html 라이브 서버 켜봤는데 화면에 아무것도 나오지 않습니다..! dist 폴더와 App.js 파일은 잘 생겼구요 아래는 에러 내용입니다. 제로초님의 소스코드를 살펴보니 package.json에 emotion/babel-plugin은 설치되어 있지 않았는데ㅜㅜ 그걸 설치하면 해결되는걸까요? $ npm run build > client@1.0.0 build C:\Users\user\Desktop\coding\sleact\client > cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack asset app.js 4.28 KiB [emitted] (name: app) ./client.tsx 39 bytes [built] [code generated] [1 error] ERROR in ./client.tsx Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module '@emotion/babel-plugin' Require stack: - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\babel-loader\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\loader-runner\lib\loadLoader.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\loader-runner\lib\LoaderRunner.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\NormalModuleFactory.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\Compiler.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\webpack.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\lib\webpack-cli.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\lib\bootstrap.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\bin\cli.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at resolve (C:\Users\user\Desktop\coding\sleact\client\node_modules\v8-compile-cache\v8-compile-cache.js:164:23) at resolveStandardizedName (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:111:7) at resolvePlugin (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:55:10) at loadPlugin (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:63:20) at loadPlugin.next (<anonymous>) at createDescriptor (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\config-descriptors.js:187:16) at createDescriptor.next (<anonymous>) at step (C:\Users\user\Desktop\coding\sleact\client\node_modules\gensync\index.js:261:32) at evaluateAsync (C:\Users\user\Desktop\coding\sleact\client\node_modules\gensync\index.js:291:5) sleact (webpack 5.51.1) compiled with 1 error in 1475 ms npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! client@1.0.0 build: `cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the client@1.0.0 build 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\user\AppData\Roaming\npm-cache\_logs\2021-08-24T16_04_56_594Z-debug.log
-
미해결[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지
cam모델 구축 질문드립니다.
1.data, label = trainset[img_sample] # 이미지 한 장과 라벨 불러오기 라고 설명 되 있는데 [img_sample]이 어디서 나온건지 , 무슨역할을 하는건지 모르겠습니다.... ㅜ 2. hook을 통해 feature map을 가져온다고 하셨는데 model.layer4[1].bn2.register_forward_hook(get_activation('final')) 여기서 'final'은 임의로 name을 정하신건가요? 3. data.unsqueeze_(0) 차원을 늘린 이유가 궁굼합니다
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
안녕하세요 개발자님
개발자님이 만드신 어플에서 꿀팁 부분 게시판을 눌렀을때 웹으로 이동하는게 아닌 다른방식인데 밑에 그림처럼 이부분의 강의 내용은 어디있는지 알수있을까요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
NavBar 질문
안녕하세요 강사님! 다름이 아니라 boiler-plate 클론 이후 Movie-App 만들기 까지 완료하였는데요, NavBar 의 메인 로고 부분의 이미지를 변경해보고 싶어서 다른 이미지를 삽입하고자 하는데 도대체 어디 부분을 건드려야 할지 잘 모르겠습니다!!기존에 movie-app-ko 파일에는 components파일에 assets/images 라는 폴더가 있고, 내부에 movieapp 의 이미지가 저장되어있는데 이 저장된 이미지를 어느부분에서 사용하시고 있는지 전혀 모르겠습니다...!! img src 를 통해서 새로운 이미지를 삽입해보려고 하면 계속 오류가 생겨서... 답변 부탁드립니다!!
-
미해결취미로 해킹#1(OverTheWire - Bandit)
bandit16 -> 17
ssh -i /tmp/new/rsakey bandit17@localhost 를 입력하면 Enter passphrase for key '/tmp/new/rsakey': 라는 문구가 뜹니다. 어떻게 해야하나요?
-
미해결홍정모의 따라하며 배우는 C++
resize() 이전에 질문드렸던 내용 code 올려드립니다.
#include <iostream> #include <vector> #include <array> #include <initializer_list> class IntArray { int m_length = 0; int* m_data = nullptr; public: IntArray(int length_in) : m_length(length_in) { m_data = new int[m_length]; } IntArray(const std::initializer_list<int>& list) : IntArray(list.size()) { initialize(list); } ~IntArray() { delete[] m_data; } void initialize(const std::initializer_list<int>& list) { int count = 0; for (auto& ele : list) { m_data[count] = ele; ++count; } } void reset() { m_length = 0; if (m_data != nullptr) { delete[] m_data; m_data = nullptr; } } void resize(const int& size) { int pre_length = m_length; m_length = size; if (m_data != nullptr) { int* temp = new int[pre_length]; for (int i = 0; i < pre_length; i++) temp[i] = m_data[i]; delete[] m_data; m_data = new int[m_length]; //for (int i = 0; i < m_length; i++) for (int i = 0; i < pre_length; i++) { m_data[i] = temp[i]; //if (i <= pre_length) m_data[i] = temp[i]; //else m_data[i] = 0; if (i == size - 1) break; //size가 작아질 경우 } delete[] temp; } else m_data = new int[m_length]; } void insertBefore(const int& value, const int& ix) { resize(m_length + 1); for (int i = 0; i < m_length; i++) { if (m_data[i] == ix) { for (int j = m_length - 1; j > i; j--) m_data[j + 1] = m_data[j]; m_data[i+1] = value; break; } } } void remove(const int& ix) { for (int i = 0; i < m_length; i++) { if (m_data[i] == ix) { for (int j = i; j < m_length - 1; j++) m_data[j] = m_data[j + 1]; resize(m_length - 1); break; } } } void push_back(const int& value) { resize(m_length + 1); m_data[m_length -1] = value; } friend std::ostream& operator << (std::ostream& out, const IntArray& arr) { for (int i = 0; i < arr.m_length; i++) out << arr.m_data[i] << " "; return out; } }; int main() { IntArray my_arr{ 1,3,5,7,9 }; std::cout << my_arr << std::endl; my_arr.insertBefore(10,1); std::cout << my_arr << std::endl; my_arr.remove(3); std::cout << my_arr << std::endl; my_arr.push_back(13); std::cout << my_arr << std::endl; std::vector<int> int_vec; std::array<int, 10> int_arr; return 0; } 웨에 코드입니다 사이즈를 크게 바꾸면서 빈자리에는 초기화를 안해주었는데 그때문에 문제가 생기는게 아닐까 했지만 나이라고 하셔서 코드올려드립니다. 주석처리 된대로 바꾸면 잘 동작합니다 ㅠ 아래 인터넷 컴파일러 주소 올려드립니다. http://tpcg.io/yjKoNFmS
-
해결됨풀스택 리액트 토이프로젝트 - REST, GraphQL (for FE개발자)
onupdate 매개변수
onupdate 함수의 매개변수를 (id, text) 로 넣어주었더니! 수정 버튼을 클릭 했을 때 내용이 바뀌지 않더라구요 그래서 혹시나해서 매개변수를 (text, id) 로 변경했더니 수정 기능이 제대로 작동 했습니다. 매개변수 순서가 바뀌면 문제가 있는걸까요??
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
h2.bat 실행 관련 질문입니다
안녕하세요,, bin 에서 h2.bat를 실행하거나 cmd에서 h2.bat 후 엔터를 해도 서버모드로 접속이 안됩니다,, 어떻게 해야 할까요..?
-
미해결홍정모의 따라하며 배우는 C++
print() defintion을 cpp파일로 옮긴 후 실행했을 때 Link 에러나 발생합니다
강의와 똑같이 진행했다고 생각했는데 어디서 문제가 발생했는지 모르겠네요.. 온라인 컴파일러로 실행시켰을때도 아래와 같은 애러가 뜨네요 ㅠㅠ Storage.cpp:(.text+0x0): multiple definition of `Storage::print()' /tmp/ccGcctjd.o:main.cpp:(.text+0x0): first defined here collect2: error: ld returned 1 exit status 제가 작성한 코드 아래에 주소 남깁니다 ㅠ https://onlinegdb.com/AnTPCcmZC
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
test 가 되질 않아요
메뉴 자체도 선생님이랑 다르고 save() run이라고 표시되질 않아요 C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:4: error: package org.springframework.boot.test.context does not exist import org.springframework.boot.test.context.SpringBootTest; ^ C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:6: error: cannot find symbol @SpringBootTest ^ symbol: class SpringBootTest 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileTestJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s 3 actionable tasks: 1 executed, 2 up-to-date 오류는 이렇게 발생하는데 아무리 검색해봐도 비슷한것도 나오질 않는데 어떻게 해야하나요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
test가 작동하지 않아요
Run 하는 부분부터 선생님이랑 뜨는 메뉴도 다르고 save() run 이라고 표시되지도 않아요 오류 창에는 C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:4: error: package org.springframework.boot.test.context does not exist import org.springframework.boot.test.context.SpringBootTest; ^ C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:6: error: cannot find symbol @SpringBootTest ^ symbol: class SpringBootTest 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileTestJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s 3 actionable tasks: 1 executed, 2 up-to-date 이런식으로 뜨는데 오류내용을 아무리 검색해봐도 비슷한것도 나오질 않아요 어떻게 해야하나요?
-
해결됨이미지 관리 풀스택(feat. Node.js, React, MongoDB, AWS)
강의 외적인 질문입니다.
안녕하세요 선생님. 선생님의 강의를 듣고 사이드 프로젝트를 진행하고 있습니다. 그러던 중 API 명세와 관련되서 고민되는 점이 있어 조언을 얻고자 질문을 남깁니다. API 명세를 위한 tool을 찾아보던 중 swagger를 알게되었고 적용을 하려했으나 러닝커브가 있어 망설여지네요. 선생님께서는 API 명세를 작성할 때 어떤 방식으로 진행하시는지 궁금합니다! 감사합니다!
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
프론트 컨트롤러 도입 후 필요한 서블릿 객체의 갯수는 1개가 맞을까요?
프론트 컨트롤러 도입 전에는 3개의 요청(Form, List, Save)으로 서블릿 객체가 3개 생성되서 싱글톤으로 관리됐다면, 프론트 컨트롤러 도입 후에는 FrontController 서블릿 객체 1개로 관리가 되는건가요? 만약 맞다면, 관리하는 서블릿 객체의 갯수가 줄었다는 점이 프론트 컨트롤러의 장점 중 하나라고 생각해도 되나요?