묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결우디의 포토샵 강좌
4강 프리트랜스폼 질문드려요~
저는 왜 우디쌤처럼 아래 방향으로만 사진이 늘어나지 않고 세 방향으로 늘어나는건지.. 다리가 요상한 모양이 되어서 질문드려요ㅠㅠ 강의 오늘부터 듣기 시작했는데 이해도 쉽고 금방금방 쏙쏙 내용정리도 되고! 좋은 강의 해주셔서 감사합니다ㅎㅎ 열심히 듣고 포토샵도 좀 더 능숙하게 잘 할수 있도록 많이 사용해봐야겠어요! 오늘도 좋은 하루 보내세요~
-
미해결예제로 배우는 스프링부트 입문
application.properties
저는 spring.mvc.view.prefix=/WEB-INF/views/ 이렇게 해줬을때는 오류가 안나는데 spring.mvc.view.prefix=/WEB-INF/views 이렇게 뒤에/를 뺴면 404 에러가 납니다 상관은 없나요? 왜그런걸까요 ㅠ
-
미해결홍정모의 따라하며 배우는 C++
class 내에서 vector 초기화 시에 에러
#include <iostream> #include <vector> using namespace std; class Node { private: vector<int> node_data(3,0); vector<int> test{0,0,0}; }; vector를 초기화 하는 부분에서 node_data(3,0)이 아래의 에러가 뜨더라고요. error: expected ',' or '...' before numeric constant {}로 초기화하면 에러가 안뜨는데 ()로 초기화하면 왜 에러가 뜨는 지 궁금합니다.
-
미해결홍정모의 따라하며 배우는 C++
후위 연산자에서 this가 아닌 다른 인스턴스에 왜 주소가 아닌 값을 넘겨주면 안되나요?
Digit operator ++ (int) { Digit temp(m_digit); ++(*this); return temp; } 이렇게 주소를 넘겨주는 건 되는데 왜 Digit& operator ++ (int) { Digit temp(m_digit); ++(*this); return *temp; } 저렇게 값을 넘겨주면 Indirection requires pointer operand 와 같은 에러가 발생되는 건지 모르겠어요.
-
미해결홍정모의 따라하며 배우는 C++
마지막 후위 연산자에서는 왜 Digit의 값이 아닌 주소를 리턴하는 건가요?
Digit operator ++ (int) { Digit temp(m_digit); ++(*this); return temp; } 여기서 Digit& operator ++ (int) { Digit temp(m_digit); ++(*this); return *temp; } 시에 왜 Indirection requires pointer operand ('Digit' invalid) 가 뜨는지 모르겠어요
-
해결됨홍정모의 따라하며 배우는 C언어
[08:22] c++에서 열거형에 대해서 증감연산자가 허용되지 않는 부분
안녕하세요? 1.=============================================== c++에서 열거형에 대해서 증감연산자가 허용되지 않는 부분이 for문에서는 단순히 1 증가시키는 것으로 사용해야 하는데 연산자 오버로딩을 통해서 오버로딩을 한다면 헷갈릴 수 있어서 허용 안해주는 거라고 봐도 되나요? 2.============================================ [10:55] 아 이제야 enum의 편리함을 알 수 있을 것 같습니다. 감사합니다.
-
해결됨it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
46번 먹방문제) 소스코드좀 봐주세요.
int a[100001]; int main(void) { int n,k,i; scanf("%d",&n); for(i=1; i<=n; i++) { scanf("%d",&a[i]); } scanf("%d",&k); i=1; int time=0; while(1) { if(a[i]!=-1) { a[i]=a[i]-1; if(a[i]==0) { a[i]=-1; } time++; } if(time==k) { i++; break; } i++; if(i==n+1) { i=1; } } while(1) { if(i==n+1) { i=1; } if(a[i]!=-1) { printf("%d",i); break; } i++; } } 위처럼 했는데 채점해보니 나머지는 괜찮은데 2번이 시간초과가 나와서 80점이 나옵니다.. 어디가 잘못된걸까요? 2번 입력을 보니 3 1 2 3 6 이라, 시간초과가 나올리가 없는데 시간초과가 나오네요.
-
미해결[김왼손의 왼손코딩] 미운코딩새끼: 4시간 만에 끝내는 파이썬 기초 (전자책 포함)
전자책은 어디서 볼 수 있을까요?
전자책 포함이라고 적혀있는데 어디서 확인 가능 할까요?
-
해결됨홍정모의 따라하며 배우는 C언어
[04:50] 음성 status가 원일 때 -> status가 0일 때
안녕하세요? 1.================================= [04:50] 음성 status가 원일 때 -> status가 0일 때로 바뀌어야 할 거 같습니다. 2.================================ 이 예제에서 공용체가 없었다면 car_data구조체 안에 두 개의 구조체를 사용해야하지만 (po, co 두 구조체를 묶은)공용체가 있어서 사용하기에 더 편리해진거죠? 감사합니다. <전체코드> /* by neuezeal. */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> struct personal_owner { char rrn1[7]; //Resident Registration Number char rrn2[8]; //ex: 830422-1185600 }; struct company_owner { char crn1[4]; //Company Registration Number char crn2[3]; // ex: 111-22-33333 char crn3[6]; }; union data { struct personal_owner po; struct company_owner co; }; struct car_data { char model[15]; int status; /* 0 = personal, 1 = company */ union data ownerinfo; }; void print_car(struct car_data car) { printf("-----------------------\n"); printf("Car model : %s\n", car.model); if (car.status == 0) /* 0 = personal, 1 = company */ printf("Personal owner : %s-%s\n", car.ownerinfo.po.rrn1, car.ownerinfo.po.rrn2); else printf("Company owner : %s-%s-%s\n", car.ownerinfo.co.crn1, car.ownerinfo.co.crn2, car.ownerinfo.co.crn3); printf("-----------------------\n"); } int main() { struct car_data my_car = { .model = "Avante",.status = 0, .ownerinfo.po = {"830422", "1185600"} }; struct car_data company_car = { .model = "Sonata", .status = 1,.ownerinfo.co = {"111", "22", "33333"} }; print_car(my_car); print_car(company_car); return 0; }
-
해결됨[개정판] 파이썬 머신러닝 완벽 가이드
도서 구매 관련 문의
안녕하세요 ! 파이썬 머신러닝 완벽가이드 책을 구매하려고 하는데 절판이 되었드라구요 ㅠㅠ 혹시 이 책이 다시 나오나요!?
-
미해결R프로그래밍 기초 다지기
if 문 결과가 다름
m <- matrix(1:15, ncol = 3, byrow = T) m2 <- data.frame(m) m2 m3 <- NULL for (i in 1:10) { if(i %% 2 == 0){ next; } m3 <- rbind(m3, m2) cat('\n', i) } for (i in 1:10) { if(i %% 2 == 0){ }else{} m3 <- rbind(m3, m2) cat('\n', i) } 순차적으로 따라서 실행했으나 강의에서는 최종 dim(m3)가 25행으로 나오고 실행결과 75행이 됩니다.
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
무슨소리인지 모르겠어요
크롤링 개념이 너무 추상적이에요 각각의 다운받은 라이브러리가 뭘하는건지 모르겠구요 너무 어렵습니다
-
실전! 스프링 데이터 JPA
상속받는 엔티티 질문(outer join)
삭제된 글입니다
-
미해결Java TPC 실전프로젝트 (Java API 활용)
5강 질문입니다..
안녕하세요 강사님, 강의 잘 보고 있습니다. 5강에서 info.json파일을 getResourceAsStream로 찾아서, inputStream으로 가져오는 부분이 계속 에러가 나서요.. 뭐가 문제인지 애매합니다. debug찍어보니 NullPointer에서 문제가 있다고 나오긴 하는데, File도 강의 상에 있는 경로로 만들었고 다른걸로 메서드 import를 다른걸로 입력시킨 것도 아닌데.. 뭐가 문젠지 잘 모르겠네요.. 혹시몰라, 코딩 내용과 폴더 구조 올립니다.. 답변 부탁드립니다.. ㅠㅠ
-
해결됨웹퍼블리셔가 알려주는 실무 웹사이트 따라만들기 Season1
default.css
2번째 강의에서 header 잡는데 default.css를 갑자기 쓰시네요... 어디서 나타난건가요...
-
미해결Vue.js 시작하기 - Age of Vue.js
vue cli 설치 error
The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ npm install -g @vue/cli npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] { npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/yun-ali/.npm/_logs/2020-01-28T07_36_11_027Z-debug.log yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ yarn global add @vue/cli bash: yarn: command not found yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ npm install -g @vue/cli npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] { npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/yun-ali/.npm/_logs/2020-01-28T07_39_49_648Z-debug.log yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$
-
미해결트렐로 개발로 배우는 Vuejs, Vuex, Vue-Router 프론트엔드 실전 기술
로컬서버 오류 발생이요ㅜㅜㅜ
아래분은 11일인데 아직 해결이 안된건가요ㅜㅜㅜ node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/node-v72-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.2 and node@12.14.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.0.2 and node@12.14.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file 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 - "python" is not in PATH or produced an error 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 - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gypgyp ERR! find Python checking if Python is C:\Python37\python.exe ERR!gyp find PythonERR! gypfind Python - "C:\Python37\python.exe" could not be run ERR!gyp find PythonERR! Python is not set from command line or npm configuration gypfind Python ERR!gyp find Python Python is not set from environment variable PYTHON ERR!gyp find PythonERR! ********************************************************** gypfind Python checking if "python" can be used gypERR! ERR!find Python You need to install the latest version of Python. find Pythongyp - "python" is not in PATH or produced an error gypERR! ERR!find Python find Python Node-gyp should be able to find and use Python. If not, checking if "python2" can be used gypgyp ERR!ERR! find Pythonfind Python you can try one of the following options: - "python2" is not in PATH or produced an error gypgyp ERR! ERR!find Python - Use the switch --python="C:\Path\To\python.exe" find Pythongyp checking if "python3" can be used gypERR! ERR!find Python (accepted by both node-gyp and npm) find Pythongyp - "python3" is not in PATH or produced an error gyp ERR!ERR! find Pythonfind Python - Set the environment variable PYTHON checking if the py launcher can be used to find Python 2 gypgyp ERR!ERR! find Pythonfind Python - Set the npm configuration variable python: - "py.exe" is not in PATH or produced an error gypgyp ERR!ERR! find Pythonfind Python npm config set python "C:\Path\To\python.exe" checking if Python is C:\Python27\python.exe gyp gypERR! ERR!find Python For more information consult the documentation at: find Pythongyp - "C:\Python27\python.exe" could not be run gypERR! ERR!find Python https://github.com/nodejs/node-gyp#installation find Pythongyp checking if Python is C:\Python37\python.exe gypERR! ERR! find Pythonfind Python ********************************************************** - "C:\Python37\python.exe" could not be run gypgyp ERR!ERR! find Python find Python gyp gyp ERR!ERR! find Pythonconfigure error ********************************************************** gyp ERR!gyp find PythonERR! You need to install the latest version of Python. gypstack Error: Could not find any Python installation to use ERR!gyp find PythonERR! Node-gyp should be able to find and use Python. If not, gypstack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) ERR!gyp find PythonERR! you can try one of the following options: stackgyp at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gypERR! ERR! find Pythonstack - Use the switch --python="C:\Path\To\python.exe" gyp at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gypERR! ERR!find Python (accepted by both node-gyp and npm) stackgyp at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! ERR!find Python - Set the environment variable PYTHON stackgyp at exithandler (child_process.js:302:5) gypERR! ERR!find Python - Set the npm configuration variable python: stackgyp at ChildProcess.errorhandler (child_process.js:314:5) gypERR! ERR!find Python npm config set python "C:\Path\To\python.exe" stackgyp at ChildProcess.emit (events.js:210:5) gypERR! ERR!find Python For more information consult the documentation at: stackgyp at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) gypERR! ERR!find Python https://github.com/nodejs/node-gyp#installation stackgyp at onErrorNT (internal/child_process.js:456:16) gypERR! ERR!find Python ********************************************************** stackgyp at processTicksAndRejections (internal/process/task_queues.js:80:21) ERR! find Python gyp ERR! System Windows_NT 10.0.18362 gypgyp ERR!ERR! commandconfigure error "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\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=napi" gyp ERR!gyp cwdERR! C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 gypstack Error: Could not find any Python installation to use ERR!gyp node -vERR! v12.14.0 gypstack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) ERR!gyp node-gyp -v ERR! v5.0.5 stackgyp at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gypERR! ERR! not okstack 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:302:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:314:5) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) gyp ERR! stack at onErrorNT (internal/child_process.js:456:16) node-pre-gypgyp ERR! ERR!build error stack at processTicksAndRejections (internal/process/task_queues.js:80:21) node-pre-gyp gyp ERR!ERR! stackSystem 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\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) node-pre-gyp Windows_NT 10.0.18362 gypERR! ERR!stack at ChildProcess.<anonymous> (C:\Users\user\lecture-vue-trello-server\node_modules\node-pre-gyp\lib\util\compile.js:83:29) commandnode-pre-gyp "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\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=napi" ERR!gyp ERR!stack at ChildProcess.emit (events.js:210:5) cwdnode-pre-gyp C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 gypERR! ERR!stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp node -vERR! v12.14.0 gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) node-gyp -vnode-pre-gyp v5.0.5 gypERR! System Windows_NT 10.0.18362 ERR!node-pre-gyp not okERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 node-pre-gyp ERR! node -v v12.14.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.3 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\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) npm WARN lecture-vue-trello-server@1.0.0 No description npm WARN lecture-vue-trello-server@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.0.2 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.0.2 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\user\AppData\Roaming\npm-cache\_logs\2020-01-28T07_36_52_640Z-debug.log
-
미해결Angular(2+) Front에서 Back까지 - Nest js를 알려면 Angular 모듈을 알아야한다!
Angular Injector 관련 질문있습니다.
좋은 강의, 친절한 답변 너무 감사드립니다! 다름이 아니라, Angular의 서비스는 싱글톤으로 알고있는데, 부모 컴포넌트와 하위 컴포넌트가 각각 자신의 Injector로 서비스를 주입받으면, 별개의 서비스 객체를 참조하게 되는 것 같은데, 그러면 완전한 싱글톤이라기보다 injector별로 서비스 객체가 생성된다고 이해해도 괜찮은걸까요?
-
미해결홍정모의 게임 만들기 연습 문제 패키지
실행 문제.
opengl 사용법을 보고 다정확하게 깔았는데 이부분만 빨간색으로 표시가 나타납니다. 혹시 몰라 다운받은 파일에 glew,glfw파일이 있는지도 봤는데 파일도 다있는 상태입니다. 파일 소스를 열수 없다는 에러는 왜 뜨는 걸까요? 답변주시면 감사드립니다
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
사용법에 대한 문의
try catch를 명확하게 언제쯤 사용하는지 잘 몰라서요.. 제가 봤을때는 이게 if else 문과 별다른 차이가 없어 보이는데 어떠한 용도로 어떤식으로 처리를 해야하는건지 어렵네요..ㅠㅠ