묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
안녕하세요 런타임에러 뜨는 이유좀 알수 있을까요 ??
import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<Character,Integer> map1 = new HashMap<>(); String str1 = sc.next(); String str2 = sc.next(); String answer = "YES"; for (char i : str1.toCharArray()){ map1.put(i,map1.getOrDefault(i,0)+1); } for (char i : str2.toCharArray()){ if (!map1.containsKey(i)|| map1.get(i)==0) { answer="NO"; } map1.put(i,map1.get(i)-1); } System.out.println(answer); } }
-
미해결핵심만 빠르게, 입문자를 위한 파이썬(Python)과 판다스(Pandas)
Pandas 연습문제 4. apply 활용 질문
안녕하세요, 학습하다가 이해가 되지 않는 부분이 있어 질문드립니다!4. apply 활용각 행에 대해 남성 인구의 합을 구하여 남자인구 합계 이름을 가진 컬럼을 생성해주세요.위 문제에서,def getManPopulation(row): man = 0 for i in row.index: if "남자" in i: man += row[i] return man sample['남자인구 합계'] = sample.apply(getManPopulation, axis=1) sample.head() getManPopulation(row):여기 row자리에 데이터프레임(sample)이 들어간다고 생각하면for i in row.index의 row.index가 위에서 index로 설정해놓은 '일자' 컬럼이 될텐데 어떻게 if "남자" in i가 성립되는건가요?밑에서 row[i]를 사용하는 거 보면 row는 데이터프레임이고 i는 컬럼명이 맞는 것 같은데 이해가 되지 않아 질문드립니다. 감사합니다!
-
미해결
+27739970300 Native Psychic healer: How to Tap Into Your Own Psychic Abilities
Native Psychic healer for Psychic Defense+27739970300 The human personality can do numerous surprising things, one of them is the capacity to heal people without medicines and can even perform a medical procedure by simply utilizing the psyche. People who can do this are called Psychic healers. The native psychic healer utilizes help and direction from the soul world in conventional ceremonies affected by a medium, to create normal healing energy to treat the entire individual – psyche, body, and soul. Since physical and otherworldly wellbeing is personally associated, body and soul should recuperate together. Life Power energy is receptive to our considerations and feelings. It is effortlessly upset when we acknowledge negative considerations or emotions, either intentionally or intuitively. Along these lines, blockages create in the stream of Life Power energy. With the end goal to expel these blockages, psychic healing is required which works at the intuitive dimension. The individual can likewise protection psychically by utilizing his healing powers. https://alovespells.com/native-psychic-healer/
-
미해결
+27739970300 Powerful Sangoma: Traditional Healer and herbalist that really works
+27739970300 The powerful sangoma gets to counsel and direction from the precursors through ownership by a progenitor, diverting or tossing of bones. This powerful sangoma is the special case that recuperates and takes care of all fizzled or incomplete issues from other customary healers and sangomas. On the off chance that you have attempted numerous healers with no advancement, simply visit the powerful sangoma to encourage you and he won’t fall flat. The powerful sangoma‘s works are a blend of African conventional mysticism, clairvoyant forces, ceremonies, local mending, spell throwing, which are all intended to deal with whatever affliction you may confront.Is it accurate to say that you are scanning all over for an expert and genuine spell caster? At that point, you have gone to the ideal place! The powerful sangoma is resolved to offer what you are looking for. The powerful sangoma gives the most credible spells you’ve ever experienced.He was set up in the art of regular retouching through a long apprenticeship after his basic getting back to decades back to be a standard healer and sangoma. For all standard medicine, ordinary herbs, and standard spells for patching. Restore physical prosperity, significant prosperity and cleanse your soul with the help of this amazing sangoma. Indigenous remedial taking in was transmitted from his ancestors in the midst of his presentation. He similarly insight and collaborates with others like normal pros, sangomas, traditional healers, and cultivators. This has achieved him to acquire immense data of fruitful home-developed answers for a wide grouping of diseases and conditions. https://alovespells.com/powerful-sangoma/
-
미해결Do It! 장고+부트스트랩: 파이썬 웹개발의 정석
쪽지 기능 문의 드립니다.
강의 구매하고 아직 학습하기 전입니다 저는 커뮤니티 웹사이트를 만들고 싶습니다 장고로 사이트를 만들면 장고 기본기능에 쪽지 기능이 있는기 궁금합니다.질문그대로 제가 쪽지기능을 구현하는게 아닌,장고 의 기본기능에 쪽지 기능이 있는지 혹은, 쪽지기능 모듈이 있는지 궁금해서 문의드립니다알려주시면 감사하겠습니다~
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
MemberForm과 MemberController 코드관련 질문
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]만약 제가 localhost:8080 , 회원가입에 들어가서 이름 칸에 spring을 치고 등록을 누르면 MemberForm.java에서name이 private으로 선언되었으까 setName을 통해 name에 spring이 들어가야 하는데MemberController의 create메소드의 member.setName(form.getName());로직은 getName으로 꺼낸 값을 setName에 넣는다고 되어있습니다. 이게 작동하려면 이미 name에 spring이 들어가있어야 하는거 아닌가요?setName을 미리 해주는 곳이 따로 있는건가요?
-
미해결만들면서 배우는 프론트엔드 DO IT 코딩 (Next.js, Typescript)
빌드시 오류
빌드시에 다음과같은 오류가 나오는데구글링으로 해결을 못했습니다ㅠㅠ
-
미해결풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
블로그 정리에 사용해도 괜찮나요?
안녕하세요~! 수강중인 학생입니다.강의 내용을 학습하고 이것저것 내용들을 정리하며 블로그 작성을 하고 싶은데강의 출처를 남기고 블로그 정리에 활용해도 괜찮을까요? 감사합니다.
-
해결됨배달앱 클론코딩 [with React Native]
children의 타입질문
DismissKeyboardView 컴포넌트에 React.FC타입을 추가해주어도 children props에 지속적으로 에러표시가 떠서 해결책을 찾다가 아래와 같이 수정해두었는데 별다른 문제가 없을지 궁금합니다. 그리고 혹시 제로초님께서 제작하신 타입스크립트 강좌들에는 강의중에 보여주신 오래된 라이브러리의 타입을 정의하는 방법들까지도 배워볼 수 있을까요?타입스크립트 학습이 너무 부족한게 느껴져서요.import React from "react"; import { Keyboard, StyleProp, TouchableWithoutFeedback, ViewStyle, } from "react-native"; import {KeyboardAwareScrollView} from "react-native-keyboard-aware-scrollview"; type Component = { style?: StyleProp<ViewStyle>; children: JSX.Element[] | JSX.Element; }; const DismissKeyboardView: React.FC<Component> = ({children, ...props}) => ( <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}> <KeyboardAwareScrollView {...props} style={props.style}> {children} </KeyboardAwareScrollView> </TouchableWithoutFeedback> ); export default DismissKeyboardView;
-
미해결장박사의 블록체인 이해와 구조
전자지갑 실습 1 질문
안녕하세요 블록체인 강의 잘 듣고 있습니다.오늘 전자지갑 실습 1을 진행 하였는데.. 계정 생성은 정상인데.. 잔액 조회시크롬에서 CORS 문제가 있는거 같습니다. 해결 방법이 있는지 알수 있을까요?아래 크롬 디버깅 캡쳐한 부분입니다.감사합니다~!!
-
미해결실전! Querydsl
BooleanExpression 모든 조건이 null 일 때
이 경우 where절이 빠짐에 따라 테이블의 모든 데이터가 나오는 건 이해했습니다. 테이블 데이터가 많을 경우 select를 많이 하느라 장애가 난다까진 알겠는데, 그렇다면 이걸 해결할 수 있는 게 페이징뿐인가요? 어떠한 사정이나 목적 때문에 페이징 적용이 되지 않은 쿼리의 경우, 이걸 방지하기 위한 방법이 있는지 궁금합니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
regions값들을 실제 db에 저장할 때 궁금한점이 있습니다.
화면에서 서울, 부산을 클릭해서 item 엔티티 List로 담은 후save()를 하는 것 같은데, 실제 db에 저장할 때는, item 테이블에 region이라는 컬럼에 서울,부산값이 같이 들어가는 구조로 만드는게 합리적인가요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
상품 주문 후 주문내역 리스트가 보이지 않습니다.
상품 주문을 하고 난 뒤에 바로 /orders로 이동하면서 화면까지는 정상적으로 나오는데 주문한 상품 목록이 리스트로 뿌려지지가 않습니다. 브라우저나 서버 쪽 콘솔에도 아무런 오류도 뜨지 않고요. 왜 이런 것일까요..? ${orderSearch} 와 ${memberName} 와 ${orderStatus} 부분에 밑줄이 쳐지긴 하네요.<div> <div> <form th:object="${orderSearch}" class="form-inline"> <div class="form-group mb-2"> <input type="text" th:field="*{memberName}" class="form-control" placeholder="회원명"/> </div> <div class="form-group mx-sm-1 mb-2"> <select th:field="*{orderStatus}" class="form-control"> <option value="">주문상태</option> <option th:each="status : ${T(jpabook.jpashop.domain.OrderStatus).values()}" th:value="${status}" th:text="${status}">option </option> </select> </div> <button type="submit" class="btn btn-primary mb-2">검색</button> </form> </div>public List<Order> findAllByString(OrderSearch orderSearch) { String jpql = "select o from Order o join o.member m"; boolean isFirstCondition = true; //주문 상태 검색 if (orderSearch.getOrderStatus() != null) { if (isFirstCondition) { jpql += " where"; isFirstCondition = false; } else { jpql += " and"; } jpql += " o.status = :status"; } //회원 이름 검색 if (StringUtils.hasText(orderSearch.getMemberName())) { if (isFirstCondition) { jpql += " where"; isFirstCondition = false; } else { jpql += " and"; } jpql += " m.name like :name"; } TypedQuery<Order> query = em.createQuery(jpql, Order.class) .setMaxResults(1000); if (orderSearch.getOrderStatus() != null) { query = query.setParameter("status", orderSearch.getOrderStatus()); } if (StringUtils.hasText(orderSearch.getMemberName())) { query = query.setParameter("name", orderSearch.getMemberName()); } return query.getResultList(); }
-
미해결스프링 핵심 원리 - 기본편
Bean 이닛메서드 지정할 때 질문
빈 생명주기 콜백 강의에서 @Bean(initMethod = "init", destroyMethod = "close") public NetworkClient networkClient(){ NetworkClient networkClient = new NetworkClient(); networkClient.setUrl("http://hello-spring.dev"); return networkClient; }위 코드처럼 빈 설정으로 하는 방법을 쓰는 경우는 내가 코드를 수정할 수 없는 외부 라이브러리에서 init, destroy 메서드를 지정하기 위해서라고 하셨습니다.그런데 위 코드를 보면 메서드 지정에 클래스 없이 메서드 이름만 입력하도록 되어있어서, 해당 빈 메서드에서 반환되는 객체에서 해당 이름의 메서드를 지정하게 되는 것 같습니다.외부 라이브러리의 경우 해당 라이브러리 클래스에 있는 메서드 중 하나를 init, close 메서드로 지정하기 위한 것인가요? 아니면 다른 클래스에서 정의가 가능한가요?
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
tomcat 관련 질문드립니다.
안녕하세요 강사님 강의 잘 듣고 있습니다. 다름이 아니라 tomcat을 설치하는 과정에 있어서 잘 되지 않아 이렇게 문의드립니다. 현재 제 노트북 사양은 m1 macbook 입니다. 기존에 한번 강의를 들으며 tomcat 설치를 진행했었습니다. (추가적으로 8080port , 접근 권한 수정도 하였습니다.)그러다 다시 찬찬히 진행을 하려고 하여 기존의 tomcat을 삭제한 후 강의를 수강하며 설치를 진행했는데 잘 되지 않아 질문드립니다. 다운로드 파일 : 9.0.68 버전 Core tar.gz 문제 상황 : 다운로드 한 파일 경로에서 tomcat 실행 시 다음과 같은 문구가 뜸 그러고 tomcat을 실행하려고 localhost:8080을 주소창에 입력하면 다음과 같이 뜨고 localhost:8088을 접속하면 다음과 같이 화면이 뜹니다. 이러한 경우에는 어떻게 해결을 할 수 있는지 도와주세요..!
-
미해결초보자도 만들 수 있는 스크롤 인터렉션. 1편 자바스크립트
offsetheight와 scrollheight
예시코드:function getPercent(){ let scrollHeight = document.querySelector('.sec01').scrollHeight;} 질문내용: getPercent 함수 맨첫번째줄에서 offsetheight을구하는게 아닌 scrollheight을 구해도 정삭작동했는데 이렇게 했을 시 다른점이있을까요?
-
미해결Vue3 완벽 마스터: 기초부터 실전까지 - "기본편"
once 와 stop을 같이 사용했을 때
안녕하세요 테스트를 해보던중 이상한점이 있어서 질문 올립니다현재 코드가 위처럼 되어있을 때 테스트를 해보면 처음에 click메소드가 수행되고 .stop으로 인해 bubbling이 수행되지 않는것을 확인했는데 그 다음 클릭시 once로 인해 click은 수행되지 않지만 bubbling이 수행되는 것을 확인했습니다. 제가 이해한대로라면 bubbling도 수행되지 않아야하는 것 같은데 bubbling 수행되는 이유가 궁금합니다
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
이런 방식도 괜찮은건가요?
안녕하세요. 강의를 매우매우 잘 듣고 있습니다.다름 아니라 강사님께서 알려주신 dfs 푸는 방법들 중에서 s(start)를 사용해서 쓰는 부분이 너무 인상 깊고 편해서 그런지 이 방법을 사용할 수 있는 문제인것같으면 죄다 이 방법을 사용해서 풀게되는데 괜찮은건가요?이 문제도 그렇고 s(start)로 푸는걸 고집하지말고 강사님이 푸시는 방법처럼 다른 방식으로 풀어봐야될까요?밑에는 s(start)방식을 사용해서 푼 코드입니다(judge 성공한 코드입니다)import sys sys.stdin=open("input.txt","rt") def dfs(t,p): global max if t>n: return if max<p: max=p for i in range(t,n): dfs(i+a[i][0],p+a[i][1]) if __name__=="__main__": n=int(input()) a=[] for i in range(n): t,p=map(int,input().split()) a.append((t,p)) max=0 dfs(0,0) print(max)
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL
type of triangle 질문
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. else 구문까지 학습 진행했고, 해커랭크 문제풀이 진행 중입니다.type of triangle 문제를 풀다when a=b or c=a or b=c then 'Isoceles'else 'Scalene' Endfrom triangles 이 조건까지 입력했고, run을 해보니까 결과값이 9개가 나옵니다. 조건문 end로 마무리는 지었고, 조건을 어떤식으로 묶어줘야 할지 궁금합니다.
-
미해결쉽게 시작하는 쿠버네티스(v1.30) - {{ x86-64, arm64 }}
VM이미지 다운로드 링크 문의입니다.
[질문 전 답변]1. 강의에서 다룬 내용과 관련된 질문인가요? [예 | 아니요]2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예 | 아니요]3. 질문 잘하기 법을 읽어보셨나요? [예 | 아니요](https://www.inflearn.com/blogs/1719)4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.[질문 하기]VM이미지 링크 주신 OneDrive가 만료된 것 같은데요, 업데이트 해주실 수 있는지 문의 드립니다.