묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결이것이 우분투 리눅스다
Client가상머신 재생성이 안됩니다.
거의 마지막에 클라이언트 가상머신 삭제하고 다시 만드려니까 Unable to create a new virtual machine: No permission to perform this operation. 이라고 안내 창이 떠요.별 짓 다해보다 안되서 뻘짓으로클라이언트 폴더도 삭제 하고 다시 만들려니까 관리자 권한으로 삭제해야한다네요...어떻게 해결할 수 있을까요?
-
미해결스프링 시큐리티 OAuth2
access_token 받은후 유저정보요청시 에러
안녕하세요 선생님 강의 진행중 오류가 해결되지 않아 이렇게 문의를 남깁니다. 다름이 아니라 제가 access_token을 받고 http://localhost:8081/user?accessToken=access_token이렇게 요청을 보내면OAuth2User oAuth2User = defaultOAuth2UserService.loadUser(oAuth2UserRequest);의 loadUser부분의 ResponseEntity<Map<String, Object>> response = getResponse(userRequest, request);에서 사진과 같이 RestClientException이 발생하고 그 이유는 body null 이기 때문이라는데 여기서 어떻게 손을 써야 오류가 고쳐질지 모르겠습니다. 혹시 해결방법을 아시는지 궁금합니다.
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
FireBase 로드와 파일 경로 관련 질문
여기서 강의 '예제앱 만들기 1' 에서 res > layout 파일에서 xml 파일이 있어야 하는데 layaout 파일이 없어요.그리고 그 오른쪽 상단에 스타트 버튼도 비활성화 되어있는데 이것도 왜 그런지 모르겠어요.그리고plugins { id("com.android.application") id("org.jetbrains.kotlin.android") id("com.google.gms.google-services") } android { namespace = "com.example.myfirebaseapp" compileSdk = 33 defaultConfig { applicationId = "com.example.myfirebaseapp" minSdk = 24 targetSdk = 33 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } } buildTypes { release { isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } buildFeatures { compose = true } composeOptions { kotlinCompilerExtensionVersion = "1.4.3" } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } } dependencies { implementation("androidx.core:core-ktx:1.9.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2") implementation("androidx.activity:activity-compose:1.7.0") implementation(platform("androidx.compose:compose-bom:2023.03.00")) implementation("androidx.compose.ui:ui") implementation("androidx.compose.ui:ui-graphics") implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.compose.material3:material3") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") androidTestImplementation(platform("androidx.compose:compose-bom:2023.03.00")) androidTestImplementation("androidx.compose.ui:ui-test-junit4") debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-test-manifest") implementation(platform("com.google.firebase:firebase-bom:32.7.0")) implementation("com.google.firebase:firebase-analytics") }Firebase 로드가 조금 많이 바뀐거 같은데요, build.gradle.kts (module :app) 이 파일에 이런식으로 로드 하는게 맞나요..?
-
해결됨우리를 위한 프로그래밍 : 파이썬 중급 (Inflearn Original)
제너레이터 이터레이터 질문이 있습니다.
안녕하세요사진에서 iter를 쓰지않고 temp = generator_ex1()을 해도next가 써지던데 굳이 iter로 감싸는 이유가 궁금합니다.
-
미해결MySQL 성능 최적화
Task2는 직접해보는 부분인가요?
Task1만 하시고 끝나서 그런데 Task2는 직접 하는건지 강의가 추후에 올라오는 건지 궁금합니다
-
미해결무작정 따라하며 원리를 깨우치는 웹 해킹 : WebGoat 편
자바에서 디버깅 할 때 좋은 방법이 있을까요?
문제 풀다보면 해당 변수에 어떤 값이 저장돼서 연산들이 이루어져서 문제가 해결되는지 알고 싶습니다.php 언어 같은 경우 var_dump(변수) 형식으로 해서 변수에 어떤 값이 들어가는지 확인하면서 했는데 JAVA 같은 경우에는 어떤식으로 해결하나요?
-
해결됨스프링 DB 1편 - 데이터 접근 핵심 원리
close()에 관해 궁금한점이 있습니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]Connection 객체의 경우에는 해당 커넥션이 만들어지고 close하지않으면 네트워크 리소스 소모때문에 close를 해야하는것으로 이해했습니다.그렇다면 preparedStatement와 ResultSet객체의 경우에는 해당 데이터베이스로 SQL문을 전송및 전달받는 객체인걸로 보이는데 왜 close로 명시적으로 닫아야하는건가요?
-
미해결
HTML 에서 a 태그의 href 만 뽑아오기
파이썬으로 왓차피디아 사이트를 크롤링 하려고 하는데요.requests 랑 Beautifulsoup 모듈을 사용하고 있습니다.{영화 제목: ~~~,제작연도 : ~~~,링크: ~~~}이렇게 만들고 싶습니다. 근데 링크를 뽑아오는 데서 문제를 겪고 있습니다. 보시다시피 아래에서 두 번째 줄에서 리스트 컴프리헨션을 활용했는데요.soup_links 에 데이터가 비어서 나옵니다.웹에서 개발자 도구로 확인했는데도 저렇게 나오는데 혹시 고수님들 어떻게 해야 링크를 크롤링 할 수 있을까요?url_watcha = "https://pedia.watcha.com/ko-KR" req_watcha = requests.get(url_watcha) html = req_watcha.text soup = BeautifulSoup(html, "lxml") soup_titles = soup.select("div.css-1ntmtyn-ContentTitle-makeTypeFunction-handleHorizontalUlRender") soup_year_countries = soup.select("div.css-zb5qbk-StyledContentYearAndNation-createMediaQuery-makePediaTypeFunction") soup_links = soup.select("li.css-1ofozqs.ei3ci1h10 > a") titles = [t.get_text(strip=True) for t in soup_titles[:10]] year_countries = [y.get_text(strip=True) for y in soup_year_countries[:10]] links = [l["href"] for l in soup_links] time.sleep(1)
-
해결됨실전! Querydsl
stringTemplate("...") 은 어떻게 찾으신건가요?
공식 문서 5.0.0 버전을 봐도 stringTemplate이나 function에 대한 소개가 없더라구요 이렇게 공식문서에서 찾을 수 없는 내용을 강사님께서는 어떻게 찾으시는지 궁금합니다.
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
%s에 정수를 넣어봤는데도 작동해요
print('%s %s' % ('one', 'two'))에 one, two 대신 1, 2를 넣어도 출력이 가능하던데 그럼에도 format을 출력하는 이유가 있을까요? #format 사용 (d: 정수, s:문자열, f:실수) print('%s %s' % ('one', 'two')) #정석적 print('{} {}'.format('one', 'two')) #format 함수가 내부적으로 처리해줌
-
미해결Next + React Query로 SNS 서비스 만들기
next aws s3 가능 여부 문의
혹시 aws s3로는 배포가 불가능 할까요??
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
7-L 안녕 질문이 있습니다.
http://boj.kr/2451435928954fd4ade7f532de725ef2재귀를 돌면서 hp가 0이하가 되면 0을 반환하고 사람의 명수 만큼 재귀를 돌며 hp가 남아있으면 hppy(행복)을 반환해줘서 최대값을 반환하는 dp를 작성했는데 문제에 나와있는 테스트 케이스와 질문게시판에 있는 테케를 전부 돌려봤는데도 무엇이 잘못되었는지 모르겠습니다.
-
미해결
Unleashing the Power of MyEssayWriter.ai: Transforming Writing Effortlessly 2023-2024
Essay writing tools have revolutionized how individuals approach academic or professional writing tasks. These essay writing tools encompass a wide range of functionalities, from aiding in organization and structure to generating content and ensuring authenticity. With features like AI-driven essay generation, paraphrasing, outlining, and plagiarism detection, these tools streamline the writing process, enhancing essential writing and quality while encouraging individual writing styles and skill sets.Among the plethora of essay writing tools available, MyEssayWriter.ai stands out as the best tool of 2023, full of innovation and efficiency. Its amalgamation of AI-powered features like the Essay Writer, Outliner, Custom Writer, Paraphrasing Tool, and Plagiarism Detection Tool sets it apart.MyEssayWriter.ai MyEssayWriter.ai utilizes an essay writer tool to redefine the realm of academic writing. Specifically designed to meet the demands of professionals, scholars, and learners, it offers an array of features that are carefully crafted to facilitate the writing process.MyEssayWriter.ai is fundamentally a headstone to the cooperation of human creativity and artificial intelligence (AI) capabilities, democratizing access to excellent writing help and assisting users in achieving unmatched academic success.MyEssayWriter.ai offers a user-friendly interface that makes the essay generation process easy. It’s popular for generating full-fledged essays with one click in under 90 seconds. amolife.com Benefits of MyEssayWriter.aiEffortless Efficiency: Saves invaluable time by swiftly generating well-structured essays, liberating users from the tedium of extensive research and formulation of ideas.Enhanced Originality: Ensures authenticity through innovative plagiarism detection tools, safeguarding against unintentional duplication and bolstering academic integrity.Tailored Precision: Offers personalized essay creation, aligning content precisely with individual requirements and preferences, fostering a unique writing approach.Refined Writing Skills: Facilitates skill enhancement through the AI-based paraphrasing tool, refining writing style while preserving the essence of the original content.Comprehensive Organization: It aids in streamlining thoughts and concepts with the AI essay outliner, enabling a structured framework for cohesive and impactful essays. Tools Featured by MyEssayWriter.aiAI Essay Writer: Utilizes advanced algorithms to generate comprehensive essays swiftly and efficiently, analyzing provided prompts or topics to create well-structured content tailored to specific requirements with a focus on accuracy and depth.AI Essay Outliner: Facilitates the organization of thoughts and concepts by creating a structured framework for essays, enhancing coherence, and aiding in the seamless development of content, ensuring a logical flow from ideas to the final composition.Custom Essay Writer: Tailor's essays precisely to individual specifications, offering personalized content creation that aligns with unique preferences, ensuring authenticity, and catering to diverse academic or professional needs.Paraphrasing Tool: This paraphrasing tool enhances writing style by adeptly rephrasing content while preserving original meaning, promoting creativity, refining language proficiency, and fostering an improved and polished writing approach.Plagiarism Detection Tool: Safeguards academic integrity by checking content against extensive databases, ensuring authenticity and originality, thereby preventing unintentional duplication and reinforcing the credibility of the written work. Reviews for MyEssayWriter.aiUsers hailed MyEssayWriter.ai for its user-friendly interface and ability to significantly reduce the time and effort spent on essay writing. Its AI-driven capabilities have been lauded for producing well-researched, coherent, and original content, catering to various academic and professional needs. The platform's versatility and efficiency have garnered praise for enhancing writing skills and fostering academic success. FAQs about MyEssayWriter.aiQ: Is MyEssayWriter.ai suitable for all academic levels?Yes, the platform caters to students from high school to postgraduate levels, adapting to diverse writing needs.Q: How does the plagiarism detection tool work?The tool cross-references the submitted content with extensive databases to identify similarities and potential instances of plagiarism.Q: Can I use MyEssayWriter.ai for non-academic writing purposes?The platform's versatile tools can aid in various writing tasks, including professional, creative, or personal projects.Q: Is the content generated by MyEssayWriter.ai reliable and accurate?Yes, the AI algorithms ensure coherence, accuracy, and reliability in the generated content, which can serve as a strong foundation for further refinement and enhancement. Useful ResourcesTop AI Writing Tools: Navigating the Landscape in 2023-24MyEssayWriter.ai: Revolutionizing Writing Excellence - A Comprehensive ReviewEssay Writing in 2023-2024: How MyEssayWriter.ai Keeps You Ahead
-
해결됨[임베디드 입문용] 임베디드 개발은 실제로 이렇게 해요.
보드의 D1 LED는 어떻게 제어해야 하나요?
D1 LED가 처음부터 계속 켜져 있어서 배운데로 제어해보려고 하는데, 회로도상에서 D1 LED에 연결된 pin이 안보이네요. 어떻게 해야할까요?
-
미해결실전 프로젝트로 배우는 데이터 앱 만들기 with Python & Streamlit
오류 메세지
안녕하세요~~ 루비네 코딩 입니다 ^^최근 앱을 런칭할 때 다음과 같은 오류가 발생하고 있습니다.ModuleNotFoundError: No module named 'altair.vegalite.v4'이런경우, 다음과 같이 altair 패키지의 버전을 바꾸어 설치해 주세요 ^^감사합니다~pip uninstall altairpip install altair==4.2.2
-
미해결[실전]텍스톰 TEXTOM 실전 강의: 빅데이터 논문 작성을 위한 텍스트 분석/텍스트마이닝
선생님 질문있어요!
선생님 덕분에 많이 배우고 있습니다.선생님이 쓰신 이진규, & 이창배. (2022). 자연어 처리 (NLP) 기반 텍스트마이닝을 활용한 소나무에 대한 국내외 연구동향 (2001∼ 2020) 분석. 농업생명과학연구, 56(2), 35-47. 논문을 보니 국외 논문도 연구동향을 진행하셨는데요.Web of science 사이트에서 RISS처럼 크롤링 하는 방법을 간단히 소개해 주실 수 있으신가요?그리고 선생님이 하신 강의를 보다보면 대부분의 데이터 처리가 한글 기반으로 되어 있습니다. 혹시 TEXTOM을 사용할때 언어가 영어인 경우에는 잘 구동이 안 되나요? (선생님께서는 파이썬 라이브러리를 사용하셨더라구요) 혹시 영어의 경우에는 TEXTOM이 잘 안 되어서 다른 프로그램을 사용하셨나 해서요.항상 강의 잘 듣고 있습니다.감사합니다.
-
미해결[켠김에 출시까지] 유니티 방치형 키우기 게임 (M1 + C1)
멘토링 한자리 남겨주실수 있을까요?
혹시 가능하다면 멘토링 한자리 남겨주심 안될까요?회사에서 지원하는 금액이 넘어가서 멘토링은 담달초에 등록할려고 합니다. 2인 개발을 목표로 하고 있는데 한명은 그래픽이고 제가 기획이랑 프로그래밍을 할 예정이라 꼭 듣고 싶습니다
-
미해결[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
구글맵 지도 자체는 뜨는데 위치가 안뜨시는분들
API 및 서비스 여기서 Maps SDK for Android랑 iOS 여기서 DISABLE로 되어있어야 활성화 된겁니다! 처음에 ENABLE로 되어야 활성화인줄알고 했다가 계속 안떴었네요! 강사님 이거 자막에 달아주시면 좋을거같습니다 ㅜㅜ
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
test중 NullPointerException에러발생
jpa와 db설정, 동작확인 강의를 듣고 클론코딩 중test중 NullPointerException에러발생mainjpabook.jpashop.Memberpackage jpabook.jpashop; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import lombok.Getter; import lombok.Setter; @Entity @Getter @Setter public class Member { @Id @GeneratedValue private Long id; private String username; }jpabook.jpashop.MemberRepositorypackage jpabook.jpashop; import jakarta.persistence.EntityManager; import jakarta.persistence.PersistenceContext; import org.springframework.stereotype.Repository; @Repository public class MemberRepository { @PersistenceContext EntityManager em; public Long save(Member member) { em.persist(member); return member.getId(); } public Member find(Long id) { return em.find(Member.class, id); } } testjpabook.jpashop.MemberRepositoryTestpackage jpabook.jpashop; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.annotation.Rollback; import org.springframework.transaction.annotation.Transactional; import static org.assertj.core.api.Assertions.assertThat; public class MemberRepositoryTest { @Autowired MemberRepository memberRepository; @Test @Transactional @Rollback(false) public void testMember() { Member member = new Member(); member.setUsername("memberA"); Long saveId = memberRepository.save(member); Member findMember = memberRepository.find(saveId); assertThat(findMember.getId()).isEqualTo(member.getId()); assertThat(findMember.getUsername()).isEqualTo(member.getUsername()); } } application.ymlspring: datasource: url: jdbc:h2:tcp://localhost/~/jpashop username: sa password: driver-class-name: org.h2.Driver jpa: hibernate: ddl-auto: create properties: hibernate: # show_sql: true format_sql: true logging.level: org.hibernate.SQL: debug org.hibernate.type: trace build.gradleplugins { id 'java' id 'org.springframework.boot' version '3.2.1' id 'io.spring.dependency-management' version '1.1.4' } group = 'jpabook' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = '17' } configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-devtools' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' } tasks.named('test') { useJUnitPlatform() }build, run 모두 intellj IDE로 하는중입니다.
-
미해결실전! Querydsl
BooleanBuilder 사용 방법에 대해서
private BooleanBuilder searchName(String name) { if (name == null || name.isBlank()) { return new BooleanBuilder(); } return new BooleanBuilder(QMember.member.username.eq(name)); } private BooleanBuilder searchAge(Integer age) { if (age == null) { return new BooleanBuilder(); } return new BooleanBuilder(QMember.member.age.eq(age)); } private BooleanBuilder allCond(String username, Integer age) { return searchName(username).or(searchAge(age)); } @DisplayName("BooleanBuilder 연속 사용") @Test void pr2(){ //given em.persist(new Member("둘리",15)); em.persist(new Member("또치",20)); em.flush(); em.clear(); QMember member = QMember.member; List<Member> findMember = queryFactory .select(member) .from(member) .where(searchName("name").and(searchAge(null)).and(searchAge(15))) .fetch(); System.out.println("findMember = " + findMember); }null 여부에 따라 Expression을 추가하거나 new BooleanBuilder를 반환하면and나 or일 경우 내부에서 합치거나 치환하는 방식을 통해 최종 BooleanBuilder를 사용할 수 잇더라구요public BooleanBuilder or(@Nullable Predicate right) { if (right != null) { if (predicate == null) { predicate = right; } else { predicate = ExpressionUtils.or(predicate, right); } } return this; }이렇게 사용하는 방법은 BooleanExpression을 사용하면 null 체크를 해야하는데따로 기존에 있는 메소드에서 null을 체크해야주기 때문에 좋을 거같은데단점은 매번 쿼리를 실행할 때마다 저 많은 조건문이 실행되니까 비효율적일까요 ?