묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
member에서 orders 검색 자주 하지 않나요?
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)예[질문 내용]보통 쇼핑몰 사이트에서 각 member(사용자)들이 자기가 무엇을 주문 했었는지 확인하기 위해 orders를 자주 보지 않나요? 그런데 왜 여기서는 member가 orders를 가지는 것이 의미가 없다고 하는지 이해가 잘 안돼요!
-
미해결실무자를 위한 구글애널리틱스(GA4+GTM) 활용법(25년 Update)
교안 공유 부탁 드립니다
오프라인으로 강의하셨던 내용 같은데, 없는 교안 내용을 따라가려니 어렵네요,, 교육 공유 부탁 드립니다
-
미해결파일 업로드 취약점 고급 공격 기법 PART2 [통합편]
실습 파일 문의
다양한 실무 환경에서의 공격 방법 세번째 [압축 해제 환경에서 웹쉘 업로드] 실습해 보려고 하는데, 실습환경을 제공해주실 수 있나요?
-
미해결[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core
typeOrm 1:N N:1 관련 질문입니다.
너무 단순한 것 같은데, 몇시간 확인해봐도 해결이 되지 않아서 이렇게 질문드립니다.post 로 1:N을 생성해서 확인해 보면, 아래 이미지 처럼 post에 빈배열이 나옵니다.get 요청, relations 은 아래와 같습니다. 강의를 보면서 작성한 코드입니다. 이전 내용인 profile 은 잘 되는데...post 1:N 은 무엇이 문제일까요...?
-
미해결습관부터 바꿔주는 Node.js & Express 기초
Axios Mocking에 관한 질문입니다.
// Axios.test.ts import axios from 'axios'; import ManagerService from "./ManagerService"; jest.mock('axios'); const mockedAxios = axios as jest.Mocked<typeof axios>; describe("Axios Test", () => { let managerService = new ManagerService(); it("should mock axios get call", async () => { mockedAxios.get.mockResolvedValue({ data: [ { corporation: "inflearn" } ], }); const test = await managerService.axiosTest("inflearn"); expect(test).toEqual([ { corporation: "inflearn" } ]); expect(mockedAxios.get).toHaveBeenCalledWith(`${process.env.SERVER_URL}/corporation/info`, { params: { corporation: "inflearn" }, }); }); }); 위와 똑같은 코드로 테스트를 진행했고, 본 코드에서는 약간의 차이만 있었습니다.하지만 아직 왜 그렇게 되는지 알지 못하여서 강사님께 여쭤보려고 합니다. 1번 코드 ( 테스트가 잘 동작하는 코드 )axiosTest = async (corporation: string) => { const response = await axios.get(`${process.env.SERVER_URL}/corporation/info`, { params: { corporation: corporation, }, }); if (!response) { throw new Error("값이 없음"); } return response.data; }; 2번 코드 ( 값이 없음으로 에러가 발생하는 코드 )axiosTest = async (corporation : string) => { const site = await axios({ method: 'get', url: `${process.env.SERVER_URL}/corporation/info`, params: { corporation : corporation }, }) if(!site) { throw new Error("값이 없음"); } return site.data } 둘의 차이점에 대해서 알 수 있을까요?
-
미해결습관부터 바꿔주는 Node.js & Express 기초
Express 사용하면서 Jest 테스트 관련해서 질문 드립니다.
// Axios.test.ts import axios from 'axios'; import ManagerService from "./ManagerService"; jest.mock('axios'); const mockedAxios = axios as jest.Mocked<typeof axios>; describe("Axios Test", () => { let managerService = new ManagerService(); it("should mock axios get call", async () => { mockedAxios.get.mockResolvedValue({ data: [ { corporation: "inflearn" } ], }); const test = await managerService.axiosTest("inflearn"); expect(test).toEqual([ { corporation: "inflearn" } ]); expect(mockedAxios.get).toHaveBeenCalledWith(`${process.env.SERVER_URL}/corporation/info`, { params: { corporation: "inflearn" }, }); }); }); 위와 똑같은 코드로 테스트를 진행했고, 본 코드에서는 약간의 차이만 있었습니다.하지만 아직 왜 그렇게 되는지 알지 못하여서 강사님께 여쭤보려고 합니다.1번 코드 ( 테스트가 잘 동작하는 코드 )axiosTest = async (corporation: string) => { const response = await axios.get(`${process.env.SERVER_URL}/corporation/info`, { params: { corporation: corporation, }, }); if (!response) { throw new Error("값이 없음"); } return response.data; }; 2번 코드 ( 값이 없음으로 에러가 발생하는 코드 )axiosTest = async (corporation : string) => { const site = await axios({ method: 'get', url: `${process.env.SERVER_URL}/corporation/info`, params: { corporation : corporation }, }) if(!site) { throw new Error("값이 없음"); } return site.data } 둘의 차이점에 대해서 알 수 있을까요?
-
미해결
동영상 배속조절 안됨
기존에 들었던 동영상간의 다시 들어가니 동영상 배속조절이 안되요 예전에 되어서 빨리강의 들었거든요 왜 안되죠??
-
해결됨파이썬을 활용한 머신러닝 딥러닝 입문
매트릭스로 만들어주는 것
part1의 실습 - 선형회귀모델 - 당뇨병진행률 예측에서 질문 있습니다! diabetes_X를 정의할 때 reshape해주는 게 매트릭스를 만들기 위해서라고 해주셨는데요!혹시 그럼 Test 셋을 정의할 때에는 그럴 필요가 없는 건가요?(??,)인 걸 (??,1)로 만들어주는 RESHAPE를 diabetes_X할 때는 했는데, diabetes.target은 그냥 (??,) 형태인데도 따로 그 과정을 안 거치는 지 궁금합니다!
-
미해결CS 지식의 정석 | 디자인패턴 네트워크 운영체제 데이터베이스 자료구조
정렬병합조인 질문드립니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 코드 내에서 값이 같은 경우 append를 하고indexA += 1, indexB += 1을 해주셨는데그럼 테이블B에 id가 중복된 경우 해당 행을 조인하지 못하고 건너뛰는 상황이 발생하지 않나요? 예를 들어 A의 id가 1, 2, 3, 4, 5이고B의 id가 3, 3, 6, 7 이라고 하면조인의 결과가 2행이 나와야 하는데indexA = 2 indexB = 0 에서 매칭 후바로 둘다 indexA = 3, indexB = 1이 되면조인의 결과가 1행만 나올 것 같아요
-
해결됨스프링 시큐리티 완전 정복 [6.x 개정판]
Kotlin DSL 활용
import org.springframework.security.config.annotation.web.invoke시큐리티 5.3부터 Kotlin 환경에서 스프링 시큐리티를 사용하실 때 DSL을 지원받을 수 있습니다.공식문서에 나와있습니다.(https://docs.spring.io/spring-security/reference/servlet/configuration/kotlin.html)이 DSL을 사용한 예제 프로젝트도 제공됩니다. (https://github.com/spring-projects/spring-security-samples/tree/main/servlet/spring-boot/kotlin/hello-security) DSL 문 삽입은 IDE의 지원을 받을 수 없어서 위 import 문을 직접 작성해야합니다. @Configuration class SecurityConfig { @Bean fun securityFilterChain(http: HttpSecurity): SecurityFilterChain { http { authorizeHttpRequests { authorize("/", permitAll) authorize(anyRequest, authenticated) } formLogin {} rememberMe { } sessionManagement { sessionCreationPolicy = SessionCreationPolicy.STATELESS } } return http.build() } } 예를 들면 위와 같이 DSL의 지원을 받아 설정을 구성할 수 있습니다.람다 표현식을 작성하지 않고 설정할 수 있습니다.IDE를 통해 DSL 설정 클래스를 쭉 따라가보면 어떤 파라미터를 전달하면 될지 확인할 수 있는데 이를 참고하면 좀 더 편리하게 설정을 사용할 수 있습니다.다만 일부 설정은 제공되지 않는 것도 있어서 해당하는 부분은 Spring에서 제공되는 API 그대로 사용하셔야합니다.
-
미해결
환불문의
안녕하세요. 지난 3월 27일에 결재한 강의를 환불신청드립니다. 아직 1주일이 되지 않았고, 강의를 전혀 보지 않은 상태인데, 환불 버튼이 활성화되어 있지 않아서, 문의 게시판에 내용 남깁니다. 제목: ORM 표준 JPA 프로그래밍 - 기본편주문번호: 2639871
-
미해결이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
Collision 관련 감지 문제에 대한 질문입니다
void AABCharacterBase::NotifyHitCheck() { //const float AttackRange = CharacterStatComponent->GetTotalStat().AttackRange; const float AttackRange = 1000.f; const float AttackRadius = 50.f; const float AttackDamage = CharacterStatComponent->GetTotalStat().AttackDamage; const FVector Start = GetActorLocation() + GetActorForwardVector() * GetCapsuleComponent()->GetScaledCapsuleRadius(); const FVector End = Start + GetActorForwardVector() * AttackRange; FCollisionQueryParams Params(SCENE_QUERY_STAT(Attack), true, this); TArray<FHitResult> HitResults; bool bHitResult = GetWorld()->SweepMultiByChannel(HitResults, Start, End, FQuat::Identity, ECollisionChannel::ECC_GameTraceChannel1, FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); //bool bHitResult = GetWorld()->SweepMultiByObjectType(HitResults, Start, End, FQuat::Identity, FCollisionObjectQueryParams::AllDynamicObjects, FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); //bool bHitResult = GetWorld()->SweepMultiByProfile(HitResults, Start, End, FQuat::Identity, TEXT("ABCapsule"), FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); if (bHitResult) { for (const auto& HitResult : HitResults) { FDamageEvent DamageEvent; HitResult.GetActor()->TakeDamage(AttackDamage, DamageEvent, GetController(), this); } } #if ENABLE_DRAW_DEBUG FVector CapsuleOrigin = Start + (End - Start) * 0.5f; float CapsuleHalfHeight = AttackRange * 0.5f; DrawDebugLine(GetWorld(), Start, End, FColor::Purple, false, 2.f); FColor Color = FColor::Red; if (bHitResult) { if (HitResults.Num() > 2) { Color = FColor::Cyan; } else if (HitResults.Num() > 1) { Color = FColor::Magenta; } else if (HitResults.Num() > 0) { Color = FColor::Green; } } DrawDebugCapsule(GetWorld(), CapsuleOrigin, CapsuleHalfHeight, AttackRadius, FRotationMatrix::MakeFromZ(GetActorForwardVector()).ToQuat(), Color, false, 1.f); #endif } Collision 을 채널 또는 프로파일로 할 경우 아래와 같이 가장 가까운 물체만 충돌감지를 합니다. (초록색의 경우 1개만 감지했을때)Collision 을 오브젝트 타입으로 할 경우 위와 같은 문제가 발생하지 않습니다. (청록색의 경우 3개 이상 감지 했을때)왜 이러나 디버깅을 해보려 하였는데 내부 구현이 전부 템플릿으로 되어있어 디버깅이 어렵더라고요... 하여 혹시나 위의 문제가 왜 발생하는건지 아시는지 궁금하여 질문드려봅니다.확인차 강의에서 제공되는 샘플코드에서도 테스트를 해봤는데 위와 같은 문제가 똑같이 발생하네요. Sweep 이 아닌 LineTrace 일때도 결과는 똑같았습니다.
-
해결됨직장인에게 꼭 필요한 파이썬-아래아한글 자동화 레시피
이미지를 글자와 겹쳐서 삽입하는 방법
좋은 강의 감사드립니다.한 가지 질문이 있어 문의드립니다. 한/글 파일에 사용인감 이미지를 첨부하고 싶은데요현재까지는 표를 만들어서 특정 셀에 이미지를 입력하는 방법까지 구현해봤습니다.그런데 한글 서식에서는 보통 "(서명)" 글자와 겹쳐서 이미지를 삽입하는데요이와 같이 이미지를 글자와 겹쳐서 삽입하는 것도 가능할까요?간단한 Tip이나 예제가 있으면 부탁드립니다.감사합니다.
-
미해결스프링 핵심 원리 - 고급편
쓰레드 로컬 vs 프로토타입 빈
결국 traceID가 서로 다른 쓰레드에서 같은 값을 가지게 되니쓰레드로컬을 이용해서 따로 traceId를 관리 하는거잖아요?그런데 그냥 애초에 Trace클래스 자체의 빈스코프를 프로토타입으로 해버리면각각의 쓰레드가 Trace클래스를 DI받을때마다 쓰레드마다 다른 Trace클래스가 생성되니따로 관리를 할 필요가 없지 않나요?이렇게되면 어떠한 오버헤드가 발생하나요?
-
해결됨아이비의 안드로이드 드릴
[실습] 7. 추상클래스와 인터페이스 에서 stepCount에 대한 질문이 있습니다.
해결완료 질문입니다.
-
미해결스프링 핵심 원리 - 고급편
쓰레드 로컬 데이터 저장위치 질문
ThreadLocalLogTrace는 싱글톤이잖아요?그러므로 A와 B에서 참고하는 ThreadLocalLogTrace 참조값은 같은 값을 가리킬꺼같은데,여기서 ThreadLocal<TraceId> 필드는각 A쓰레드 B쓰레드 각각의 공유하지 않는고유의 데이터영역에 저장되는것인가요?(JVM에서 STACK과 PC Register처럼)아니면 일종의 해시함수처럼 작용하여A쓰레드에서의 요청이면 알아서 A의 데이터B쓰레드에서의 요청이면 알아서 B의 데이터를 주는것인가요?만약 전자라면 이게 어떻게 가능한것인지?
-
미해결애플 웹사이트 인터랙션 클론!
게속 오류떠서 글 작성해봐요....
Uncaught TypeError: Cannot read properties of undefined (reading 'scrollHeight') at scrollLoop (main.js:367:65) at main.js:388:9 이런 오류 떠서 제 자바 스크립트 코드도 여기 올려볼께요....
-
해결됨
How Could Your Deal With Error State Trouble While Using Printer
"Printer showing in error state" is a common issue encountered by HP printer users. This problem can arise due to various reasons such as paper jams, connectivity issues, outdated printer drivers, or hardware problems. Here are some steps you can take to troubleshoot and fix this 'HP printer in error state windows 10' issue:Check for Paper Jams: Open the printer cover and check for any paper jams. Remove any stuck paper carefully.Restart Printer: Turn off the printer, wait for a few seconds, and then turn it back on. Sometimes, a simple restart can resolve the error state issue.Check Printer Connections: Ensure that the printer is properly connected to your computer or network. If it's a wireless printer, check the Wi-Fi connection and make sure it's stable.Update Printer Drivers: Outdated or corrupted printer drivers can cause various issues. Visit the HP website, download the latest drivers for your printer model, and install them on your computer.Reset Printer: Sometimes, resetting the printer to its factory settings can resolve persistent issues. Refer to your printer's manual for instructions on how to reset it.Clear Print Queue: There might be pending print jobs in the print queue causing the error state. Clear the print queue by canceling all print jobs.Check for Firmware Updates: Check if there are any firmware updates available for your printer model on the HP website. Updating the firmware can fix bugs and improve printer performance.Run HP Print and Scan Doctor: HP provides a diagnostic tool called HP Print and Scan Doctor which can automatically diagnose and resolve various printer issues. Download and run this tool to troubleshoot the error state problem.Inspect Hardware: If none of the above steps resolve the issue, there might be a hardware problem with the printer. Inspect the printer for any visible damage or malfunctioning parts. If necessary, contact HP support or a qualified technician for further assistance.By following these steps, you should be able to troubleshoot and resolve the "printer showing in error state" issue for your HP printer.While Having Wifi Connectivity Issue Check This HereEncountering issues with your HP printer not connecting to WiFi can be frustrating, disrupting your workflow and productivity. However, fret not! This comprehensive guide is crafted to assist you in troubleshooting the problem effectively, ensuring seamless connectivity with your HP printer.Check Network Connection:Begin by verifying if your WiFi network is working properly. Ensure other devices can connect without any issues.Restart your WiFi router and modem. Sometimes, a simple reboot can resolve connectivity issues.Printer Placement:Ensure your HP printer is placed within the WiFi range. Walls, electronic devices, and other obstructions can weaken the signal strength.Avoid placing the printer in close proximity to microwave ovens, cordless phones, or other electronic devices that might interfere with the WiFi signal.Verify Printer Settings:Access the printer's control panel and navigate to the wireless settings.Ensure that WiFi is enabled on your printer and that it is connected to the correct network.Double-check the WiFi network name (SSID) and password entered on the printer to avoid any typos.Restart Printer:Turn off your HP printer, wait for a few seconds, and then turn it back on.Sometimes, a simple restart can help reset the printer's connectivity settings and establish a fresh connection to the WiFi network.Update Printer Firmware:Check if there are any pending firmware updates available for your HP printer.Visit the official HP website, navigate to the support section, and download/install the latest firmware updates for your printer model.Reconfigure WiFi Settings:If the printer still fails to connect, you may need to reconfigure its WiFi settings.Reset the printer's network settings to default and then set up the WiFi connection again using the printer's control panel or HP Smart app.Firewall/Antivirus Settings:Check your firewall or antivirus settings to ensure they are not blocking the printer's connection to the WiFi network.Temporarily disable firewall or antivirus software and attempt to reconnect the printer to WiFi.By following the steps outlined in this guide, you can troubleshoot and resolve HP Printer won't connect to wifi issue efficiently.
-
해결됨블렌더 3D 미피 캐릭터 인사하는 애니메이션 만들기
어플라이를 왜하는건가요?
아 뭔가 배웠는데그 지점을 다시 찾을 수가없어요 ㅠㅠㅋㅋ어플라이는 언제 왜 해주는걸까요?구글에서 검색해서 알아보고왔는데 ~수정한 부분을 영구적으로 사용하고싶을때 라고하는데 무슨 소린지 잘 모르겠어요 송생님
-
해결됨Go Hard to C (feat. Algorithm)
음질이 안좋습니다
초반부 듣고 있는데 말 중간 중간에 소리가 계속 끊겨서 들립니다. 잡음도 간간히 들리네요.영상 촬영하시고 검수해보셨나요..