1) 안녕하세요 강사님. np.random.seed = 2021과 관련해서 궁금한 점이 있어 질문 드립니다. np.random.seed의 type이 int형임을 파악했는데요. np.random.seed라는 변수는 어디서 사용이 되는 건가요? random seed로 사용하기 위해 선언해 놓으신 것 같은데 어떤 함수의 인자로도 사용되는 모습이 보이지 않아서 어디에 쓰이는지 잘 모르겠습니다. 2) %matplotlib inline의 역할을 알아보기 위해 인터넷에 검색을 해보았는데요. notebook을 실행한 브라우저에서 바로 그림을 볼 수 있게 해주는 것임을 알게 되었습니다. 그래서 %matplotlib inline 이 없으면 현재 브라우저 상에 그림이 나타나지 않을 것을 기대하고 %matplotlib inline을 지워봤는데 똑같이 저 그림이 출력됩니다. 제가 어디서 잘못 이해하고 있는 걸까요? 항상 좋은 강의 감사합니다.
선생님 안녕하세요. root 디렉토리가 최상위 디렉토리를 말씀하시는거 맞나요? PS C:\> 얘를 말씀하시는건지 PS C:\Users\User\Desktop\boilerplate-mern-stack-master> 얘를 말씀하시는건지 저는 PS C:\Users\User\Desktop\boilerplate-mern-stack-master> 여기에 npm install multer --save 를 했습니다. 하고 npm run dev 를 해보니 아래와 같은 에러가 발생해서요..... > react-boiler-plate@1.0.0 dev C:\Users\User\Desktop\boilerplate-mern-stack-master > concurrently "npm run backend" "npm run start --prefix client" [0] [0] > react-boiler-plate@1.0.0 backend C:\Users\User\Desktop\boilerplate-mern-stack-master [0] > nodemon server/index.js [0] [1] [1] > client@0.1.0 start C:\Users\User\Desktop\boilerplate-mern-stack-master\client [1] > react-scripts start [1] [0] [nodemon] 1.19.4 [0] [nodemon] to restart at any time, enter `rs` [0] [nodemon] watching dir(s): *.* [0] [nodemon] watching extensions: js,mjs,json [0] [nodemon] starting `node server/index.js` [0] (node:15324) Warning: Accessing non-existent property 'count' of module exports inside circular dependency [0] (Use `node --trace-warnings ...` to show where the warning was created) [0] Server Listening on 5000 [0] (node:15324) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency [0] (node:15324) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency [0] (node:15324) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency [0] MongoDB Connected... [1] [HPM] Proxy created: / -> http://localhost:5000 [1] i 「wds」: Project is running at http://192.168.0.3/ [1] i 「wds」: webpack output is served from [1] i 「wds」: Content not from webpack is served from C:\Users\User\Desktop\boilerplate-mern-stack-master\client\public [1] i 「wds」: 404s will fallback to / [1] Starting the development server... [1] [1] Browserslist: caniuse-lite is outdated. Please run: [1] npx browserslist@latest --update-db [1] Compiled with warnings. [1] [1] ./node_modules/express/lib/view.js [1] Critical dependency: the request of a dependency is an expression [1] [1] ./src/components/views/UploadProductPage/UploadProductPage.js [1] Line 2:10: 'Typography' is defined but never used no-unused-vars [1] Line 3:10: 'Item' is defined but never used no-unused-vars [1] Line 26:12: 'Images' is assigned a value but never used no-unused-vars [1] Line 26:20: 'setImages' is assigned a value but never used no-unused-vars [1] [1] ./src/components/utils/FileUploade.js [1] Line 5:10: 'response' is defined but never used no-unused-vars [1] [1] ./src/components/views/LoginPage/LoginPage.js [1] Line 74:11: 'dirty' is assigned a value but never used no-unused-vars [1] Line 79:11: 'handleReset' is assigned a value but never used no-unused-vars [1] [1] ./src/components/views/RegisterPage/RegisterPage.js [1] Line 92:11: 'dirty' is assigned a value but never used no-unused-vars [1] Line 97:11: 'handleReset' is assigned a value but never used no-unused-vars [1] [1] Search for the keywords to learn more about each warning. [1] To ignore, add // eslint-disable-next-line to the line before. npm install multer --save 를 하니까 아래와 같이 나왔습니다. 참고 부탁 드립니다. npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + multer@1.4.3 updated 1 package and audited 497 packages in 3.114s 4 packages are looking for funding run `npm fund` for details found 19 vulnerabilities (6 low, 4 moderate, 9 high)
연결리스트를 만들고 Remove를 하는 과정에서 이미 만들어진 MyLinkedListNode는 이미 AddLast()에서 new를 통해 객체를 만들어준 상태인데, Remove()에서는 그 주소를 참조하지 못하게 해서 지워버린것으로 이해했습니다. 그렇다면 그 객체는 주소가 없어지지만 힙에 남아있다고 이해했는데, 이 객체는 주소가 참조를 다시 할 수 없게 되어서 바로 자동으로 삭제되는지, 아니면 그대로 공간을 잡아먹는지 궁금해서 질문드립니다!
[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part2: 게임 수학과 DirectX12
강의에 나온 쉐이더 부분의 코드를 보다가, 원래 코드는 ouput.color += offset1로 되어있었는데, offset0으로 해서 실행해 보았습니다. 그런데 최종 결과는 여전히 같더군요. <실행 결과> offset0이 의미하는것과 offset1이 의미하는것이 무엇인지 궁금합니다. 그리고 위와 같이 TEST_B0와 B1은 각각 다른 버퍼와 연결된 레지스터들을 의미한다고 이해했는데, 그 오른쪽에 b0과 b1은 해당 레지스터를 말하는거구요. 그렇다면 offset0은 b0에 해당하는 내용이므로, 밑의 VS_Main 함수 내부에서 color값을 조정할때는 offset0으로 색깔을 조정해줬어야 한거 같은데, 강의에서는 이 부분에 대해서 offset1로 색깔은 다르게 지정하셨는데 이유가 뭘까요? 그리고 위의 사진과 같이 원래라면 VS_Main은 들어오는 변수가 b0에 대한 내용인지 b1인지를 구별하기 위해서 offset0과 offset1을 if문 같은 조건문으로 구별해서 설계를 했어야 할것 같은데, 그 문법이 따로 없이 알아서 동작하는것 이 이해가 안갔습니다. 쉐이더 문법이란걸 알지만, 이 부분에 대해서 간단하게라도 설명해주시면 감사하겠습니다!
어떤 부분에서 로직이 틀린 건지 잘 모르겠습니다. import java.util.ArrayList; import java.util.Scanner; public class Ch9_6 { public static ArrayList<ArrayList<Integer>> list; public static boolean flag = false; public static void solution(int start, int end) { if(start == end) flag = true; for(int friend : list.get(start)) { solution(friend, end); } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); list = new ArrayList<>(); for(int i = 0; i <= n; i++) { list.add(new ArrayList<Integer>()); } for(int i = 0; i < m-1; i++) { int a = sc.nextInt(); int b = sc.nextInt(); list.get(a).add(b); } int start = sc.nextInt(); int end = sc.nextInt(); solution(start, end); if(flag) System.out.println("YES"); else System.out.println("NO"); } }
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. 1. 강의 내용과 관련된 질문을 남겨주세요. 2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요. (자주 하는 질문 링크: https://docs.google.com/document/d/1j0jcJ9EoXMGzwAA2H0b9TOvRtpwlxI5Dtn3sRtuXQas/edit#heading=h.w2tomwsznga7) 3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요. (질문 잘하기 메뉴얼 링크: https://docs.google.com/document/d/1xCQKit-1V6l6ObeCe49St33RHPzLF_P_c3o7aSDTKs0/edit#heading=h.7dhnp46ven0v) 질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요. ========================================= [질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용] 여기에 질문 내용을 남겨주세요. SEQUENE전략에서 allocationsize는 default 값이 50으로 맞춰져 있다고 하셨는데, @GenaratedValue 안에 genarator로 name값을 맞춰주지 않으면 1로 설정됩니다. 왜 그런 것인가요..?
지금까지 강의를 보면서 궁금했던점인데요 클라이언트의 request에 대한 서버 response의 헤더부분은 서버에서 각각의 request마다 설정을 해주는것이죠??? 만약 REQUEST_TYPE이라던지, Last_Modifyed라던지 값들을 서버에서 개발자가 직접 정의해서 보내주는게 맞나요??? 예를들면 spring boot의 ResponseEntity를 사용한다던지요!!
kubectl로 kubectl run nginx --image=nginx 와 kubectl create deploy --image=nginx 이후에 둘의 차이가 무엇인가요? 위에는 네임이 nginx로만 나오고 아래의 경우엔 뒤에 nginx-6799fc88d8-5bscx 이렇게 붙는데 무슨 차이점이 있는지 궁금합니다.
[질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 예 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 예 [질문 내용] 혹시 강의들으면서 정리한 내용 개인 티스토리 블로그에 올려도 되는건가요??
안녕하세요 선생님! 훌륭한 강의 잘보고 있습니다. 해당 파트를 공부하는데 있어 스프링 시큐리티의 동작 방식이 궁금합니다. 1. 필터 http.authorizeRequests().antMatchers( "/**" ) .hasIpAddress( "127.0.0.1" ) //<--ip .and() .addFilter(getAuthenticationFilter()) ; 여기서 addFilter 메서드는 단순 welcome api를 요청하여도 필터가 동작하나요 아니면 로그인 할때만 필터가 동작하나요? 2. attemptAuthentication 메서드 // 로그인 시도하면 가장 먼저 실행됨 @Override public Authentication attemptAuthentication (HttpServletRequest request , HttpServletResponse response) throws AuthenticationException { try { // 전달되어진 inputStream 을 자바 클래스 파일로 변환 RequestLogin creds = new ObjectMapper().readValue(request.getInputStream() , RequestLogin. class ) ; // 사용자가 입력한 값을 토큰으로 바꾸고 인증 처리를 하는 매니저에게 넘기면 아이디와 패스워드를 비교 // 토큰 만듬 return getAuthenticationManager().authenticate( // 토큰으로 변환 new UsernamePasswordAuthenticationToken( creds.getEmail() , creds.getPassword() , new ArrayList<>() ) ) ; } catch (IOException e) { throw new RuntimeException(e) ; } } 로그인 시 가장 먼저 실행되는 메서드의 반환 값이 Authentication 객체인데, 그 객체가 아래 메서드에 사용되나요? 그 이유가 loadUseByUsername 메서드의 파라미터에 값을 넣어 준적이 없는 내부적으로 파라미터를 Authentication 객체의 값을 활용하나요? @Override public UserDetails loadUserByUsername (String username) throws UsernameNotFoundException { // 순서 2 UserEntity findUser = userRepository .findByEmail(username) ; if (findUser == null ) { throw new UsernameNotFoundException(username) ; } //User 라는 객체로 success 메서드에서 사용 --> (User)authResult.getPrincipal() return new User(findUser.getEmail() , findUser.getEncryptedPwd() , true, true, true, true, new ArrayList<>()) ; } 로그인 시 순서 : 1. attemptAuthentication 메서드 실행하여 Authentication(토큰) 객체 반환 2. loadUserByUsername 실행하여 Authentication 객체를 활용 하여 UserDetails 객체 반환 3. successfulAuthentication 실행하는데 UserDetails 객체 활용 가 맞나요..? 제가 나름 이해한대로 써봤습니다.. 로그인 시 메서드의 호출 순서를 알고싶습니다. 또한 각 메서드의 반환 값이 서로 어떻게 연관이 있는지 궁금합니다. spring security가 굉장히 어렵다고는 알고있는데.. 정리가 잘안되네요ㅜㅜ 두서 없이 쓴거같아 죄송합니다. 선생님의 강의를 보며 어제보다 나은 실력을 겸비하는거 같아 항상 감사합니다.