묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결정말 쉽게 풀어보는 코딩 테스트 top 기본 문제 (with 자바)
강사님 오류맞나요?
int[] temperatures = { 73,74,75,71,69,72} 인 경우 // 2중 for public static int[] solve_for(int[] tem) { //1.ds int len = tem.length; int[] result = new int[len]; int count=0, j ; //for for(int i=0;i<len;i++) { for(j=i+1;j<len;j++) { if(tem[i] < tem[j]) { count++; break; }else { count++; } } if(j == tem.length) result[i] = 0; else result[i] = count; count = 0; } return result; } 이렇게 안쪽에 있는 for를 len까지 돌려야지 정상적으로 답이 나올수있네요 j == tem.length가 안되면서 2가 들어가버리네요
-
미해결웹 게임을 만들며 배우는 React
강의 코드 따로 확인할 수 있을까요?
안녕하세요 선생님. 강의 잘 보고 있습니다. ^^ 다름 아니라 강의하실 때 작성해주신 코드를 깃헙 같은 데서 확인할 수 있을까요? 감사합니다.
-
미해결풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
/usr/src/wordpress 와 /var/www/html/ 문의 드립니다.....
/usr/src/wordpress 경로에 진입해보니까 또 똑같은 애들이 있네요 ㅜㅜ;; 혹시 저것들이랑 /var/www/html/ 안의 애들이랑 왜 두곳에 다 녀석들이 있는지 ... 문의 한번 더 드리고싶습니다. v 정말 진도좀 나가려는데 왜 또 이상한거 발견.. 머리가 복잡해져서 큰났네요.. 얘들은 그냥 워드프레스만 단독으로 컨테이너 만들어봐도 동일하게 생기는걸 보면 워드프레스가 원래 그런 것 같은데.. 검색해보면 검색어가 애매모호해서 딱 집어서 검색도 안되고요.. 코딩공부시 강의에서 딱 지적하지않은 부분들이나 좀 혼자 꼼꼼하다가 궁금한 부분들은 보통 어디 질문할 사이트가 따로 없을까요? 그냥 원래 그런가보다 .. 하고 일단 넘어가겠습니다.
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
포워드된 경로는 HTTP 메세지에서 확인할 수 없나요?
안녕하세요 강사님 강의 정말 잘 듣고있습니다! 리다이렉트와 달리 포워드된 경로는 HTTP 메시지에서 확인할 수 없나요?
-
미해결데브옵스(DevOps)를 위한 쿠버네티스 마스터
Time-Based HPA 질문
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요. 강의 잘 보고 있습니다. 특정 시간에 Pod 수를 auto scale 하고 싶습니다. 이 경우 권장 되는 방법이 있을 까요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
cmd 질문있습니다
안녕하세요 선생님 저와 같은 문제가 있는지 찾아봐도 안나와서요... 저는 현재 윈도우 사용중이고 cmd 에서 ./gradlew gradlew.bat 를 실행하면 됩니다. 이렇게 써져있어서 ./gradlew 를 쳐도 '.'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이렇게 나오는데 어떻게 해야하나요??
-
미해결트렐로 개발로 배우는 Vuejs, Vuex, Vue-Router 프론트엔드 실전 기술
npm install 시 에러
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. trello-server를 다운 받고 npm 설치 시 아래와 같은 오류가 발생합니다. node-gyp, windows build toos 등 cmd 관리자 모드로 실행하여 설치를 하고 다시 실행하였습니다. 하지만 계속 아래와 같은 오류가 발생합니다. 해결 방법을 알려주시면 감사하겠습니다. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated terraformer@1.0.12: terraformer is deprecated and no longer supported. Please use @terraformer/arcgis. npm WARN deprecated terraformer-wkt-parser@1.2.1: terraformer-wkt-parser is deprecated and no longer supported. Please use @terraformer/wkt. npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated sequelize@4.44.4: This version will no longer receive security fixes per our security policy. Please update to sequelize@5 or above. npm ERR! code 1 npm ERR! path C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3 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\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3\lib\binding\napi-v3-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3\lib\binding\napi-v3-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (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.11.0 npm ERR! node-pre-gyp info using node@16.4.1 | win32 | x64 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download npm ERR! node-pre-gyp info check checked for "C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3\lib\binding\napi-v3-win32-x64\node_sqlite3.node" (not found) npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.2/napi-v3-win32-x64.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for sqlite3@5.0.2 and node@16.4.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error self signed certificate in certificate chain npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.4.1 | 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@7.1.2 npm ERR! gyp info using node@16.4.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.9.6 found at "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe" npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.1/node-v16.4.1-headers.tar.gz npm ERR! gyp WARN install got an error, rolling back install npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: self signed certificate in certificate chain npm ERR! gyp ERR! stack at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34) npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:394:28) npm ERR! gyp ERR! stack at TLSSocket._finishInit (node:_tls_wrap:944:8) npm ERR! gyp ERR! stack at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) npm ERR! gyp ERR! System Windows_NT 10.0.19042 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Administrator\\Documents\\trello-backend\\lecture-vue-trello-server-master\\node_modules\\sqlite3\\lib\\binding\\napi-v3-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Administrator\\Documents\\trello-backend\\lecture-vue-trello-server-master\\node_modules\\sqlite3\\lib\\binding\\napi-v3-win32-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3" npm ERR! gyp ERR! cwd C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3 npm ERR! gyp ERR! node -v v16.4.1 npm ERR! gyp ERR! node-gyp -v v7.1.2 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\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3\lib\binding\napi-v3-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3\lib\binding\napi-v3-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:394:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301: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\\Administrator\\Documents\\trello-backend\\lecture-vue-trello-server-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd C:\Users\Administrator\Documents\trello-backend\lecture-vue-trello-server-master\node_modules\sqlite3 npm ERR! node-pre-gyp ERR! node -v v16.4.1 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.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\Administrator\AppData\Local\npm-cache\_logs\2021-07-02T02_08_55_146Z-debug.log
-
미해결파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
질문 있습니다. open folder 메뉴가 없는 경우 어떻게 해야 하나요?
(사진)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
&& 의 뜻이 궁금합니다!
&& 가 앤드 연산자인것은 배웠는데 로직쓰실때 정확하게 어떤 원리로 동작하는지 모르겠습니다ㅠㅠ
-
미해결팀 개발을 위한 Git, GitHub 입문
수업 ppt 자료 부탁 드립니다.
수업 ppt 자료 부탁 드립니다. mrsono0@gmail.co 다른 강의 들은 표현이 딱딱해서 어렵게 느껴지는데 비교 표현을 정말 잘 해 주시는거 같읍니다. 감사합니다~ 준비 하시는 다른 강의는 없나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
한가지 상품이 아니라 여러가지 상품을 주문하게 하려면 로직을 어떻게 짜야할까요?
안녕하세요. 강의 잘 듣고 있습니다. 현재 강의에서는 한가지 상품을 선택 후 해당 상품의 수량을 주문할 수 있게 되어 있습니다. 한가지 상품이 아니라 여러가지 상품을 각각 선택, 수량도 상품별로 주문 할 수 있게 하려면 로직을 어떻게 짜야하는지 궁금합니다.
-
미해결[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
좋아요 기능 구현 문제
{% set like = user and twit and twit['Liker'].map(function(value){ return value.id }).includes(user.id) %} {% if user and !like %} <button class='like'> 좋아요</button> {% else %} <button class='unlike'>좋아요 취소</button> {% endif %} 안녕하세요! 유튜브는 좋아요 기능 구현의 프론트 부분이 퍼그 코드로 돼있어서 넌적스 코드로 프론트를 구현하기 위해 위와 같이 바꿨는데, 넌적스는 map 함수가 적용이 안되는건지, 아니면 다른 문제가 있는 것인지 계속해서 오류가 발생합니다. 혹시 위 넌적스 코드의 수정법 혹은 넌적스로 좋아요 기능을 구현하는 다른 방법이 있을까요?
-
미해결따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
아웃바운드 규칙 설정
안녕하세요! 간단한 질문이 있습니다 :) 강의에서는 인바운드와 아웃바운드를 다루고 있으시고 먼저 인바운드 설정을 하신거 같은데 아웃바운드 설정은 안하시는 이유가 있나요?
-
미해결풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
풀스택을 위한 도커와 최신서버기술 수업에서 아마존 ec2 관련,,,
독립적인 컴퓨터에 우분투가 설치되어 있는데, 독립적 pc의 우분투 환경에서 해당 온라인 수업을 진행하려고 하는데, 그럼 아마존ec2 에서 안해도 되는지 문의드립니다. (도커수업에 지장이 없는지 하여 의문/궁금사항이 있어서 문의합니다.)
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
모듈을 분리했는데 undefined오류가 납니다.
모듈을 분리해서 export const UserUpdate = async function (selectionDto,info) { .... } 이런식으로 분리를 했는데 아래와 같은 오류가 납니다. TypeError: Cannot read property 'createQueryBuilder' of undefined createQueryBuilder 에 Ctrl+마우스 클릭을 하면 해당 메소드로 이동이 되어야 하는데 이동이 안되고 Cannot find declaration to go to 이런 오류가 뜹니다. 혹시 모듈을 따로 만들어서 사용할 때 별도로 임포트를 해야하는 부분이 있을까요? 아니면 어느 부분을 놓치고 있는건지 감이 잡히질 않습니다. 좀도 명확한 오류가 나면 확인을 해 보겠는데..ㅠㅠ
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
fs import 관련 질문입니다.
안녕하세요 제로초님 강의 잘 듣고 있습니다. multer 부분 강의를 듣고 있는데 처음 컨트롤러 시작 부분에 upload폴더 생성 로직이 있는데 폴더 read, create 해주는 module인 fs를 import 하는 부분에서 아래와 같이 import를 해주어야 동작을 하는데.. import * as fs from 'fs'; nest 초기 셋팅에서 저기 import * as 없이 아래와 같이 선언해도 되는 셋팅 방법을 알수 있을까요?? import fs from 'fs'; 제로초님 강의중에 있었던 것 같은데 ... 다시 복기하면서 봐도 찾기가 쉽지 않네요 ㅜㅜ 알려주시면 정말 감사드리겠습니다.
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
글 삭제에 대해서
글 삭제를 하고 서버에서 이런 메세지를 줬습니다. res.status(200).send('게시글이 삭제되었습니다.'); 그리고 이걸 프런트에서 alert로 표시를 하러고 하는데 제가 생각한 방법은 두가지 입니다. 1. saga에서 result.data 를 alert 2. PostCard에서 removePostDone이 true가 되면 삭제를 하고 다른 신호를 줘서 removePostDone이 false가 되게 한다. 둘 다 좋은 코드는 아닌 것 같아서 질문드리려고 합니다! 어떤 좋은 방법이 있을까요?
-
미해결Vue.js + TypeScript 완벽 가이드
Generic auto close 질문드립니다.
vue 파일에서 template에서는 auto close tag가 켜져있고, script 적을 때는 끄는 방법 혹시 아시나요? auto close tag라는 extension이 이를 제어하는 것 같은데 script에서 generic에 타입을 쓰면 자꾸 auto close tag를 생성해서 조금 불편합니다. setting에서 auto-close-tag: Disable On language에 javascript, typescript를 쳐도 안되고 vue를 치면 vue 파일 전체에서 안되서 어떻게 하는지 잘 모르겠네요. 혹시 vue 파일에서 script 태그 내에서만 auto close tag를 끄는 방법은 없을까요?
-
미해결[하루 10분|Web Project] HTML/JS/CSS로 나만의 심리테스트 사이트 만들기
안녕하세요. 글꼴 적용이 되지 않습니다.
판다님 안녕하세요! 수업 잘 듣고 있습니다. 감사합니다. 글꼴 적용이 되지 않아 질문을 드립니다. 구글폰트에서 link을 복사해서 index.html의 head 태그안에 넣고, default.css에 * { font-family: 'Nanum Brush Script', cursive; } 위와같이 style 적용 코드를 넣었습니다. 근데 이렇게 하면 글꼴 적용이 되지 않습니다. 다른 backgorund-color라던가 이런건 다 잘되는데 글꼴만 적용이 되지 않습니다. 그래서 index.html에 직접 <style> * { font-family: 'Nanum Brush Script', cursive; }; </style> 이렇게 넣으면 그제서야 적용이 되는데 왜그런걸까요?
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
구슬 문제처럼 중복순열을 구한 다음 중복되지 않은 값만 추출하면 시간 복잡도 문제가 생길까요?
안녕하세요 강사님! 강의 정말 잘 듣고있습니다. 처음에 문제를 도전해봤을때 단순하게 생각해서 문제를 풀었는데요. 중복순열까지 전부 구한 다음에 중복되지 않은 값을 제거하고 추출하는 식으로 풀었습니다. 이렇게 풀면 문제가 있을까요? <html> <head> <meta charset="UTF-8"> <title>10. 순열 구하기</title> </head> <body> <script> function solution(m, arr) { let answer = []; let tmp = Array.from({ length: m }, () => 0); function DFS(L) { if (L === m) { if (tmp[0] !== tmp[1]) answer.push(tmp.slice()); } else { for (let i = 0; i < arr.length; i++) { tmp[L] = arr[i]; DFS(L + 1); } } } DFS(0) return answer; } let arr = [3, 6, 9]; console.log(solution(2, arr)); </script> </body> </html>