묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 2 - 불량사과를 찾아라!
불량사과 식별 YOLO데이터 생성하기의 다음은 챕터는 어디인가요?
원하는 이미지로 YOLO 데이터 만들기 내 불량사과 식별 YOLO데이터 생성하기의 다음은 챕터는 어디인가요? 순서를 보면 Colab으로 DarkNet학습환경 만들기이고 .... 내용이 혼란스럽네요...
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
로그인시 비밀번호가 틀렸습니다.
안녕하세요. 실습을 하다가 로그인시 맞는 비밀번호( 틀릴까봐 0000 으로 작성해봤습니다.)를 입력해도 "비밀번호가 틀렸습니다."라고 나옵니다. 혹시 제 코드가 잘못 되었나 해서 수정해보다가 혹시나 해서 선생님 git 에서 clone 받아서 실행시켜 봐도 같은 증상입니다. 그 이전에 회원가입시에 SequelizeDatabaseError: Data too long for column 'password' at row 1 라는 서버에러가 떠서 검색해보고 set global sql_mode='' 로 셋팅해서 회원가입을 하면 가입은 정상작동은 확인되는데 맞는 비밀번호를 입력해도 계속적으로 "비밀번호가 틀렸습니다." 라는 부분이 작동합니다. ㅜㅜ 제가 어느부분을 확인해봐야할까요?
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
GPU 할당량 신청 거부시 학습 방법?
안녕하세요. 동영상 강의로 전반적인 개념 이해 후 실습을 진행해보려는 수강생입니다. 당장 GCP에서 GPU할당 신청부터 거부당해 어떻게 해야할지 막막하네요 ㅠ 다른 질문들을 읽어보니 GPU 없이도 전반부 강의는 따라올수 있다고 해서 일단 GPU 신청과 별개로 실습을 따라가보고 싶네요. GPU 신청이 안될때는 VM 인스턴스를 어떻게 생성하면 될까요? 처음 예시로 보여준 'vm01' 인스턴스로 진행해도 문제가 없을지요. 도움 부탁드려요~
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm install
섹션 0 두번 째 강의에서 npm install 하는 곳부터 에러가 나는데 > bcrypt@3.0.8 install C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.8 and node@12.18.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Remote end closed socket abruptly. 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 gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack 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:310:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12) gyp ERR! stack at onErrorNT (internal/child_process.js:469:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21) gyp ERR! System Windows_NT 10.0.18362 gyp ERR! command "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\\118dg\\Downloads\\boilerplate-mern-stack-master\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\118dg\\Downloads\\boilerplate-mern-stack-master\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" gyp ERR! cwd C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v12.18.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack 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\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) node-pre-gyp ERR! System Windows_NT 10.0.18362 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\118dg\\Downloads\\boilerplate-mern-stack-master\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v12.18.3 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 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\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\118dg\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 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\118dg\AppData\Roaming\npm-cache\_logs\2020-07-31T21_23_04_559Z-debug.log 이 에러는 어떻게 해결하면 될까요? ㅠ 파이썬도 최신 버전으로 다시 설치해보고 이것저것 시도해봐도 안되네요 ㅠ
-
미해결홍정모의 따라하며 배우는 C언어
if문의 !line_flag에 대해 질문 드립니다.
bool line_flag = false; 로 line_flag의 초기값이 false입니다. 4분 18초 경 if(!isspace(c) && !line_flag)에서 "line_flag가 false라면, 앞에 !이 붙었기 때문에 요거 자체가 true가 아니라면" 라고 말씀해주시는데 여기서 헷갈립니다 ㅠ line_flag가 false인데 !line_flag는 true여야 되지 않나요? 애초에 논리연산자 && 면 둘 다 true여야 if문의 body가 실행될텐데 !line_flag가 true여야 하는게 아닌지 궁금합니다 ㅠㅠ
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
서버사이드 렌더링과 클라이언트 사이드 렌더링에 대해
Next가 결국 첫 방문시에는 서버사이드 렝더링을 해주고 그 다음부터 클라이언트 사이드 렌더링을 해준다는 이야기인가요? 그리고 Next를 쓰지 않고 create-react-app으로 프로젝트를 짜면 클라이언트 사이드 렌더링만 하는건가요?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
Global관하여
slick 과 충돌이 발생하여 css 적용하게 하기 위해 export const Global = createGlobalStyle` .slick-slide { display: inline-block; } ` 해당 코드를 쓰셨다고 했는데 어떻게 slick-slide class 인걸 하고 쓰셨는지 궁금합니다 이후에 이런 문제가 발생하였을 시에 어떤 방식으로 찾아서 처리해야하는 지 감이 잘 안옵니다..질문이 좀 이상한가요 ?..ㅜㅜ
-
해결됨[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
typeError 관련 질문입니당
아래 그림에서,, 이렇게 하면 에러가 나는데,, 왜 그럴까요 ㅠ
-
미해결프론트엔드 개발환경의 이해와 실습 (webpack, babel, eslint..)
수업을 듣고 궁금한 점이 있습니다!
우선 좋은 강의 감사합니다. 😄 개발 환경을 구현하고 나서 그 후에 이 환경에서 어떤 방식으로 개발을 진행하는지 궁금합니다. 기본적인 프로젝트 구조나, routing 등 프론트엔드 실무에서 사용하는 여러가지들을 해당 환경에 적용하는 방법을 알 수 있을까요? 항상 구조가 짜여져 있는 환경에서 개발을 하다가 직접 환경을 구성하는 연습을 해보니 감이 잘 잡히지 않네요... ㅠ
-
미해결쉽게 배우는 Webpack
추가 강좌 개설해 주시면 어떨런지요? 시간이 되신다면요^^
안녕하세요 캡틴판교님 오랜만에 인사드리네요 점점더 왕성한 활동을 하셔서 너무 보기 좋습니다. 저도 덕분에 여러 프로젝트에서 Vue.js Webpack을 사용하여 효율적이고 재미있게 진행했습니다. 몇년 후에는 JS로 모바일 App을 거의 Native 수준으로 구현할 수 있으리라 생각합니다. 혹시 시간되실 때 Ionic Vue 나 PWA 에 대한 깊이 있는 실전 프로젝트를 더 다루어 주신다면 매우 유익하고 웹 프론트 개발자가 앱 영역에 도전하는데 많은 도움과 영향을 주실 수 있으리라 믿습니다. 항상 솔직 담백함과 겸허한 열정으로 지식을 공유하시는 캡틴판교님 진정한 엔지니어 이십니다. 항상 감사 드립니다. ^^
-
미해결애플 웹사이트 인터랙션 클론!
푸터 문제
7:45까지 똑같이 따라했는데 footer인 주황색 박스가 상하좌우로 공간이 생겨요. 선생님껀 푸터 양옆이 꽉차있는데 제껀 왜이러죠??
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문
클래스의 heap 할당
스택과 달리, heap은 프로그램 실행 중간에 동적으로 할당되는 메모리 공간이라고 알고 있습니다. 질문1)그렇다면 동적 할당이란 무엇인가요?실행 도중에 동적으로 할당 받는다는게 어떤 경우이고어떤 의미인지 잘 모르겠습니다 질문2)클래스의 어떤 부분이 동적 할당이라는 건가요?구조체와 똑같이 변수 할당하고 메소드도 있고 한데, 이유가 매우 궁금합니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
쿠키 & 세션 질문
안녕하세요^^쿠키 와 세션에 관해서 질문이 있습니다.1. 로그인 구현할때 express-session을 통해서 연습을 하고 있는데 서버가 세션을 보내고 브라우저는 쿠키를 받는다.여기서 쿠키가 암호화가 되는이유가 express-session의옵션값으로 secret값을 가지고 해싱을 한 후 브라우저에게 주기 때문에 쿠키값이 해싱이된다. 라고 이해를 하고 있습니다.맞나연?그리고 요청이 올때는 쿠키값을 해독한 다음req.session에 들어오는 건가요??2. 그리고 로그인 요청이 올때 세션에 있는 유저 정보와 데이터베이스에 있는 유저랑 매칭 후 있으면 로그인을 시킨다.여기서도 express-session으로 구현을 해보았는데 // 요청 온 아이디와 일치하는게 데이터베이스에 있다면req.session.userId = 변수.id;이부분에서 여러사용자가 로그인 요청이 올수도 있기때문에 req.session에userId 값들을 배열로 담는것이 맞나요? ex) req.session.userId = [];req.session.userId.push(변수.id);제가 잘못생각한게 있으면 고쳐주시면 감사하겠뜹니다.
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
예제 코드와 관련해서
from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score import pandas as pd import warnings warnings.filterwarnings('ignore') # 결정 트리에서 사용한 get_human_dataset( )을 이용해 학습/테스트용 DataFrame 반환 X_train, X_test, y_train, y_test = get_human_dataset() get_human_dataset() # 랜덤 포레스트 학습 및 별도의 테스트 셋으로 예측 성능 평가 rf_clf = RandomForestClassifier(random_state=0) rf_clf.fit(X_train , y_train) pred = rf_clf.predict(X_test) accuracy = accuracy_score(y_test , pred) print('랜덤 포레스트 정확도: {0:.4f}'.format(accuracy)) 해당 코드 실행시 나오는 에러 구문입니다. 제가 타이핑 한 구문도 아니고 퍼펙트 가이드에 있는 주피터 노트북 구문 그대로 복사 붙여넣기를 했음에도 불구하고 에러가 나옵니다. 그 전에도 이런 상황과 비슷하게 퍼펙트 가이드 폴더에 있는 주피터 노트북으로 실행을 했음에도 불구하고 에러가 나오는 경우가 몇번 있었습니다.
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
안녕하세요. wrong answer가 뜨는경우
답이 전부 틀렸다고 나옵니다 in1~5, out1~5 까지 제가 직접 숫자를 넣어서 프로그램 돌려보면 답이 다 맞는데 채점기 돌리면wrong answer가 뜹니다 어떤게 잘못된걸까요...?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
제가 passport_Google_OAuth_2.0 을 따라서 작성을 한 후 saga에서 서버로 /google/ 쿼리를 넣었더니 cors 에러가 뜹니다
제가 직접 주소창에 (서버포트:3090) localhost:3090/google을 치면 제대로 제 google-email을 가져오지만 saga를 통해서 (client포트: 9229) localhost:3090/google을 넣으면 cors policy가 뜹니다 saga에서 서버로 가는 요청은 제대로 가는데 resource 서버로 가는 요청이 cors에 막히는 것 같습니다. 제 생각에는 front server에서 직접 google server에 인증을 요청하는 게 방법일 수 있을거 같은데 맞나요? 지금 제 코드는 saga에서 요청을 보내면 backend에서 authenticate를 하고 있습니다. 그래서 redirect를 하면서 cors 에러가 생기는게 아닐까? 해서 그랬습니다. 소스코드는 githhub에 있습니다. https://github.com/JeongJin984/Kit-Books 밑은 에러 입니다.
-
해결됨실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
디비에 값이 입력이 안됩니다
안녕하세요 ~ 계속 디비에 값이 입력이 안됩니다.. 테이블 생성까지는 잘되는데 오류도안나오구 뭐가 문제인지 감이 안잡힙니다 그리고 확인해보니깐 저는 transactional rollback 로그가 계속 안찍힙니다.. gradle 빌드가 너무 오래걸려서 인텔리j로 빌드로 되게 옵션을 설정을 한 상태입니다 The Class-Path manifest attribute in C:\Users\User\.gradle\caches\modules-2\files-2.1\org.glassfish.jaxb\jaxb-runtime\2.3.1\dd6dda9da676a54c5b36ca2806ff95ee017d8738\jaxb-runtime-2.3.1.jar referenced one or more files that do not exist: file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/jaxb-api-2.3.1.jar,file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/txw2-2.3.1.jar,file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/istack-commons-runtime-3.0.7.jar,file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/stax-ex-1.8.jar,file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/FastInfoset-1.2.15.jar,file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.1/dd6dda9da676a54c5b36ca2806ff95ee017d8738/javax.activation-api-1.2.0.jar . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.17.BUILD-SNAPSHOT) 2020-07-31 20:13:32.572 INFO 1008 --- [ restartedMain] jpashop.jpabook.JpabookApplication : Starting JpabookApplication on DESKTOP-H66EP9G with PID 1008 (C:\Users\User\Spring\jpabook\out\production\classes started by User in C:\Users\User\Spring\jpabook) 2020-07-31 20:13:32.576 INFO 1008 --- [ restartedMain] jpashop.jpabook.JpabookApplication : No active profile set, falling back to default profiles: default 2020-07-31 20:13:32.679 INFO 1008 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2020-07-31 20:13:32.680 INFO 1008 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 2020-07-31 20:13:34.406 INFO 1008 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2020-07-31 20:13:34.456 INFO 1008 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 35ms. Found 0 JPA repository interfaces. 2020-07-31 20:13:35.837 INFO 1008 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2020-07-31 20:13:36.026 INFO 1008 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2020-07-31 20:13:36.027 INFO 1008 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.37] 2020-07-31 20:13:36.289 INFO 1008 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2020-07-31 20:13:36.290 INFO 1008 --- [ restartedMain] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3610 ms 2020-07-31 20:13:36.563 INFO 1008 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2020-07-31 20:13:36.674 INFO 1008 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2020-07-31 20:13:36.774 INFO 1008 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2020-07-31 20:13:36.877 INFO 1008 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.3.17.Final} 2020-07-31 20:13:36.879 INFO 1008 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2020-07-31 20:13:37.087 INFO 1008 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2020-07-31 20:13:37.291 INFO 1008 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2020-07-31 20:13:38.041 DEBUG 1008 --- [ restartedMain] org.hibernate.SQL : drop table member if exists 2020-07-31 20:13:38.045 DEBUG 1008 --- [ restartedMain] org.hibernate.SQL : drop sequence if exists hibernate_sequence 2020-07-31 20:13:38.048 DEBUG 1008 --- [ restartedMain] org.hibernate.SQL : create sequence hibernate_sequence start with 1 increment by 1 2020-07-31 20:13:38.048 DEBUG 1008 --- [ restartedMain] org.hibernate.SQL : create table member ( id bigint not null, username varchar(255), primary key (id) ) 2020-07-31 20:13:38.050 INFO 1008 --- [ restartedMain] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@70dc37ec' 2020-07-31 20:13:38.053 INFO 1008 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2020-07-31 20:13:38.075 INFO 1008 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2020-07-31 20:13:38.544 INFO 1008 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-07-31 20:13:38.624 WARN 1008 --- [ restartedMain] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2020-07-31 20:13:38.683 INFO 1008 --- [ restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] 2020-07-31 20:13:39.089 INFO 1008 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2020-07-31 20:13:39.095 INFO 1008 --- [ restartedMain] jpashop.jpabook.JpabookApplication : Started JpabookApplication in 7.38 seconds (JVM running for 8.413)
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
다른 방식으로 코드를 작성해보았습니다.
수업 열심히 듣고 있습니다. 좋은 수업 감사합니다. 저는 연속적인 구구단 입력에 대한 코드를 다음과 같이 작성해보았습니다. ============================================= user_input = int(input("구구단 몇단을 작성할까요(1~9)? 종료하시려면 0을 입력해주세요. ")) while (user_input < 0 and user_input > 9): print("숫자를 잘못 입력하셨습니다. 다시 입력해주세요") user_input = int(input()) while(user_input != 0): print("구구단", user_input,"단을 작성합니다.") for i in range(1,10): result = user_input * i print(user_input, "X", i, "=", result) user_input = int(input("구구단 몇단을 작성할까요? ")) if(user_input == 0): break print("구구단 작성을 종료합니다.") ============================================= 개선점이나 잘못된 점을 알려주시면 감사하겠습니다.
-
미해결인터랙티브 웹 개발 제대로 시작하기
여기서 변수설정해줄때 질문있습니다.
this.lastScrollTop을 선언해줄때 계속 코드를 작성하던 이벤트 함수 안이나 init함수 안에서 선언해주는것이 아닌 생성자 함수를 만들때 넣어주시는데 꼭 그렇게 하는 이유가 있나요? 혹시 나중에 다른 추가적인 함수들에서 그 변수를 쓸 경우를 고려하셔서 그렇게 하시는 건가요?
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
JPA Delete 동작이 궁금합니다.
안녕하세요. 좋은 강의를 제공해주신 덕분에 JPA를 열심히 공부하고 있습니다. JPA 사용 중에 궁금한 점이 있는데요 delete동작 방식을 보니, em.find로 entity를 조회 후에 em.remove순으로 query가 동작하고 있습니다. Mysql에서 null인 값을 조건절로 삭제해봐도 에러는 발생하지 않는데, JPA만의 특별한 이유가 있을까요? 두 번째로 궁금한 점도 있습니다ㅎㅎ JPA에서는 foreign key 제약조건을 위반하지 않기 위해서 모든 sql이 아래의 순서로 동작한다고 합니다. 1. Insert, in the order they were performed 2. Updates 3. Deletion of collection elements 4. Insertion of collection elements 5. Deletes, in the order they were performed 위의 조건으로 인해 하나의 transaction안에서 unique key걸린 값을 remove후 save하면 duplicate error가 발생하는데요. 혹시 이것도 JPA만의 특별한 이유가 있는지 너무너무 궁금합니다!