묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
6-F 질문드립니다 :)
안녕하세요 선생님 🙂 한군데 이해가 가지 않는 부분이 있어서 질문드립니다. 아래의 코드는 Check함수에서 init_attack 변수를 설정하여 attack으로 초기화하도 않았을 뿐더러 아예 사용을 하지 않았습니다. 결론부터 말씀드리면 틀렸는데요, 이게 왜 틀린건지 이해가 되지 않습니다. 혹시 call by value인가요? 입력 값에서 용사의 공격력을 이미 입력받았고, 그 공격력을 포션방을 갔을 때 입력받은 용사의 공격력을 증가시키면 된다고 생각했는데요, 이게 왜 안되는걸까요?http://boj.kr/9ca6118540e54a259b26c070a1b20868
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
범위 체크 질문있습니다.
http://boj.kr/c5c442d82b24467fbbac115beed3793c와 같이저는 배열 [0][0]~[x-1][y-1]이 아니고 배열을 넉넉하게 잡아[0][0][0][0][0][0][0][0] // 사용 ______ _[0][0] _____________ _[0][0] _____________ _[0][0]_____________ _[0][0]_____________ _[0][0][0][0][0][0][0][0] 과 같은 형태로[1][1] ~ [x][y] 까지 활용을 했는데요. 문제가 메모리를 정말 타이트하게 잡지 않는 이상 선생님께서 말씀하신 범위체크하고 위 방법은 취향 차이라고 보면 될까요?
-
해결됨태블로를 향한 첫 걸음
Quick Table 값 동시에 여러 개 보기
Table Calculation 기능을 이용해서 테이블의 수치를 다양한 형태를 보고 싶은데요.예를 들어 Sales의 경우,Sales 기존 값 - 전체 구성 비율 - 누적 합계 등 이런 퀵테이블 계산결과를 각 열로 동시에 테이블 안에 보고 싶으면 어떻게 해야 할까요?
-
해결됨Airflow 마스터 클래스
data_interval_start가 배치일로 나오는 이유 문의
안녕하세요.우선 강사님, 좋은 강의 잘 듣고 있습니다. [섹션 5. Template Variable > Airflow 날짜개념] 강의 관련하여 질문 드립니다. Airflow 2.10.0 버전 사용 중이며, 강의와 같이 테스트를 진행하였는데, data_interval_start이 이전 배치일이 아닌 배치일로 나와서 문의드립니다.DAG의 start_date를 2024년 9월 1일로 설정 후 소급 처리하였습니다. 아래와 같이 dag_run이 배치일일텐데, 왜 data_interval_start가 이전 배치일(2024.08.31)이 아닌 배치일로 나올까요?'dag_run': <DagRun dags_python_show_templates @ 2024-09-01 00:30:00+00:00: scheduled__2024-09-01T00:30:00+00:00, state:running, queued_at: 2024-09-06 09:11:26.187022+00:00. externally triggered: False>,'data_interval_end': DateTime(2024, 9, 2, 0, 30, 0, tzinfo=Timezone('UTC')),'data_interval_start': DateTime(2024, 9, 1, 0, 30, 0, tzinfo=Timezone('UTC')),'ds': '2024-09-01',
-
미해결
Exploring the Benefits of Super Vidalista for Men’s Sexual Health
Super Vidalista has gained attention for its ability to tackle two of the most common sexual health issues faced by men—erectile dysfunction (ED) and premature ejaculation (PE). This dual-action medication combines two key active ingredients: Tadalafil and Dapoxetine, which together provide a comprehensive approach to improving sexual performance and overall satisfaction. Understanding the benefits of Super Vidalista can help men regain confidence and enhance their intimate relationships.How Super Vidalista WorksSuper Vidalista contains 20 mg of Tadalafil and 60 mg of Dapoxetine. These two components work in different but complementary ways.Tadalafil, a phosphodiesterase type 5 (PDE5) inhibitor, is responsible for improving blood flow to the penis. It relaxes the blood vessels, allowing more blood to enter during sexual stimulation, which results in a firmer, longer-lasting erection. Tadalafil’s effects can last up to 36 hours, earning it the nickname “the weekend pill.” This prolonged effectiveness allows men more flexibility in choosing the right time for intimacy, without the pressure of timing their medication perfectly.Dapoxetine, on the other hand, is a selective serotonin reuptake inhibitor (SSRI) that is specifically designed to treat premature ejaculation. It increases serotonin activity in the brain, which can delay ejaculation and extend the duration of sexual activity. By combining these two ingredients, Super Vidalista provides a dual-action solution for men who face both ED and PE, a common co-occurrence.Benefits of Super Vidalista for Sexual HealthImproved Erectile Function Erectile dysfunction can have a profound impact on a man’s self-esteem and relationships. By helping men achieve and maintain an erection, Super Vidalista restores confidence in sexual performance. Tadalafil works by increasing blood flow, which is essential for a strong erection. Men who struggle with the ability to maintain an erection long enough for satisfying sexual intercourse can greatly benefit from this.Prolonged Sexual Activity Premature ejaculation is another concern that can lead to frustration and anxiety in intimate relationships. Dapoxetine, the second key ingredient in Super Vidalista, helps men take control of their ejaculation timing, allowing for longer-lasting sexual experiences. This can significantly improve satisfaction for both partners.Enhanced Intimacy and Emotional Well-Being Sexual performance issues such as ED and PE can create stress and tension in relationships. Super Vidalista addresses these problems, leading to a more satisfying sexual experience for both partners. By helping men regain control over their sexual health, the medication can improve emotional intimacy, strengthen bonds, and reduce performance-related anxiety.Convenient Dual Therapy One of the standout benefits of Super Vidalista is its combination of two treatments in a single pill. Men no longer need to take separate medications for ED and PE, which simplifies the treatment process. This dual-action therapy offers convenience and efficiency, particularly for men who struggle with both conditions.Long-Lasting Effects Tadalafil’s long half-life means that the effects of Super Vidalista can last up to 36 hours. This offers men more freedom in their sexual lives, removing the need for last-minute planning or worrying about the medication wearing off too quickly. The long-lasting effects allow for more spontaneous intimacy, further reducing stress and enhancing enjoyment.Boosted Confidence and Reduced Anxiety Sexual health issues often lead to feelings of inadequacy, low self-esteem, and anxiety. By addressing both erectile dysfunction and premature ejaculation, Super Vidalista helps men regain control of their sexual function. This can lead to a significant boost in confidence, which often extends beyond the bedroom and into other areas of life.ConclusionSuper Vidalista offers a comprehensive solution for men who experience both erectile dysfunction and premature ejaculation. With its unique combination of Tadalafil and Dapoxetine, it improves erectile function, prolongs sexual activity, and enhances overall sexual satisfaction. For men who face the dual challenge of ED and PE, Super Vidalista can be a life-changing medication, helping them regain confidence, improve intimate relationships, and enjoy a more fulfilling sexual experience. Its long-lasting effects and dual-action formula make it a convenient and effective option for men looking to enhance their sexual health and well-being.
-
미해결
강의 재생 안됨
아이패드로 강의를 듣고 있습니다.사파리로 5회차까지 듣다가 6회차부터 로딩만 계속 되고 실행이 되지않아서 크롬으로 설치하여 다시 시도했는데도 같은 상태가 반복되고 있습니다.
-
해결됨[리뉴얼] 처음하는 SQL과 데이터베이스(MySQL) 부트캠프 [입문부터 활용까지]
(맥환경) workbench 이용할 때 패스워드 입력 안해도 자동으로 활성화 가능해져요..
본문제목 그대로 워크 벤치 이용할 때, 항상 패스워드를 입력한 후 활성화 되는 것으로 알고 있었는데, 현재 패스워드 입력 안하고 그냥 클릭만 해도 활성화됩니다. 보안상으로 좋지 않은 것 같은데, 혹시 이런 경우 어떻게 변경이 가능할까요? 오랜만에 mysql을 공부하는데 몇년 전에는 항상 패스워드 입력했던 것 같은데 이번에 새로 깔아보니 패스워드 입력 안해도 실행이 되어 불안합니다. 참고로 저는 맥 환경에서 사용하고 있습니다.
-
미해결자바 동시성 프로그래밍 [리액티브 프로그래밍 Part.1]
자식 프로세스를 쓰는 이유
안녕하세요 선생님, 강의 정말 잘 듣고 있습니다.2장의 내용을 복습하다가 궁금한 점이 생겼어요 여러개의 자식 프로세스를 사용하는 것과 멀티스레드를 사용하는 것의 목적이 서로 상이할까요? 아파치의 woker mpm 방식의 경우에는자식 프로세스도 여러 개 생성하고 각각의 자식 프로세스들이 멀티 스레드 방식을 사용하고 있어서요... 어떤 이점을 취할 수 있는 경우에 자식 프로세스를 혹은 멀티 스레드를 선택하는 건가요? 제가 생각하기로 멀티스레드만을 사용할 경우에는 비교적 메모리 리소스를 효율적으로 사용할 수 있지만, 가용성을 위해 여러 대의 서버 장비를 두어야 하고자식 프로세스가 많을 경우 한 서버의 자원은 많이 먹지만 하나의 장비 내 가용성이 높아지지 않을까 추측하고 있습니다...
-
미해결Nuxt.js 시작하기
nuxt 최신버전 설치 후 layouts 없어서 직접 폴더 생성 후 문제
nuxt 최신버전 설치 후 layouts 없어서 직접 폴더 생성 후 문제인데요.error.vue 는 문제없이 실행되는데default.vue 생성시 pages에 있는 내용은 하나도 안나오고default.vue에 있는 내용만 똑같이 나오는 현상이 나옵니다.default.vue 내용만 나옴 default.vue 삭제시
-
미해결이득우의 언리얼 프로그래밍 Part1 - 언리얼 C++의 이해
UObject 타입과 가비지 콜렉션 질문
UObject 를 상속한 멤버이기 때문에 가비지 콜렉터로 관리가 되는 건지, 아니면 TObjectPtr<> 로 인해 가비지 콜렉터로 관리되는 건지 궁금합니다. 멤버가 TObjectPtr<UObject>이 아닌 UObject* 타입으로 되있을 때도 가비지 콜렉터가 작동되서 UPROPERTY() 를 붙이지 않는 한 자동으로 지워지는 건가요??
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
3-A 코드확인 부탁드립니다.!
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요! 강의 듣고 변수만 바꿔서 테스트해서 예제는 통과했는데 제출하니까 에러가 발생해서 ㅜㅜ 코드 한번 확인 부탁드립니다. http://boj.kr/052be6c86bf945e5a945a7682b12f2aa
-
해결됨실전 jOOQ! Type Safe SQL with Java
from절 subquery table filed nullable 처리
안녕하세요. 강의 잘 듣고있습니다.다름이 아니라 subquery 실습 중 nullable method 처리가 안되어 질문 드립니다. asTable() method 사용하여 Table<Record> 인스턴스 subTable 생성 후 subTable.field() method 호출 시 Nullable한 method이기 때문에 NPE 발생 가능 경고가 발생합니다. 서브쿼리가 아닌 generated된 객체의 경우에는 발생하지 않아 비슷한 방식으로 해결해보기 위해 구글링해보았지만 뚜렷한 해결방법이 나오지 않아서요. 특정 객체로 mapping 혹은 NPE 발생 가능성을 compile level에서 처리 가능하게끔 해결 가능할까요?
-
해결됨스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
response.sendError의 역할
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]섹션 8에서 컨트롤러에서 response.sendError()을 사용해서 WAS까지 오류 정보를 전달 하는 것으로 생각했습니다.그런데 섹션 9를 공부하면서 ExceptionResolver 코드를 확인해보면 결국 내부적으로 response.sendError() 를 호출한 다는 것을 알게 되었습니다.이는 response.sendError()를 사용하는 것이 WAS까지 오류 정보를 전달하는 역할을 하는 것이 아니라고 이해하면 될까요? 그렇다면 어떻게 위 그림의 sendError흐름이 만들어지는 걸까요
-
미해결장애 없는 서비스를 만들기 위한 Resilience4j - CircuitBreaker
Resilience4J 적절한 적용 예시인지 질문드립니다.
안녕하세요 🙂 Resilience4J 를 학습한 후 실무에 적용해보려 하는 주니어 백엔드 개발자입니다.제가 생각하는 예시가 서킷 브레이커를 도입하기 적절한 예시인지 궁금해서 질문을 남깁니다! 현재 제가 고려하는 상황입니다.A 서버 혹은 B 서버로 요청을 보내도 되는 상황 (A서버로 요청 보내는 것이 비용이 저렴하기 때문에 기본적으로 A사 요청)A사로 요청을 보냈지만 장애 발생 -> 서킷 OPEN 상태로 변경 서킷이 OPEN일 때 B 서버로 요청HALF OPEN일 때 A서버로 요청을 보냄A서버에서 정상적인 응답이 올 경우 서킷 CLOSE이러한 방식으로 Resilience4J를 도입하려고 하는데, resilience4J가 개발된 의도에 맞게 사용하는걸까요?혹시 아니라면, 다른 어떤 방법을 사용하면 좋을지 궁금해서 질문 남기게 되었습니다
-
해결됨실무에 바로 적용하는 프런트엔드 테스트 - 2부. 테스트 심화: 시각적 회귀・E2E 테스트
unit-test-example 브랜치에서 'Test result not found.' 가 뜹니다...
unit-test-example에서 테스트를 실행하니 테스트코드 통과 여부에 관계없이 Test result not found만 뜨며 실패합니다. 이유를 모르겠어요ㅠㅠ Test result not found.If you set `vitest.commandLine` please check:Did you set `vitest.commandLine` to `run` mode? (This extension requires `watch` mode to get the results from Vitest api)Does it have the ability to append extra arguments? (For example it should be `yarn test --` rather than `yarn test`)Are there tests with the same name?Can you run vitest successfully on this file? Does it need custom option to run?
-
미해결
ACF 사용시 choice를 입력 박스 안보임
워드프레스 완전정복 122강을 수강중에 ACF를 이용하던 중 새로운 필드를 작성하는데 Choice란이 보이질 않네요. 현재 무료 버전을 쓰고 있는데 혹시 유료버전을 구입해야 되는 건가요?
-
미해결[보안] Wazuh+ELK(SIEM)를 활용한 위협헌팅(Threat Hunting) 시스템 구축 및 운영실습 (기초)
로그 한글 지원 등
안녕하세요. 제로미니 강사님 덕분에 wazuh 설치 및 에이전트 적용까지 할 수 있었습니다.추가로 wazuh에서 기본으로 제공하는 document 문서 이해방법도 늘었습니다. 추가로 궁금한 점이 있어 질문드립니다.파일명 : 한글파일내용 : 한글이 포함된 웹쉘파일 일때, wazuh 이벤트로그에서 보면 한글이 깨져있메일알람도 연동시켜서 받아봤는데 같이 깨지고 있습니다. 한글 안깨지게 하는 방법은 없는지 질문드립니다. wazuh 서버 리눅스는 ko_KR.utf8로 설정되어 있습니다. 감사합니다.
-
미해결[리뉴얼] 처음하는 MongoDB(몽고DB) 와 NoSQL(빅데이터) 데이터베이스 부트캠프 [입문부터 활용까지] (업데이트)
db.movies.aggregate() 질문
MongoDB Aggregateion 기본 명령 이해하기1 수업 3분쯤에 db.movies.aggregate([{$match:{year:1995}]) 문법을 그대로 따라 쳤는데, 에러같은건 전혀 나지 않고이 화면이 나옵니다. movies콜렉션에 데이터가 아무것도 안들어있는건가요?? 뭐가 문제인건지 모르겠습니다 ㅠㅠ 이것저것 찾아보니 제가 설치한 movies 컬렉션에는 데이터가 0건인거 같은데 왜 이런건가요? 강의에서 하라는대로 그대로 따라했습니다 ㅠ 몇 번 삭제하고 다시 해봐도 똑같이 데이터가 0건인거같아요
-
해결됨Godot Engine 으로 시작하는 첫 게임 개발
레이싱 배경이미지 자동스크롤시 연속이미지 실행안됨
자식노드 '흐르는배경' 씬을 플레이실행 할 때 '현재상태에서 시작 버튼'이 두번이상 안뜨는데 괜찮은건가요?흐르는배경씬에서 parallaxLayer>모션>미러링 y축 1024로변경 했는데 이미지 크기가 안바뀌고 플레이해보니 자동스크롤되는데 이미지가 자동으로 이어지지 않아요
-
해결됨토비의 스프링 6 - 이해와 원리
멀티 스레드를 사용하는 테스트에서 트랜잭션 사용에 대해서..
멀티 스레드를 사용하는 테스트에서는 @Transactional 을 어떻게 사용해야 할까요..? 동시성 이슈를 확인하는 테스트에서는 주로 ExecutorService 를 통해 스레드 풀을 생성해서 동시에 서비스 로직을 호출하는 식으로 테스트를 진행하면서 여러 문제를 겪었는데 어떻게 해결하면 좋을지 고민을 하다가 토비님에게 질문드려봅니다 ㅠㅠ다른 스레드에서 save() 한 오브젝트를 조회할 수 없는 문제.테스트 코드에 @Transactional 를 사용하게 되면 테스트 코드가 하나의 트랜잭션으로 묶이게 되는데, 다른 스레드에서 서비스를 호출 하기 전에 테스트를 위한 데이터를 save() 하고 다른 스레드가 서비스에서 save 한 데이터를 가져오려고 할 때 아직 DB에 commit 되지 않은 상태여서 가져오지 못하는 이슈가 있더라구요. -> db isolation level이 read uncommited 보다 높기 때문에 발생하는 것 같음. @Test @DisplayName("밖에서 저장한 데이터는 스레드 내부에서 가져올 수 없음") @Transactional void outsideTransaction() throws InterruptedException { Member member = new Member(1L, "테스트유저"); memberRepository.saveAndFlush(member); entityManager.clear(); TimeUnit.SECONDS.sleep(2); // 일정 시간 대기. try (ExecutorService executorService = Executors.newFixedThreadPool(32)) { executorService.submit(() -> { long count = memberRepository.count(); Optional<Member> optionalMember = memberRepository.findById(1L); System.out.println("member count: " + count); System.out.println("optionalMember.isEmpty: " + optionalMember.isEmpty()); }); } System.out.println("================================="); long count = memberRepository.count(); Optional<Member> optionalMember = memberRepository.findById(1L); System.out.println("member count: " + count); System.out.println("optionalMember.isEmpty: " + optionalMember.isEmpty()); }member count: 0 optionalMember.isEmpty: true ================================= member count: 1 optionalMember.isEmpty: false테스트 코드에 @Transactional 을 선언해도 테스트 코드 내부에서 생성한 스레드에서는 트랜잭션이 존재하지 않는 문제. @Test @DisplayName("내부 스레드는 트랜잭션이 존재하지 않음.") @Transactional void activeTransaction() { System.out.println("쓰레드 밖에서 트랜잭션 상태: " + TransactionSynchronizationManager.isActualTransactionActive()); try (ExecutorService executorService = Executors.newFixedThreadPool(32)) { executorService.submit(() -> { System.out.println("쓰레드 안에서 트랜잭션 상태: " + TransactionSynchronizationManager.isActualTransactionActive()); }); } } 위와 같은 테스트를 실행 했을 때, 출력되는 결과는 다음과 같았습니다.쓰레드 밖에서 트랜잭션 상태: true 쓰레드 안에서 트랜잭션 상태: false멀티 스레드를 사용하는 테스트에서 @Transactional 를 사용 했을 때 이런 문제점이 있었는데요.. 여러가지 시도해보다가 해결을 하지 못해서 결국 @Transactional 을 사용하지 않고.. 테스트가 끝날 때 마다 @AfterEach 통해서 DB를 직접 제거하는 방식으로 하고 있습니다... 이렇게 테스트는 @Transactional 을 사용하지 않고 서비스 로직에는 @Transactional 사용하고 있다보니, 실제 애플리케이션을 띄워서 api 부하 테스트를 해보면 원하는 결과가 나오지 않았습니다. 테스트 코드가 테스트 코드의 역할을 수행하고 있지 않네요이런 경우에는 어떻게 해결하는 것이 좋을까요? 감사합니다.