묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
jpa에서 DAO나 Entity중에 뭘 사용해야하나요?
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]DAO나 DTO, VO, Entity등이 다 다른데 jpa에서는 어떤걸 사용하나요?아니면 모두 사용하는건가요? 그중에서도 사용하지 않는게 있을까요?
-
해결됨세계 대회 진출자가 알려주는 코딩테스트 A to Z (with Python)
제가 이해한 칸토어집합 문제를 풀어서 써봤습니다.
나중에 강의를 복습 할 때 제가 어떤식으로 문제에 접근하고 이해하고 강의를 들었는지 회고 하기 위해서 기록 해둡니다. 또한 제가 이해한 부분이 다른 분들에게 도움이 되면 더 좋겠습니다.목표문자열 길이가 주어지면 길이가 1이 될때까지 - - 형태로 바꾸는 문제제약조건1 <= N <= 12어떻게 해결?입출력 결과를 보면 아래와 같이 추론이 가능하다.ans[0] = 3⁰ = 1 => -ans[1] = 3¹ = 3 => - -ans[2] = 3² = 9=> - - - -=> ans[2-1] + 3²⁻¹ + ans[2-1]결론적으로=> ans[i-1] + 3ⁱ ⁻ ¹ + ans[i-1]이러한 규칙을 찾을 수 있다.시간 복잡도칸토어 집합은 0부터 N까지 각 단계별로 3⁰ + 3¹ + 3² + ... 3¹² 만큼의 문자열을 처리해야 하므로 모든 합이 전체 연상량이다.0 <= N <= 12ans[0] ~ ans[12]ans[i]의 길이 : 3ⁱans[0] : 1ans[1] : 3ans[2] : 9- 위에 0,1,2일때 공백 - 합쳐서의 길이등비수열
-
미해결스프링 프레임워크 입문
인텔리제이로 해야하나요? 아니면 스프링부트?
제목이 곧 내용입니다~
-
미해결
[인천 여성만 ]백엔드 면접 (포폴)
[개발 스터디 모집 내용 예시]스터디 주제 : 포폴 기준 면접스터디 목표 : 취업예상 스터디 일정(횟수) 😀일주일에 한번 씩 포폴 기준 질의응답예상 커리큘럼 간략히 :예상 모집인원 : 1명 혹은 4명스터디 소개와 개설 이유 : 취업 준비스터디 관련 주의사항 :스터디에 지원할 수 있는 방법을 남겨주세요. (이메일, 카카오 오픈채팅방, 구글폼 등.) 😀 https://open.kakao.com/o/sM9G1mXg
-
해결됨한 입 크기로 잘라먹는 Next.js(v15)
[실습용 백엔드 서버 세팅하기] npx prisma db push 명령어 입력시 에러
🚨 아래의 가이드라인을 꼭 읽고 질문을 올려주시기 바랍니다 🚨질문 하시기 전에 꼭 확인해주세요- 질문 전 구글에 먼저 검색해보세요 (답변을 기다리는 시간을 아낄 수 있습니다)- 코드에 오타가 없는지 면밀히 체크해보세요 (Date와 Data를 많이 헷갈리십니다)- 이전에 올린 질문에 달린 답변들에 꼭 반응해주세요 (질문에 대한 답변만 받으시고 쌩 가시면 속상해요 😢)질문 하실때 꼭 확인하세요- 제목만 보고도 무슨 문제가 있는지 대충 알 수 있도록 자세한 제목을 정해주세요 (단순 단어 X)- 질문의 배경정보를 제공해주세요 (이 문제가 언제 어떻게 발생했고 어디까지 시도해보셨는지)- 문제를 재현하도록 코드샌드박스나 깃허브 링크로 전달해주세요 (프로젝트 코드에서 문제가 발생할 경우)- 답변이 달렸다면 꼭 확인하고 반응을 남겨주세요- 강의의 몇 분 몇 초 관련 질문인지 알려주세요!- 서로 예의를 지키며 존중하는 문화를 만들어가요. - 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. npx prisma db push 명령어를 입력했을 때 위와 같은 에러가 나고있습니다. 같은 에러 발생하신경우 있나요?
-
해결됨데이터분석 준전문가(ADsP) 자격증 대비
42회 기출 비밀번호
42회 기출문제 비밀번호가 걸려있는데 어디서 확인가능한가요?
-
미해결[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
인프런 강의 내용 자료
작업형3 강의에서 단일, 대응, 독립표본 간단하게 잘 정리해주신 것을 보여주셨는데 혹시 이런 강의자료들은 따로 다운받을수는 없을까요? 깃허브에서는 기본학습 심화학습 이렇게만 작성된 코드밖에 없더라구요,,
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
iloc 범위 관련
line = int(X_train.shape[0]) X_train = all_df.iloc[:line, :].copy() X_train 이렇게 된 코딩은 iloc에서 line까지가 아니라 line-1까지 가져온다는 뜻 아닌가요?ㅜㅜ 강사님께서 line까지 가져온다고 말씀을 주셔서요.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
남은 치즈관련 질문
안녕하세요 큰돌님. 남은 치즈가 몇개인지 확인하기 위해 cnt2 = v.size(); 하여서 나중에 출력하는 것으로 구현을 하셨는데 왜 v.size()를 변수에 할당해야하는 특별한 이유가 있을까요? cnt2라는 변수 없이 코드를 작성해도 통과과 되어 질문드립니다.
-
해결됨워드프레스(WordPress) 완전정복
single 포스트글에서 페이지의 Top-Banner이미지 불러오는 법
질문이 많아서 죄송합니다... 질문 1, 2 로 나누었어요...질문 2.또, single 포스트글에서 Top-Banner쪽에서도 포스트글의 featured image가 아니라 샘플페이지1의 featured image를 불러오게 하고 싶은데…그 전에 content-topBanner.php부분에서 이렇게 $postFeatureImg[0]변수를 이용하면 애초에 블로그 페이지(읽기 설정: ‘블로그’ 로 되어있습니다.)의 featured image조차도 불러와 지지가 않습니다.<section id="topBanner" class="mx-3" style="background-image: url('<?php if(is_home()) { // echo esc_url(get_theme_file_uri('assets/images/blog.jpg')); echo esc_url($postFeatureImg[0]); } elseif(is_archive()) { echo esc_url(get_theme_file_uri('assets/images/archive.jpg')); } elseif(is_singular('review')) { echo esc_url(get_theme_file_uri('assets/images/notebook.jpg')); } else { echo esc_url(has_post_thumbnail() ? $postFeatureImg[0] : get_theme_file_uri('assets/images/bg1.jpg')); } ?>')"> 질문 2-1. 어떻게 해야 블로그 페이지의 topBanner섹션에서 $postFeatureImg[0]변수를 통해 에디터에 설정된featured image를 불러올 수가 있나요?(간단해 보여도 새벽 3시 넘어서까지 아무리 gpt를 돌려봐도 안되네요…ㅠㅠㅠㅠㅠㅠ)현재 content-topBanner.php<?php include get_theme_file_path('inc/variables.php'); ?> <section id="topBanner" class="mx-3" style="background-image: url('<?php if(is_home()) { // echo esc_url(get_theme_file_uri('assets/images/blog.jpg')); echo esc_url($postFeatureImg[0]); } elseif(is_archive()) { echo esc_url(get_theme_file_uri('assets/images/archive.jpg')); } elseif(is_singular('review')) { echo esc_url(get_theme_file_uri('assets/images/notebook.jpg')); } else { echo esc_url(has_post_thumbnail() ? $postFeatureImg[0] : get_theme_file_uri('assets/images/bg1.jpg')); } ?>')"> <div class="section-content overlay d-flex justify-content-center align-items-center"> <div class="container"> <div class="text-center <?php echo ($text_align ? 'text-md-' . $text_align : ''); ?>"> <h1 class="display-4"><?php if(is_home()) { echo get_the_title(48); } elseif(is_archive()) { echo get_the_archive_title(); } else { the_title(); } ?></h1> <?php if(is_home()) { ?> <h4 class="fw-light"><?php esc_html_e('Our amazing posts!', 'myfourthwp'); ?></h4> <?php } elseif(is_archive()) { ?> <h4 class="fw-light"><?php the_archive_description(); ?></h4> <?php } else { if($subtitle) { ?> <h4 class="fw-light"><?php echo $subtitle; ?></h4> <?php } } ?> </div> </div> </div> </section>현재 variables.php<?php // Post thumbnails global $post; // 이 줄을 추가합니다. if ($post) { // $post가 null이 아닐 때만 실행 $thumbnail_id = get_post_thumbnail_id($post->ID); $postFeatureImg = wp_get_attachment_image_src($thumbnail_id, 'full'); $postFeatureAlt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true); // Post parent ID $theParent = wp_get_post_parent_id(get_the_ID()); } else { $thumbnail_id = null; $postFeatureImg = null; $postFeatureAlt = null; $theParent = null; } // Post parent ID $theParent = wp_get_post_parent_id(get_the_ID()); // Brand $telephone = get_field('telephone', 'user_1'); $ceo = get_field('ceo', 'user_1'); $registered_business_no = get_field('registered_business_no', 'user_1'); $address = get_field('address', 'user_1'); $logo_image = get_field('logo_image', 'user_1'); $kakao_place = get_field('kakao_place', 'user_1'); $facebook = get_field('facebook', 'user_1'); $twitter = get_field('twitter', 'user_1'); $kakao_channel = get_field('kakao_channel', 'user_1'); $youtube_channel = get_field('youtube_channel', 'user_1'); $kakao_map_api = get_field('kakao_map_api', 'user_1'); $latitude = get_field('latitude', 'user_1'); $longitude = get_field('longitude', 'user_1'); // Contact modal $contact_modal_text_body = get_field('contact_modal_text_body', 14); // Top banner $text_align = get_field('text_align'); $subtitle = get_field('subtitle'); // Event $event_date = get_field('event_date'); // Front Carousel $slides = get_field('slides');
-
해결됨워드프레스(WordPress) 완전정복
single 포스트글에서도 페이지의 $theParent를 가져오는 법
강사님 안녕하세요?(제가 좀 질문이 많아서 죄송합니다..ㅠㅠ 그렇지만 꼭 만들어야 해서요...ㅠㅠ)강의내용을 토대로 블로그페이지에 하위 메뉴 샘플페이지1,2,3을 만들어 보았습니다.(크게 다른것 없이 셋 다 /* Template Name: Sample Template */으로 동일한 커스텀 템플릿입니다.) Sample Template의 내용으로는 ‘호스팅’이라는 카테고리(id=20)만 불러오도록 했습니다. 샘플페이지에 나타난 포스트카드를 클릭하면 해당 포스트글로 창이 넘어가는데요.여기까지는 강의내용과 똑같습니다.여기서 제가 한 가지 변화를 주고 싶은데요. single 포스트글의 전체적인 디자인이 샘플페이지1과 동일했으면 좋겠습니다. 그러니깐 샘플페이지1에서 좌측에 <aside>가 불러와져 있는데요.single 포스트글에서도 좌측에 <aside>가 불러오고 싶은데, 불러와지지가 않습니다. 물론 당연히도 if($theParent) { } 구문에서 $theParent변수에 할당된 것이 없어서 그렇겠지요?질문 1. 그러면 어떻게 해야 single 포스트글에서도 샘플페이지1 에서 갖고 있는 $theParent변수와 같은 변수를 가져올 수 있나요? (질문이 많아서 나누었습니다..ㅠㅠ) 제가 만든 content-samplepage.php<?php include get_theme_file_path('inc/variables.php'); ?> <main id="sampleContent"> <div class="section-content"> <div class="container"> <div class="row"> <aside class="col-md-3 mb-4"> <?php if($theParent) { ?> <ul class="list-group shadow"> <p class="list-group-item list-group-item-action active mb-0" aria-current="true"> <?php echo get_the_title($theParent); ?> </p> <?php if($theParent) { $childrenList = $theParent; } else { $childrenList = get_the_ID(); } wp_list_pages(array( 'title_li' => NULL, 'link_before' => '<li class="list-group-item list-group-item-action">', 'link_after' => '</li>', 'sort_column' => 'menu_order', 'child_of' => $childrenList )); ?> </ul> <?php } ?> </aside> <article class="col-md-9 mb-4 fw-light"> <?php the_content(); ?> <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $eventQuery = new WP_Query(array( 'post_type' => 'post', // 'posts_per_page' => 10, 'cat' => 20, 'paged' => $paged // 'category_name' => 'event' // 'order' => 'DESC', // 'orderby' => 'date' )); if($eventQuery->have_posts()) { ?> <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 gx-3 gy-2 grid"> <?php while($eventQuery->have_posts()) { $eventQuery->the_post(); include get_theme_file_path('inc/variables.php'); ?> <div class="col grid-item"> <div class="card mb-3"> <div class="row g-0"> <div class="col-4 post-featured" style="background-image: url('<?php echo esc_url(has_post_thumbnail() ? $postFeatureImg[0] : get_theme_file_uri('assets/images/bg1.jpg')); ?>')"> </div> <div class="col-8 post-text d-flex flex-column align-items-stretch"> <div class="card-body"> <h5 class="card-title mb-3"> <a href="<?php the_permalink(); ?>" class="text-decoration-none mb-3"><?php the_title(); ?></a> </h5> <p class="card-text fw-light text-truncate"> <?php if(has_excerpt()) { echo get_the_excerpt(); } else { echo wp_trim_words(get_the_content(), 10); } ?> </p> </div> <div class="card-footer border-0"> <small class="fw-light post-meta"> <?php post_meta(18); ?> </small> </div> </div> </div> </div> </div> <?php } ?> </div> <br /> <div class="row justify-content-center my-5"> <div class="col-md-8"> <?php fellowtuts_wpbs_pagination($eventQuery->max_num_pages); ?> </div> </div> <?php } else { echo '<div class="row justify-content-center">'; echo '<p class="text-center">'. esc_html__('Sorry, no events.', 'myfourthwp') .'</div>'; echo '</div>'; } wp_reset_postdata(); ?> </article> </div> </div> </div> </main> 제가 만든 page-sample.php<?php /* Template Name: Sample Template */ get_header(); while(have_posts()) { the_post(); get_template_part('template-parts/content/content', 'topBanner'); get_template_part('template-parts/content/content', 'samplepage'); } get_footer(); ?>
-
미해결[초급] 찍어먹자! 코틀린과 Spring Security + JWT로 회원가입 만들기
unique 작성법
@Table 애노테이션을 써서 unique 를 설정하셨는데,@Column(unique = true) 로 설정하는 방법을 사용하지 않으신 이유가 있나요??
-
미해결MERN STACK 커뮤니티 : 시작부터 배포까지 알려주는 React
Heroku 데이터로드 문제.
heroku에 deploy하고나서 openApp하면 데이터가 로드 돼야 하는데 안돼는 이유가 먼지 그리고 axios 통신을 localhost:5000해서 문제인지 궁금합니다.
-
미해결Flutter로 SNS 앱 만들기
게시글 이미지 슬라이드 기능추가 carouselslider에러가 났습니다
3:50carouselslider에서 에러가 났습니다..carouselslider과 material 문제가 있나요?
-
미해결클론코딩에서 알려주지 않는 것들 (보안, DDD, 마이크로서비스) 2편
로그인 기능 구현 (Application Layer 실습) 에서의 질문
안녕하세요 질문이 있습니다.로그인 기능 구현 (Application Layer 실습) 강의에서 9:10초쯤에 스프링에서 디비객체를 도메인객체로 자동으로? 변환해주는게 있다고 하셨는데요. 어떠한 기능일까요? 알려주시면 감사하겠습니다.
-
미해결프로젝트로 배우는 Python 챗봇 & RAG - LangChain, Gradio 활용
CrewAI 설치시 오류(주신 pyproject.toml 이용)
맥환경에서 아래와 같은 오류가 발생합니다.그래서 pyarrow=="17.0.0"으로 내려서 설치하면 설치는 되는데 main.py 실행시 런타임 오류가 납니다. Terminal에는 output이 있네 그라지오에는 에러라고 나오는 등 poetry install명령을 치면 아래과 같은 설치오류 발생 (CrewAI 설치시) -- Configuring incomplete, errors occurred! error: command '/Library/Frameworks/Python.framework/Versions/3.12/bin/cmake' failed with exit code 1 at ~/Library/Application Support/pypoetry/venv/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare 160│ 161│ error = ChefBuildError("\n\n".join(message_parts)) 162│ 163│ if error is not None: → 164│ raise error from None 165│ 166│ return path 167│ 168│ def preparesdist(self, archive: Path, destination: Path | None = None) -> Path: Note: This error originates from the build backend, and is likely not a problem with poetry but with pyarrow (18.0.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pyarrow (==18.0.0)"'. 의존성에 문제가 있는 것 같습니다. 어떻게 해결해야 할까요?
-
미해결이득우의 언리얼 프로그래밍 Part4 - 게임플레이 어빌리티 시스템
GA_AttackHitCheck 에서 ExecuteGameplayCue
안녕하세요. AttackHitCheck 어빌리티 안에서 ExecuteGameplayCue 호출할 때 태그를 하드코딩하는 것이 아니라, BP에서 설정한 GameplayCue를 그대로 쓰고싶은데, 어떻게 할 수 있을까요? 꽤 검색했는데 찾기 힘드네요ㅠ ㅠ.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
검증에 순서를 지정하고 싶습니다 (죄송합니다 ㅜㅜㅜ)
이렇게 @GroupSequence 를 사용해서 검증의 순서를 정하고싶은데 예를 들자면 클라이언트에서 이메일을 작성할때 "ㅇㅇ" 이런 식으로 작성을 하면 @NotBlank 가 통과가 되고 @Email 이 실행이 되어야 하는거 같은데 실행이 되지 않습니다 그리고 실행이 안되는줄 알았지만 아래 아이디 비밀번호를 입력 하게되면 이때 형식에 맞지 않다는 오류 메시지가 나오게 됩니다, 어떻게 해야 할까요..package hello.instar.validation; import jakarta.validation.GroupSequence; import jakarta.validation.groups.Default; @GroupSequence({Default.class,ValidationGroups.NotBlankGroup.class, ValidationGroups.EmailGroup.class,ValidationGroups.SizeGroup.class, }) public interface ValidationSequence { }@NotBlank(groups = ValidationGroups.NotBlankGroup.class) @Email(groups = ValidationGroups.EmailGroup.class) private String email;springmvc
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
label encoding error
n_train, n_test, c_train, c_test = get_nc_data() # 데이터 새로 불러오기 from sklearn.preprocessing import LabelEncoder le = LabelEncoder() for col in cols : le = LabelEncoder() c_train[col] = le.fit_transform(c_train[col]) c_test[col] = le.transform(c_test[col]) 이렇게 했는데, --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py in get_loc(self, key) 3804 try: -> 3805 return self._engine.get_loc(casted_key) 3806 except KeyError as err: index.pyx in pandas._libs.index.IndexEngine.get_loc() index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item() KeyError: 'age' The above exception was the direct cause of the following exception: KeyError Traceback (most recent call last) 2 frames /usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py in get_loc(self, key) 3810 ): 3811 raise InvalidIndexError(key) -> 3812 raise KeyError(key) from err 3813 except TypeError: 3814 # If we have a listlike key, _check_indexing_error will raise KeyError: 'age'age와 관련된 이상한 오류가 뜨네요...
-
미해결AWS Certified Solutions Architect - Associate 자격증 준비하기
수강기간 연장 부탁드립니다.
일이 바빠서 거의 듣지 못하다가대기기간이 되서 지금 들을려고 하는데수강기간 연장 부탁드립니다