묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결프론트엔드 개발자를 위한 웹팩
왜 앞에 sudo를 넣지 않으면 설치가 되지 않나요?
저도 앞의 질문자와 거의 같은 상황인데요. 번거롭게 매 번 sudo를 입력해야하나요? 강사님은 sudo를 입력하지 않아도 install이 잘되는데... 비법을 알려주세요~~!!! ^_^
-
해결됨[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
자바스크립트 '' , ``차이
if (!req.session.jwt) { const tokenResult = await axios.post(`${URL}/token`, { clientSecret: process.env.CLIENT_SECRET }); req.session.jwt = tokenResult.data.token; } `${URL}`이부분이 궁금한데요 서버에다가 도메인으로 요청할때는 ``이렇게 써야하나요 그리고 전역변수인 URL을 ${}이렇게 해야 하는 이유가 먼지 궁금합니다아
-
해결됨[개정판] 파이썬 머신러닝 완벽 가이드
너무 궁금해서 문의드려봅니다.
안녕하세요. 책도보고 동영상도 보고 있는데 너무 궁금해서 이렇게 강의와 직접적인 관련이 없는데도 불구하고 이런 경우는 어떻게 접근해야할지 몰라서 문의드려봅니다. 문장의 예) Gildong weighs 60kg. Cheolsu weighs 70kg. Younghee weighs 49kg. 위 문장 텍스트에서 영희라는 사람의 몸무게를 구하고 싶습니다. 기존 개발방법이라면 문장으로 배열화 시켜서 for문 돌리면서 if문 사용하여 Younghee, weighs 단어가 포함된 문장배열에서 kg이 포함된 단어 또는 정규식으로 사용하든지해서 구할것입니다. 그러나 이렇게 나온 데이터가 AI영역에서는 의미가 없어 보입니다. 비정형화된 텍스트에서 특정 원하는 값을 구하고싶은데 AI 머신러닝 딥러닝의 개념으로 처리를 한다면 어떻게 접근해야할지 너무 감이 안옵니다. 정말 그냥 for문, if문 사용해서 영희의 몸무게를 뽑아내야하는건지 AI 개념에서는 어떻게 접근해야할지 작은 조언이라도 부탁드립니다.
-
미해결스프링 핵심 원리 - 기본편
ComponentScan 동작하지 않는 문제점. 이유가 뭘까요?
안녕하세요. ComponentScan 동작하지 않아 문의드립니다. AutoAppConfig @Configuration@ComponentScan( excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = Configuration.class))public class AutoAppConfig {} MemberServiceImpl @Componentpublic class MemberServiceImpl implements MemberService{ // App Config 적용 전 // private final MemberRepository memberRepository = new MemoryMemberRepository(); // App Config 적용 후 -> DIP 충족 (interface 에만 의존) private final MemberRepository memberRepository; @Autowired // ac.getBean(MemberRepository.class) public MemberServiceImpl(MemberRepository memberRepository) { this.memberRepository = memberRepository; } @Override public void join(Member member) { memberRepository.save(member); } @Override public Member findMember(Long memberId) { return memberRepository.findById(memberId); } //테스트 용도 public MemberRepository getMemberRepository() { return memberRepository; }} MemoryMemberRepository @Componentpublic class MemoryMemberRepository implements MemberRepository{ private static Map<Long, Member> store = new HashMap<>(); @Override public void save(Member member) { store.put(member.getId(), member); } @Override public Member findById(Long memberId) { return store.get(memberId); }} AutoAppConfigTest public class AutoAppConfigTest { @Test void basicScan(){ ApplicationContext ac = new AnnotationConfigApplicationContext(AutoAppConfig.class);// MemberService memberService = ac.getBean(MemberService.class);// assertThat(memberService).isInstanceOf(MemberService.class); String[] beanDefinitionNames = ac.getBeanDefinitionNames(); for (String beanDefinitionName : beanDefinitionNames) { System.out.println("beanDefinitionName = " + beanDefinitionName); } }} 테스트코드에 대한 결과 02:29:42.506 [main] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@272113c4 02:29:42.523 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' 02:29:42.672 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor' 02:29:42.674 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory' 02:29:42.675 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' 02:29:42.677 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' 02:29:42.686 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'autoAppConfig' beanDefinitionName = org.springframework.context.annotation.internalConfigurationAnnotationProcessor beanDefinitionName = org.springframework.context.annotation.internalAutowiredAnnotationProcessor beanDefinitionName = org.springframework.context.annotation.internalCommonAnnotationProcessor beanDefinitionName = org.springframework.context.event.internalEventListenerProcessor beanDefinitionName = org.springframework.context.event.internalEventListenerFactory beanDefinitionName = autoAppConfig 컴포넌트가 하나도 스캔되지 않는데, 왜그런걸까요..? 자료와 계속 비교해봐도 모르겠습니다.
-
미해결홍정모의 따라하며 배우는 C++
[9:48] Lecture class에서 assignTeacher 함수의 parameter 형태 문의
안녕하세요, 강의에서 Lecture class 내부에 아래와 같이 함수를 정의하고, parameter형태는 아래와 같은데요, void assignTeacher(const Teacher & const teacher_input) {} 왜 const Teacher & teacher_input으로 사용하지 않고, const Teacher & const teacher_input 형태로 작성하셨는지 문의드립니다. 위와 같이 const를 2번 사용하는 경우는 앞선 강의 중 pointer에서 예로 보여주시긴 하셨는데, reference에서는 위와같이 써야하는 이유를 모르겠습니다. reference variable이 주소값을 변수 내부에 가지고 있지 않고, de-referencing해서 사용하지도 않기때문입니다. 아래의 홈페이지에서도 "Does “X& const x” make any sense?" 에서 const는 redundant라고 설명하는데 강의에서는 왜 저런 형태로 사용하는지 문의드립니다. "https://isocpp.org/wiki/faq/const-correctness#const-ref-alt"
-
해결됨Svelte.js SPA 영화 검색 프로젝트
Netlify배포 후 콘솔 에러 메세지 질문드려요
안녕하세요. 좋은 강의 감사합니다. PC 개발 환경에서는 너무 잘 되었는데요. Netlify에 배포하면 아래 콘솔 에러 메세지가 뜨며 화면이 열리지 않아서 해결 방법에 대하여 도움을 부탁 드립니다. 검토 부탁드립니다. 감사합니다. Uncaught SyntaxError: The requested module '../../web_modules/svelte-spa-router.js' does not provide an export named 'link' GitHub Repo: https://github.com/sorayeon/svelte-movie-app Demo: https://lucid-wozniak-9267f7.netlify.app
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
src/test/resources/application.yml 인식 문제입니다.
안녕하세요 강사님! 테스트 수행 중 application.yml 파일을 test 밑에 두고 따라하는중에 application.yml 파일을 찾지 못하고 자꾸 main 밑에있는 파일을 불러왔습니다. 찾아보니 test/resources/config/application.yml 로 두어야 인식한다고 되어있고 저도 config 디렉토리를 생성해 그 밑에 두었더니 별도의 application.yml 파일로 읽어오더라구요. https://stackoverflow.com/a/53134737 인텔리제이로 학습중인데 이부분 한번 확인 부탁드리겠습니다!
-
미해결딥러닝 웹서비스 프로젝트 1 - 기본편. Object Detect 불량품 판별
400 Bad Request 발생합니다.
안녕하세요. 강의 감사드립니다. 로컬로 접속해서 json return을 확인하려는데요. 아래와 같이 뜹니다. 코드는 다운 받은 그대로 사용했습니다. 잘 안되네요 ㅠ werkzeug.exceptions.BadRequestKeyError BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. KeyError: 'model'
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
강의와 책 관련 질문있습니다!
안녕하세요 교수님. 이번에 머신러닝 완벽가이드 강의를 신청하여 듣고있는학생입니다. 다름이 아니라 제가 책은 구매하지 않았고 강의만 수강하고 있는 상태인데요. 책을 구매하지 않아도 강의를 듣는데 무리가 없을까요? 책이랑 병행해야 된다면 살건데, 굳이 책이랑 병행하지 않고 강의로만 커버된다면 일단 강의만 들을생각이여서요. 답변부탁드리겠습니다^^
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
오류 한번 확인 부탁드려요 ㅜㅜ
안녕하세요 ~ 다음과 같은 오류가 났는데 어떻게 해결해야할까요 ?
-
해결됨스스로 구축하는 AWS 클라우드 인프라 - 기본편
질문있습니다.
좋으 강의 항상 감사드립니다. AMI을 통한 EC2 생성에서 lab-web-srv-pri1-2c를 생성할때, 가용영역이 2c가 되어야 하지 않나요?? 강의는 가용영역이 2a로 설정을 진행해서요..
-
미해결최반장의 엑셀 피벗테이블 마스터 클래스
실습용파일 접근이 안됩니다.
실습용 파일이 접근이 안됩니다.
-
미해결최반장의 엑셀 피벗테이블 마스터 클래스
예제파일이 어디에 있는지 모르겠습니다.
수업자료를 다운받아도 수출입실적 공공데이터 엑셀파일만 나오지 해당 강의에 대한 예제 파일이 보이지 않습니다. 어디서 구할 수 있는지 궁금합니다.
-
미해결따라하며 배우는 TDD 개발 [2023.11 업데이트]
jsdom
안녕하세요. 질문이 있습니다. jsdom -> node로 환경셋팅을 바꾸면 된다고 하셨는데 mongoose에서 dom이라는 것을 사용할일이 있는건가요 ? jsdom이 node에서 테스팅할때 어떤 역할을 하는것인지 궁금합니다.. jsdom = 브라우저에서 제공하는 DOM이나 web api를 전부 제공하는 아이인가요?
-
해결됨스프링 핵심 원리 - 기본편
Test작성 시 미리 선언
안녕하세요 강사님, 강의 재밌게 잘 듣고 있습니다. MemberServiceTest.java 작성시 두가지 궁금한 점이 생겼습니다. MemberService memberService; @BeforeEach public void beforeEach(){ AppConfig appconfig = new AppConfig(); memberService = appConfig.memberService(); } 와 같이 작성해주셨는데 1. memberService를 사용전에 미리 명시하신 이유가 있을까요? 2. 만약 여러개의 테스트를 진행할때 매번 new AppConfig 객체를 생성해서 진행하면 비효율적이지 않나요? beforeEach가 아니라, MemberService memberService; 와 같이 각각의 테스트 함수 밖에 공통 정의해서 사용하면 문제가 있나요? 감사합니다.
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
이렇게 풀면 어디가 잘못된건지 잘모르겠습니다...
n = 100 m = 100 s = '3 3 1 4 5 2 2 5 2 1 2 2 1 1 4 1 4 3 3 5 1 5 1 3 4 5 4 5 2 4 2 1 1 4 2 1 5 3 1 3 1 1 1 2 4 4 5 5 5 5 3 2 5 5 3 2 3 4 1 3 3 4 5 1 3 1 3 2 3 1 2 3 2 5 5 4 2 3 1 2 3 2 4 5 2 4 4 4 4 3 1 5 2 2 1 3 2 5 4 1' a = list(map(int, s.split())) lt = 0 rt = 1 cnt = 0 while(True): temp = sum(a[lt:rt]) if lt >= n: break elif rt >= n: lt += 1 rt = lt + 1 elif temp < m: rt += 1 elif temp >= m: if temp == m: cnt += 1 lt += 1 rt = lt + 1 print(cnt) 혹시 이런방식으로 구현을 하면 어느부분에서 틀린걸까요ㅠㅠ 몇가지 케이스에선 정답이 나오는데 위의 케이스에선 오류가납니다
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
질문있습니다
LoginFom.js에서는 input의 id와 password는 useState를 사용하지 않고 useInput을 사용했는데 const [id, onChangeId] = useInput(''); const [password, onChangePassword] = useInput(''); <div> <label htmlFor="user-id">아이디</label> <br /> <Input name="user-id" value={id} onChange={onChangeId} required /> </div> <div> <label htmlFor="user-password">비밀번호</label> <br /> <Input name="user-password" value={password} onChange={onChangePassword} type="password" required /> </div> PostForm.js 의 const [text, setText] = useState(''); <Input.TextArea value={text} onChange={onChangeText} maxLength={140} placeholder="어떤 신기한 일이 있었나요?" /> 이부분과 CommentForm.js의 const [commentText, setCommentText] = useState(''); <Input.TextArea rows={4} value={commentText} onChange={onChangeCommentText} /> input에는 왜 useInput에서 불러오지 않는고 useState를 사용하는지 궁금합니다. 또한 어떨때 쓰임새가 다르게 쓰이는지도 궁금합니다!
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
시작 실행부터 막혀서 질문드립니다 ㅠㅠ;
프로젝트환경설정 - 프로젝트생성이라는 강의에서 메인메소드를 실행하고 localhost:8080에서 에러페이지를 확인하는 부분에서 막힙니다. 처음에는 제가 오라클db를 사용중이라 포트번호가 겹치는거인줄알고 구글검색해서 application.properties에 server.port = 포트번호 로 수정해봣는데 안되더라구요 다른문제인거 같은데 제가 해결하지를 못해서 질문남깁니다. 메인메소드 실행 콘솔창 첨부합니다. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.7.RELEASE) 2020-12-19 20:40:17.477 INFO 20140 --- [ main] h.hellospring.HelloSpringApplication : Starting HelloSpringApplication on DESKTOP-3I38L64 with PID 20140 (F:\springInflearn\hello-spring\out\production\classes started by oaoa in F:\springInflearn\hello-spring) 2020-12-19 20:40:17.481 INFO 20140 --- [ main] h.hellospring.HelloSpringApplication : No active profile set, falling back to default profiles: default 2020-12-19 20:40:18.837 WARN 20140 --- [ main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2020-12-19 20:40:18.870 INFO 20140 --- [ main] h.hellospring.HelloSpringApplication : Started HelloSpringApplication in 2.121 seconds (JVM running for 3.071) Process finished with exit code 0
-
미해결스프링 시큐리티
질문 있습니다!
antMatcher("/admin/**") .authorizeRequests() .anyRequest().authenticated() .and() .httpBasic(); 이라는 구문이 /admin 으로 들어온 모든 요청에 대해 인증된 사용자만 접근을 허용하고, 인증은 httpBasic() 방식 (request에 id, password를 받아 사용자 인증 처리)으로 수행한다 라고 해석해도 되나요?? 그리고 최초 admin 접근 시에는 id, password 입력 요청창이 뜨는데, 인증 성공 이후 서버를 재시작하거나, 서버에게 발급받은 Jsession Id를 쿠키에서 지워보아도 별다른 인증 처리 없이 admin 화면으로 이동합니다.. 제 생각대로라면 재시작된 서버의 시큐리티 컨텍스트에는 인증 정보가 없을 뿐더러, 클라이언트에서 온 JsessionID 또한 Null이니 당연히 재 인증을 받아야 한다고 생각해는데요.. 왜 인증 절차 없이 넘어가는 건지 궁금합니다.
-
미해결실전 자바스크립트
마지막 예제 질문드립니다.
일반적으로 this는 함수 호출을 할 때, 일종의 규칙들을 따라 this 바인딩이 일어나잖아요. arrow function에서의 this는 함수 호출시, 호출부가 아니라, 호출시에 lexical scope에 따라 this가 바인딩 된다고 알고 있습니다. 마지막예제는 객체내부의 메서드를 호출할때, this는 전역을 가리키기 때문에 그렇겠죠. 하지만 리액트에서 아래와 같이 this 바인딩을 하기도 하잖아요? class Foo { bar = () =>{ } } 이 경우는 그냥 일반적인 생성자 함수(객체 생성) 규칙에 의해서 생성된 객체를 this로 가리키기 때문에 바인딩이 되는것인가요? 헷갈리네요 갑자기..