묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결CCNA - Cisco Certified Network Associate (200-301) 자격증 과정
ip route 10.0.0.1 대신 10.0.0.0 입력하는 이유가
무엇인가요?
-
미해결자바스크립트 : 기초부터 실전까지 올인원
쌤 궁금한 것이 있는데요
Bootstrap과 React를 같이 쓸 수 있나요? 그리고 문제? 가 생겼는데요~ 다른 카테고리는 너무 잘나오는데..? 가끔 글씨가 깨져요 ... 어떻게...해야..ㅠㅠ
-
미해결[리뉴얼] 처음하는 MongoDB(몽고DB) 와 NoSQL(빅데이터) 데이터베이스 부트캠프 [입문부터 활용까지] (업데이트)
brew install mongodb 설치 에러
brew install mongodb 실행후 다음같은 에러가 나옵니다. WWarning: No available formula with the name "mongodb". Did you mean mongosh or monetdb? ==> Searching for similarly named formulae... These similarly named formulae were found: mongodb-atlas-cli ✔ mongodb/brew/mongodb-community@4.2 mongodb/brew/libmongocrypt mongodb/brew/mongodb-community@4.4 mongodb/brew/mongocli mongodb/brew/mongodb-database-tools ✔ mongodb/brew/mongodb-community ✔ mongodb/brew/mongodb-mongocryptd mongodb/brew/mongodb-community-shell mongodb/brew/mongodb-mongocryptd@4.2 mongodb/brew/mongodb-community@3.2 mongodb/brew/mongodb-mongocryptd@4.4 mongodb/brew/mongodb-community@3.4 mongosh ✔ mongodb/brew/mongodb-community@3.6 monetdb mongodb/brew/mongodb-community@4.0 To install one of them, run (for example): brew install mongodb-atlas-cli ✔ ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. mongodb 설치가 잘 안되어서 ubuntu에서 mongodb 설치시 에러가 나오는 건지도 궁금합니다. 해결 방법 좀 부탁드리겠습니다.
-
해결됨아마존 AWS 입문
sudo usermod –a –G apache ec2-user 이 명령어가 안먹어요
sudo usermod –a –G apache ec2-user 해당 명령어를 입력하면 아래같이 나옵니다. 이후 진행을 못하고 있어요. [ec2-user@ip-172-31-22-71 ~]$ sudo usermod –a –G apache ec2-user Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -f, --inactive INACTIVE set password inactive after expiration to INACTIVE -g, --gid GROUP force use GROUP as new primary group -G, --groups GROUPS new list of supplementary GROUPS -a, --append append the user to the supplemental GROUPS mentioned by the -G option without removing him/her from other groups -h, --help display this help message and exit -l, --login NEW_LOGIN new value of the login name -L, --lock lock the user account -m, --move-home move contents of the home directory to the new location (use only with -d) -o, --non-unique allow using duplicate (non-unique) UID -p, --password PASSWORD use encrypted password for the new password -R, --root CHROOT_DIR directory to chroot into -s, --shell SHELL new login shell for the user account -u, --uid UID new UID for the user account -U, --unlock unlock the user account -Z, --selinux-user SEUSER new SELinux user mapping for the user account
-
미해결대세는 쿠버네티스 (초급~중급편)
좀전에 질문드린 vagrant up은 해결
download관련한 문제는 해결이 되었습니다. 하지만 모두 install후에 jon.sh파일에 아무것도 생성되지 않고 있네요 수동으로 설정을 해보았는데 [root@k8s-master ~]# kubeadm token create --print-join-command > ~/join.sh failed to load admin kubeconfig: open /root/.kube/config: no such file or directory To see the stack trace of this error execute with --v=5 or higher 이런 메세지만 보이네요 좋은 방법이 없을까요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
무한 루프 toString() 질문있습니다.
양쪽에 연관관계 편의 메소드가 있으면 toString() 호출시 무한 루프가 발생할 수 있기 때문에 한 쪽에만 편의 메소드를 생성하는 게 좋다고 하셨는데 이거는 연관관계 편의 메소드가 양쪽에 있어서가 아니라 Team도 members를 멤버 변수로 가지고 있고 Member도 team을 멤버 변수로 가지고 있어서 즉, 서로 참조하고 있어서 발생하는게 아닌가요? 헷갈려서 질문 드립니다!
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
struct 질문드립니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. #include<bits/stdc++.h> using namespace std; struct Point{ int y, x; Point(int y, int x) : y(y), x(x){} Point(){y = -1; x = -1; } bool operator < (const Point & a) const{ if(x == a.x) return y < a.y; return x < a.x; } }; vector<Point> v; int main(){ for(int i = 10; i >= 1; i--){ Point a = {i, i}; v.push_back(a); } sort(v.begin(), v.end()); for(auto it : v) cout << it.y << " : " << it.x << '\n'; return 0; } 안녕하세요 교안 공부중에 모르는 부분이 있어서 질문드립니다. struct에 대해 잘 모르는 부분이 있다보니 아래 부분이 무슨의미인지 모르겠습니다. bool operator는 이해했습니다. Point(int y, int x) : y(y), x(x){} Point(){y = -1; x = -1; }
-
미해결차량 번호판 인식 프로젝트와 TensorFlow로 배우는 딥러닝 영상인식 올인원
후반부 강의자료 부탁합니다.
후반부 강의자료 부탁합니다. hwyj1030@gmail.com, hwkim0202@gmail.com
-
미해결자바스크립트 : 기초부터 실전까지 올인원
쌤 궁금한 것이 있습니다.
Bootstrap과 React를 같이 쓸 수 있나요?
-
미해결윤재성의 처음 시작하는 C언어
for문 조건식 질문
문자열 내 특정문자를 다른문자로 변환하는 예제를 푸는중입니다. for문의 조건식에 이렇게 배열을 이용한 예제도 있어 사용해 뵜는데 코드는 정상적으로 작동합니다. 그러나 시용된 for문 조건식의 의미를 잘 모르겠어서 질문남깁니다. 혹시 조건식의 의미가 입력된 문자열 크기만큼 반복한다는 의미인가요? int main(){ char str[100]; char buf1,buf2; int i; puts("input:"); gets(str); puts("transe:"); scanf("%c %c",&buf1,&buf2); for(i=0;str[i];i++)if(str[i]==buf1)str[i]=buf2; puts(str); }
-
미해결배달앱 클론코딩 [with React Native]
const errorResponse: AxiosResponse<unknown, any> 개체가 '알 수 없는' 형식입니다
try { setLoading(true); const response = await axios.post(`${Config.API_URL}/user`, { email, name, password, }); Alert.alert('알림', '회원가입 되었습니다.'); navigation.navigate('SignIn'); } catch (error) { const errorResponse = (error as AxiosError).response; console.error(errorResponse); if (errorResponse) { Alert.alert('알림', errorResponse.data.message); } } finally { setLoading(false); } if안에서 errorResponse 타입을 지정하라고 에러가 계속 납니다 강의에서는 안나는 부분인데 어떻게 해야 하나요?
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
nestjs에서 express의 Reqest객체를 사용할 때 req를 이용해서 미들웨어끼리 값을 공유할수 있는지 궁금합니다.
제가 express를 몇번 사용해보고 상석님 강의를 보게 되었는데 제가 진행하던 프로젝트에서 첫 번째 미들웨어에서 req에 값을 넣은 후 두 번째 미들웨어에서 그값을 다시 사용하였던적이 있었는데 nestjs에서는 그 방법이 효용될까요? 예를 들어 data라는 이름의 req 프로퍼티를 만들면 data라는 이름은 정의되어있지 않다고 해서요. req.data 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' 형식에 'data' 속성이 없습니다.ts(2339)
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
2차원 배열과 2중 포인터 호환
강의를 듣다가 2차원 배열은 2중 포인터와 호환이 안된다고 하셨습니다. 저도 2차원 배열은 결국 1차원 배열이니까 당연히 안되겠지 생각해서 이해했습니다. int arr2[2][2] = { {1,2}, {3,4} };라는 2차원 배열에서int* p3 = (int*)arr2; 라는 포인터 변수를 만들고cout << *p3 << *(p3 + 1) << *(p3 + 2) << *(p3 + 3) << endl; 테스트로 만들어보니 1234가 잘 출력되었습니다. 그런데 강의에서 int(*p2)[2] = arr2;라는 새로운 타입형 변수를 만들어서 (*p2)[0], p2[0][0] 등등 배열처럼 사용하셨는데연습 겸 이걸 포인터식으로 사용해보려고 cout << **p2 << *(*p2 + 1) << *(*p2 + 2) << *(*p2 + 3) << endl; 이런 식으로 테스트 해보니 1234 또 잘 나왔습니다.여기서 **p2는 2중 포인터인데 왜 워프를 두번타는지 이해가 안되었습니다. 그래서 여러가지 테스트를 해보았습니다. cout << **(p2 + 0) << *(*(p2 + 0) + 1) << **(p2 + 1) << *(*(p2 + 1) + 1) << endl; 이것도 1234가 출력되는데 (p2 + 1)이 왜 8바이트만큼 이동하는지, 다시 말해서 [0][0]에서 [1][0]처럼 이동하는게 이해가 안됩니다. 포인터 연산에서 타입 크기 만큼이동한다고 배웠는데 p2의 타입크기는 int[n][m]에서 (4 * m)바이트 인건가요?그렇다면 *p2의 타입크기는 int 즉, 4바이트 인건가요?그리고 p2는 2중포인터 변수인가요? 물론 앞으로 사용하지 않을 것 같지만 궁금증이 문득..
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
HTML form으로는 데이터 수정 못하는건가요 ?>
GET과 POST밖에 못 쓴다고 알려주시는데 PUT이나 DELETE를 못쓰면 기존의 데이터를 수정할 수 없는 것 아닌가요?
-
미해결더 자바, 코드를 조작하는 다양한 방법
site 폴더내에 jacoco 폴더가 생기지 않습니다.
clean varify를 실행하면 [INFO] --- jacoco-maven-plugin:0.8.4:report (report) @ THe_JAVA --- [INFO] Skipping JaCoCo execution due to missing execution data file. 위와 같은 메시지가 나오고 유사한 질문이 있어 그에 맞춰 mvn site를 실행해 봤습니다. 아래는 porm.xml 코드입니다. <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>JacocoTest</artifactId> <version>1.0-SNAPSHOT</version> <name>JacocoTest</name> <!-- FIXME change it to the project's website --> <url>http://www.example.com</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.4</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> </plugins> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins> <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>3.0.0</version> </plugin> </plugins> </pluginManagement> </build></project> 실행을 하면 site 디렉터리는 생기지만 하위 디렉터리에 jacoo 디렉터리가 생기지 않습니다.
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
Light GBM 로그변환, OHE 변환
안녕하세요. Linear Regression 성능을 위해 로그변환이라든지, OHE 해주잖아요. Light GBM도 로그변환과 OHE 변환의 영향을 받는지요? 감사합니다.
-
미해결Flutter 중급 1편 - 클린 아키텍처
리스트 페이지 refresh???
안녕하세요~~ 리스트 페이지의 refresh 를 구현하는 기능에 대해서 질문드릴께 있습니다. 현재 구현하신 방법은 리스트 페이지 -> 등록 페이지 이렇게 2개 페이지내에서 리스팅과 등록/업데이트를 하는구조라등록페이지에서 navigation.pop의 리턴값 true를 통해서리스트페이지에서 리스트의 reload를 하고 있는 방식인데요..혹시 리스트페이지 -> 등록페이지1 -> 등록페이지2 이런식의 구조라면 최종 등록페이지2에서 등록을 완료하고 나서 pop를 할수가 없고 이렇게 되면 리턴 true를 전달이 불가한데요..등록페이지2에서 등록 완료 이후 pop이 아닌 pushAndRemoveUntil 로 리스트페이지로 이동을 하게 될때리스트 페이지에서의 리스트 reload는 어떻게 구현을 해야 할까요? 등록페이지2에서 뭔가 flag 값을 전달해서 리스트페이지 오픈시 이 값을 가지고 reload를 해야 할지.. 아니면 가르쳐주신 방식에서 조금 더 응용을 할 수 있을지 궁금합니다.
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
Gradle로 현재 강의 수강
[질문 내용]maven으로 설정할 경우 persistence.xml을 설정하는 부분이 있는데 gradle로 할때도 persistence.xml이 필요한건가요??
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
업로드 페이지 후 로그아웃화면(LandingPage)로 강제 이동되는 경우 해결책
안녕하세요 강사님이 올려주신 git을 다운 받으신 분들은 상관 없으시겠지만, 저처럼 강사님의 기본강의(로그인, 회원가입, 로그아웃, 인증 부분)으로 바로 넘어오신 분들 중 혹시 막히신 분들이 계실까 해서 남깁니다 * 문제 1 : App.js에서 uploadProductPage를 true로 했으나 로그인 후 'localhost:3000/'으로 강제 이동하는 경우 * 해결책 : hoc/auth 수정할 것 [hoc/auth.js] - else 부분에 추가 import React, { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { auth } from "../_actions/user_action"; import { useNavigate } from "react-router-dom"; export default function (SpecificComponent, option, adminRoute = null) { //backned의 그 사람의 현재 상태 확인 //api/user/auth로 정보 보내기 //null : 아무나 출입 가능 //option이 true : 로그인 한 사람만 출입 가능 //option이 false : 로그인한 유저는 출입 불가능 function AuthentificationCheck(props) { const dispatch = useDispatch(); const navigate = useNavigate(); let user = useSelector((state) => state.user); useEffect(() => { dispatch(auth()).then(async (response) => { console.log(response); //로그인 하지 않은 상태 if (await !response.payload.isAuth) { if (option === true) { //로그인으로 이동 시 navigate("/login"); //로그인페이지로 가게 함 } } else { //response.payload.isAuth = true //로그인한 상태(로그인페이지, 회원가입 페이지 이동하지 않아야 함) if (adminRoute && !response.payload.isAdmin) { //option이 true일 때 navigate("/"); } else { //option이 false일 때 //false상태 if (option === false) { props.history.push("/"); } } } }); }, []); return <SpecificComponent />; } return <AuthentificationCheck />; } * 문제 2 : RightMenu.js와 LeftMenu.js에서 warning.js:6 Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead. 발생하는 경우 * 해결책 : https://ant.design/components/menu/ 참고하기 [RightMenu.js] import React from "react"; import { Menu } from "antd"; import axios from "axios"; import { USER_SERVER } from "../../../../Config"; // import { withRouter } from "react-router-dom"; import { useSelector } from "react-redux"; import { useNavigate } from "react-router-dom"; const items = [ { label: <a href="/login">Signin</a>, key: "mail" }, { label: <a href="/register">Signup</a>, key: "app" }, ]; const logInItems = [ { label: <a href="/product/upload">upload</a>, key: "upload" }, { label: <a href="/">logout</a>, key: "logout", }, ]; function RightMenu(props) { const navigate = useNavigate(); const user = useSelector((state) => state.user); const logoutHandler = () => { axios.get(`${USER_SERVER}/logout`).then((response) => { if (response.status === 200) { navigate("/login"); } else { alert("Log Out Failed"); } }); }; if (user.userData && !user.userData.isAuth) { return <Menu mode="horizontal" items={items} />; } else { return ( <Menu mode="horizontal" items={logInItems} onClick={logoutHandler} /> ); } } export default RightMenu; // export default withRouter(RightMenu); [ LeftMenu.js] import React from "react"; import { Menu } from "antd"; const items = [ { label: <a href="/">Home</a>, key: "mail" }, { label: <a href="/blog">Blogs</a>, key: "app" }, ]; function LeftMenu(props) { return <Menu mode="horizontal" items={items} />; } export default LeftMenu;
-
미해결남박사의 파이썬으로 실전 웹사이트 만들기
로그인 , 로그아웃 관련 jinja2 if문 문의 드려요
11분 23초 쯤 보면 로그아웃 상태인데도 , 로그아웃이 표시되서 진자 템플릿의 if문을 {% if session.get('id') is not none or session.get('id') != '' %} 에서 {% if session.get('id') is not none %} 이걸로 바꾸셨어요 제가 생각하기에, 둘다 작동이 잘되야 하는데 {% if session.get('id') is not none or session.get('id') != '' %} 이 코드는 왜 작동이 안되는건지 이해가 안가네요 or 문이 작동안하는 이유가 무엇인지 알려주시면 감사하겠습니다