묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
질문이 있습니다.
보통 서버 에서 POST/PUT/PATCH 로 받아도, service의 로직에 따라 의미가 달라질텐데, (예를들어 PUT으로 받아도, 부분 수정이 가능하도록 짜는 경우?) 강의에서 말씀하시는 내용들은 HTTP Method의 단순 개념에 대해 말씀하시는걸까요??
-
예제로 배우는 스프링 입문 (개정판)
강의자료는 다운받을 수 없나요?
삭제된 글입니다
-
미해결실전! Querydsl
factory 에 반환값을 담는 객체가 없어요
안녕하세요~ 기존에 작업하시던 분들이 아래와 같이 반환값을 담는 객체가 없게끔 사용하시던데요 이때는 영속성 객체에만 담겨지게 되는것인가요? ex) factory.selectFrom(qSchool).leftJoin(qSchool.students, qStudent).fetch(); // 반환값을 담는 컨테이너가 없음 감사합니다.
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
이런 강의도있었다니 !!!!
영한님 강의를 보면 너무 재밌고 행복합니다.이번 강의도 열심히 달리겠습니닷
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
챕터 7 과제 관련 이메일로 문의드렸습니다.
답변 주시면 감사하겠습니다.
-
해결됨실전! Querydsl
Tuple 이라는 객체 질문입니다
QueryDsl 써보셨던 분들이 'Tuple 을 사용하면 영속성컨텍스트의 캐싱을 타지 않는다' 라고 하시는데 매뉴얼을 봐도 해당 내용을 찾을수가 없어서요 Tuple 은 multi-projection 을 위한 컨테이너일 뿐인것 같고 JPA 캐싱 동작과는 관계없는것 같은데.. 어떤게 맞나요? 감사합니다.
-
파이썬으로 장고(Django) 공략하기: 입문
이 에러는 어떻게 해야하나요?
삭제된 글입니다
-
미해결DataScience와 AI의 개념 (공부하는 방법)
프로젝트 재밌게 잘 봤습니다!
"GAN/강화학습의 개념"에서 보여주신 강화학습 프로젝트 잘 보았습니다. 제가 직관적으로 봤을땐 전투기의 고도가 가장 높을 때가 가장 안전하기도 할 것 같은데 강화학습을 하면서 고도가 점점 낮아지는 것이 신기하네요.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
npm install시 오류
gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Windows_NT 10.0.19041 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\kkang\addition-game-starter\node_modules\scrypt gyp ERR! node -v v14.15.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN klay-dapp-boilerplate@0.0.1 No repository field. npm WARN klay-dapp-boilerplate@0.0.1 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the scrypt@6.0.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\kkang\AppData\Roaming\npm-cache\_logs\2020-12-27T18_24_39_357Z-debug.log 이렇게 오류가 뜨네요 몇일째 이것해결하려고 하고 있는데 구글링과 이전 인프런 질문들 통하여서 시도해봐도 해결이 안되네요 조언 부탁드리겟습니다
-
미해결파이썬 무료 강의 (활용편1) - 추억의 오락실 게임 만들기 (3시간)
공이 한번에 하나씩만 사라져요
공이 가장 처음 쪼개질 때에는 문제 없는데, 이 후에 공격하면 한 번에 한 공만 쪼개집니다... 예를 들어 Ball을 B라고 가정하면, B1->B2,B'2 로 쪼개지고, 각 공에 공격을 가하면 쪼개져야 하는데, B1만 쪼개지고 B'2는 아무리 공격해도 안 없어지더라고요...이후에 B2가 다시 쪼개져도 B3에서 같은 현상이 벌어집니다ㅠㅠ 하단 이미지에선 반드시 해야 하는 설정은 넣지 않았습니다! 실제 코드에선 있어요 #1. 사용자 게임 초기화 (배경 이미지, 캐릭터, 좌표, 폰트, 속도 등) current_path = os.path.dirname(__file__) image_path = os.path.join(current_path, 'images') background = pygame.image.load(os.path.join(image_path, 'background.png' )) stage = pygame.image.load(os.path.join(image_path, 'stage.png' )) stage_size = stage.get_rect().size stage_height = stage_size[1] character = pygame.image.load(os.path.join(image_path, 'character.png' )) character_size = character.get_rect().size character_width = character_size[0] character_height = character_size[1] character_x_pos = (screen_width / 2) - (character_width / 2) character_y_pos = screen_height - stage_height - character_height character_to_x = 0 character_speed = 5 weapon = pygame.image.load(os.path.join(image_path, 'weapon.png' )) weapon_size = weapon.get_rect().size weapon_width = weapon_size[0] weapons = [] weapon_speed = 10 ball_images = [ pygame.image.load(os.path.join(image_path, 'balloon1.png')), pygame.image.load(os.path.join(image_path, 'balloon2.png')), pygame.image.load(os.path.join(image_path, 'balloon3.png')), pygame.image.load(os.path.join(image_path, 'balloon4.png'))] ball_speed = [-18, -15, -12, -9] balls = [] balls.append({ "pos_x" : 50, "pos_y" : 50, "img_idx": 0, "to_x": 3, "to_y": -6, "init_spd_y": ball_speed[0] }) weapon_to_remove = -1 ball_to_remove = -1 game_font = pygame.font.Font(None, 40) total_time = 100 start_ticks = pygame.time.get_ticks() game_result = "Game Over" ############################## running = True while running: dt = clock.tick(60) #2. 이벤트 처리(키보드, 마우스 등) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: character_to_x -= character_speed elif event.key == pygame.K_RIGHT: character_to_x += character_speed elif event.key == pygame.K_SPACE: weapon_x_pos = character_x_pos + (character_width/2) - (weapon_width / 2) weapon_y_pos = character_y_pos weapons.append([weapon_x_pos, weapon_y_pos]) if event.type == pygame.KEYUP: if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT: character_to_x = 0 #3. 게임 캐릭터 위치 정의 -> 경계값도 character_x_pos += character_to_x if character_x_pos < 0: character_x_pos = 0 elif character_x_pos > screen_width - character_width: character_x_pos = screen_width - character_width weapons = [[w[0], w[1] - weapon_speed] for w in weapons] weapons = [[w[0], w[1]] for w in weapons if w[1]>0] for ball_idx, ball_val in enumerate(balls): ball_pos_x = ball_val["pos_x"] ball_pos_y = ball_val["pos_y"] ball_img_idx = ball_val["img_idx"] ball_size = ball_images[ball_img_idx].get_rect().size ball_width = ball_size[0] ball_height = ball_size[1] if ball_pos_x < 0 or ball_pos_x > screen_width - ball_width: ball_val['to_x'] = ball_val['to_x'] * -1 if ball_pos_y >= screen_height - stage_height - ball_height: ball_val["to_y"] = ball_val['init_spd_y'] else: ball_val['to_y'] += 0.5 ball_val['pos_x'] += ball_val['to_x'] ball_val['pos_y'] += ball_val['to_y'] #4. 충돌 처리 character_rect = character.get_rect() character_rect.left = character_x_pos character_rect.top = character_y_pos for ball_idx, ball_val in enumerate(balls): ball_pos_x = ball_val["pos_x"] ball_pos_y = ball_val["pos_y"] ball_img_idx = ball_val["img_idx"] ball_rect = ball_images[ball_img_idx].get_rect() ball_rect.left = ball_pos_x ball_rect.top = ball_pos_y if character_rect.colliderect(ball_rect): running = False break for weapon_idx, weapon_val in enumerate(weapons): weapon_pos_x = weapon_val[0] weapon_pos_y = weapon_val[1] weapon_rect = weapon.get_rect() weapon_rect.left = weapon_pos_x weapon_rect.top = weapon_pos_y if weapon_rect.colliderect(ball_rect): weapon_to_remove = weapon_idx ball_to_remove = ball_idx if ball_img_idx < 3: ball_width = ball_rect.size[0] ball_height = ball_rect.size[1] small_ball_rect = ball_images[ball_img_idx + 1].get_rect() small_ball_width = small_ball_rect.size[0] small_ball_height = small_ball_rect.size[1] balls.append({ "pos_x" : ball_pos_x + (ball_width / 2) - (small_ball_width / 2), "pos_y" : ball_pos_y + (ball_height / 2) - (small_ball_height / 2), "img_idx": ball_img_idx + 1, "to_x": -3, "to_y": -6, "init_spd_y": ball_speed[ball_img_idx + 1]}) balls.append({ "pos_x" : ball_pos_x + (ball_width / 2) - (small_ball_width / 2), "pos_y" : ball_pos_y + (ball_height / 2) - (small_ball_height / 2), "img_idx": ball_img_idx + 1, "to_x": 3, "to_y": -6, "init_spd_y": ball_speed[ball_img_idx + 1]}) break if ball_to_remove > -1: del balls[ball_to_remove] ball_to_remove = -1 if weapon_to_remove > -1: del weapons[weapon_to_remove] weapon_to_remove = -1 if len(balls) == 0: game_result = "Mission Complete" running = False #5. 회면에 그리기 screen.blit(background, (0,0)) for weapon_x_pos, weapon_y_pos in weapons: screen.blit(weapon, (weapon_x_pos, weapon_y_pos)) screen.blit(stage, (0, screen_height - stage_height)) screen.blit(character, (character_x_pos, character_y_pos)) for idx, val in enumerate(balls): ball_pos_x = val['pos_x'] ball_pos_y = val['pos_y'] ball_img_idx = val['img_idx'] screen.blit(ball_images[ball_img_idx], (ball_pos_x, ball_pos_y)) elapsed_time = (pygame.time.get_ticks() - start_ticks) / 1000 timer = game_font.render("Time : {}".format(int(total_time - elapsed_time)), True, (255,255,255)) screen.blit(timer, (10,10)) if total_time - elapsed_time <= 0: game_result = "Time Over" running = False pygame.display.update() msg = game_font.render(game_result, True, (255,255,0)) msg_rect = msg.get_rect(center = (int(screen_width / 2), int(screen_height / 2))) screen.blit(msg, msg_rect) pygame.display.update() pygame.time.delay(2000) pygame.quit()
-
[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
mysql 설치관련 질문입니다.
삭제된 글입니다
-
미해결화이트해커가 되기 위한 8가지 웹 해킹 기술
xampp gui 환경
xampp 설치시 커맨드창에서만 진행됩니다. 설치 완료 후 어떻게 gui 환경으로 실행할 수 있을까요?
-
미해결스프링 웹 MVC
DispatcherServlet 동작 원리 1부 오타
안녕하세요!! 강의 잘 듣고있습니다. 강의자료 중 9. DispatcherServlet 동작 원리 1부 중 DispatcherServlet 동작 순서에서 핸들러의 응답처리 부분 @ResponseEntity 어노테이션이 아니라 @ResponseBody 어노테이션 아닌가요!? 좋은 강의 감사합니다!!
-
미해결코어 자바스크립트
선생님 몇번 복습하고 질문좀 드릴게요 ㅠ
제가 이해한게 맞나 해서 질문드립니다 ㅠ 태초에 전역컨텍스트가 잇어서 호이스팅과 디스바인딩이 일어나고 변수선언과 함수 표현식이 아닌 선언문을 호이스팅 한후 값을 할당 함수호출 이부분에서요 함수호출이되면 무조건 그함수에 실행컨텍스트가 열리고 호이스팅과 디스바인딩을 하는게 맞나요? 전역 컨텍스트 외에 컨텍스트는 함수 호출할때만 생기는게 맞나요? 디스바인딩과 호이스팅은 변수선언 함수선언에만 적용되는지도 궁금합니다 ㅠ 아그리고 마지막으로.. 내부함수안에 var를 쓰지 않고 전역변수 a 를 그대로 가져와서 a값을 재할당할때도 호이스팅이 일어나는지 궁금합니다.. 너무 많이 여쭤봐서 정말 죄송합니다. 그리고 강의내용이 너무 좋아요 ㅠㅠ 책도 사서 꼭 봐바야겟습니다. ㅠ.ㅠ
-
미해결몇 줄로 끝내는 인터랙티브 웹 개발 노하우 [초급편]
섹션 6. 실전 페럴랙스, 레이어 7개 제어하기 완성된 js파일
강의를 보면서 따라했는데 JS부분 소스코드 오류가 계속 발생하고 있습니다. 업로드된 파일이 보니까 완성된 파일이 아닌 js 소스코드 부분이 비워져있더군요. 강의를 다 따라했음에도 불구하고 소스코드 전체를 설명해주시는게 아니라서 그런지 일부분 오류가 발생하는 부분을 찾기가 힘드네요. 섹션 6. 실전 페럴랙스, 레이어 7개 제어하기 해당 파트 완성된 JS파일 요청 드립니다.
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
상태코드를 지정하는 방법
안녕하세요 강의 너무 잘 듣고 있습니다! 상태코드와 관련해서 이를 어떻게 설정하는지 이해가 잘 되지 않습니다.. 예를들어 303 코드를 지정하려면 특정 post요청이 올 경우 특정 get으로 보내주어야 하는데 이에 대한 설정들은 어떻게 이루어지나요? 응답에 Location 헤더가 존재할 경우 알아서 3XX을 반환하는건가요..? 이제껏 개발자가 직접 지정하는 영역이 아니라 브라우저가 알아서 판단 후 내보낸다고 생각했는데.. 예를들어 말씀하신 것처럼 302가 아닌 303으로 지정하려면 어디에 어떠한 설정을 해주어야 하는건지 질문드립니다. 항상 좋은 강의 감사합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
기초 지식없는 상태에서 수강
11강까지 들은 학생입니다. 실제로 회원정보를 만들고 출력해보는 과정을 하고있는데요 웹페이지에서 스프링부트로 동작하는 부분을 설명해주셔서 그 부분은 어느정도 감을 잡아가는데, 자바 명령어를 뚝딱 코딩하시면서 설명해주시는데 그런 부분을 공부한 상태가 아니라서 그냥 강의하시는 부분을 듣고 따라하면서 감을 익히는 것이 좋은지.. 따로 자바를 공부한 후에 들어야 하는지 의문이 들더라구요.. 그냥 계속 들으며 만들어 보는게 유의미한지 알고싶습니다.. 나름 만족하며 듣고있지만 이런 생각이 들어서 문의합니다.
-
미해결윤재성의 Vue.js 프로젝트를 통한 실무 개발 과정
안녕하세요. 익스플로러 렌더링 관련 질문 드립니다.
크롬 브라우저에서는 렌더링이 잘 되지요. 일부 브라우저에서는 렌더링이 안되는 이슈가 있다고 하여 익스플로러 11에서도 테스트 해보았더니 아무것도 보이지 않아서 질문 드리게 되었습니다. 아래와 같이 DOM 탐색기에는 엘리먼트가 보이지만 정작 화면에선 보이지 않아요. 그래서 VueProject 게시판 강의에서 처럼 main.html 문서 <head>부분에 <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"></script> 와 같이 기입해주었는데요. 그래도 보이지 않을 경우에는 어떻게 처리하면 될까요? 위 js 파일들은 app.js 파일보다 위에다가 적어주었습니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
MemberForm클래스 dto관련
안녕하세요 처음 질문 올려보네요 ㅎㅎ 너무 기본적인 질문일까 싶어 일단 먼저 죄송합니다 ㅠㅠ 다름이 아니오라 처음에 MemberForm이라는 클래스가 controller패키지안에 Controller클래스들과 같이 나란히 프로젝트에 열거되어서 뭔가 이질감이 느겨졌는데요 여기서 MemberForm클래스가 dto(...?)의 성질을 띄는 역할을 하는 것 같더라구요,,, (맞나요..? 여기서부터 틀린 질문이었으면 말씀해주십쇼!) 만약 제 생각이 맞다면 controller패키지안에 dto라는 하위패키지를 만든다음 그 안에 MemberForm클래스를 정의해도 되는지 하여 여쭙고자 질문 올리게 되었습니다. 답변 부탁드리겠습니다. 감사합니다!
-
미해결[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
라즈베리파이보드 구매 관련
안녕하세요 이번에 처음 학습신청한 학생입니다. 라즈베리파이보드 B+을 구매하라고 하시는데 혹시 쿠팡 링크에 나오는 라즈베리파이 그거 그대로 구매하면 되는 건가요? 아니면 어떤 걸 구매하면 되나요?