묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨스프링 DB 2편 - 데이터 접근 활용 기술
JpaRepository - 기본적인 CRUD 기능
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]-> 강의 pdf 캡처본입니다. 해당 캡처본에서 JpaRepository를 인터페이스 상속받으면 기본적인 CRUD 기능을 사용할 수 있다고 하는데, '기본적인 CRUD 기능'이 의미하는 것이 'CrudRepository가 가지고 있는 CRUD 메서드'(save, delete 등등)를 의미하는 것인가요?
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
랜덤메타(Sleep(1), Sleep(0), Yield())는 컨텍스트 스위칭이 없나요?
루키스님 안녕하세요?SpinLock, sleep/Yield, event, Mutex까지 잘 들었습니다. 제가 이해하기로는 SpinLock은 계속 돌기 때문에 컨텍스트 스위칭이 없어 (여기서의 예에서만) 빠르게 _num = 0 을 출력하고, event와 Mutex는 커널 단까지 컨텍스트 스위칭이 일어나 반복문이 조금만 많아도 _num = 0을 출력하는데 시간이 걸리는걸 볼 수 있었습니다. 그런데 궁금한건, 랜덤메타인 Sleep와 Yield도 쉬는 동안 커널 단까지 컨텍스트 스위칭이 일어날 것 같은데(쉬는 동안 다른 스레드에 메모리 <-> 레지스터 가 왔다 갔다 하므로) 여기서의 예에서는 _num이 빠르게 출력 되었습니다. 그래서 빠르게 출력된 이유가 랜덤메타는 컨텍스트 스위칭이 없어서인지, 아니면 컨텍스트 스위칭이 일어나는게 맞지만 여기서의 예에서만(간단한 예제이므로) 빠르게 _num= 0이 출력된 건지 궁금합니다.
-
미해결[리뉴얼] 코딩자율학습 제로초의 자바스크립트 입문
쿵쿵따 추가적인 조건을 붙여서 만들었는데 어떤지 평가 부탁드립니다 ㅠㅠ
제가 추가적으로 구현한건 아래와 같습니다.끝말잇기 단어를 잘못 선택하면 탈락기존에 썼던 단어를 또 사용하면 탈락참가자가 한 명 남으면 게임이 끝남=> 참가자는 number를 배열로 만들어서 틀리면 배열의 숫자를 제거하는걸로 구현했습니다. const number = Number(prompt("몇 명이 참가하나요?")); if (number) { const $order = document.querySelector("#order"); const $word = document.querySelector("#word"); const $input = document.querySelector("input"); const $button = document.querySelector("button"); const numArray = Array(number) .fill() .map((v, i) => i + 1); let word; let newWord; const compareArray = []; let order = Number($order.textContent) - 1; const onClickButton = () => { if ( (!word || word[word.length - 1] === newWord[0]) && newWord.length === 3 ) { if (compareArray.includes(newWord) === false) { word = newWord; $word.textContent = word; compareArray.push(word); console.log(compareArray, numArray); if (numArray[order] + 1 > numArray.length) { $order.textContent = numArray[0]; order = 0; } else { $order.textContent = numArray[order + 1]; order += 1; } } else { alert("이미 있는 단어입니다. 탈락입니다."); numArray.splice(numArray.indexOf(numArray[order]), 1); $order.textContent = numArray[order]; console.log(numArray, order); } } else if (newWord.length !== 3) { alert("작성해야 할 단어는 총 3글자입니다."); } else { alert( `잘못된 단어입니다. ${numArray[order]}번 참가자는 탈락입니다.` ); numArray.splice(numArray.indexOf(numArray[order]), 1); $order.textContent = numArray[order]; console.log(numArray, order); } if (numArray.length === 1) { alert( `게임이 종료되었습니다 승리자는${numArray[0]}번 참가자입니다` ); } $input.value = ""; $input.focus(); console.log(newWord); }; const onInput = (event) => { newWord = event.target.value; }; $button.addEventListener("click", onClickButton); $input.addEventListener("input", onInput); }
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
메시지 파일 관리를 백엔드에서 하나요?
[질문 내용]메시지를 관리하는 거를 백엔드 단에서 파일 하나 만들어서 관리하는 거 같은데 이걸 백엔드랑 프론트로 나눠서 개발을 하는 경우에도 메시지 관리를 백엔드단에서 하게 되나요? 뭔가 프론트에서 할 거 같아서 질문드립니다.
-
해결됨쿠버네티스 어나더 클래스-Sprint 1, 2 (#실무기초 #설치 #배포 #Jenkins #Helm #ArgoCD)
쿠버에 젠킨스 설치후 실습방법문의
안녕하세요 일프로님좋은 강의 감사합니다쿠버배우려고 신청했는데 젠킨스에 빠져서실습하고 있는데요모든 것을 쿠버로 올리는 것을 목표로 공부중에실습의 내용의 젠킨스는 설치형이라 쿠버에 젠킨스를 설치하여 활용하는 내용이 추후 강의에 있을지와 미리 참고할 것이 있을지 문의드려요늘 경험한 것을 곁들어 설명에 다시 한번 감사드려요
-
미해결멀티OS 사용을 위한 가상화 환경 구축 가이드 (Docker + Kubernetes)
vagrant up network interfaces 질문
강의 내에서도 네트워크 부분 안건드리는 것 같아서 그대로 진행하였는데 저런 오류가 발생하였습니다! 어떻게 해결해야될까요?
-
해결됨스프링 핵심 원리 - 기본편
스프링 3.2 버전 이상에서 Run tests using 부분은 intelliJ IDEA 를 사용해도 되는지 궁금합니다.
제가 강의를 오랜만에 들어서 혹시 수정사항이 있을까 PDF를 다시 다운받아서 확인했는데,주의! 스프링 부트 3.2 부터 Gradle 옵션을 선택하자.스프링 부트 3.2 부터 앞서 Build and run using에 앞서 설명한 IntelliJ IDEA를 선택하면 몇가지 오류가 발생한다.따라서 스프링 부트 3.2를 사용한다면 다음과 같이 IntelliJ IDEA가 아니라 Gradle을 선택해야 한다.라고 PDF가 12월4일 경에 수정되었더라구요. Run tests using 부분은 intelliJ IDEA 를 사용해도 되는지 궁금합니다.제가 굳이 Run tests using 을 바꾸고 싶은 이유는, test 실행시에,@DisplayName 어노테이션, 메서드로 구분해둔 개별 테스트들의 테스트 결과가 나누어지지 않고 한번에 보여서 그럽니다.구글링 결과 해결법이 Run tests using 부분을 intelliJ IDEA 로 바꾸라는 것 뿐인데 바꾸면 어떤 치명적인 오류가 있는건가요? Run tests using 을 Gradle로 설정했을 때 테스트 실행 결과 화면Run tests using 을 intelliJ IDEA로 설정했을 때 테스트 실행 결과 화면
-
해결됨자바스크립트 제대로 배워볼래?
clearInterval, setInterval 질문
var i = 0; var fnc = setInterval(function () { if (i == 3) { clearInterval(fnc); } console.log("3초마다 프로그램 실행 - " + i); i++; }, 3000);i가 3일 때 setInterval를 중단하기 위해 해당 코드를 작성했습니다.i가 3일 경우에는 clearInterval에 의해 setInterval이 중단됐기 때문에아래 console.log("3초마다 프로그램 실행 - " + i)도 실행되지 않아콘솔창을 실행했을 때 "3초마다 프로그램 실행 - 2"까지만 나오고 멈출거라고 생각했는데,"3초마다 프로그램 실행 - 3"이 나와 왜 그런지 질문 드립니다.
-
해결됨초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
벨로그 공개 포스팅 업로드 관련 문의
안녕하세요 강사님 좋은 강의 잘 듣고 있습니다.다름이 아니라 강의 내용과 ppt 이미지 등과 제 생각을 토대로 벨로그 등에 정리하려고 하는데공개 포스팅으로 등록해도 괜찮을지 문의 드립니다. 당연히 출처와 링크를 꼭 남기도록 하겠습니다.
-
해결됨[UI3 업데이트] 피그마 배리어블을 활용한 디자인 시스템 구축하기
강의 자료 스타일 가이드(타이포그래피) 관련 문의
안녕하세요, 강의자료에서 스타일 가이드 > 타이포그래피 관련하여 질문드립니다!! 실무 경험이 부족하다보니 신입, 1인 디자이너로 반응형 웹 리뉴얼 진행 중에 스타일 가이드 제작이 쉽지 않아서요~ 강사님께서 만드신 타이포그래피 가이드를 그대로 실무에 적용해도 괜찮을지 궁금합니다!! 실무에서 많이 쓰는 타이포 그래피 사이즈인지 궁금합니다! 도움 부탁 드립니다!!
-
미해결[비전공자 대환영] 캐글 데이터를 활용한 Optuna with MLFlow - 캐글다지기
jupyter nbextension enable --py widgetsnbextension 에러발생
vscode 터미널에서 jupyter nbextension enable --py widgetsnbextension 실행시 아래와 같은 에러가 발생합니다.Jupyter command jupyter-nbextension not found.해결방법이 어떻게 될까요??
-
해결됨[UI3 업데이트] 피그마 배리어블을 활용한 디자인 시스템 구축하기
피그마 에듀케이션 계정 신청 관련
안녕하세요, 강의 자료에서 알려주신 피그마 에듀케이션 계정 신청이 이제는 안되는 것인지 궁금합니다. 알려주신 가이드 대로 했는데요, 학생 이메일이 아니라서 그런지 신청 버튼을 누르면 계속 초기화돼서 신청이 안 됩니다 ㅠㅠ
-
해결됨[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스
매개변수 이해가 잘 안됩니다.
안녕하세요, 수업 잘 듣고 있습니다. 79번째 줄 weatherSearch라는 function에 postion이 매개변수로 들어가는 이유가 잘 이해가 안 됩니다.만약, postion 대신 87번째 줄의 positionObj가 매개변수로 들어 가면 어떻게 되나요? 아직 매개변수 자체의 개념이 약한 것 같은데 좀 더 이해할 수 있게 도와주시면 감사하겠습니다!
-
미해결
Discover the Magic | Organic Essential Oils for a Healthier You
Come along on a journey into the fantastic world of organic essential oils – they're like nature's own special potions that can make you feel better. This article is like your map to understanding what these oils are, what good things they can do for you, and ways to use them. We'll chat about how these oils are taken out of plants, meet some popular ones like peppermint and tea tree, and learn how to pick the perfect oils. Let's discover how these oils can be nice and helpful and find out how they're made in a way that's kind to our planet. Ready to add a touch of nature to your everyday life? Definition and BasicsOrganic essential oils are like nature's potent elixirs, distilled from plants to capture their essence. These oils are pure, chemical-free, and carry the therapeutic properties of the plants they come from. From lavender's calming aroma to the refreshing scent of peppermint, each oil is a gift from nature.Benefits of Choosing OrganicChoosing organic essential oils is a conscious step towards a healthier lifestyle. These oils, free from synthetic additives and pesticides, offer holistic well-being. By opting for organic, you embrace the purest form of nature, ensuring that what you inhale or apply to your skin is as close to the plant as possible.The Extraction ProcessUnderstanding DistillationThe process of distillation is like a time-honoured dance between nature and science. It involves heating plant material to release its aromatic compounds, capturing them, and then cooling them back into liquid form. This careful process ensures that the essential oil retains its purity and therapeutic properties.Cold Pressing MethodCold pressing is a method used primarily for citrus oils. It involves mechanically pressing the essential oil from the rind of the fruit. This gentle method ensures that the oil retains its fragrance and doesn't undergo heat-related degradation, making it a preferred choice for preserving the goodness of the plant.Popular Types of Organic Essential OilsPeppermint OilPeppermint oil is like a burst of freshness. It's renowned for its refreshing scent, offering relief from headaches, boosting energy levels, and aiding digestion. Adding a few drops of peppermint oil to your diffuser can transform your space into a revitalizing haven.Tea Tree OilTea tree oil is nature's remedy for various skin concerns. With its antimicrobial properties, it's often used to soothe skin irritations, treat acne, and promote overall skin health. A few drops diluted with a carrier oil can work wonders for your skin.Eucalyptus OilEucalyptus oil is a respiratory hero. Its fresh and camphoraceous aroma helps clear congestion and supports respiratory health. Inhaling the vapours of eucalyptus oil can provide relief during cold and flu seasons.Benefits and UsesAromatherapyAromatherapy is like a fragrant hug for your mind and body. By inhaling the aroma of essential oils, you can positively influence your mood, reduce stress, and promote relaxation. Lavender oil, for example, is celebrated for its calming properties, making it a go-to choice for peace.SkincareOrganic essential oils are your allies in achieving radiant skin. From the hydrating properties of rose oil to the soothing effects of chamomile, these oils can be incorporated into your skincare routine to address various skin concerns. Mix a drop or two with your moisturizer and let your skin soak in the natural goodness.Home CleaningBid farewell to harsh chemicals and embrace the power of essential oils in your cleaning routine. Lemon oil, with its antibacterial properties, can be mixed with vinegar to create a compelling and pleasant-smelling all-purpose cleaner. A few drops go a long way in keeping your home naturally clean.How to Identify Quality Organic OilsCertification StandardsNavigating the world of certifications ensures that you're choosing oils of the highest quality. Look for labels like "USDA Organic" or "Certified Organic" to guarantee that your essential oils meet stringent organic standards. These certifications are a reliable mark of purity.Reading LabelsDecoding the labels on essential oil bottles might seem like a small science, but it's a crucial skill. Ingredients should be simple, indicating that the oil is pure and free from additives. Check for the plant's botanical name to ensure you're getting what you expect.Storage and Shelf LifeBest PracticesTo keep your essential oils potent, store them in a cool, dark place. Amber glass bottles are ideal for protecting oils from light exposure. By keeping them away from direct sunlight and heat, you ensure that the magic within each bottle remains intact.Avoiding SpoilageEssential oils are precious, but they can lose their magic over time. To avoid Spoilage, make sure to cap the bottles tightly after use. If stored correctly, most essential oils have a shelf life of one to two years, ensuring their effectiveness for an extended period.DIY Recipes with Organic Essential OilsRelaxing Diffuser BlendsCreating your oasis of calm is easier than you think. Mix lavender and chamomile oils in your diffuser for a relaxing blend that helps you unwind after a long day. Experiment with different combinations to find your perfect aroma.Natural Cleaning SolutionsSay goodbye to harsh chemicals with natural cleaning solutions. Combine tea tree oil, lemon oil, and white vinegar for an antibacterial and refreshing cleanser. Your home will thank you for the chemical-free makeover.Homemade Skincare TreatmentsTreat your skin to a spa day with DIY skincare treatments. Combine a drop of frankincense oil with your favourite carrier oil for a luxurious facial serum. The natural ingredients work together to nourish and rejuvenate your skin.Cautions and ConsiderationsAllergies and SensitivitiesWhile organic essential oils offer numerous benefits, it's necessary to be aware of potential allergies or skin sensitivities. Perform a patch test before widespread use, especially if you have sensitive skin or known allergies to certain plants.Safe Usage GuidelinesEssential oils are potent, and a little goes a long way. Dilute them with a carrier oil before applying them to the skin, and always follow recommended usage guidelines. If you're pregnant, nursing, or have specific health concerns, consult with a healthcare professional before incorporating essential oils into your routine.ConclusionIn our journey through the magic of organic essential oils, we've unveiled their pure origins, therapeutic benefits, and versatile applications. From the soothing powers of lavender to the invigorating freshness of peppermint, these oils bring nature's goodness to your daily life. As we conclude, consider integrating organic essential oils into your daily routine. Whether you seek relaxation, skincare, or a natural home environment, these oils offer a holistic approach to well-being. Embrace the magic of nature and experience a healthier, more vibrant you.
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
@OneToMany 를 쓰는 이유??
생각해보니 양방향 연관관계를 써야 하는 근본적인 이유가 무엇이었나요? 예를 들면 member 와 team 이 다대일 이라면 ,team 에 @OneToMany 가 있을 텐데지금까지 강의에서 보았을떄는 그냥 주 Entity에서 @OneToMany 써서 연관관계 편의 메서드 만들어서 데이터 넣는 느낌? 이 다인 것같은데 근본적인 이유가 뭘까요. 이전 JPA 강의에서는 @OneToMany를 쓸때는 조회하는 것만 사용하라고 했었던 기억이 나는데 강의에서는 @OneToMany를 사용해서 조회해서 APi로 반환한다거나 그런 내용이 없었던 걸로 기억해요 . . .
-
해결됨시스템엔지니어가 알려주는 리눅스 실전편 Bash Shell Script
스크립트 실행 결과 미표시
텔레그램봇으로 알림이 안뜨는건 nginx의 용량이 안차서 그런것 같은데 혹시 고의적으로 용량을 늘릴 수 있는 방법 있을까요?
-
해결됨그림으로 쉽게 배우는 운영체제
SJF 알고리즘
SJF 알고리즘은 그럼 이론적으로만 존재하는 거고 현실에서는 전혀 쓰이지 않는다고 보면 될까요?Burst Time이 짧은 프로세스를 먼저 실행한다고 하는데제가 생각해도 강의에서 말씀하신 대로 '어떤 프로세스가 얼마나 실행될지'는 사용자 마음인 건데 어떻게 알고 짧은 프로세스를 먼저 배치하지? 라는 생각이 들어서요
-
해결됨김영한의 실전 자바 - 기본편
2. 기본형과 참조형 - 메서드편에서, pdf 14페이지 수정해야하는 것이 아닌가요?
해당 pdf에는 int dataX = dataA라고 되어있는데, Data dataX = dataA라고 수정을 해야하지 않을 까 싶어서 올리게 되었습니다.파라미터로 dataA의 참조값을 dataX에 복사하는 것이고, 실제로 System.out.println(dataA)와 System.out.println(dataX)를 찍어보면, ref 패키지의 Data클래스로부터 만들어진 인스턴스의 참조값이 찍혀서 나오니, 이건 int형이 아닌 것 같아서요.dataX = x001 참조값, dataA = x001 참조값을 가진다고 하고, 해당 참조값을 통해, Data인스턴스의 멤버변수인 value에 접근해서 dataX.value = 20이라 변경했으니, dataA.value = 20으로 변경이 되는 것이고 만약 이를 의도하고 작성한 것이라면 int dataA.value = dataX.value 라고 적어야 하지 않을까요?
-
해결됨프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
chapter06_02 reportMissingimports
안녕하세요 vscode에서test_module를 import해서 쓰는 거는 문제 없이 되는데밑에 노란줄이 끄이면서 reportMissingimports가 뜨는데 pylance와 jedi의 차이로 인해서 이런 문제가 발생하기도 할까요?settings json에 python.languageServer를 보니까 defalut로 pylance를 쓰던데 jedi로 수정해보려 하니 읽기전용 모드라서 수정이 불가하다고 뜨네요 혹시 어떤 문제가 있을까요? 버전은 문제 없는 것 같습니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
저는 왜 강의랑 다르게 될까요?
각 연결선에 has exit time도 모두 체크되어있는데 RUN의 Transitions 순서에는 WAIT으로 애니메이션이 실행되어야하는데 왜 저는 JUMP가 실행될까요?