- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강사님, 안녕하세요 :) 지난번 캐글예제로 배우는 머신러닝 강의 따라서 본 강의도 신청하게 되었습니다! 프로젝트 진행에 큰 도움 감사드립니다, 혹 이 강의도 개인 블로그에 출처 기재하여 공부한 내용 정리해서 업로드 진행해도 될지요? 또한, 인프런에 제공하시는 강의 모두 동일한 기준으로 이해하면 될지 문의 드립니다 :) 이 강의도 잘 따라가보겠습니다! 감사합니다!
imblearn 설치를 위해 과거 2021년3월 답변 내용 참고하여 실행했는데 설치가 안되어 문의드립니다. 과거 게시판 내용 참고 https://www.inflearn.com/questions/178321 실행한 내용 pip install scikit-learn== 0.23 .1 pip install imbalanced-learn== 0.7 .0 현재 sk-learn 버전 1.0.2 오류 메시지 {(base) C:\Windows\system32>pip install scikit-learn==0.23.1 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ Could not fetch URL https://pypi.org/simple/scikit-learn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/scikit-learn/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement scikit-learn==0.23.1 (from versions: none) ERROR: No matching distribution found for scikit-learn==0.23.1 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping } { (base) C:\Windows\system32>pip install imbalanced-learn==0.7.0 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ Could not fetch URL https://pypi.org/simple/imbalanced-learn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/imbalanced-learn/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement imbalanced-learn==0.7.0 (from versions: none) ERROR: No matching distribution found for imbalanced-learn==0.7.0 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping}
import { Module } from '@nestjs/common' ; import { TypeOrmModule } from '@nestjs/typeorm' ; import { Shops } from 'src/entities/shops.entity' ; import { ShopsController } from './shops.controller' ; import { ShopsService } from './shops.service' ; @ Module ({ imports : [ TypeOrmModule . forFeature ([ Shops ])], controllers : [ ShopsController ], providers : [ ShopsService ], }) export class ShopsModule {} 이렇게 작성을 하였는데 webpack 5.72.1 compiled successfully in 137 ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [NestFactory] Starting Nest application... [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [InstanceLoader] TypeOrmModule dependencies initialized +38ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [InstanceLoader] PassportModule dependencies initialized +0ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 ERROR [ExceptionHandler] Nest can't resolve dependencies of the ShopsService (ShopsRepository, ?). Please make sure that the argument UsersRepository at index [1] is available in the ShopsModule context. Potential solutions: - If UsersRepository is a provider, is it part of the current ShopsModule? - If UsersRepository is exported from a separate @Module, is that module imported within ShopsModule? @Module({ imports: [ /* the Module containing UsersRepository */ ] }) 이렇게 에러가 나네요.. 도저히 모르겠어서 질문드립니다.
안녕하세요 강사님 첫 번째 문의 답변 정말 감사합니다. 추가 문의 좀 하겠습니다.. 혹시 제 Logout처리 부분에서 잘 못 처리 된게 있을지 좀 알려주실 수 있으십니까? config 쪽 로그아웃 관련 설정입니다. @Override protected void configure ( HttpSecurity http ) throws Exception { . logout () . clearAuthentication ( true ) . logoutRequestMatcher ( new AntPathRequestMatcher ( "/api/v1/logout" )) . logoutSuccessHandler ( new LogoutHandler ( homeService )) 로그아웃 헨들러 @Slf4j @RequiredArgsConstructor public class LogoutHandler extends SimpleUrlLogoutSuccessHandler implements LogoutSuccessHandler { private final HomeService homeService ; @Override @Transactional public void onLogoutSuccess ( HttpServletRequest request , HttpServletResponse response , Authentication authentication ) throws IOException , ServletException { LoginCode logout = homeService . logout ( request , response ) ; log . info ( "logout result : {}" , logout . getDescription ()) ; ResponseCookie refreshToken = homeService . removeCookie ( request ) ; response . setHeader ( "Set-Cookie" , refreshToken . toString ()) ; this . setDefaultTargetUrl ( "/login" ) ; super . onLogoutSuccess ( request , response , authentication ) ; } } 이번에 QA를 진행해보아도 한 PC에서 로그인을 한 상태에서, 다른 QA분들 (약10분 정도) 가 로그인/로그아웃을 반복 수행했습니다. 동일하게 RoleVoter나, IpVoter쪽에서 context 검사 후 AuthenticationEntryPoint 이쪽에 걸렸습니다. removeCookie 쪽에는 단순히 쿠키의 age를 0으로 재생성해주는 쿠키 제거 function 입니다. 로그아웃 과정에서 어떤 문제가 있길래 모든 context가 처리 되는지 알고 싶습니다.. 감사합니다...! 질문 update clearAuthentication 이부분이 혹시 전체 authentication을 삭제가 가능한가 싶어서 내부를 타고 들어가도 현재 인증 정보를 제거한다라는 로직 같기만 하고 제가 우려한 부분은 아니더라구요. ip hash등의 임시 방편으로 이것이 해결이 되는 건가 싶었는데. 금일 라이브QA에서도 동일한 현상이 발생 했습니다. 강사님의 질문에 대해서 제가 정리를 해보면 request가 들어오면 filter에서 제가 생성한 context 로 rolevoter 등이 체크를 하고 response 할 때 context가 없어지는 것 같은데... 일반적인 java RequestContext 같은 것과 같은 의미로 전 이해했습니다. 그럼 logout쪽에 clearAuthentication 이나 logoutHandler쪽에 SecurityContextHoler.getContext().setAuthentication(null); 이런 적업을 안해줘도 되는 걸까요?? 어차피 하나의 request 안에서만 생성 되고 없어지는 context 이니깐요. 감사합니다. 수강생 올림. https://www.inflearn.com/questions/53657 이거랑 비슷한 이슈인 것 같기도 하구요.. 추가질문 update------------------------------------------ 안녕하세요 강사님. SecurityContextHolder에 아무 Context가 없는 상황에서. clearContext()를 하면 어떤 영향이 있나요?.. 전 당연히 아무 영향이 없을 것이다 생각하고, 로그인 API에 넣어 두었는데요. QA분과 테스트 과정에서 이부분을 주석처리 해버리니까 일단 발생하지 않습니다. 내일 많은 QA분이 있으실 때 더 정확한 테스트가 되겠지만.. 아무 context가 없을때 clearContext를 호출하는게 왜 영향이 있는지 모르겠습니다. 추가로. security의 기본 context 전략이 ThreadLocal이라는 것을 저도 코드 타고 들어가보면서 확인했는데요. 혹시 몰라서 @Override protected void configure ( HttpSecurity http ) throws Exception 에 SecurityContextHolder . setStrategyName ( SecurityContextHolder . MODE_THREADLOCAL ) ; 를 추가 하였습니다. 좋은 하루 되세요. 마음이 급해서 질문이 너무 난잡하네요. 죄송합니다.
Window 사용중이구요 다음과 같은 초기 빌드에러 가 발생했습니다. ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-11\bin Please set the JAVA_HOME variable in your environment to match the location of your Java installation. [Project SDKs 캡쳐] [환경변수 설정 결과] [디렉토리 구조] [빌드 실패 명령어 및 결과] [시스템 변수 설정1] [시스템 변수 설정2] 시스템 변수 설정 시 bin 의 위치를 다르게 하여 설정1, 설정2 모두 해보았구요 명령어도 ./gradlew ./gradlew build ./gradlew.bat ./gradlew.bat build gradlew 모두 해보았구요 그럼에도 불구하고 에러가 발생하는데 원인을 더 찾아볼 곳이 있을까요?
강의 잘듣고 있습니다. 제가 필요한 그래프가 heatmap 그래프인데 연속적인 데이터(사이즈가 256x256 ) 가 들어가면서 heatmap 그래프가 대략 20ms정도의 주기로 업데이트가 되는데 제가 아직 enter, update,exit에 대한 개념이 약해 이게 속도가 이렇게 나오지 않네요 혹시 enter,update,exit에 대한 개념과 이게 합쳐진게 join 이라고 알고있는데 join에 대한 개념도 알수 있을까요?
안녕하세요 GridAgent.cs 코드에서 public override void CollectObservations( VectorSensor sensor ) { ... // sensor 부분이 null로 전달됩니다. // 일단 널처리는 했지만 왜 null로 오는지 궁금합니다. Debug.Log(sensor); if (sensor != null) { sensor.AddObservation(transform.position.x); sensor.AddObservation(transform.position.z); // 각각 도형에 대한 좌표 List<int> otherPos = area.otherPos; for (int i = 0; i < otherPos.Count; i++) sensor.AddObservation(otherPos[i]); } } 감사합니다.
컴퓨터 네트워크는 OSI 7계층으로 통신한다고 하잖아요 그래서 응용계층의 HTTP 프로토콜도 통신하기 위해선 Transport Layer를 거쳐야한다는 건데... 1. 그렇다는건 웹서버도 리스너 소켓을 생성하는거겠죠? 그리고 크롬, 엣지, 파이어폭스 같은 브라우저들이 클라이언트라고 볼때 2. Connection을 요청하기 위해 브라우저들도 소켓을 생성하고 있다고 볼 수 있을까요? 3. 만약 그렇다면 http도 소켓 API를 사용하는데 왜 http는 소켓 통신과 다르다고 하는걸까요?
선생님 안녕하세요~ ^^; 다크모드, 폰트크기를 로컬스토리지에 저장하여, 재 방문시에도 적용되게 하려고하는데, 처음에 적용한 mixin은 적용되지 않고, 마지막 mixin만 적용됩니다. 둘 중 하나만 적용하면, 잘 적용됩니다. 어떻게 하면, 두 mixin 모두 적용되게 할 수 있을까요?
안녕하세요, 강의 잘 보고 있습니다. 다만 실전 프로젝트 중 WebIgnoring 을 강사님이 하신 것 처럼 똑같이 따라 했는데도 불구하고 계속 favicon.ico가 302 redirect 됩니다. (아직 로그인 인증을 받지 않은 상태에서 루트 경로로 접속 시) 인텔리제이도 재시작 해보고, 인텔리제이 메뉴에서 invalidate caches/restart도 봤으나 결과는 계속 localhost:9090/login 으로 302 redirect 입니다. 제가 따로 web.ignoring().antMatchers("/favicon.ico", "/**/favicon.ico");와 같이 코드를 추가했어도 계속 302 redirect가 발생되네요. web.ignoring().antMatchers("/favicon.ico", "/**/favicon.ico"); [이 코드를 추가 하나 안 하나 변함 없이 302 redirect가 됩니다] 해결 방법이 있을까요? 감사합니다. (혹시 제가 이전에 올린 질문 글도 답변 부탁드려도 될까요...?) @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { // memory 방식으로 사용자 build String password = passwordEncoder().encode("1111"); auth.inMemoryAuthentication().withUser("user").password(password).roles("USER"); auth.inMemoryAuthentication().withUser("manager").password(password).roles("MANAGER", "USER"); auth.inMemoryAuthentication().withUser("admin").password(password).roles("ADMIN", "MANAGER", "USER"); } @Bean public PasswordEncoder passwordEncoder() { ; return PasswordEncoderFactories.createDelegatingPasswordEncoder(); } @Override public void configure(WebSecurity web) { web.ignoring() .antMatchers("/favicon.ico", "/**/favicon.ico"); web.ignoring() .requestMatchers(PathRequest.toStaticResources().atCommonLocations()); } @Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/").permitAll() .antMatchers("/mypage/**").hasRole("USER") .antMatchers("/messages/**").hasRole("MANAGER") .antMatchers("/config/**").hasRole("ADMIN") .anyRequest().authenticated() .and() .formLogin(); } } 감사합니다.