묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨RAG를 활용한 LLM Application 개발 (feat. LangChain)
확장프로그램 어떤거 쓰시나요?
사진처럼 어떤 파라미터가 들어가는지 보여주는 확장프로그램이 어떤건가요? 저는 Python, Jupyter, Pylance 확장프로그램이 설치되어 있습니다.
-
해결됨인프라공방 - 그럴듯한 서비스 만들기
validbit
valid bit 1은 메모리에 페이지가 존재하는것 아닌가요?
-
해결됨자바 개발자를 위한 코틀린 입문(Java to Kotlin Starter Guide)
안녕하세요 scope function 에 receiver 가 없는 경우
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.아래 처럼 receiver 없이 사용이 가능하더라구요? 근데, apply 시그니처는 분명히 확장함수인데, receiver 를 안주는 경우, SomeTest 클래스의 인스턴스가 receiver 로 되는거 같아요. 아무리 찾아봐도, 이런 동작에 대해서는 공식문서상에 안보이는거 같은데, 왜 이런건지 알 수 있을까요? (레퍼런스도 같이 제공해주시면 저도 한번 보고싶습니다 ㅠㅠ) class SomeTest { @Test fun test() { val found = apply { hello() val user = User("kim") println(user) } } fun hello() { println("hello") } } data class User( val userName: String, )
-
미해결김영한의 실전 자바 - 기본편
다형성에 관련된 질문입니다
질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. package poly.ex3.car0; public class CarDrive { private Driver driver; public void setDriver(Driver driver){ //Driver driver = K3car k3 = new k3Car() System.out.println("자동차를 설정합니다 :" + driver); this.driver=driver; } public void drive(){ System.out.println("자동차를 운전합니다"); driver.stop(); driver.move(); driver.engine(); } }public class CarMain { public static void main(String[] args) { CarDrive car=new CarDrive(); K3Car k3=new K3Car(); car.setDriver(k3); car.drive(); Driver porches =new Porche(); car.setDriver(porches); car.drive();main 함수에서 porches는 Driver 타입으로 업케스팅을해서 넘어가고 K3Car는 업케스팅을하지않은상태로 setDriver 함수에 넘어갑니다 그리고 setDriver 함수의 매개변수인 (Driver driver)에서 첫번쨰인 k3는 업케스팅이 이루어지고 Driver driver=new K3Car();두번쨰인 porches 는 이미 업케스팅이 이루어진 Driver 타입 객체이기때문에 그냥 넘어가는것으로 이해했는데 이게 맞는건지 햇갈려서 질문드립니다 그리고 이렇게 미리 두번쨰처럼 업케스팅을해서 매개변수로 넘겨주는것이 올바른접근법인지도 궁금합니다
-
미해결김영한의 자바 입문 - 코드로 시작하는 자바 첫걸음
다운로드 소스코드 질문입니다,
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]다운로드 소스코드 실행하는데 사진과 같이 오류가 뜨는데 이미 사용되고 있다던데 왜 이런 오류가 뜨는지 잘모르겠습니다
-
미해결[켠김에 출시까지] 유니티 방치형 키우기 게임 (M1 + C1)
Data #2 까지 들었는데 빌드를 해보고싶은데, 어느 강의에서 확인할 수 있나요?
아무래도 어드레서블의 에셋로드가 안되고 있는것 같은데..글을 찾아보니 5월 강의에서 다룬다고 되어있더라구요.어느 강의를 봐야 이부분을 해결할 수 있나요?
-
미해결모의해킹 실무자가 알려주는, SQL Injection 공격 기법과 시큐어 코딩 : PART 1
오라클 php 연동이 도저히 안됩니다.
환경은 window 8 입니다.질문들과 구글링을 통해 해결해보려고 했지만 도저히 해결이 안됩니다.아래는 제가 한 부분입니다. 혹시 더 시도 해 볼만한게 있을까요? 주말이며, 퇴근 후 새벽까지.. 몇일동안 해결해보려고 노력했는데 도저히 해결이 안됩니다. . .APMSETUP7 설치 OracleXE184_Win64 설치php.ini 설정 instantclient_19_5 C드라이브에 이동 후 환경변수 설정 C:\app\XXX\product\18.0.0\dbhomeXE 환경변수 제거oracle_connect.php 파일 내 계정 맞는지 sqlplus 로그인 테스트 후 적용 (localhost에 127.0.0.1도 넣어보고, ipconfig에서 확인한 제 IP도 넣어보고 다 해봤습니다.) ntwdblib.dll 파일 질문 내용 중 확인한 2000.80.194 버전으로 적용 후 PHP5 폴더에 이동아파치 재시작컴퓨터도 재시작 컴퓨터 이름 한글X 영문으로 설정되어 있습니다.서비스 가서 OracleJonSchedulerXE 자동 설정 했습니다.여러번 지우고 재설치..반복 했습니다.
-
미해결팝스타 공식 뮤비 제작 & 유튜브 2천만 뷰 크리에이터의 애니메이트 X 이모티콘 클래스
일러스트 작업물을 그대로 애니메이트로 옮기는 방법
안녕하세요! 질문있습니다!일러스트레이터에서 작업한 결과물을 애니메이트로 옮겼을 때의 상황입니다.애니메이트에서 불러오기하는 방법 대신 빠르게 일러스트 작업물을 마우스로 잡고 애니메이트에 옮기는 방법에서 문제가 발생했는데요, 아래와 같이 이런 문장이 뜨는데요, 이걸 다 수용하니 작업물을 더블클릭하니 수정이 가능하게끔 그룹이 잘 묶어져 있었는데요, 그런데 회사 컴퓨터에서 똑같이 했는데, 마치 그냥 사진 이미지처럼 더블클릭을 해도 그룹으로 묶여 있지 않고 수정도 아예 안 되더라구요.. 뭔가 오류가 난 걸까요..?ㅠㅜ
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
교안 질문 드립니다!
교안 질문 드립니다!Fill()파트를 공부 하다가#include <bits/stdc++.h> using namespace std; int b[10][10]; int main(){ int *ptr = &b[0][0]; int size = 10 * 10; for(int i = 0; i < size; ++i) { *(ptr + i) = 1; } for(int i = 0; i < 10; i++){ for(int j = 0; j < 10; j++){ cout << b[0][0] << " "; } cout << "\n"; } return 0; }이 코드에서 궁금한것이 생겼습니다. 원래대로라면 b[i][j]가 맞을것 같은대 신기하게도 이 코드를 출력 해도 1이 100번 출력이 되어서 이 부분이 궁금합니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
홀수인경우 처리방식에 궁금점이 있습니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.해당 강의 홀수일때 처리하는 아래 코드에서if (b % 2) ret = (ret * a) % c;(ret * a) % c 가 아니라 (ret * a%c) % c가 맞다고 생각 하였습니다.예를 들어서 2^5가 들어간다고 생각해보면 모듈러 계산 공식에 맞춰서(2^5)%c = (2^4%c * 2%c)%c 로 계산이 되기때문에 (ret * a%c) % c 라고 생각하였는데, 혹시 이 부분에서 제가 개념을 잘못 파악하고있는건지 궁금합니다
-
미해결CAN 통신 - 자동차 신입이 알아야 할 모든 것
ack 기능 궁금한 점
안녕하세요 강의 잘 수강하고 있습니다.CAN통신의 ack기능에 대해 궁금한 점이 있는데송신하는 제어기가 ack비트에 1을 채워서 보내고수신제어기들이 정상적으로 잘 받았으면 0을 채워서 보낸다고설명해주셨는데 버스에는 어짜피 한번에 하나의 제어기만 보낼 수 있잖아요? 예를 들어 1,2,3번 제어기가 있다고 할때1번 제어기가 2,3번에 메시지를 보내고나서2,3번이 잘 수신했다면 ack비트에 0을 채워서 보낼텐데 그때 2,3번은 can frame 전체중에서 ack비트에만 0을 채워서 보낸다고 이해하면 될까요?
-
해결됨세계 대회 진출자가 알려주는 코딩테스트 A to Z (with Python)
안녕하세요. 강사님께서 제공해주신 코드로 다른 문제를 풀려고 합니다.
안녕하세요. 강사님께서 제공해주신 이분탐색 1번 2번 코드중 2번 코드로 새로운 문제를 풀려고 합니다.1번 코드(left와 right 설정)으로는 잘 풀리는데 2번 코드(cur과 step 설정)로는 잘 안풀리네요. 백준 2343번 기타문제를 강사님께서 제공해주신 코드로 풀려고 아래와 같이 코드를 짜보았습니다. 하지만 원하는 결과를 얻지 못했는데요. 어떤 부분이 잘못된건지 알려주실 수 있을까요?? nums, blue_nums = map(int, input().split())bluelay_length = list(map(int, input().split())) def check(length): count = 1 current_length = 0 for i in bluelay_length: if current_length + i <= length: current_length += i else: current_length = i count += 1 return count == blue_nums cur = 0steps = 10000+1 while steps > 0: while cur + steps <= 10000+1 and check(cur + steps): cur += steps steps //= 2 print(cur) 감사합니다.
-
미해결
What Kind of Accessories and Gear Should I Pack for a Morocco Private Tour?
Embarking on a private tour of Morocco is an adventure filled with diverse landscapes, rich cultural experiences, and vibrant cities. To make the most of your trip, packing the right accessories and gear is crucial. From sun protection to practical travel items, here’s a comprehensive guide to what you should pack for a Morocco private tour, based on my own experiences and insights.Sun Protection EssentialsWide-Brimmed HatThe Moroccan sun can be intense, especially during the summer months. A wide-brimmed hat is essential for protecting your face and neck from harmful UV rays. Opt for a lightweight, breathable hat that offers ample coverage. I found that a packable hat was incredibly convenient, as it could be easily stored in my bag when not in use.SunglassesSunglasses with UV protection are a must-have accessory. The bright sun and reflective surfaces can be harsh on the eyes, so choose a pair with polarized lenses to reduce glare and improve visibility. Stylish and functional sunglasses can also add a touch of flair to your travel outfits.SunscreenHigh-SPF sunscreen is vital for protecting your skin from sunburn. Look for a broad-spectrum sunscreen that shields against both UVA and UVB rays. Carry a travel-sized bottle in your daypack for easy reapplication throughout the day. Don’t forget to pack lip balm with SPF to protect your lips as well.Travel Bags and OrganizersDaypackA good-quality daypack is essential for carrying your daily necessities, such as water, snacks, sunscreen, and a camera. Choose a lightweight, durable daypack with multiple compartments to keep your items organized. A daypack with a hydration reservoir can be particularly useful for staying hydrated during long excursions.Travel WalletA travel wallet helps keep your important documents, cash, and cards secure and organized. Look for a wallet with RFID protection to safeguard against electronic pickpocketing. I found that a neck wallet or a money belt provided added security and peace of mind, especially in crowded areas.Packing CubesPacking cubes are a game-changer for keeping your luggage organized. They help compartmentalize your clothing and accessories, making it easier to find what you need without unpacking everything. Using packing cubes also maximizes space in your suitcase, allowing you to pack more efficiently.Hydration and HealthReusable Water BottleStaying hydrated is crucial, especially in a hot climate like Morocco. A reusable water bottle with a built-in filter ensures you always have access to clean drinking water. This is particularly useful during long journeys or when exploring remote areas where bottled water might not be readily available.First Aid KitA small first aid kit with essentials like band-aids, antiseptic wipes, pain relievers, and any personal medications can be incredibly useful for minor injuries or ailments. I also included motion sickness tablets and rehydration salts, which came in handy during long drives and hot days.Hand Sanitizer and Wet WipesHand sanitizer and wet wipes are handy for maintaining hygiene, especially when soap and water aren't available. These items are particularly useful when traveling through rural areas or during long drives. They’re also great for freshening up on the go.Technology and GadgetsTravel Adapter and Power BankMorocco uses Type C and E electrical outlets, so make sure to pack a suitable travel adapter for your electronic devices. Additionally, bring chargers for your phone, camera, and other gadgets. A portable power bank can be handy for keeping your devices charged while on the go. I found that a power bank with multiple USB ports allowed me to charge several devices simultaneously.CameraMorocco’s stunning landscapes and vibrant cities offer countless photo opportunities. A good-quality camera is essential for capturing these moments. Whether you prefer a DSLR, mirrorless camera, or a high-quality smartphone, ensure you have enough memory cards and batteries. A lightweight tripod can also be useful for stable shots and night photography.Noise-Canceling HeadphonesNoise-canceling headphones are a great addition for long flights or bus rides. They help block out background noise, making your journey more comfortable and enjoyable. I used them to listen to music, audiobooks, and travel guides, enhancing my travel experience.Comfort and ConvenienceTravel Pillow and BlanketFor long flights and bus journeys, a travel pillow and blanket can make a big difference in comfort. Opt for a neck pillow that provides good support and a lightweight blanket that can be easily packed away. These items helped me rest and arrive at my destinations feeling refreshed.Multi-Tool or Swiss Army KnifeA multi-tool or Swiss Army knife is a versatile accessory that can come in handy for various tasks, from opening bottles to cutting ropes. Ensure it’s packed in your checked luggage to comply with airline regulations. This tool proved useful on several occasions during my trip.Journal and PenKeeping a travel journal is a wonderful way to document your experiences and memories. A small notebook and pen are all you need to jot down your thoughts, sketches, or important information. I found that writing in my journal helped me reflect on my journey and preserve my travel stories.Conclusion Packing the right accessories and gear for a Morocco private tour is essential for a comfortable and enjoyable experience. From sun protection and travel bags to technology and comfort items, being well-prepared will enhance your adventure in this captivating country. For the unforgettable private tour in Morocco, don’t forget to check out Authentic Morocco Travel. Enjoy your journey and the rich experiences that Morocco has to offer!FAQ’sQ1: What kind of accessories and gear should I pack for a Morocco private tour? Pack sun protection essentials like a wide-brimmed hat, sunglasses, and sunscreen. Include travel bags such as a daypack and a travel wallet, and practical items like a reusable water bottle, first aid kit, and packing cubes.Q2: Is a reusable water bottle necessary for traveling in Morocco? Yes, a reusable water bottle with a built-in filter is highly recommended. It ensures you always have access to clean drinking water, especially in remote areas where bottled water might not be available.Q3: What type of camera should I bring to Morocco? Bring a good-quality camera, whether it’s a DSLR, mirrorless camera, or a high-quality smartphone. Ensure you have enough memory cards and batteries. A lightweight tripod can also be useful for stable shots and night photography.Q4: Do I need a travel adapter for my electronic devices in Morocco? Yes, Morocco uses Type C and E electrical outlets. Make sure to pack a suitable travel adapter for your devices, along with chargers and a portable power bank for on-the-go charging.
-
해결됨[Unity] 함께 만들어가는 방치형 게임 개발
피격 텍스트 영상이 피격 이벤트 영상과 동일합니다.
피격 텍스트 영상이 피격 이벤트 영상과 동일합니다.영상이 잘못 업로드된 것 같아요
-
미해결스프링 DB 2편 - 데이터 접근 활용 기술
스프링 부트가 제공하는 임베디드 DB DataSource 스프링 빈 자동 등록 관련
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]안녕하세요.H2 DB는 자바로 만들어져 있고, 덕분에 JVM 내부에서 동작하는 임베디드 모드를 지원한다고 이해했습니다.스프링 부트는 데이터베이스에 대한 별다른 설정이 없으면 임베디드 데이터베이스를 사용(제공)한다고 하는데..질문: 그렇다면 스프링 부트가 DataSource를 스프링 빈으로 자동 등록 시 라이브러리(의존 관계)에서 H2가 있는지를 먼저 확인하고, 별도의 설정(application.properties 내 url, username 등)이 없으면 임베디드 모드로 DataSource를 생성하여 빈으로 등록하는 건가요? 아니면 application.properties를 먼저 확인하고 url이 없으면 -> 라이브러리에 H2가 있는지 확인 후 메모리 DB를 사용하는 DataSource를 생성하여 빈으로 등록하는 건가요? 만약 후자라면 왜 그렇게 설계했을지(이점?)도 궁금합니다.. 감사합니다.
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
3-O 질문있습니다 :)
안녕하세요 선생님 🙂 이 문제를 이해하고 직접 풀기까지 많은 시간이 소요된 것 같습니다. 그래도 덕분에 업그레이드가 많이 된 것 같네요 ㅎㅎ 다름이 아니라, go함수 안에 있는이중 for문의 for(int j = 1; j < n; j++)에서 범위가 왜 j < n이 정답이 되는지 잘 모르겠습니다. j <= n을 하여 세로선(가로인덱스)의 마지막 부분도 체크를 해줘야 할텐데 체크를 안해도 정답으로 인정되는게 이해가 안됩니다;; 알려주시면 감사하겠습니다 :)
-
해결됨독하게 시작하는 C 프로그래밍
동적 할당 메모리 질문
안녕하세요! 현재 강사님의 동적 할당 메모리 강의에서 아래 예제 소스코드를 파헤쳐보고 있는데요! #include <stdio.h> #include <stdlib.h> int main(void) { int* pList = NULL; pList = (int*)malloc(sizeof(int) * 3); pList[0] = 10; pList[1] = 20; pList[2] = 30; for (int i = 0; i < 3; ++i) { printf("%d\n", pList[i]); } free(pList); return 0; }그런데 디버그 모드로 실행하면서 메모리 뷰를 보고 있는데, 잘 이해가 되지 않는 지점이 있어 질문드립니다.(제가 개인적으로 MacOS를 사용해서 CLion 이라는 IDE를 쓰긴하는데, 강의 속 visual studio 처럼 메모리 뷰를 보는 기능은 동일하게 제공해주어서 제가 사용하는 IDE 첨부사진인 점 양해 부탁드리겠습니다 (__) ) 우선 break point를 아래처럼 라인 바이 라인으로 설정한 후 하나씩 실행해보고 있는데요. 한 step 씩 사진을 첨부하면서 설명을 하겠습니다.1.정수 포인터 변수인 pList 에 주소 연산자(&)을 써서 "정수 포인터 변수의 메모리 주소"를 확인 => 64비트 운영체제 컴퓨터에서 포인터 변수는 8바이트(64비트) 크기를 차지하기에 이것은 이해가 됩니다2.정수 포인터 변수인 pList를 메모리 윈도우에서 확인=> 이 부분이 명확히 잘 이해가 가지 않습니다. 일단 pList를 메모리 윈도우에 입력했을 때 pList가 '정수' 타입으로 선언했기 때문에 사진 속 초록색 영역이 4바이트(32비트) 크기인 것은 알겠는데, 초록색 영역에 들어있는 "ff c3 00 d1" 은 의미가 무엇인가요..? 사실 근본적으로 pList가 정수 포인터 변수인 것은 알겠는데, 메모리 윈도우에 pList 를 입력했을 때랑 &pList 입력했을 때의 차이가 명확하게 무엇인지 스스로에게 설명을 못하겠습니다..3.다음 break point로 한 step 실행한 뒤, pList에 주소 연산자(&)를 써서 메모리 윈도우를 확인=> 소스코드에서 pList에 NULL을 할당했기 때문에 아래 사진 속 메모리 윈도우에서 빨간색으로 변한 영역이 0으로 변한 것은 이해가 갑니다.4. 3번 단계에서 메모리 윈도우에서 pList를 입력한 후 확인=> 이 부분도 잘 모르겠습니다. pList를 메모리 윈도우에 입력하니까 failed to read memory 메세지가 뜨면서 메모리를 읽지 못한다는 문제가 발생했는데, 왜 읽지 못하는 것인지.. 이해가 가질 않습니다.5. 다음 break point로 한 step 실행한 뒤 pList를 메모리 윈도우에 입력한 후 확인=> 소스코드에서 malloc() 함수가 정의되어 있는 라인이 실행된 후에야 4번에서 발생한 문제가 사라지더라구요. 4번에서 발생한 문제의 원인을 모르니 5번에서 왜 문제가 해결되었는지도 연쇄적으로 잘 이해가 가지 않네요..혹시 위 5개 단계에서 제가 질문한 부분에 대해 답변 가능하신지 여쭙습니다. 동일한 visual studio 환경이 아니라 죄송합니다 ㅠ 천천히 답변주세요! 기다리겠습니다 🙂
-
미해결
예제 파일들은 어디에 있나요?
강의 사용하신 예제 파일들은 어디에 있나요?
-
미해결김영한의 실전 자바 - 중급 1편
랜덤함수 질문드립니다.
이렇게 처리했을때 콘솔화면 처럼 숫자가 0이 나오는데 왜그런지 알 수있을까요?아래는 메인 소스입니다.
-
해결됨RAG를 활용한 LLM Application 개발 (feat. LangChain)
LangSmith로 평가시 0, 1 점수 대신 더 세분화된(예: 5단계) 점수 사용
오늘 라이브 강의 잘 들었습니다! 고맙습니다.LangSmith에서 rag-answer-vs-reference로 평가하는데 각 항목의 점수가 0,1로만 나와서 아쉽네요. 더 세분화된(예: 5단계) 점수로 평가하려면 어떻게 바꿔야 할지 궁금합니다. 그리고 실제로 사용하실 때 몇 단계 평가를 많이 쓰시나요?