묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결
sizeof 부분이 자꾸 오류가 나오네요
#include <stdio.h> int main(void) { char name[256]; printf("이름이 뭐에요? "); scanf_s("%s", &name, sizeof(name)); int age; printf("몇살이세요? "); scanf_s("%d", &age); float weight; printf("몸무게는 몇 kg 이에요? "); scanf_s("%f", &weight); double height; printf("키는 몇 cm 이에요? "); scanf_s("%lf", &height); char what[256]; printf("어떤 범죄를 저질렀나요? "); scanf_s("%s", &what, sizeof(what)); //조서 내용 출력 printf("\n\n--- 범죄자 정보 ---\n\n"); printf("이름 : %s\n", name); printf("나이 : %d\n", age); printf("몸무게 : %.2f\n", weight); printf("키 : %.2lf\n", height); pirntf("범죄 : %s\n", what); return 0; } 으로 코딩문을 작성했는데 C6328 크기 불일치: 'unsigned __int64'이(가) _Param_(3)으로 전달되었습니다. 다음 호출에는 'unsigned int'이(가) 필요합니다. 'scanf_s'. 라는 오류가 뜨는데 어디가 잘못된건지 잘 모르겠습니다.
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
Set the SECRET_KEY environment variable 오류가 계속 뜨네요
pragmatic 에 settings 파이썬 패키지를 만들고 settings.py를 새로만든 settings 에 옮기고 base.py로 바꾸고 deploy, local을 만들고 디렉토리 관련된것들 deploy,local에 옮기고 데이터베이스도 옮기고 deploy 디버그는 false로 하고 datebase 사이트 들어가서 바꾸고 base.py parent 한번 더 붙이고 manage.py 마지막 .local을 붙였는데 Set the SECRET_KEY environment variable 이렇게 뜨네요 어떻게 해야할까요? 계쏙
-
해결됨비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
MySQL 비밀번호 초기화 방법
가끔씩 MySQL 비밀번호 설정을 잘못하거나 오류가 나서 초기화해야하는 경우가 있습니다. 그럴 땐 아래 단계를 따라주시면 됩니다. 0. 터미널 관리자 권한 sudo su 1. Mysql 종료 service mysql stop 2. Mysql 인증 생략 옵션 추가 & 안전모드로 mysql 실행 /usr/bin/mysqld_safe --skip-grant-tables & 이러면 아마 /var/run/mysqld 에 유닉스 소켓 파일이 없다는 에러가 뜰 수도 있습니다. 이럴땐 해당 경로를 생성하고 권한 설정을 해주면 됩니다. - 폴더 생성 mkdir -p /var/run/mysqld - 권한 설정 chown -R mysql:mysql /var/run/mysqld - 다시 인증 생략하고 mysql 실행 /usr/bin/mysqld_safe --skip-grant-tables & 여기까지해서 mysqld_safe starting ~~~ 이런 문구가 뜨면 정상적으로 실행된거라고 보시면 됩니다. 3. mysql 콘솔 진입 인증 생략 옵션을 넣었기 때문에 비밀번호 없이 접근이 가능합니다. mysql -u root 4. 비밀번호 재설정 update mysql.user set authentication_string=PASSWORD('비밀번호') WHERE user='root'; flush privileges; 5. mysql 재시작 service mysql restart
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요?
client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요? 강의하시는 프로젝트의 App.js 와 Config.js 위치가 component 안에 있는데, 제 경우에는 boiler plate를 받아왔을때, 위치가 client src 부분에 있는데, 이 상태로 실습을 진행하는 것은 상관없는 것인가요?
-
미해결겜팔이의 안드로이드 세뇌교실 - 인★그램 개발부터 배포까지
okhttp설치 코드 공유
https://goo.gl/91liKsb 경로 코드 받을 수 있을가요? 감사합니다. 수고하세요.
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]
9강 질문
안녕하세요 선생님 강의 잘 듣고 있습니다 다름이 아니라 9강을 듣다가 잘 이해가 안가서요 25분경에서 요청할때는 넘어오는 데이터가 없으니까 받을 필요가 없다고 하셨는데 클라가 서버에 요청을 할때 넘어오는 데이터가 없다는게 무슨 말인지 잘 이해가 안갑니다.. 그래서 resp를 쓰셨는데 요청을 하면 서버가 처리를 해서 응답을 하는 거 아닌가요? 왜 넘어오는게 없다는거죠??? 클라이언트가 요청을 해줬으니까 (우리가만든 페이지를 띄워야달라고 하는게 요청이라고 생각했어요) req라는 변수를 써줘야하는거 아닌가요? 그리고 resp가 클라이언트를 식별하고 있으니까 GetWriter를 이용해서 이 클라이언트와 연결된 출력 스트림을 하나 얻어오면 된다고 하셨는데 이게 무슨 소리일까요? 그리고 왜 System.out.println이라는 출력 소스가 따로 있는데 굳이 PrintWriter라는 클래스를 가지고와서 쓰는건가요? 그리고 클래스를 객체로서 사용하려면 Printwriter out = new Printwirter() 이런 형식으로 먼저 써줘야하지 않나요? 어떻게 바로 resp라는 변수를 넣을 수 있는걸까요?? 답변해주시면 감사하겠습니다.
-
미해결
npm install 에러
C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-master>npm install Debugger attached. npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old versio npm WARN old lockfile so supplemental metadata must be fetched from the registr npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals an update to graceful-fs@4.x. npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or highe npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compode.js npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading B npm WARN deprecated request-promise-native@1.0.8: request-promise-native has beated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#depre npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or highe npm WARN deprecated har-validator@5.1.3: this library is no longer supported npm WARN deprecated gulp-symlink@2.1.4: Use vinyl-fs.symlink (or gulp.symlink w npm WARN deprecated babel-preset-es2017@6.24.1: 🙌 Thanks for using Babel: we ad https://babeljs.io/env to update! npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, folljs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/sou npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#de npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source- npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, f npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older mstances, which is known to be problematic. See https://v8.dev/blog/math-rando npm WARN deprecated request@2.88.2: request has been deprecated, see https://gi npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacynstead. npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updatewer dependencies npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, folpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "cof npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gypated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgra npm WARN deprecated parcel-bundler@1.12.4: Parcel v1 is no longer maintained. Phe 'parcel' package. See https://v2.parceljs.org/getting-started/migration for npm WARN deprecated core-js@2.6.11: core-js@<3.4 is no longer maintained and nosues. Because of the V8 engine whims, feature detection in old core-js versionsing is polyfilled. Please, upgrade your dependencies to the actual version of c npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-master\node_ npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js npm ERR! Debugger attached. npm ERR! Debugger attached. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | win32 | x64 npm ERR! gyp info find Python using Python version 3.9.7 found at "C:\Users\use npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Promp npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 o for more details npm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ***************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Stud npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ***************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejsd-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Prognode-gyp\lib\find-visualstudio.js:363:14) npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Fiode-gyp\\bin\\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-mast npm ERR! gyp ERR! node -v v16.14.2 npm ERR! gyp ERR! node-gyp -v v8.4.1 Z-debug-0.log Waiting for the debugger to disconnect..connect... vs code 터미널 창에 npm install을 입력했는데 다음과 같은 에러가 나옵니다. 어떻게 해결하는지 도저히 모르겠는데 도와주세요..! ㅠㅠ
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
섹션 8을 수강하며 궁금한 점이 있습니다..
섹션8.재귀함수와완전탐색(DFS:깊이우선탐색)을 전부 들었는데요. 아직은 알듯 말듯한 느낌이있는데특히나 자신이 없는 부분이어떤 경우에 방문 체크를 해야하고, 또 어떤 경우에는 방문 체크 없이 구현해야 하는지.. 잘 감이 안옵니다. 혹시 규칙같은게..있나요?
-
미해결파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
연탄이.. .신택스 에러가 납니다
# 애완동물을 소개해 주세요~ animal = "강아지" name = "연탄이" age = 4 hobby = "산책" is_adult = age >= 3 print("우리 집" + animal +"의 이름은" + name + "예요.") print(name + "는" + str(age) +"살이며," + hobby + "을 아주 좋아해요.") print(name + "는 어른일까요?" + str(is_adult)) 이렇게 코드를 짰는데 제가 보기에는 다른 부분이 없는데 유효하지 않은 신택스라고 나와요..
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
강의를 듣고 응용해봤는데 질문있습니다
강의의 게시판 만들기 부분을 실습하고 나서 게시글 양식으로 만드셨던 board_list_item.xml을 이렇게 변경해봤습니다. 나머지 글들은 강의에서 하던대로 따라해서 불러와지는게 되는데 제가 추가한 저 초록색사진은 글을 작성할때 즉 강의 상의 코드인 BoardWriteActivity.kt에서 사진이 첨부되면 그 첨부된 사진이 저 초록색사진에 같이 업로드 되게끔 만들고 싶습니다. 저 사진의 id값은 preview입니다. <?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".Sell"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar2" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" android:theme="?attr/actionBarTheme" app:titleTextColor="@color/white" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="판매글 작성" android:textSize="23sp" android:textStyle="bold"/> </androidx.appcompat.widget.Toolbar> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <EditText android:id="@+id/et_newtitle" android:layout_width="330dp" android:layout_height="50dp" android:layout_marginLeft="20dp" android:layout_marginTop="70dp" android:gravity="center" android:maxLength="15" /> <EditText android:id="@+id/et_originalname" android:layout_width="330dp" android:layout_height="50dp" android:layout_marginLeft="20dp" android:layout_marginTop="20dp" android:gravity="center" android:hint="※주의 : 책 제목 그대로 써주세요 ※" android:maxLength="100" /> <EditText android:id="@+id/et_price" android:layout_width="330dp" android:layout_height="50dp" android:hint="숫자 옆에 원을 붙여주세요" android:layout_marginLeft="20dp" android:layout_marginTop="20dp" android:gravity="center" android:maxLength="10" /> <ImageView android:id="@+id/imageupload" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/baseline_add_black_48dp" android:layout_marginTop="30dp" /> <EditText android:id="@+id/et_newdetail" android:layout_width="334dp" android:layout_height="260dp" android:layout_marginLeft="20dp" android:layout_marginTop="30dp" android:layout_marginBottom="10dp" android:background="@drawable/boxline" android:ems="10" android:gravity="top" android:hint="내용을 입력하세요." android:maxHeight="200dp" android:maxLength="200" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="96dp" android:layout_marginBottom="60dp" android:gravity="center" android:orientation="horizontal" android:paddingTop="30dp"> <Button android:id="@+id/upload" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="50dp" android:text="올리기" /> <Button android:id="@+id/cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="취소" /> </LinearLayout> </LinearLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/newtitle" android:layout_width="35dp" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginTop="90dp" android:text="제목" android:textSize="16sp" /> <TextView android:id="@+id/newname" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:layout_marginTop="160dp" android:text="상품명" android:textSize="15sp" /> <TextView android:id="@+id/price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="235dp" android:text="판매가격" android:textSize="13sp" /> <TextView android:id="@+id/newpicture" android:layout_width="35dp" android:layout_height="17dp" android:layout_marginLeft="15dp" android:layout_marginTop="300dp" android:text="사진" android:textSize="16sp" /> <TextView android:id="@+id/newdetail" android:layout_width="35dp" android:layout_height="28dp" android:layout_marginLeft="15dp" android:layout_marginTop="370dp" android:text="내용" android:textSize="16sp" /> </FrameLayout> </FrameLayout></ScrollView> package com.example.joonggo2import android.content.Intentimport android.graphics.Bitmapimport android.graphics.drawable.BitmapDrawableimport android.net.Uriimport android.os.Bundleimport android.provider.MediaStoreimport android.util.Logimport android.widget.Buttonimport android.widget.Toastimport androidx.appcompat.app.AppCompatActivityimport com.bumptech.glide.Glideimport com.example.joonggo2.databinding.ActivityBoardInsideBindingimport com.example.joonggo2.databinding.ActivityMainBindingimport com.example.joonggo2.databinding.ActivityMifBindingimport com.example.joonggo2.databinding.ActivitySellBindingimport com.google.firebase.ktx.Firebaseimport com.google.firebase.storage.ktx.storageimport java.io.ByteArrayOutputStreamclass Sell : AppCompatActivity() { private lateinit var binding: ActivitySellBinding private val TAG = Sell::class.java.simpleName val storage = Firebase.storage private var isImageUpload = false override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivitySellBinding.inflate(layoutInflater) setContentView(binding.root) binding.upload.setOnClickListener{ val title = binding.etNewtitle.text.toString() val originalname = binding.etOriginalname.text.toString() val price = binding.etPrice.text.toString() val content = binding.etNewdetail.text.toString() val uid = FBAuth.getUid() val time = FBAuth.getTime() Log.d(TAG, title) Log.d(TAG, content) val key = FBRef.writein.push().key.toString() FBRef.writein .child(key) .setValue(BoardModel(title, originalname, price, content, uid, time)) Toast.makeText(this,"게시물이 업로드 되었습니다.", Toast.LENGTH_LONG).show() if(isImageUpload == true) { imageUpload(key) } val intent = Intent(this, AfterLoginmain::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) startActivity(intent) } binding.cancel.setOnClickListener { val intent = Intent(this, AfterLoginmain::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) startActivity(intent) } binding.imageupload.setOnClickListener { val gallery = Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI) startActivityForResult(gallery, 100) isImageUpload = true } } private fun imageUpload(key : String) {// Get the data from an ImageView as bytes val storageRef = storage.reference val mountainsRef = storageRef.child(key + ".png") val imageView = binding.imageupload imageView.isDrawingCacheEnabled = true imageView.buildDrawingCache() val bitmap = (imageView.drawable as BitmapDrawable).bitmap val baos = ByteArrayOutputStream() bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos) val data = baos.toByteArray() var uploadTask = mountainsRef.putBytes(data) uploadTask.addOnFailureListener { // Handle unsuccessful uploads }.addOnSuccessListener { taskSnapshot -> // taskSnapshot.metadata contains file metadata such as size, content-type, etc. // ... } } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) if(resultCode == RESULT_OK && requestCode == 100) { binding.imageupload.setImageURI(data?.data) } }} 위 사진두개는 강의에서 하신 BoardWriteActivity.kt와 역할이 같은 xml과 kt파일입니다. 지금 이 코드에서 글과 갤러리에서 사진을 첨부하는 기능은 모두 구현되어있습니다. 그런데 사진도 메인화면에 뜨게끔 하려니 너무 막막해서 질문드립니다...
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
java.lang.NoSuchMethodError 에러가 해결이 안됩니다..
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. 간단한 예제 작성이고, 기존에 잘 진행하던 H2 DB인데, 어느날 부터 갑자기 이런 오류 메세지가 뜨면서 테이블생성은 되나 입력 값이 전혀 들어가지 않는 오류가 발생하기 시작하였습니다. 이유를 도저히 찾을수가 없어서 질문 올립니다. 답 해주시면 감사하겠습니다. Hibernate: drop table if exists Item CASCADE 5월 07, 2022 2:09:36 오후 org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl getIsolatedConnection INFO: HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@2102a4d5] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. Hibernate: drop table if exists Member CASCADE Hibernate: drop table if exists OrderItem CASCADE Hibernate: drop table if exists ORDERS CASCADE Hibernate: drop sequence if exists hibernate_sequence Hibernate: create sequence hibernate_sequence start with 1 increment by 1 5월 07, 2022 2:09:36 오후 org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl getIsolatedConnection INFO: HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1e886a5b] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. Hibernate: create table Item ( ITEM_ID bigint not null, name varchar(255), price integer not null, stockQuantity integer not null, primary key (ITEM_ID) ) Hibernate: create table Member ( MEMBER_ID bigint not null, city varchar(255), name varchar(255), street varchar(255), zipcode varchar(255), primary key (MEMBER_ID) ) Hibernate: create table OrderItem ( ORDER_ITEM_ID bigint not null, count integer not null, ITEM_ID bigint, ORDER_ID bigint, orderPrice integer not null, primary key (ORDER_ITEM_ID) ) Hibernate: create table ORDERS ( ORDER_ID bigint not null, MEMBER_ID bigint, orderDate timestamp, status varchar(255), primary key (ORDER_ID) ) 5월 07, 2022 2:09:36 오후 org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService INFO: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 5월 07, 2022 2:09:36 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PoolState stop INFO: HHH10001008: Cleaning up connection pool [jdbc:h2:tcp://localhost/~/jpashop] Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.annotations.common.reflection.ReflectionManager.reset()V at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:414) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) at jpabook.jpashop.JpaMain.main(JpaMain.java:14)
-
미해결JIRA를 활용해 더 효과적으로 프로젝트 협업하기
jira 모바일 앱에서 날짜 추가는 어떻게 하나요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. jira 모바일 앱에 대해서 문의 드립니다jira 모바일 앱에서 날짜 추가는 어떻게 하나요?찾을수가 없습니다pc에서는 // 하면 캘린더로 날짜 추가가 나옵니다하지만 모바일에서는 이기능을 찾을수 없습니다모바일에서는 어떻게 캘린더로 날짜 추가를 합니까?
-
미해결JIRA를 활용해 더 효과적으로 프로젝트 협업하기
jira 이슈 외부 출력(pdf나 word 등) 앱에 대해 문의드립니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. jira 이슈 외부 출력(pdf나 word 등) 지원앱에 대해 문의드립니다 1. 목적은 최대한 손이 들가게 이슈를 pdf나 word등으로 출력해서 바로 보관이나 제출할수 있는 앱입니다2. 해당 이슈 작업에 대해 출력 하여 서버등에 보관을 할려고 하는데 제가아는 지원앱등으로 pdf 출력 후 보면 해당 이슈의 사진이 표시가 안되거나 되더라도 바로쓰기에는 모호합니다.한번더 손을 거쳐 작업 후 보관을 해야 합니다3. 하여, 제가 찾는 지원앱은 이슈를 word나 pdf 등으로 출력하면 사진 등이 댓글 에 그대로 들어가 있고 따로 정리를 안해도 그 상태로 보관을 해도 되는 정도 수준의 출력 지원앱이 있을까요?4. 아니면 출력 양식 형식을 제가 설정해서 출력할수 있는 앱이 있을까요?출력 앱들을 찾아 써봐도 원하는 수준의 앱을 찾기 힘들어서 문의 드립니다.아니면 , 어떤식으로 이슈의 내용들을 정리를 해서 보관해야 할까요?
-
미해결스프링 DB 1편 - 데이터 접근 핵심 원리
@Transactional 관련 커넥션풀 반환 원리 질문드립니다.
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 아니오[질문 내용]안녕하세요. 커넥션풀 반환에 관련되서 질문드리고자 합니다. 서비스단의 메소드에 @Transactional 을 사용해서 생성된 프록시의 마지막에 커넥션을 반환하는것으로 이해해습니다. @Transactional은 보통 update,insert,delete 쿼리가 존재하는 곳에 붙이는 것으로 알고 있는데요. 단순히 조회만하는 메서드에서 @Transactional을 안붙여도 어떻게 커넥션 풀이 반환되는지 궁금합니다. Service.java 코드에서 가령 10개의 메서드가 있는데 1개만 @Transactional이 붙여도 해당 클래스는 프록시가 생성되어 모든 메서드에 커넥션 풀이 반환되는 부분이 들어가는것으로 이해됩니다. 그렇다면 controller에서 바로 repository 메서드(select, update, insert, delete 등)를 호출해도 커넥션풀이 반환되는걸까요? 반환이된다면 원리가 궁금합니다. ※ 추가질문강의 내용 일부 중 JPA 트랜잭션 코드 예시에서 엔티티매니저 종료 & 엔티티 매니저 팩토리 종료 부분이 있는데 해당 부분이 커넥션 풀을 반환하는 것으로 이해하면 될까요?
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
혹시 책E북으로는 출간이 안될까요!?
안녕하세요! 해외에서 수강 신청한 학생입니다..^^ 일단 대뜸 강의부터 결제를 했는데... 외국이다보니 도무지 책을 구할 방법이 없네요..ㅠㅠㅠ 혹시 E북으로 출간된거나 온라인교재는 없을까요? 감사합니다..^^
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
StratifiedKFold 에서 iloc 사용 문의드립니다.
안녕하세요, 강의 잘 듣고 있습니다. StratifiedKFold 실습 코드의 아래 부분에서 iloc은 위치 기반 인덱싱이라고 알고 있는데 train_index, test_index가 들어가도 문제 없이 동작하는 이유가 궁금합니다. for train_index, test_index in skf.split(iris_df, iris_df['label']): n_iter += 1 label_train= iris_df['label'].iloc[train_index] label_test= iris_df['label'].iloc[test_index]
-
미해결일잘하는 마케터, MD에게 꼭 필요한 파이썬 데이터 분석
기상청 기온정보 크롤링 관련 질문
안녕하세요, 기상청 기온정보 크롤링 관련 질문이 있습니다. 현재 기상청 접속 URL 이 아래와 같이 변경된 것으로 보입니다. https://www.weather.go.kr/w/obs-climate/land/past-obs/obs-by-day.do?stn=108&yy=2021&mm=12&obs=1 또한 태그 구조나 명칭도 변경된 것 같은데 weather_info로 클래스 가져오는 부분에 넣어야 할 클래스명은 아래와 같이 over-scroll 이라는 이름으로 변경하는 것으로 생각했습니다. weather_infor = soup.select(".over-scroll") 위와 같이 변경해봤습니다. 위 조건에서 weather info를 확인해보니 다음과 같았습니다. 강의에서 나온 태그 구조나 클래스 이름이 모두 변경된 것 같아서 예를 들어 기상청 사이트에서 21년 12월 1일의 태그 형식이 아래와 같습니다. 위의 조건에서 아래 코드를 실행하면 강사님 결과와 같은 결과가 나오지 않습니다. 아래 코드는 진행에 문제가 있었습니다. # 기온정보 list_climate_info = list() # 일자정보 list_day_info = list() for day_weather in weather_info: # 작업 1. 공백문자 제거 if(day_weather.get_text().isspace() != True): # 작업 1-1. 기온정보 if(day_weather.get_text().find("평균기온") == 0): list_climate_info.append(day_weather.get_text()) # 작업 1-2. 일자정보 else: list_day_info.append(day_weather.get_text()) 제가 변경한 조건에서 위 코드를 실행하면.... 아래와 같이 동일한 결과가 아닌데 어떻게 변경해야할지 모르겠습니다. 도움을 부탁드립니다.
-
미해결스프링 DB 1편 - 데이터 접근 핵심 원리
회사에서 격리 수준을 커밋되지 않은 읽기 방식 채택해서 사용중 질문
강의내용에서 커밋된 읽기 방식을 많이 들 사용한다고 하시는데 정작 제가 재직중의 회사의 경우 커밋되지 않은 읽기 방식을 채택중에 있습니다. 지금까지 아는 봐로는 커밋되지 않은 읽기 방식을 채택할경우 SEELCT면에서 데이터를 빨리 읽을 수 있기 때문에 사용하는 것으로 인지하고 있습니다. 대용량 데이터를 다루는 케이스에서는 커밋되지 않은 읽기 방식은 적당하지 않은 방식일지 궁금합니다.
-
미해결AWS(Amazon Web Service) 입문자를 위한 강의
취합한 강의 자료를 받을 수 있을까요?
안녕하세요 선생님! 그동안 그냥 강의 설렁설렁 듣다가 한 번 시험을 보고자 해서 SA 시험을 등록했습니다. 쭉 공부하고자 하여서 그런데 혹시 강의교안 전체 합친 pdf가 있다면 받을 수 있을까요? 그리고 이 강의랑 중상급자 강의 모두 가지고 있는데, 두 강의를 열심히 학습하면 SA시험 합격할 수 있는 정도는 될까요? (물론 기출문제를 열심히 풀기+알파 가 필요하겠지만요...)
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
YOLOR 독학 중 질문드립니다.
안녕하세요. 강의의 yolo 파트를 혼자 수강하고, 스스로 추가 실습으로 현재 real time detection의 sota인 YOLOR을 혼자 독학하고 있습니다. 5일 간 train evaluation에서 에러를 수정하지 못해서, 혹시나 하는 마음에 이렇게 도움을 요청해봅니다. https://drive.google.com/file/d/1mNBu7aLV61pdet9X2dE2uGiacxFbKpAo/view?usp=sharing 현재 제가 작업하고 있는 colab파일인데, train까지는 문제 없이 잘 진행 됩니다. 근데 test.py를 통해서 mAP 값을 구하려고 하는데, 자꾸 에러가 뜨고, 아무리 구글링하고 찾아봐도 방법을 모르겠습니다. !python test.py --data ./test.yaml --weights /content/drive/MyDrive/best.pt --img 416 --device 0 으로 실행시키면 Namespace(augment=False, batch_size=32, cfg='cfg/yolor_p6.cfg', conf_thres=0.001, data='./test.yaml', device='0', exist_ok=False, img_size=416, iou_thres=0.65, name='exp', names='data/coco.names', project='runs/test', save_conf=False, save_json=False, save_txt=False, single_cls=False, task='val', verbose=False, weights=['/content/drive/MyDrive/best.pt']) Using torch 1.7.0 CUDA:0 (Tesla T4, 15109MB) Model Summary: 665 layers, 36843816 parameters, 36843816 gradients, 80.379953800 GFLOPS WARNING: --img-size 416 must be multiple of max stride 64, updating to 448 Scanning labels valid/labels.cache3 (202 found, 0 missing, 70 empty, 0 duplicate, for 272 images): 272it [00:00, 21758.26it/s] Class Images Targets P R mAP@.5 mAP@.5:.95: 0% 0/9 [00:01<?, ?it/s] Traceback (most recent call last): File "test.py", line 330, in <module> save_conf=opt.save_conf, File "test.py", line 226, in test plot_images(img, output_to_target(output, width, height), paths, f, names) # predictions File "/content/yolor/utils/plots.py", line 108, in output_to_target return np.array(targets) File "/usr/local/lib/python3.7/dist-packages/torch/tensor.py", line 630, in __array__ return self.numpy() TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.