묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 시큐리티
해당 정보를 찾은 Spring 공식 사이트 주소를 알고 싶습니다.
해당 정보와 관련된 Spring 공식 사이트 주소를 알고 싶습니다. 혹시 알 수 있을까요? Spring에서 정보를 제공할 거 같아서 궁금해서요!
-
미해결웹 게임을 만들며 배우는 React
숫자야구게임 - alert가 rendering을 방해하는 것 같습니다...
선생님 안녕하세요. 숫자 야구 코드를 작성하고 테스트 해보는데, 제 브라우저가 문제인지, 아니면 실제로 이렇게 작동하는 게 맞는건지 의문이 들어 사진과 함께 질문 드립니다. 우선은 작성한 코드입니다. 순서나 오타가 없음을 확인하였습니다. 그런데 만약에 10번 틀릴 때 alert가 발생하기 전에, setState가 되고 "10번 넘게 틀려서 실패! 답은 ...입니다." 하고 renderig이 되기 전에 alert가 먼저 띄어집니다. 제 생각엔 원래라면 먼저 틀렸음과 함께 정답이 띄워지고 난 후에 alert가 나타나고 alert를 체크하면 setState가 다시 되어서 게임이 다시 reset되어야 될 것 같은데, alert가 먼저 나타나고 그 이후에 render가 진행되는 것 같습니다. 비동기적인 문제일까요? 아니면 alert의 알림 설정이 제 브라우저 내에서 이상하게 설정되어 있는 걸까요? 다음은 사진입니다. render가 브라우저에 나타나기 전에 alert가 발생하구요, alert를 확인 누르면 다음과 같이 됩니다. 혹시 이렇게 동작하는 것이 원래 맞는지... 아니면 무슨 문제가 있는 건지 정확히 잘 모르겠습니다. 우선 코드는 정확히 오타나 순서 변경 없이 동일함을 확인하였습니다.
-
미해결Google 공인! 텐서플로(TensorFlow) 개발자 자격증 취득
windowed_dataset에서 batchsize에 관해
household_electric_power_consumption 문제에서 ds.window(size=48) 이고, batch_size가 32라 한다면 각 윈도우는 48 개의 row를 갖고, 각 batch는 32개의 row를 갖는것인지, 한 batch에 window 32개를 갖는것인지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
메인 함수 실행 오류
메인 함수 실행 도중 Cause: error: invalid source release: 18 라는 문구와 함께 에러가 뜹니다. 자바 18쓰고 있습니다. 어떻게 해야될까요?
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
선생님 저는 왜 하나만 정상으로 나오고 나머지는 이상하게 나올까요?
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_1" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_2" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_3" android:layout_width="120dp" android:layout_height="120dp"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_4" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_5" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_6" android:layout_width="120dp" android:layout_height="120dp"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_4" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_5" android:layout_width="120dp" android:layout_height="120dp"/> <ImageView android:src="@drawable/bts_6" android:layout_width="120dp" android:layout_height="120dp"/> </LinearLayout> </LinearLayout>
-
미해결
What are the best places to explore in Jaipur?
India Travel Blogs: Jaipur is a renowned destination for both foreign and domestic tourists due to its numerous forts and old palaces. The city is well known for its forts and old palaces. So, here, WanderersHub will tell you some of the offbeat places to explore in Jaipur. 1. Amer Fort: Amer Fort is one of the most popular forts in Jaipur. However, there are many parts of the fort that are often unexplored by tourists. Make sure to explore the Jai Mandir, Sheesh Mahal, and Sukh Niwas while you are there. 2. Nahargarh Fort: Another popular fort in Jaipur is Nahargarh Fort. However, the fort's rooftop provides an incredible view of the city that is often missed by tourists. Make sure to check it out when you are there. 3. City Palace: The City Palace is one of the most important landmarks in the city. It is a symbol of the city's rich history and culture.
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
정렬 함수 만들기 관련 질문
정렬 함수 만드는 과정에서 Swap부분을 이용하는 대신 저는 참조를 사용하여 변형하고 싶었습니다. 보이는 사진처럼 진행하였으나 올바른 값이 나오지 않는데 왜 그런지 모르겠습니다.
-
미해결PHP 7+ 프로그래밍
mysqli_stmt_close($stmt) 관련 질문드립니다.
안녕하세요 선생님, update_process.php 를 작성하던 중 if(mysqli_stmt_execute($stmt)) { session_unset(); session_destroy(); mysqli_stmt_close($stmt); return header('Location:/auth/login.php'); } else { return header('Location: /user/register.php'); } return mysqli_stmt_close($stmt);다음과 같이 작성하시는 것을 보게 되었는데요,위와 같이 작성하면 mysqli_stmt_execute($stmt)를 실행한 결과가 true 던지false 던지 return을 해버려서 뒤에 return mysqli_stmt_close($stmt); 을 실행하지 못하고 종료하게 되는것이 아닌지요?
-
미해결
Which is the best place for car removals in Auckland?
Looking for quality car parts Auckland or quick car removals? Look no further than JCPCarParts. They carry a wide range of parts for all makes and models, and their experienced staff can help you find the perfect part for your car. They are experts in the field of removal and can provide the best cash for cars in Auckland and surrounding areas. In addition to that, they are easily accessible and can be reached at any time.
-
미해결더 자바, Java 8
메서드 레퍼런스
springClasses.stream().filter(Predicate.not(OnlineClass::isClosed))이부분에서isClosed는 static함수가 아닌데그러면 객체::isClosed가 되어야하는거 아닌가요??왜 타입::isCloese가 된건가요??
-
미해결
React Hook useEffect has a missing dependency:
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세 import React, { useEffect } from "react"; import axios from "../api/axios"; import "./Row.css"; export default function Row({isLargeLow, title, id, fetchUrl}) { useEffect(() => { fetchMovieData(); }, []) const fetchMovieData = async () => { const request = await axios.get(fetchUrl) console.log("requeset",request) } return ( <div>Row</div> ) } Compiled with warnings. [eslint] src\components\Row.js Line 15:4: React Hook useEffect has a missing dependency: 'fetchMovieData'. Either include it or remove the dependency array react-hooks/exhaustive-deps Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before. WARNING in [eslint] src\components\Row.js Line 15:4: React Hook useEffect has a missing dependency: 'fetchMovieData'. Either include it or remove the dependency array react-hooks/exhaustive-deps webpack compiled with 1 warning 이런식으로 계속 ueseffect 의존성 오류가 나오는데 ㅜㅜ 강의랑 똑같이해도 진행이 안되네요ㅠㅠㅠㅠㅠㅠ
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
mapGetters와 mapState
안녕하세요, 실습 중 문의사항이 생겨 질문드립니다. getters는 어떠한 연산이 주어진 값, state는 그냥 값을 가져오는 것으로 이해했는데요, 그리하여 TodoList.vue에서 아래와 같이 리스트를 불렀습니다. // ...mapState({ // todoItems: 'todoItems', // }),// 여기서는 따로 연산이 없기 떄문에, mapState가 더 좋음 그래서 잘 나오는 것 까지 확인했는데요, 모듈화를 하고 확인하는 과정에서 mapState를 사용하는 경우 localStorage에는 반영이 되는데, li를 그려내지 못합니다. 그리하여 mapGetters로 수정하니 잘 나오긴 하는데요.. 혹시 여기서의 문제점을 알 수 있을까요?
-
해결됨게임 프로그래머 취업 전략 가이드
레거시 서버 관련 질문입니다
안녕하세요? 저번에 선생님의 PART4 c++ 강의를 듣고 라이브 서비스 게임 서버 직무에 합격해 업무에 관한 질문을 했던 수강생입니다! 답변해주셔서 감사합니다! 자꾸 질문드려 죄송합니다ㅠ 다름이 아니라 회사 사정이 있어 레거시 코드로 되어있는 서버 개발을 담당하게 되었는데요 Objective-C 와 리눅스 환경 서버 개발이라고 합니다.ㅠㅠ 저는 C++ IOCP 서버 개발을 생각했는데, 생각도 못한 업무를 담당하게 되어 이러한 C++이 아닌 레거시 코드 작업 경력이 서버 프로그래머로써 커리어에 안좋은 영향을 끼칠 수 있을지 문의드립니다!
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
에러 메세지 국제화 구현하기
안녕하세요. Controller에서 아래와 같이 errors 해쉬맵에 발생된 에러를 담은 후 Map<String, String> errors = new HashMap<>(); // 중복 체크 후 중복이라면 errors.put("id", "이미 존재하는 아이디 입니다."); model.addAttribute("errors", errors); 타임리프에서 아래와 같이 에러 메세지를 뽑아서 표시할 경우 국제화 기능을 어떻게 구현해야 좋을지 여쭤보고 싶습니다. <div class="field-error" th:if="${errors?.containsKey('id')}" th:text="${errors['id']}"> id 중복 오류 </div>
-
미해결실전! Querydsl
queryDsl vs @Query
안녕하센요 @Query를 사용해서 쿼리 사용하는것과 QueryDsl의 어떤 차이가 있는지 성능상 어떤면이 좋은지 알고 싶습니다
-
미해결도커 쓸 땐 필수! 도커 컴포즈
소스코드 복사해서 실습시 불편사항
안녕하세요. 강의자료에 소스파일에 코드별로 라인번호가 들어가 있는데, 이것때문에 소스를 복사해서 붙혀넣기 할 때 라인번호까지 같이 복사가 돼버려 지우느라 아주 불편한데, 이거 없앨 수 있을까요? (강의영상에서는 라인번호가 없는 걸로 하십니다)
-
미해결재고시스템으로 알아보는 동시성이슈 해결방법
synchronized 쓰지 않는 이유는 해당 서버가 스케일 아웃(분산처리 하기 위해) 경우 동시성을 보장 못 하기 때문이라고 해주셨는데요
이와 같이 동시성 보장하기 위해 Redisson, Lettuce 를 사용한다고 가정하겠습니다. 하지만 해당 Redis 서버에서도 스케일 아웃을 하게된다면 이때 synchronized 처럼 동시성 보장 얻기 힘든거 아닌가요? Thread A 가 Redis A Server 에 Lock 을 걸었는데동시에 Thread B 가 Redis B Server 에 Lock 을 걸고 동시에 호출이 가능하지 않을까 해서요. 사실 대규모 서비스를 운영해본적이 없어서 이렇게 엉뚱한? 질문을 드리네요...
-
미해결
Where can I find the best car wreckers in Auckland?
CarsWreckers is one of the best and most recommended companies all over New Zealand when it comes to car wreckers South Auckland. They provide a free pickup service and guarantee the best results. For quick car wreckers West Auckland, you can call 0800600502. A car that has suffered serious damage is simply referred to as a junk car. Getting rid of it can be quite a challenge, that's why you need to find a good junk car removal service provider that buys junk cars and pay cash for junk cars and serve all areas of Auckland and beyond.
-
미해결Slack 클론 코딩[실시간 채팅 with React]
useSWR 관련질문
useSWR를 사용해서 취득한 데이터를 가공후 가공된데이터로 캐싱할 수 있나요?
-
미해결스프링 핵심 원리 - 기본편
의존관계 개념 질문 드립니다.
안녕하세요. 질문 하나 드리겠습니다. 의존하다 와 참조하다가 완전히 동일한 의미로 사용되는걸까요?'A가 B를 의존한다'라고 하면 'A가 B를 참조한다'로 동일하게 대체 되는 말인가요?