inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

172만명의 커뮤니티!! 함께 토론해봐요.

안녕하세요. 오류 메세지에 대해 질문드립니다.

해결됨

남박사의 파이썬 기초부터 실전 100% 활용

위는 제가 쓴 코드이고 밑엔 오류 메세지입니다. ValueError 에 찍히는 숫자를 보니 자료는 제대로 가져오는 것 같은데, string 을 float 으로 컨버팅 할 수 없다는 오류처럼 보입니다.. 이유 알 수 있을까요? 그리고 또 한가지 궁금한 것은, 함수에서 return 을 하는 위치(들여쓰기) 가 어디인지 궁금합니다. 위의 캡처에서처럼 함수 실행 바로 뒤에서 들여쓰기 되기도하고, 아래의 캡처처럼 최종 if문 바로 뒤에서 들여쓰기 되기도 하는데, return 의 위치에 따라서도 함수의 값에 변화가 생기는지요?..

  • python
  • 웹-크롤링
현주민 댓글 2 좋아요 1 조회수 423

antd tree 드래그 기능사용을 사용하려고 하는데 도움 부탁드립니다 ㅠㅠ

미해결

[리뉴얼] React로 NodeBird SNS 만들기

https://ant.design/components/tree/#components-tree-demo-draggable antd tree 드래그 데모를 그대로 가져와서 사용하려고 하는데 에러가 발생합니다. 2가지로 시도해보았습니다. 1. ReactDom.render(...) 마지막 줄을 아래 코드로 수정, [결과 : 트리자체가 안보입니다.] Warning: Did not expect server HTML to contain a <div> in <div>. 위 에러가 발생하는데, 상관없다고 하신글을 보았습니다. 1-1. LeftTree.js (Demo의 index.js 참고) //ReactDOM.render(<Demo />, document.getElementById('container')); if ( typeof window !== 'undefined' ) { ReactDOM . render ( < Demo /> , document . getElementById ( ' container ' )); } 1-2. index.js (Demo의 index.html 참고) const Note = () => { const [ callapse , setCollapse ] = useState ( false ); const onCollapse = useCallback (() => { setCollapse (! callapse ); }, [ callapse ]); const tree = useRef (); return ( < ContentLayout title = "Note" onCollapse = { onCollapse } > < Head > < meta charSet = "utf-8" /> < title > Note | NodeMap </ title > </ Head > < div style = { { display : "flex" } } > < div > < Button > 작성하기 </ Button > < div id = "container" style = { { padding : "24px" } } /> < script > var mountNode = document.getElementById('container'); </ script > </ div > < NoteTab /> </ div > </ ContentLayout > ) }; export default Note ; ---------------------------------------------------------------------------------------------------------------------- 2. export default LeftTree 로 수정, [결과: 트리는 보여지는데, 에러발생] 일부 treenode의 세모표시(트리 접기, 열기)를 클릭하거나, 일부 트리노드를 선택, 드래그시 에러가 발생합니다. 2-1. LeftTree.js //ReactDOM.render(<Demo />, document.getElementById('container')); export default LeftTree ; LeftTree.js에서 마지막줄만 export default LeftTree; 로 수정 했을 경우, 아래 메세지가 발생합니다. Unhandled Runtime Error TypeError: Cannot read property 'offsetHeight' of null 화면과 데이터가 일치 하지 않아서 생기는 것 같은데, next를 사용해서 그런건지... 정확한 이유와 해결방법을 모르겠습니다. 2-2. index.js const Note = () => { const [ callapse , setCollapse ] = useState ( false ); const onCollapse = useCallback (() => { setCollapse (! callapse ); }, [ callapse ]); const tree = useRef (); return ( < ContentLayout title = "Note" onCollapse = { onCollapse } > < Head > < meta charSet = "utf-8" /> < title > Note | NodeMap </ title > </ Head > < div style = { { display : "flex" } } > < div > < Button > 작성하기 </ Button > < LeftTree /> </ div > < NoteTab /> </ div > </ ContentLayout > ) }; export default Note ; 감사합니다.

  • express
  • nodejs
  • redux
  • react
  • Next.js
전병현 댓글 1 좋아요 0 조회수 537

기존boilerplate-mern-stack 이용 install

따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기

삭제된 글입니다

  • redux
  • nodejs
  • mongodb
  • react
An su 댓글 1 좋아요 0 조회수 69

어떻게 해야 하나요?

미해결

C 프로그래밍 - 입문부터 게임 개발까지

file:///C:/Users/moonseungeun/OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/%ED%99%94%EB%A9%B4%20%EC%BA%A1%EC%B2%98%202020-09-15%20230011.png 이렇게 계속 뜨는데...... 어떻게 해야 하나요....????

  • c
문승은 댓글 2 좋아요 0 조회수 233

실습노트에는 있는데 수업에는 안한부분에서

미해결

공공데이터로 파이썬 데이터 분석 시작하기

# 위와 같은 그래프를 미리 연산을 하고 결과값으로 그리는 방법 # groupby 로 구하기 mean_price = df.groupby(["지역명"])["평당분양가격"].mean().to_frame().sort_values(by="평당분양가격", ascending=False 이 부분은 mean_price를 안만들어서 결과가 출력이 안되는데 무엇을 mean_price 로 만들어야하나요??

  • pandas
  • numpy
  • python
daram 댓글 1 좋아요 1 조회수 430

(해결완료) 코드 변경사항 있습니다. 참고들 하세요!

미해결

스프링 시큐리티

package io.security.basicsecurity.security.provider; import io.security.basicsecurity.security.common.FormWebAuthenticationDetails; import io.security.basicsecurity.security.service.AccountContext; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.InsufficientAuthenticationException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.transaction.annotation.Transactional; @Slf4j public class FormAuthenticationProvider implements AuthenticationProvider { @Autowired private UserDetailsService userDetailsService; @Autowired private PasswordEncoder passwordEncoder; public FormAuthenticationProvider(PasswordEncoder passwordEncoder) { this.passwordEncoder = passwordEncoder; } @Override @Transactional public Authentication authenticate(Authentication authentication) throws AuthenticationException { String username = authentication.getName(); String password = (String) authentication.getCredentials(); AccountContext accountContext = (AccountContext) userDetailsService.loadUserByUsername(username); if(!passwordEncoder.matches(password, accountContext.getAccount().getPassword())) { throw new BadCredentialsException("Invalid Password"); // throw new BadCredentialsException("BadCredentialsException"); } String secretKey = ( (FormWebAuthenticationDetails) authentication.getDetails() ).getSecretKey(); // FormWebAuthenticationDetails formWebAuthenticationDetails = (FormWebAuthenticationDetails) authentication.getDetails(); // String secretKey = formWebAuthenticationDetails.getSecretKey(); if(secretKey == null || ! secretKey.equals("secret")) { // if(secretKey == null || !"secret".equals(secretKey)) { throw new IllegalArgumentException("invalid Secret"); // throw new InsufficientAuthenticationException("InsufficientAuthenticationException"); } return new UsernamePasswordAuthenticationToken(accountContext.getAccount(), null, accountContext.getAuthorities()); // UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(accountContext.getAccount(), null, accountContext.getAuthorities()); // return authenticationToken; } @Override public boolean supports(Class<?> authentication) { return authentication.equals(UsernamePasswordAuthenticationToken.class); // return UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication); } }

  • spring-boot
  • Spring Security
  • java
강프로그래머 댓글 1 좋아요 5 조회수 722

보더 이펙트 강의 내용은 없는건가요~?

미해결

HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)

보더 애니메이션을 설명해주시다가 before after로 넘어가셨는데...강의가 끝나버렸어요ㅠ.ㅠ 보더 이펙트 강의는 없는건가용 ㅠㅠ

  • jquery
  • HTML/CSS
DogFoot 댓글 1 좋아요 2 조회수 372

yml 관련오류입니다 (JPA와 DB설정)

미해결

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

안녕하세요? Resources 에 yml 을 생성후 실행 을 시키니 콘솔창에 Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here 라는 오류가 발생합니다. yml에 띄어쓰기도 다 해줬는데 도정히 모르겠습니다. .ㅠ.ㅠ 답변 부탁드립니다.

  • spring
  • spring-boot
  • java
  • 웹앱
  • JPA
Soungsik Yun 댓글 3 좋아요 0 조회수 4339

쿠키 소스코드 다입력하고

미해결

실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌

쿠키 소스코드 다입력하고 로그인 페이지에서 로그인 누르는데 아무 응답이 없네요 왜그런지 아시는 분 계실까요?ㅠㅠ

  • java
  • jsp
서동찬 댓글 0 좋아요 0 조회수 200

선생님 while 하고 if 문에 parentNode를주면

미해결

인터랙티브 웹 개발 제대로 시작하기

다르게 적용 되나요? while문은 바디 이상까지 계속 찾아서 올라가고 if는 바로 한단계만 올라가고 멈추나요?

  • javascript
  • HTML/CSS
  • 인터랙티브-웹
김동 댓글 1 좋아요 0 조회수 320

배포에 문제가 있습니다.

리액트로 나만의 블로그 만들기(MERN Stack)

삭제된 글입니다

  • redux
  • nodejs
  • react
  • mongodb
  • bootstrap
  • express
코히 댓글 4 좋아요 0 조회수 241

맥북관련해서 질문드립니다.

해결됨

프로그래밍 시작하기 : 웹 입문 (Inflearn Original)

저는 이번에 새로 맥북으로 웹개발을 배워보는 학생입니다. 혹시 맥북으로 수업을 들어도 코딩을 하는데 있어서, 문제점같은 건 없는건가요 ? 수업은 윈도우를 기반으로 진행하고 있어서, 질문드려봅니다..!

  • HTML/CSS
  • javascript
성실한 멸치 댓글 1 좋아요 0 조회수 265

[10:30]

미해결

홍정모의 따라하며 배우는 C++

#include<iostream> #include<string> int main() { using namespace std; cout << "Your name? : "; string name; cin >> name; cout << "Your age? : "; string age; cin >> age; cout << name << " " << age << endl; return 0; } 1) jack jack을 입력받았을 때 왜 마지막줄의 cout<<name<<" "<< age<<endl; 부분은 실행(출력)이 되지 않나요?? 2) 입력으로 j1 j2 j3를 입력했을 때 한줄씩 디버깅하면 변수값이 age= j1, name=j2가 나옵니다. 실행파일에서는 age가 j1, j2로 나오는 이유를 모르겠습니다.

  • C++
ififi ifif 댓글 1 좋아요 0 조회수 216

하이라이트

해결됨

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문

비주얼스튜디오의 글자 색상이 다르니까 가독성이 떨어지네요. 선생님처럼 함수가 주황색으로 나오게 하려면 어찌해야 하죠? 전에 뭔가 확장프로그램을 쓰신다고 하신듯 한데.

  • C#
DJ S 댓글 1 좋아요 0 조회수 380

다른 확장자를 가지는 파일에 대한 분석

미해결

[개념부터 실습까지] 추천 시스템 입문편

csv, txt 파일이 아니라 다른 파일을 분석하고자 할 때는 csv 파일로 변경해서 분석을 하는 것이 가장 좋은가요? 단적인 예시로 eml 파일을 분석하고싶다면 csv 파일로 변경한 뒤 분석하는 게 가장 좋은 방법일까요? 아니면 다른 방법이 있을까요? 여러 강의를 들었는데 대부분 csv 파일만을 가지고 분석 실습을 해서 위와 같은 의문(질문?)이 들었습니다!

  • 머신러닝 배워볼래요?
  • pandas
  • scikit-learn
  • seaborn
  • 추천-시스템
김현지 댓글 1 좋아요 1 조회수 249

설치된거 맞나요? express-generator

미해결

코로나맵 개발자와 함께하는 지도서비스 만들기 1

(사진)

  • express
  • vscode
  • nodejs
  • 웹앱
정재현 댓글 2 좋아요 2 조회수 348

안녕하세요!!

미해결

코로나맵 개발자와 함께하는 지도서비스 만들기 1

안녕하세요~ 시빌해킹을 꼭 해보고싶은 대학생입니다. 저번에 코로나 맵 만드신거 보고 너무 멋지다고 생각해서 팬으로 있었는데, 이렇게 강의가 있다는걸 이제야 알게 되었네요! 그런데 최종으로 서비스를 만들고 배포는 어떻게 진행하면 좋나요?

  • nodejs
  • express
  • vscode
  • 웹앱
정재현 댓글 1 좋아요 2 조회수 316

해외 수강자

미해결

[개정판] 파이썬 머신러닝 완벽 가이드

안녕하세요 해외에서 수강하고 있는 박광섭입니다 해외 인지라 인터넷 속도가 사무실 외에는 수강하기가 어려움이 있습니다 강좌를 다운로드해서 듣는 기능은 없는지요 답변 주시면 감사하겠습니다

  • python
  • 머신러닝 배워볼래요?
  • 통계
박광섭 댓글 1 좋아요 0 조회수 626

인기 태그

인프런 TOP Writers

주간 인기글