묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결CSS Flex와 Grid 제대로 익히기
flex 관련해서 질문 있습니다.
flex 연습 삼아서, 이런 모형을 만들어봤는데요. 만드는 도중에 이해할 수 없는 부분이 2가지 있어서 질문드립니다. 질문에 관한 코드 링크입니다. => https://codepen.io/uscgil0127/pen/bGobxxq Q1. max-height를 설정해줬는데, 왜 내부의 박스들이 overflow해도 height가 max 값만큼 늘어나지 않나요?? => 제 생각에는 내부 박스들이 외부 박스를 삐져나오면, max-height가 발동해서 늘어날 수 있는만큼 늘어날 거라고 생각했는데, 늘어나지를 않네요;;;;;; max 값만큼 height가 늘어나지 않으면, max-height의 유용성을 잘 모르겠습니다... --------------------------- Q2. CSS 부분에서 .h20 .h40 .h80 에서 flex: 4 0 40%; 를 적용해주면 margin 값인 0.5rem이 포함되서, container 박스를 overflow한 것같은데, 왜 그냥 height: 20%를 설정해줬을 때는 박스를 overflow하지 않는 걸까요?? ---------------------------- 어떻게든 구글링해서 이해해보려고 했는데, 도저히 이해가 안되서 부득이하게 질문드립니다. 감사합니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
FastLock에 대해 질문있습니다.
궁금증이 생겨서 그런데.. 강의에서 언급해 주신 FastLock의 좀 더 상세한 동작코드를 github등에 공유해주실 수 있으실까요? 아니면 수도코드나 좀 더 자세한 동작방식이 궁금합니다.
-
미해결따라하며 배우는 리액트 테스트 [2023.11 업데이트]
useContext 사용
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 먼저 좋은 강의 너무 잘 듣고 있습니다 감사합니다~~~~~~!지금 강의 안에서 userContext 사용 관련 flow 중에서 궁금한 내용 질문드립니다! 1. useContext를 사용하면 바로 product와 options 파일에 data를 가지고 올 수 있을 것 같은데type에서 먼저 받아서 props로 내려주시는 건 왜 그런지 궁금했습니다.orderContext 부분은 몇 번 봐도 좀 어렵네요..😂그래도 길지 않고 핵심 내용만 올려주셔서 몇 번이나 돌려보고 있습니다. 2.orderDatas 에서요 data는 그 자체로 복수형 단어라서 data라고 쓰거나 복수형이 가능한 단어를 쓰면 좋을 것 같은데..마땅한 단어가 안 떠오르네요ㅠ
-
미해결영리한 프로그래밍을 위한 알고리즘 강좌
혹시 코드로 구현하는 법은 안가르쳐 주시나요>?
레드블랙트리랑 이진트리를 구현하고자 노력중인데 잘안되어서 (사용하는 언어는 C언어이고 전 노드에 포인터 두개 달아서 구현할려고합니다.)
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
강의 내용 중 질문있습니다.
Interlocked 계열의 명령어를 사용했을 시, 사용하지 않았을 시 보다 몇 배 정도 느린지 궁금합니다.
-
미해결빅데이터분석기사 실기대비 (R 활용)
작업형 제2유형 관련 질문
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 알려주신 코드를 손에 익히려 노력하고 있습니다 :) 다름이 아니라, 해당 코드를 다른 데이터에도 적용해보다 궁금한 점이 있어서 질문 드립니다 ! 1. 제가 실행한 과정 중에 잘못된 부분이 있을까요? 2. train과 test를 나누고 평가지표로 f1 score도 구하려 했는데 error가 뜹니다, 이유를 알 수 있을까요 ? p4 <- as.factor(ifelse(p3[,2]>0.5, 1, 0)) tmp <- caret::confusionMatrix(p4,t_test$Response) 3. 강의 중에 작업형 제2유형에서 df <- df%>%select(-c(1,5,6))를 하셨는데, 첫 번째 칼럼인 cust_id를 제거한 이유가 의미있는 정보가 아닌 단순 정보라서 제거하신게 맞나요? 감사합니다 :) (아래는 제가 실행한 R-code 입니다 !) train <- read.csv("https://raw.githubusercontent.com/Datamanim/datarepo/main/insurance/train.csv", stringsAsFactors=T) test <- read.csv("https://raw.githubusercontent.com/Datamanim/datarepo/main/insurance/test.csv", stringsAsFactors=T) str(train) summary(train) unique(train$Region_Code) train$Driving_License <- as.factor(train$Driving_License) train$Previously_Insured <- as.factor(train$Previously_Insured) train$Response <- as.factor(train$Response) train <- train %>% select(-c(1,5)) inx <- createDataPartition(train$Response,p=0.7,list=F) t_train <- train[inx,] t_test <- train[-inx,] model1 <- train(Response~., data=t_train, method="glm") model2 <- train(Response~., data=t_train, method="rpart") p1 <- predict(model1,t_test,type="prob") p2 <- predict(model2,t_test,type="prob") p3 <- (p1+p2)/2 auc(t_test$Response,p3[,2]) str(test) summary(test) test$Driving_License <- as.factor(test$Driving_License) test$Previously_Insured <- as.factor(test$Previously_Insured) test <- test %>% select(-c(1,5)) model1 <- train(Response~., data=train, method="glm") model2 <- train(Response~., data=train, method="rpart") p1 <- predict(model1,test,type="prob") p2 <- predict(model2,test,type="prob") p3 <- (p1+p2)/2 resut <- data.frame(result=p3[,2]) print(result)
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
멀티코어, 멀티쓰레드에서 캐시가 어떻게 복잡해지는지 궁금합니다.
멀티코어, 멀티쓰레드에서 캐시가 어떻게 복잡해지는지 궁금합니다. 강의 마지막에 복잡해진다고 하셨는데 조금 설명 좀 부탁드려도 될까욤..
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
멀티코어, 멀티쓰레드 환경에서 메모리 배리어 사용에 따른 각 코어의 캐시 메모리 동작이 궁금합니다.
멀티코어, 멀티쓰레드 환경에서 메모리 배리어를 사용함에 따라 메모리 가시성이 싱글 쓰레드 환경과는 어떻게 다른지 궁금합니다. 코어의 캐시메모리들이 어떤 규칙이나 방법으로 동기화가 일어나고 있는지 궁금합니다.
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
통합테스트의 회원가입 진행 중 오류가 생겼습니다
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]교수님 안녕하십니까? 수업을 따라가며 진행하는 도중 통합테스트의 회원가입을 실행하였는데 오류가 발생하여 질문드립니다 아무리 구글링해도 이유를 찾을 수 없었습니다.. h2에서 sql로 ID에 null을 넣을 수 없어서 생기는 오류같기는 한데 코드의 어떤부분에서 이런 오류를 발생시킨건지 알려주시면 감사하겠습니다! 사진으로 코드와 에러 첨부합니다
-
미해결실무 적용을 위한 디지털마케팅 실습 & 포트폴리오 코스
추가질문
빠른 답변 감사드립니다! SEO 마법사 캡쳐본입니다. 색인 허용으로 되어있습니다. 여기서 맨 오른쪽 도매인 연결로 결제해도 GA연결이 가능하다는 말씀이신거죠? 그런데 GA연동이 되지 않습니다.ㅠㅠ GA연결하고 강의에서 말씀해주신 것처럼 잘 연결 되었는지 게시된 홈페이지에서 검사를 눌러서 GA를 검색 보는데 나오지 않습니다ㅠㅠ 그럼 GA연결이 안된건가요?ㅠㅠ 확인 할 수 있는 방법 있을까요? 또 강의에서 검색 결과에 페이지 표시하기도 찾을 수 가 없습니다.ㅠ 검색 결과에 페이지 표시하기가 혹시 검색엔진의 페이지 색인 생성 허용이랑 같은 걸까요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
test code 실행 시, IllegalStateException: unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 에러 발생합니다.
test code 실행 시, IllegalStateException: unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 에러 발생합니다. project 소스 공유 구글 드라이브 URL: https://drive.google.com/file/d/1z2HJiO5wPb4o-Nqq778dCrBYdwDGKKBD/view?usp=sharing
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
깃허브 권한 요청드립니다.
강좌 따라가면서 하는데 오타가 많아서 git소스 보고 하려고 합니다. 권한 요청드립니다. https://github.com/ 깃헙 아이디: calla987@gamil.com
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part6: 웹 서버
sharedData에 있는 데이터를 List<T> 형태로 저장하고싶은데 어떻게하면 좋을까요
보통 테이블에는 한칸에 하나씩 데이터가 들어가는데.리스트를 저장할 수는 없을까요?유저의 위치를 리스트형태로 여러개 저장해놨다가 랜덤스폰을 시키고싶어요.저렇게 구성하고 마이그레이션 해봤는데.지원히지 않는다고해서요.3시간동안 이것에 대해서만 구글링해보고 안되서 글올려봅니다..혹시 다음강의에 참고되는게 있다면 알려주세요
-
미해결[하루 10분|Web Project] HTML/JS/CSS로 나만의 심리테스트 사이트 만들기
공유하기에서 넘어가지지 않습니다.
좋은 강의 감사합니다! 다름아니라 공유하기 버튼을 누르면 넘어가져야 하는데 이렇게 뜨면서 'name'이 인식이 안되는 것 같습니다. 'setShare' 넣고나서 부터 안되는데 혹시 어떤게 문제일까요?ㅠ
-
미해결빅데이터분석기사 실기대비 (R 활용)
작업형 제 2유형 질문2
어제 남긴 질문을 다음날 바로 답해주셔서 너무 감사했고, 설명도 좋았습니다. 작업형 2유형 질문을 하나 더 하고 싶어서 글을 올리게 됐습니다. 선생님께서 알려주신 방법대로 했는데 계속 오류가 걸리네요. (p1의 객체를 찾을수 없다고 나옵니다.) 아마 변수가 수치형이 아니라 범주형이라 그런거 같은데 이런 문제는 어떻게 해야 쉽게 풀 수 있을까요?https://www.kaggle.com/zhijinzhai/loandata/version/1 문제: 다음은 고객의 대출정보인 Loan 데이터 세트이다. 전체 데이터를 7:3으로 훈련 데이터와 테스트 데이터로 분할하고, 테스트 데이터로 고객의 대출 상환(loan_status)을 예측하고 csv 포맷으로 제출하시오. 문제의 csv파일을 첨부하고 싶은데 그런 기능이 없어서 링크라도 걸어드립니다.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
todoApp.js const 순서 중요한가요?
강의 해 주신 코드 그대로 작성 했는데 cannot read properties of undefined (reading 'fetch') 라는 에러가 나서 강의 그대로 순서를 옮겼더니 에러가 없어지고 잘 작동 하더라구요. 정상적으로 작동되었던 순서는 (storage->state->getters->mutattions->export default) 였습니다. 암묵적으로 지키는 순서가 있는건가요? 예를 들면 storage는 맨 앞에 ? export 는 맨 뒤에 ? export를 맨 아래 쓰는게 낯설어서 이해가 잘 안됩니다. 중요한건가요 ?
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
혹시 강의 해상도 높이는 방법 없을까요 ??
제가 예민한건지 ..눈이 먼가 좀 불편해서요 .안구건조가 심해서 ..ㅎㅎ 1000대도 나쁜건 아닌데 . 혹시 더 높은 해상도가 있는지가 궁금해서요 .ㅎㅎ 강의는 어제부터 잘 듣고 있습니당 !
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
이상한 에러가 발생했습니다. 봐주세요.
이 화면에서 북마크를 클릳하면 에러가 발생합니다. 11/29 00:09:17: Launching 'app' on Pixel 2 API 29. Install successfully finished in 832 ms. $ adb shell am start -n "kr.co.soncampus.mymango/kr.co.soncampus.mymango.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 10156 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT] D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ). I/FirebaseInitProvider: FirebaseApp initialization successful W/RenderThread: type=1400 audit(0.0:41): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54 Selected local version of com.google.android.gms.measurement.dynamite I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so V/FA: onActivityCreated V/FA: App measurement collection enabled App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703 I/FA: App measurement initialized, version: 46000 To enable debug logging run: adb shell setprop log.tag.FA VERBOSE To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango D/FA: Debug-level message logging enabled W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) V/FA: Connecting to remote service V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 4720949 I/FA: Tag Manager is not found and thus will not be used V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f550, tid 10197 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xdb91a480: maj 2 min 0 rcv 2 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) W/Gralloc3: mapper 3.x is not supported D/HostConnection: createUnique: call D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f690, tid 10197 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/eglCodecCommon: allocate: Ask for block of size 0x1000 allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Recording user engagement, ms: 3007 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@e8b73bd V/FA: onActivityCreated V/FA: Activity paused, time: 4723957 E/sss: main..... V/FA: Activity resumed, time: 4724008 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: Main onCreateOptionsMenu..... D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Inactivity, disconnecting from the service W/ncampus.mymang: Accessing hidden field Landroid/widget/AbsListView;->mIsChildViewEnabled:Z (greylist, reflection, allowed) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 15 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 13 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: item1 V/FA: Recording user engagement, ms: 11407 W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c9f27a5 V/FA: onActivityCreated V/FA: Connecting to remote service V/FA: Connection attempt already in progress Activity paused, time: 4735416 V/FA: Activity resumed, time: 4735501 V/FA: Connection attempt already in progress Connection attempt already in progress W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: Sub2 onCreateOptionsMenu..... D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 2 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 4 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Inactivity, disconnecting from the service W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@81fc038 V/FA: Recording user engagement, ms: 6581 V/FA: onActivityCreated E/BookmarkActivity sss: entry ....................0 E/BookmarkActivity sss: entry ....................99 V/FA: Connecting to remote service V/FA: Connection attempt already in progress Activity paused, time: 4742083 V/FA: Activity resumed, time: 4742120 V/FA: Connection attempt already in progress Connection attempt already in progress D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 4 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/NetworkSecurityConfig: No Network Security Config specified, using platform default E/BookmarkActivity sss: entry ....................1 D/Datamodel: DataSnapshot { key = -MparmEFOESJUm_PjL5q, value = {imageUrl=https://s3-ap-northeast-1.amazonaws.com/dcreviewsresized/20211004092323023_photo_b2b78b1ad87d.jpg, titleText=설문커피, id=2, url=https://www.diningcode.com/profile.php?rid=9Vyv53tNcc8h} } D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: kr.co.soncampus.mymango, PID: 10156 com.google.firebase.database.DatabaseException: Class kr.co.soncampus.mymango.ContentsModel does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped. at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:570) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:563) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertBean(CustomClassMapper.java:433) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToClass(CustomClassMapper.java:232) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:80) at com.google.firebase.database.DataSnapshot.getValue(DataSnapshot.java:203) at kr.co.soncampus.mymango.BookmarkActivity$onCreate$1.onDataChange(BookmarkActivity.kt:49) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) I/Process: Sending signal. PID: 10156 SIG: 9 Connected to process 10236 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT] D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ). I/FirebaseInitProvider: FirebaseApp initialization successful W/RenderThread: type=1400 audit(0.0:42): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54 Selected local version of com.google.android.gms.measurement.dynamite D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so V/FA: onActivityCreated V/FA: App measurement collection enabled V/FA: App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703 I/FA: App measurement initialized, version: 46000 To enable debug logging run: adb shell setprop log.tag.FA VERBOSE To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango D/FA: Debug-level message logging enabled W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) V/FA: Connecting to remote service V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 4743636 I/FA: Tag Manager is not found and thus will not be used V/FA: Connection attempt already in progress Connection attempt already in progress D/HostConnection: HostConnection::get() New Host Connection established 0xdb94c410, tid 10275 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xdb91a600: maj 2 min 0 rcv 2 W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50) W/Gralloc3: mapper 3.x is not supported D/HostConnection: createUnique: call HostConnection::get() New Host Connection established 0xdb94c690, tid 10275 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/eglCodecCommon: allocate: Ask for block of size 0x1000 allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0 D/sss: Sub2 onCreateOptionsMenu..... D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 V/FA: Inactivity, disconnecting from the service ------------------------------------------ 데이터는 두 건이 있습니다. 프로그램 소스입니다. package kr.co.soncampus.mymangoimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.text.method.TextKeyListener.clearimport android.util.Logimport android.widget.ArrayAdapterimport androidx.recyclerview.widget.GridLayoutManagerimport androidx.recyclerview.widget.RecyclerViewimport com.google.firebase.auth.FirebaseAuthimport com.google.firebase.auth.ktx.authimport com.google.firebase.database.DataSnapshotimport com.google.firebase.database.DatabaseErrorimport com.google.firebase.database.ValueEventListenerimport com.google.firebase.database.core.RepoManager.clearimport com.google.firebase.database.ktx.databaseimport com.google.firebase.ktx.Firebaseclass BookmarkActivity : AppCompatActivity() { private lateinit var auth: FirebaseAuth private val contentsModels = mutableListOf<ContentsModel>() override fun onCreate(savedInstanceState: Bundle?) { auth = Firebase.auth super.onCreate(savedInstanceState) setContentView(R.layout.activity_bookmark) val rv = findViewById<RecyclerView>(R.id.rv1) val rvAdapter = RVAdapter(baseContext, contentsModels) rv.adapter = rvAdapter rv.layoutManager = GridLayoutManager(this, 2) val database = Firebase.database val myBookmarkRef = database.getReference("bookmark_ref") Log.e("BookmarkActivity sss", " entry ....................0") myBookmarkRef .child(auth.currentUser?.uid.toString()) .addValueEventListener(object : ValueEventListener{ override fun onDataChange(snapshot: DataSnapshot) { Log.e("BookmarkActivity sss", " entry ....................1") for (dataModel in snapshot.children) { Log.d("Datamodel", dataModel.toString()) contentsModels.add(dataModel.getValue(ContentsModel::class.java)!!) } Log.e("BookmarkActivity sss", " entry ....................2") rvAdapter.notifyDataSetChanged() } override fun onCancelled(error: DatabaseError) { Log.e("Bookmark", "dbError") } }) Log.e("BookmarkActivity sss", " entry ....................99") }} ---------------------------------------package kr.co.soncampus.mymangodata class ContentsModel ( val id : Int, val url : String = "", val imageUrl : String, val titleText : String = "")------------------------------------------
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
DTO 의 Entity 변경에 대한 위치에 대해서 문의드려요
안녕하세요 . 김영한 강사님 , 강좌 초반을 학습하다가 궁굼한 부분이 생겨서 문의드립니다. 강의에서 생성 메소드를 만들때 전달받은 DTO 를 Entity 로 변환하는 로직을 Controller에서 수행하였는데 , DTO -> Entity , Entity -> DTO 에 대한 책임을 Controller에 위임 하시는 편인가요 ? (저의 경우는 그 책임을 Service layer 에 두고 modelmapper 를 사용하고 있습니다.) @PostMapping("/api/v2/members")public CreateMemberResponse saveMemberV2(@RequestBody @Valid CreateMemberRequest request) { Member member = new Member(); member.setName(request.getName()); Long id = memberService.join(member); return new CreateMemberResponse(id);}
-
미해결실전! 스프링 데이터 JPA
update 실무
안녕하세요 ㅎㅎ 실무적으로 궁금한게 하나 있어서 질문드립니다 update 쿼리는 실무에서도 100% 더티체캉으로 해결하나요 ??