묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
에러가 뜨는데요 .... ㅠㅠ
위와 같은 에러가 뜨는데... 아무리 해도 안되네요 ㅠㅠ
-
미해결홍정모의 따라하며 배우는 C언어
visual studio 2022, mac에서는 c/c++ 지원이 안되나요?
제목과 동일합니다.visual studio 2022에서 맥은 c/c++지원이 안 된다는데 사실인가요? 그럼 visual studio code로 실습해도 괜찮을지 궁금합니다.
-
미해결풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
윈도우용 도커 개념을 모르겠습니다
맥용, 윈도우용 docker 설치 https://www.inflearn.com/course/%EC%84%9C%EB%B2%84%EA%B8%B0%EC%88%A0-%ED%92%80%EC%8A%A4%ED%83%9D-3/unit/73529?tab=community강의를 들었습니다. 초보라서 죄송합니다. 개념을 몰라서 문의 드려요제 컴퓨터에 윈도우용 도커를 설치하고, 실행하면, 제 컴퓨터가 서버컴퓨터가 되는건가요? 알려주시면 감사하겠습니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
{0}
hello.name=안녕 {0}여기서 {0}은 파라미터라고 하셨는데 properties파일 이외에는 사용못하는건가요?사실상{0} 이부분이 이해가 안되서요 ㅎㅎ....{1}도 되는건가요? 1,2편 강의중 어디 부분에서 저부분을 강의하셨는지 링크 좀 알 수 있을까요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part2: 자료구조와 알고리즘
프로퍼티 초기화 방식
프로퍼티를 초기화할 때 생성자 대신 initialize 라는 메소드를 특별히 사용하는 이유가 무엇인가요? js 언어를 다뤘을 때는 초기화를 생성자로 넘겨 받는 습관이 들였던 터라 궁금해서 여쭤봅니다!
-
미해결인터랙티브 개발 실무 끝장내기 [역량 강화편]
모바일 드래그 강의 질문드립니다!
혹시 이걸 피씨에서도 드래그가 가능하게끔 할 수 있을까요??혹시 모바일 체크 조건에 피씨도 넣을 수 있을까요??
-
미해결[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지
MSELoss 와 mean_squared_error
섹션3의 보스턴 집값 예측 강의 부분에 대한 질문입니다.로스 부분인데요.토치에서의 MSELoss와 사이킷런의 mean_squared_error는 같은 것 아닌가요?패키지만 달리있고 예측과 정답을 넣으면 오차 결과를 반환하는건 같은거 같은데...굳이 학습에는 MSELoss를 쓰시고, 평가에는 mean_squared_error를 쓰신거 같아서...(제가 모르는 이유가 있을것 같습니다.)만약 MSELoss가 입력값이 텐서고, mean_squared_error 입력값이 넘파이여서라면 변환해서 쓰면 될것도 같은데...강의 보면서 계속 걸리네요... 쩝
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
6번 홀수 문제 왜 실행이 안될까요? ㅠㅠ
<html><head><meta charset="UTF-8"><title>출력결과</title></head><body><script>function solution(arr){let answer=[];let sum=0, min=1000;for(i=0; i<arr.length; i++) {if((arr[i] % 2) == 1) {sum = sum + arr[i];if(arr[i]<min) {min = arr[i];}}}answer.push(sum);answer.push(min);return answer; }arr=[12, 77, 38, 41, 53, 92, 85]; console.log(solution(arr)); </script></body></html>
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
채점기 작동오류
채점을 하려는데 이런 오류가 뜨고 있습니다. 코드는 import sys#sys.stdin = open('input.txt','rt')T = int(input()) for t in range(T): n, s, e, k = map(int, input().split()) a = list(map(int, input().split())) print('#{} {}'.format(t+1, sorted(a[s-1:e])[k-1])) 입니다.
-
미해결Slack 클론 코딩[실시간 채팅 with React]
회원가입 요청이 가지않는 이슈
회원가입을 눌렀으나 회원가입이 안되고 요청이 가지 않는 것 같습니다. 에러메세지를 긁어서 확인 해보았으나 어디가 잘못된건지 모르겠고, 서버 부분의 콘솔을 확인해 보았으나 에러메세지가 나오지 않았습니다. 에러 메세지 이미지와 본문입니다.react_devtools_backend.js:4012 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bsuccess%2C%20code%2C%20data%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at ka (react-dom.production.min.js:140:47) at react-dom.production.min.js:150:265 at Ml (react-dom.production.min.js:176:171) at Bi (react-dom.production.min.js:271:134) at Eu (react-dom.production.min.js:250:347) at wu (react-dom.production.min.js:250:278) at bu (react-dom.production.min.js:250:138) at pu (react-dom.production.min.js:243:163) at react-dom.production.min.js:123:115 at t.unstable_runWithPriority (scheduler.production.min.js:18:34 혹시나 ENV를 까먹었을까봐 다시 확인했지만 있었고,아래는 서버쪽 터미널 이미지입니다.감사합니다.
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
Named 쿼리 xml 작성 질문입니다
<properties> 선언 전에<mapping-file>META-INF/ormMember.xml</mapping-file>이 구문을 먼저 작성할 땐 에러가 안뜨는데mapping-file 을 먼저 선언 후 properties 선언을 하니 잘 작동합니다 어떤 원리인가요
-
미해결Slack 클론 코딩[실시간 채팅 with React]
emotion global theme 설정관련 질문
emotion global theme을 설정하는 과정에서 오류가 발생해서 질문드립니다.자주 사용되는 css속성 단위를 전역에서 사용하고 싶어서 다음과 같이 설정을 진행했습니다.근데 알 수 없는 속성을 참조하고 있다고 반복해서 에러가 발생하고 있습니다.해당 문제에 관해서 피드백 부탁드리겠습니다.제가 설정한 코드는 다음과 같습니다. styles/theme.tsximport { Theme } from '@emotion/react'; const theme: Theme = { size: { tablet: '640px', laptop: '1200px', desktop: '1800px', }, colors: { red: '#f26462', primaryGray: '#3f4150', border: '#EFEFEF', selected: '#f2f2f2', }, calcRem: (pxSize: number) => { `${pxSize / 16}rem`; }, flexSet: (just = 'center', align = 'center') => { return `display: flex; justify-content: ${just}; align-items: ${align};`; }, flexColumnSet: (just = 'center', align = 'center') => { return `display: flex; flex-direction: column; justify-content: ${just}; align-items: ${align};`; }, }; export default theme; styles/emotion.d.tsximport '@emotion/react'; declare module '@emotion/react' { export interface DefaultTheme { size: { tablet: string; laptop: string; desktop: string; }; colors: { red: string; primaryGray: string; border: string; selected: string; }; calcRem: string; flexSet: string; flexColumnSet: string; } } client.tsximport 'core-js/stable'; import 'regenerator-runtime/runtime'; import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import { ThemeProvider } from '@emotion/react'; import axios from 'axios'; import App from './layouts/App'; import GlobalStyle from './styles/global'; import theme from './styles/theme'; axios.defaults.withCredentials = true; axios.defaults.baseURL = process.env.NODE_ENV === 'production' ? 'https://sleact.nodebird.com' : 'http://localhost:3090'; render( <BrowserRouter> <ThemeProvider theme={theme}> <GlobalStyle /> <App /> </ThemeProvider> </BrowserRouter>, document.querySelector('#app'), ); 발생 오류import React from 'react'; import styled from '@emotion/styled'; const ThemeTest1 = styled.div` // Property 'colors' does not exist on type 'Theme'. color: ${props => props.theme.colors.red}; `; const LogIn = () => { return ( <> <div>로그인</div> <ThemeTest1 >theme test1</div> </> ); }; export default LogIn;
-
해결됨실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
부트3에서 org.hibernate.type: trace 오류
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. 이번에 새로나온 스프링부트3으로 진행하면서 영한님 교재대로 세팅을 진행하는데 sql binding 부분만 나오지 않네요. 뭐가 원인인지 궁금합니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
데이터 보안에 대해 질문드립니다.
강의에서 웬만하면 정보를 최소화해서 보내라고 말씀하셨는데 그 이유가 redux devtools에 기록이 되기 때문인가요? ajax를 사용하면 따로 attribute로 안 거르고 다 보내도 괜찮을까요?
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
localhost:8080/hello가 안들어가져요
위 사진들과 강의랑 똑같이 넣었는데도 localhost:8080/hello 에 들어가니 에러페이지만 뜨네요 어떻게 해결하는지 알고싶습니다
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
2468번 높이 관련해서 질문드립니다.
안녕하세요 큰돌님.https://www.acmicpc.net/source/5246382문제에서는 높이가 1이상 100 이하의 정수라고 되어 있습니다. 만약 모든 지형의 높이가 1 이상이라면 비가 아예 오지 않았을 때는 정답은 무조건 1이기 때문에 answer = 1로 초기화를 시작하고 h = 1까지는 계산했습니다..https://www.acmicpc.net/source/52464246하지만 h = 0인 경우를 따져야 통과가 되는데 그 이유를 알 수 있을까요?
-
해결됨[백문이불여일타] 데이터 분석을 위한 고급 SQL 문제풀이
occupation 질문!
안녕하세요 선생님! 강의 잘 듣고 있습니다.해당 문제 이렇게도 풀이했는데 답은 정상적으로 나오나 hackerranks에서는 오답으로 나와서 질문드립니다!이렇게 풀어도 되는지, 어떤 부분에 주의해야할지 여쭤볼 수 있을까요? SELECT SUM(CASE WHEN sub.occupation='Doctor' THEN sub.name ELSE NULL END) doctor, SUM(CASE WHEN sub.occupation='Professor' THEN sub.name ELSE NULL END) professor, SUM(CASE WHEN sub.occupation='Singer' THEN sub.name ELSE NULL END) singer, SUM(CASE WHEN sub.occupation='Actor' THEN sub.name ELSE NULL END) actor FROM ( SELECT name, occupation, ROW_NUMBER() OVER(PARTITION BY occupation ORDER BY NAME) AS number FROM occupations) AS sub GROUP BY sub.number ORDER BY sub.number;SELECT (SELECT name FROM occupation WHERE occupation = 'Doctor'), (SELECT name FROM occupation WHERE occupation = 'Professor'), (SELECT name FROM occupation WHERE occupation = 'Singer'), (SELECT name FROM occupation WHERE occupation = 'Actor') FROM occupation ORDER BY name
-
미해결홍정모의 따라하며 배우는 C언어
저는 매번 교수님이 작성하신 코드와 전혀 다른 방식으로 작성해서 걱정입니다.
결론부터 말씀드리자면 어느 정도 강의가 진행 되면서 코드가 복잡해졌는데, 매번 교수님이 의도하신 것과 계속 다른 방식으로 코드를 짜고 있습니다. 교수님의 방식은 굉장히 깔끔하시고 훌륭한걸 알고있습니다. 그치만 계속해서 제가 짠 코드가 큰 틀에서 봤을때 의미 없는건가 라는 생각도 드는 동시에, 교수님의 깔끔한 코드만 배우면 되는거 아닌가 라는 생각이 들면서 정답만 맞추자는 생각으로 공부를 하면서 공부에 흥미를 잃어가는것 같습니다. 현재 제가 뭔가 잘못된 것 같다는 생각이드는데 따끔하게 직설적인 꾸중을 듣고 싶습니다.#define CRTSECURE_NO_WARNINGS#include <stdio.h>void avengers(void){printf("Avengers assemble!\n");return 0;}void beep(void){printf("\a\n"); return 0;}void count(void){long input;long num = 1;char c;while (scanf("%ld", &input) != 1){printf("Your input - ");while ((c = getchar()) != '\n')putchar(c); printf(" - is not a integer. Please try again. \n");}while (input + 1 > num){printf("%ld\n", num);num = num + 1;}return 0;}int main(){char c;printf("Enter the letter of your choice: \n");printf("a. avengers b. beep\n");printf("c. count q. quit\n"); while (scanf("%c", &c) != 0){if (c == 'a')avengers();else if (c == 'b')beep();else if (c == 'c')count();else if (c == 'q')return 0;elseprintf("You need to choice in a to q");while ((c = getchar()) != '\n')continue; printf("Enter the letter of your choice: \n");printf("a. avengers b. beep\n");printf("c. count q. quit\n");}return 0;}
-
미해결Slack 클론 코딩[실시간 채팅 with React]
npm i react react-dom 오류
db연결하고 npm init 잘설치후npm i react react-dom 해보았는데 오류 발생하였습니다. 구글검색해봐도 잘모르겠습니다.DELL@DESKTOP-CGJRPG6 MINGW64 ~/Desktop/sleact-master/alecture $ npm i react react-dom npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: alecture@1.0.0 npm WARN Found: react@17.0.2 npm WARN node_modules/react npm WARN peer react@">=16.8.0" from @emotion/react@11.10.4 npm WARN node_modules/@emotion/react npm WARN peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.10.4 npm WARN node_modules/@emotion/styled npm WARN 1 more (the root project) npm WARN 12 more (@emotion/styled, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-custom-scrollbars@4.2.1 npm WARN node_modules/react-custom-scrollbars npm WARN react-custom-scrollbars@"^4.2.1" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: alecture@1.0.0 npm WARN Found: react-dom@17.0.2 npm WARN node_modules/react-dom npm WARN peer react-dom@">=16.8.3" from react-mentions@4.4.7 npm WARN node_modules/react-mentions npm WARN react-mentions@"^4.1.1" from the root project npm WARN 2 more (react-toastify, the root project) npm WARN npm WARN Could not resolve dependency: npm WARN peer react-dom@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-custom-scrollbars@4.2.1 npm WARN node_modules/react-custom-scrollbars npm WARN react-custom-scrollbars@"^4.2.1" from the root project npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @pmmmwh/react-refresh-webpack-plugin@0.4.3 npm ERR! Found: webpack-dev-server@4.10.1 npm ERR! node_modules/webpack-dev-server npm ERR! dev webpack-dev-server@"^4.10.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional webpack-dev-server@"3.x" from @pmmmwh/react-refresh-webpack-plugin@0.4.3 npm ERR! node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@"^0.4.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: webpack-dev-server@3.11.3 npm ERR! node_modules/webpack-dev-server npm ERR! peerOptional webpack-dev-server@"3.x" from @pmmmwh/react-refresh-webpack-plugin@0.4.3 npm ERR! node_modules/@pmmmwh/react-refresh-webpack-plugin npm ERR! @pmmmwh/react-refresh-webpack-plugin@"^0.4.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\DELL\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\DELL\AppData\Local\npm-cache\_logs\2022-12-07T07_52_49_907Z-debug-0.log DELL@DESKTOP-CGJRPG6 MINGW64 ~/Desktop/sleact-master/alecture
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문
팩토리얼 연습문제중에
말로풀어서설명하면팩토리얼함수에 3을넣어줬을때3이 1보다작거나같지않으니3 * factorial(2)가되고factorial(2)는 2 * factorial(1)이되어서 factorial(1)은 결국 if문안으로 들어가고여기서 return 1;이니까 1이반환되는거같은데그아래에있는 retrun n * factorial(0)은 그냥 지나가는건가요?return이 함수내에 2개가있어도 되는건지도 잘모르겠고 너무 스무스하게지나가셔가지고 내가 전에 있던강의를 제대로안들은건가 싶기도하고 불안해서 질문드립니다 ㅠㅠ