안녕하세요 강사님. 강의 잘 듣고 있습니다. VScode 작성 시, 예를 들어 <li></li>를 여러번 복사할 때 마우스를 안 쓰시고 단축키로 하시는 것 같던데 어떻게 하는 건가요? 마우스 드래그/ctrl+c/ctrl+v가 아니라 키보드만으로 하시더라구요. 이런 팁들도 알려주시면 도움이 될 것 같습니다. 감사합니다.
안녕하세요 강사님. http, 스프링, jpa 모두 강사님 수업을 듣고 인생 첫 스프링 프로젝트로 게시판 API를 구현 해 보려고 하는 대학생입니다. 그래서 현재 아래와 같이 요청경로와 요청법, 응답 본문, 에러응답 등을 문서화 하고 있습니다. 경로를 올바르게 설계했는지는 잘 모르겠지만, 게시글 정보 반환시 게시글과 댓글관계에 대해 궁금해서 질문 드립니다. GET /boards/{board-id}/posts/{post-id} 으로 요청시 게시글의 작성자id, 제목, 내용등이 반환되는데, 댓글들의 목록도 포함시킬지 고민입니다. 보통 게시글이 댓글을 가지고 있으니깐 처음에는 댓글 요청경로를 빼고 게시글 요청에 당연히 포함시켜야 하지 않나? 생각을 했습니다. 그런데 댓글에 페이징 기능까지 넣으려고 생각하니깐 게시글과 댓글을 분리해서 게시글정보와 댓글 정보를 각각 받아오도록 하는게 좋을 것 같다는 생각이 들었는데, 혹시 현업에서도 댓글과 게시글은 분리해서 각각 따로 가져오게 설계를 하는지 궁금합니다. 추가적으로, 이건 강사님의 HTTP수업과 관련된 질문이긴한데 게시글,유저 등록같은 POST /boards/{id}/posts 의 201 응답 Location 헤더에 생성된 자원의 주소(예를들어 http://localhost:8080/boards/1/posts/1)가 어차피 포함되어 오는데, 응답 본문에 생성된 자원(게시글)을 다시 보내주는게 RESTful API에 더 가까운가요? 생각해보면 생성된 자원의 위치를 어차피 알려주는데 의미없는 오버헤드인 것 같더라구요.
public 로 선언되어 초기값이 있는 전역변수 를 스크립트에서 새로 생성하고 Inspector 에서 확인해보면 초기값이 0으로 표기되는 현상이 있었습니다. 이건 유니티의 ' 인스펙터에 값이 있으면 그 값이 스크립트창에서 초기화한 값보다 우선적용 됨' 인한 형상 입니다. 이걸 몰랐던 저는 코인 추가 관련 장에서 나와 저는 엄청 고생했습니다. AsteroidScript 에서 기존 Speed 등 Inspector 에서 값을 수정등을 하고(스크립트에서 다시 변경 해도 Inspector에서 변경된 값은 변하지 않음..ㅠㅠ) 새로 스크립트에서 public float fCoin = 2f; 와같이 생성을 했지만 Inspector 에서는 변수의 값이 0으로 보여집니다. EnemyScript 에서는 coin 값을 Start 함수에서 다시 값을 변경하여 대입하기에 문제가 없었습니다. (테스트로 start함수에서 대입 안하고 전역변수에서 초기화 시 위와 같은 증상 발생) 이 문제는 Inspector 해당 컴포넌트 오른쪽 상단 Reset 버튼으로 해결 가능 합니다. (대신 오브젝트 등 은 다시 끌어다 옴겨놔야 하는 번거로움이 있습니다..) 아니면 Start 함수에서 다시 초기화를 시켜주거나, 다른곳에서 참조하지 않는 변수라면, 게임 화면에서 값을 수정후 그값을 public 없이 스크립트에서 적용시켜주시면 됩니다.
매 프레임마다 커서를 불러 오다보니까 밀려서 커서가 깜빡인다고 하셨는데요 혹시 이게, GPU랑 모니터 주사율이 안맞아서 테어링이 생기는 이유랑 비슷한건가요? 그래서 고치는 부분을 설명하실 때도 확정적으로 무조건 고쳐진다고 하시진 않으시고 빈도가 낮아진다는 식으로 설명하신건가요?(그래봤자 빈도가 말그대로 한없이 낮아질거 같지만요)
버튼을 누르면 네트워크에 signup 이 두개가 뜨는데요~ 하나는 request method: post status code 200ok 가 뜨구요, 하나는 request method: options status code : 204 no content 뭐가 다른건지 설명 부탁드려요 (__)
강사님 강의를 잘 듣고 있습니다. 수고 많았습니다. javascript를 공부하고 있는데 array.includes라는 메소드가 있습니다. 섹션5 2.공통원소 구하기에 적용하면 좀 더 갈끔한 것 같습니다. 혹시 틀리면 말씀해 주세요. function solution(a,b){ let answer = []; for(let x of a){ if(b.includes(x)) answer.push(x) } answer.sort((a,b)=>a-b); return answer; } let a=[1, 3, 9, 5, 2]; let b=[3, 2, 5, 7, 8]; console.log(solution(a, b));
좋은 강의 항상 감사드립니다. <header>, <nav>, <main>, <article>, <section>, <aside> 등등 꽤 다양한 개념들이 나옵니다. 저렇게 나눠놨지만 정확한 차이점들을 구별 하기 힘든 경우도 많습니다. 선생님도 그렇게 나누시는데 기준을 가지고 나누는건가 여쭙고 싶습니다. 강의를 보지않고 직접 해보려고 해도 저 부분들이 헷갈릴 떄가 많은데 저 부분들을 좀 덜 신경써도 되는건지 은근 신경이 많이 쓰이는 부분입니다. 제가 아직 공부가 덜 돼서 감(?)이 부족한 거라고 생각합니다. 전달하려는 내용이 잘 전달되는지 모르겠습니다. 답변 감사드립니다.
안녕하세요. 제로초님 그 local에서 http로 session 인증 test해보고 있는데, cookie가 block되는 문제가 생깁니다..! it was not sent over a secure connection 와 secure option을 적용하라는 경고가 뜨는데 secure 옵션을 적용하려면 https를 적용시켜야 하는것 같은데 그럼 https로 적용시켜야 하는걸까요?? cookie는 인증할 때 http에서는 전송이 안되나요??
client code에서 리팩토링 파트에서 보니 좀 오히려 프로덕션 레벨 및 좀더 깔끔 한 코드로 바꾸실려고 하는데 오히려 너무 복잡했습니다. model schema를 만들때 보면, 지금 user schema에는 관게를 안만들고 오히려 blog 와 comment 에만 만드셨는데 좀 쉽게 오히려 user schema에 comments: [commentSchema], 를 만들어줘도 되지 않았나요? 그리고 Types.objectId만 넣지말고 모든 데이타를 ref 해도 되지 않았을 까요? 아님 필요 한것만이라도요. 지금 comment schema에 user 와 blog는 Types.ObjectId만 있으니 너무 복잡하게 돌아 가는 것 같아 좀 헷갈렸습니다.
28강 수강중에 질문드립니다!! views.py의 hello_world 함수에서 login_required 데코레이터를 붙이고나니 8000:account/hello_world 로 접속하면 http://127.0.0.1:8000/accounts/login/?next=/account/hello_world/ 위와 같은 주소로 연결이 됩니다.... accounts라고 들어가면 안되는데... 왜 이렇게 연결되는지를 모르겠습니다...ㅠㅠㅠ 위 주소에서 accounts를 account로 바꾸면 로그인 창으로 잘 연결이 됩니다! 이런경우에는 어디를 봐서 수정을 해야할까요????ㅠㅠ
npm install --save react-paypal-express-checkout 하니까 에러가 나네요 ;; PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master> cd client PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm install react-paypal-express-checkout --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\juno8\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\juno8\AppData\Local\npm-cache\_logs\2021-02-25T21_34_15_370Z-debug.log PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm install react-paypal-express-checkout --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\juno8\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\juno8\AppData\Local\npm-cache\_logs\2021-02-25T21_35_09_278Z-debug.log PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm i react-paypal-express-checkout npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\juno8\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\juno8\AppData\Local\npm-cache\_logs\2021-02-25T21_36_03_452Z-debug.log PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm i react-paypal-express-checkout --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\juno8\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\juno8\AppData\Local\npm-cache\_logs\2021-02-25T21_36_50_537Z-debug.log PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm install --save react-paypal-express-checkout >> npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client> npm i npm install --save react-paypal-express-checkout >> npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! react@"^16.8.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\juno8\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\juno8\AppData\Local\npm-cache\_logs\2021-02-25T21_39_00_479Z-debug.log PS C:\Users\juno8\Desktop\boilerplate-mern-stack-master\client>
안녕하세요 선생님 강의 잘 듣고 있습니다. 항상 감사드립니다. 제가 강의를 따라하다가 문제가 생겼는데 세 번이나 반복해봤지만 같은 상황이라 고민 중에 질문을 드립니다. 선생님께서 알려주신 대로 event type == pygame.KEYDOWN 부분 중 to_x, to_y 값에 +- 5를 했을 때 저는 캐릭터 상자가 너무 빨라서 창 안에서 보이질 않더라구요. 그래서 혹시나 값에 1을 주었는데 그제서야 선생님과 비슷하게 움직이는데(완전 같지 않음) 이 문제는 어떠한 것과 관계가 있는 건지 모르겠습니다. 제가 무엇을 잘못했을까요? 아래는 제가 실행한 코드입니다. import pygame pygame.init() #초기화 반드시 필요 #화면 크기 설정 screen_width = 480 screen_height = 640 screen = pygame.display.set_mode((screen_width,screen_height)) #화면 타이틀 설정 pygame.display.set_caption( "Nado Game" ) #배경이미지 불러오기 background = pygame.image.load( "E:/Study/Python/PythonWorkSpace/pygame_basic/background.png" ) character = pygame.image.load( "E:/Study/Python/PythonWorkSpace/pygame_basic/character.png" ) character_size = character.get_rect().size #이미지 크기 구해옴 character_width = character_size[ 0 ] character_heigth = character_size[ 1 ] character_x_pos = (screen_width / 2 ) - (character_width / 2 ) character_y_pos = screen_height - character_heigth #화면 세로 크기 가장 아래에 위치 to_x = 0 to_y = 0 #이벤트루프 running = True #게임이 진행 중인가? while running : for event in pygame.event.get() : #어떤 이벤트가 발생하였는가? if event.type == pygame.QUIT : #창이 닫히는 이벤트가 발생하였는가? running = False #게임이 진행중이 아님 if event.type == pygame.KEYDOWN : if event.key == pygame.K_LEFT : to_x -= 5 elif event.key == pygame.K_RIGHT : to_x += 5 elif event.key == pygame.K_UP : to_y -= 5 elif event.key == pygame.K_DOWN : to_y += 5 if event.type == pygame.KEYUP : if event.key == pygame.K_LEFT or pygame.K_RIGHT : to_x = 0 elif event.key == pygame.K_UP or pygame.K_DOWN : to_y = 0 character_x_pos += to_x character_y_pos += to_y #가로 경계값 처리 if character_x_pos < 0 : character_x_pos = 0 elif character_x_pos > screen_width - character_width : character_x_pos = screen_width - character_width #새로 경계값 처리 if character_y_pos < 0 : character_y_pos = 0 elif character_y_pos > screen_height - character_heigth : character_x_pos = screen_height - character_heigth screen.blit(background, ( 0 , 0 )) #배경그리기 screen.blit(character, (character_x_pos,character_y_pos)) pygame.display.update() #게임 화면 다시 그리기(반드시) #pygame 종료 pygame.quit()
번외질문이지만, 안드로이드 앱을 제작한다고치면 스프링으로 서버를 따로 뛰운후에 안드로이드 스튜디오에서 버튼을 눌렀을때 url로 json을 전송하는 그런 느낌으로 연결하는 그런 느낌일까요? 앱서버=웹서버 이런건가요 웹서버는 MVC에서 뷰에서 반환처리하면서 뷰보여주는것 까진 이해를 했는데, 앱서버에서는 뭘로 소통하는지 이해가 아직 안갑니다ㅠㅠ