묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core
테스트코드
강의 너무 잘 보고있습니다. ㅎㅎ혹시 테스트 코드 이번강의에 넣지 않으신 이유가 있나요 ?
-
해결됨[풀스택 입문] Firebase보다 10배 좋은 Supabase
update 진행 시 에러가 발생합니다.
강의 내용 진행중 update 할때만 아래와 같은 에러가 나는데, 혹시 수정할 부분이 있을까요? insert/delete는 이상없이 진행 됩니다. 코드는 tailwind 일부만 제외하고는 전체 동일합니다.nextjs : 14.2.5 @supabase/supabase-js: "^2.45.0"'''localhost/:1 Access to fetch at 'https://********.supabase.co/rest/v1/note?id=eq.8' from origin 'http://localhost:3000' has been blocked by CORS policy: Method PATCH is not allowed by Access-Control-Allow-Methods in preflight response.'''const onEdit = async () => { if(!title || !content){ alert("제목과 내용을 입력하세요"); return; } const { data, error} = await supabase .from('note') .update({ title, content }) .eq('id',note.id); if(error){ alert(error.message); return; } setIsEditing(false); fetchNotes(); }
-
해결됨2주만에 통과하는 알고리즘 코딩테스트 (2024년)
기본 3강부터 막혀 멍청해서 화가납니다 ㅠㅠ
제곱수의 합문제요..6일 경우 제곱이 되려면 루트6밖에 안되는데왜 2가 2로 떨어지는 약수의 개수로 카운팅되는지 이해를 못하겠네요…또 3의 제곱 5의 제곱은 왜 고려안하는지도…( 이미 이해 다 됐다고 가정해서 말씀하신건지도 모르겠습니다.ㅠㅠ )바보도 알고리즘 천재로 만들어주신다고 들어서 잘 알려주시면 감사드리겠습니다 ㅠㅠ
-
미해결김영한의 실전 자바 - 고급 1편, 멀티스레드와 동시성
동적 의존성 주입과 Volatile
[질문]2024.08.07 까지는 정액할인, 2024.08.08 부터는 비율할인 정책이 반영되어야 하는 비즈니스 로직이 있고, 이를 스케줄러를 활용하여 2024.08.08 00:00:00에 Setter를 활용하여 비율할인을 구현한 Bean을 Injection 하여 처리하도록 구현했다고 가정하면, 이런 경우에도 아주 아주 엄밀하게 00:00:00에 모든 할인 정책이 완벽히 적용되어야 한다면, 인스턴스 변수에 volatile을 반드시 명시해줘야 하는 것인가요? 경험이 미천하여 웹프로그래밍 할 때 volatile를 사용한 것을 거의 보지 못하였고, 위의 가정처럼 아주 엄밀한 동작을 요구하는 경우는 없었고 그간 별다른 일도 없긴 하였는데, 개념을 듣고 복기해보니 장애의 요인이 될 수 있을 것 같아 여쭙습니다.
-
해결됨한 입 크기로 잘라 먹는 리액트(React.js) : 기초부터 실전까지
질문드립니다.
<div className="todos_wrapper"> {todos.map((todo) => { return <TodoItem {...todo} />; })} </div>여기서 <TodoItem {...todo} /> <TodoItem todo= {...todo} />두개 차이가 뭘까요 >?import React from "react"; import "../TodoItem.css"; const TodoItem = ({ id, isDone, content, date }) => { return ( <div className="TodoItem"> <input checked={isDone} type="checkbox" /> <div>{id}</div> <div>{content}</div> <div>{isDone}</div> <div>{date}</div> </div> ); }; ({ id, isDone, content, date })여기 {}에 넣는거랑 {}을 뺴고 넣는거랑 차이가 뭔지 모르겠어요..
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
Controller를 통한 페이지 화면이 안 보입니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 예[질문 내용]정적 페이지는 잘 랜딩되는데, Controller를 통해 랜딩하는 페이지들은 에러 페이지라고 뜹니다.8080/ 페이지만 잘 나오고, 나머지 controller를 통한건 다 안 나옵니다.
-
해결됨스프링 핵심 원리 - 기본편
컴포넌트 스캔 필터 옵션과 @SpringBootApplication 어노테이
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]여기에 질문 내용을 남겨주세요.강의 내용 중이런식으로 컴포넌트 스캔 필터 옵션을 @Configuration을 스캔 대상으로 제외 하더라도@SpringBootApplication 이 붙은 CoreApplication을 실행시키면 교안의 AppConfig가 적용되는 것 같은데 이는 @SpringBootApplication 내부에 @ComponentScan이 따로 선언되어 있기 때문이 라고 생각되는데 맞을까요?
-
해결됨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.