묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
src/test 코드
test코드를 실행하다 실수로 src/test폴더를 삭제 했습니다 src/test폴더를 만들어 실행하니실행파일이 생성이 될질 않네요 ㅠㅠ
-
미해결React & Express 를 이용한 웹 어플리케이션 개발하기
babel-preset-stage-0 패키지를 인스톨하여 presets에 stage-0 을 넣자 에러가 발생합니다.
stage-0은 6.5.0 버전으로 맞춰 설치하였고, 위 오류와 컴파일 실패가 발생합니다. Immutability Helper 로 진행한다고 하셨으니 이 플러그인을 삭제 후 해당 과정은 생략하는게 좋을까요?
-
미해결스프링 핵심 원리 - 기본편
OCP(Service와 ServiceImpl) 관련하여 질문드립니다.
안녕하세요. OCP 관련하여 질문드립니다. 개방-폐쇄 원칙(OCP, Open-Closed Principle) 을 지키기 위해 Service를 구현할때 인터페이스인 Service와 구현체인 ServiceImpl 로 보통 구현하는데, 이런 개발방식에 대해 의견이 좀 나뉘는 것 같아서요. 1. OCP 원칙을 준수해야하기때문에 사용해야한다. 2. 기존에 사용하던 방법이 관례처럼 남아있는 것이다. 굳이 그렇게 구현해야하는지 필요성을 못느끼겠다. 이렇게 두가지로 나뉘는데 구글에서 찾아보면 2번의견이 좀더 많아서 개인프로젝트를 진행중에 의문점이 들어서 질문드립니다~!
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
입력했을 시 오류 메세지가 나오지 않아 찾기 어렵습니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요, 채점 서비스가 지원 되지 않은 문제라서 확실히 틀린 부분을 찾기 어려운 것 같습니다. 무엇보다 입력을 했는데 아무런 응답이 없어서 고민 후 글 올리게 되었습니다 우선 제 코드는 선생님 코드와 다른 점들이 있습니다. 참고는 했지만 이해가 안 가는 부분은 넣지 않았습니다. 1. 오름차순 정렬 2. Main class 의 dis[v] = 0; 혹시 오름차순을 한 이유와 바로 위해 pQ.offer(new Edge(v, 0));으로 v의 값을 0으로 초기화 해주었는데(제가 이해한게 틀렸을 가능성이 높습니다만,,ㅎㅎ) 또 dis[v] = 0;을 해준 이유가 궁금합니다. 그리고 어느 부분이 틀렸는지 알고싶습니다. 현재는 저렇게 코드 작성후 입력을 하면 아무런 결과/오류메세지가 나오지 않는 상황입니다.
-
미해결mongoDB 기초부터 실무까지(feat. Node.js)
변수를 참조해서 쓰실때 {}를 왜 하는걸까요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 중괄호는 꼭 써야 하는걸까요?
-
미해결[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지
데이터 타입에 관련된 질문입니다.
안녕하세요 호형님의 강의를 기본베이스로 듣고, 인터넷에서 이것저것 보면서 1D CNN을 제가 가진 데이터셋 분류에 적용하고있는 학생입니다. CustomDataSet을 만들고 DataLoader구현 후, 훈련과 검증, 테스트를 거치는 코드를 작성하였는데요. 훈련과 검증단계에서는 문제없이 진행되나 다른 섹션을 만들어 테스트코드를 돌리는중 type에러가 발생하였습니다. 왜 같은 dataset과 dataloader인데 test셋에서만 이런 문제가 나타나는건지 알고싶습니다. # 강의질문이 아니라 문제가 된다면 지우겠습니다ㅠㅠ
-
미해결Cinema 4D의 기초
맥북 재질 create 창 질문
맥북 사용자인데요 재질을 만들때 하단을 더블클릭 하면 재질이 만들어진다고 하시는데 하단 그 빈부분이 아예없는데 어디에서 생기게 할 수 있나요? 상단 create-material-create new material 로 해서 재질을 만들수는 있는데 그다음에 복사나 재질 바꾸기 같은게 적용이 안되네요ㅠㅠ 도와주세요
-
해결됨프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
zfill, l or r just, 그리고 fomatter를 사용하지 않고 숫자 str 앞에 0을 추가할 수 있는 방법이 있나요?
(아래 코드에서 s는 year = check_number1(year) 입니다. ) f"{a:02}"를 사용했을 때, 제 생년인 2001에서 1이라는 값을 얻은 다음 0이 앞에 들어가는 것이 아닌 10으로 출력이 됩니다. 이것을 어떻게 수정해야 01로 출력되고 이것 또한 사용하지 않고 01이라는 값을 출력할 수 있는 방법이 있나요? def check_number1(s): try: s.isnumeric() == 1 a = str(int(s) % 100) return a.zfill(2) except: return '00'
-
미해결[리뉴얼] 처음하는 파이썬 머신러닝 부트캠프 (쉽게! 실제 캐글 문제 풀며 정리하기) [데이터분석/과학 Part2]
Bayesian Optimization XGBoost 적용 실행시 오류
'Bayesian Optimization XGBoost 적용' 코드 실행시 아래처럼 iteration이 진행되다가 10번 이후에 에러가 납니다. | iter | target | colsam... | gamma | learni... | max_depth | min_ch... | n_esti... | subsample | ------------------------------------------------------------------------------------------------------------- | 1 | 0.817 | 0.7085 | 3.602 | 0.01006 | 5.116 | 1.468 | 183.1 | 0.5931 | | 2 | 0.8283 | 0.6728 | 1.984 | 0.274 | 5.934 | 6.852 | 284.0 | 0.9391 | | 3 | 0.8272 | 0.5137 | 3.352 | 0.2145 | 6.911 | 1.404 | 278.3 | 0.9004 | | 4 | 0.8081 | 0.9841 | 1.567 | 0.3492 | 9.135 | 8.946 | 176.5 | 0.5195 | | 5 | 0.8114 | 0.5849 | 4.391 | 0.05819 | 5.948 | 9.579 | 579.8 | 0.8459 | | 6 | 0.8249 | 0.6578 | 3.433 | 0.419 | 3.128 | 7.501 | 990.0 | 0.8741 | | 7 | 0.8081 | 0.6402 | 3.946 | 0.06058 | 6.135 | 9.086 | 364.3 | 0.6439 | | 8 | 0.816 | 0.565 | 0.09683 | 0.3426 | 4.481 | 2.655 | 542.4 | 0.5267 | | 9 | 0.8306 | 0.7871 | 0.7336 | 0.2988 | 7.898 | 1.023 | 472.7 | 0.8472 | | 10 | 0.8171 | 0.7071 | 0.2498 | 0.2726 | 7.647 | 5.149 | 950.1 | 0.7933 | --------------------------------------------------------------------------- StopIteration Traceback (most recent call last) File /usr/local/lib/python3.9/site-packages/bayes_opt/bayesian_optimization.py:179, in BayesianOptimization.maximize(self, init_points, n_iter, acq, kappa, kappa_decay, kappa_decay_delay, xi, **gp_params) 178 try: --> 179 x_probe = next(self._queue) 180 except StopIteration: File /usr/local/lib/python3.9/site-packages/bayes_opt/bayesian_optimization.py:25, in Queue.__next__(self) 24 if self.empty: ---> 25 raise StopIteration("Queue is empty, no more objects to retrieve.") 26 obj = self._queue[0] StopIteration: Queue is empty, no more objects to retrieve. During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) Input In [22], in <module> 36 optimizer = BayesianOptimization( f=xgboost_hyper_param, pbounds=pbounds, random_state=1) 37 # init_points: 초기 랜덤 포인트 갯수 38 # acq='ei': Expected Improvement 39 # xi=0.01: exploration(불확실성이 가장 높은 점 근처에 최적값이 존재할 것이라는 가정으로 계산된 값) 강도 (보통 0.01) ---> 40 optimizer.maximize(init_points=10, n_iter=100, acq='ei', xi=0.01) File /usr/local/lib/python3.9/site-packages/bayes_opt/bayesian_optimization.py:182, in BayesianOptimization.maximize(self, init_points, n_iter, acq, kappa, kappa_decay, kappa_decay_delay, xi, **gp_params) 180 except StopIteration: 181 util.update_params() --> 182 x_probe = self.suggest(util) 183 iteration += 1 185 self.probe(x_probe, lazy=False) File /usr/local/lib/python3.9/site-packages/bayes_opt/bayesian_optimization.py:131, in BayesianOptimization.suggest(self, utility_function) 128 self._gp.fit(self._space.params, self._space.target) 130 # Finding argmax of the acquisition function. --> 131 suggestion = acq_max( 132 ac=utility_function.utility, 133 gp=self._gp, 134 y_max=self._space.target.max(), 135 bounds=self._space.bounds, 136 random_state=self._random_state 137 ) 139 return self._space.array_to_params(suggestion) File /usr/local/lib/python3.9/site-packages/bayes_opt/util.py:65, in acq_max(ac, gp, y_max, bounds, random_state, n_warmup, n_iter) 62 continue 64 # Store it if better than previous minimum(maximum). ---> 65 if max_acq is None or -res.fun[0] >= max_acq: 66 x_max = res.x 67 max_acq = -res.fun[0] TypeError: 'float' object is not subscriptable
-
미해결초보를 위한 쿠버네티스 안내서
mac + docker desktop 에서 ingress 접근 실패
안녕하세요. 실습을 따라하고 있는데 docker desktop 환경에선 ingress 실습이 불가능한가요 ? mac(m1) + docker desktop (kubernetes v1.22.5)를 사용하고 있는데 아래와 같이 127.0.0.1로 바꿔서 접근하려고해도 안되고 있습니다. nginx controller는 설치해서 localhost로 접근하면 nginx 404 페이지가 뜨긴하는데 v1.echo.127.0.0.1.sslip.io 에서 연결이 안되는 것 같습니다. 다른 질문을 보니까 docker를 사용해서 그런거일수도 있을 것 같은데 ingress 테스트 하려면 무조건 vm 으로 돌려야하나요 ? service/ingress-nginx-controller의 NodePort는 31989 입니다. v1.echo.127.0.0.1.sslip.io v1.echo.127.0.0.1.sslip.io:31989 모두 안되고 있습니다. LoadBalancer Ingress: localhost Port: http 80/TCP TargetPort: http/TCP NodePort: http 31989/TCP apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: echo-v1 spec: rules: - host: v1.echo.127.0.0.1.sslip.io http: paths: - path: / pathType: Prefix backend: service: name: echo-v1 port: number: 3000
-
미해결[리뉴얼] 처음하는 파이썬 머신러닝 부트캠프 (쉽게! 실제 캐글 문제 풀며 정리하기) [데이터분석/과학 Part2]
코드 실행시 에러가 나면서 결과가 나오지 않습니다.
"6. Logistic Regression 주요 하이퍼 파라미터"의 코드를 실행시키면 아래와 같은 에러 메시지가 무수히 나오면서 결과가 나오지 않습니다. /usr/local/lib/python3.9/site-packages/sklearn/linear_model/_logistic.py:814: ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT. Increase the number of iterations (max_iter) or scale the data as shown in: https://scikit-learn.org/stable/modules/preprocessing.html Please also refer to the documentation for alternative solver options: https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression n_iter_i = _check_optimize_result( /usr/local/lib/python3.9/site-packages/sklearn/linear_model/_logistic.py:814: ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
-
미해결기초부터 따라하는 디지털포렌식
문제 다운로드에 관해 문의드립니다.
다음 강의를 따라가기 위해서 volatility wiki에서 malware-cridex 문제를 다운 받으려 했는데 다운로드 되지 않아서 문의드립니다. 혹시 문제를 공유받을 수 있을까요?
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
Uncaught Error: [vue-router] route config "component" for path: /news cannot be a string id. Use an actual component instead.
Uncaught Error: [vue-router] route config "component" for path: /news cannot be a string id. Use an actual component instead. 이러한 애러가 뜨는데 구글 검색해도 못찾았습니다 ㅜㅜ 해결 방법이 있을까요 ㅜㅜ
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
react-query 사용과 관련하여 질문드립니다 !
안녕하세요 항상 답변 감사드립니다. 현재 redux-saga를 react-query로 바꿔보려고 시도중에 있습니다. git에 올려주신 react-query 브런치 참고하여 login 부분과 loadMyinfo 부분을 바꾸고 있습니다. 이 때 back단에서 user 정보는 response로 넘어오는데 useQuery를 사용하여 이 데이터를 me 에 담아서 userProfile로 보여주려고 하는데 이 부분에서 me가 자꾸 undefined 가 나와서 여기 질문 드립니다.. useMutation을 사용하여 'user' 키에 loginAPI를 호출하여 얻어온 user 정보를 넣으면 useQuery에 'user' 키로 불러서 사용할 수 없어서 이런 에러가 나오는 건가요?? loginAPI를 통해 user 정보를 response 받는데 useQuery를 통해 loadMyinfoAPI를 호출하여 me에 넣으면 자꾸 undefined가 나오네요 ㅠㅠ <LoginForm> < apis / user.js> 위가 각각 LoginForm.js와 apis / user.js 의 코드들이고 이후 AppLayout.js와 UserProfile.js에서 useQuery를 통해 'user', loadMyInfoAPI를 호출하여 me에 담아서 사용하려고 하는데 안됩니다.. /user를 호출하면 백단에서 response는 넘어오는 것으로 확인됩니다.
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
스택프레임 예제에서 주소 관련 질문
안녕하세요 루키스강사님 스택프레임은 함수호출이 끝나면 사라지니까 TestPointer 함수에서 a에 대한 주소값을 참조로 넘겨주면 나중에 다른 함수(TestWrong)가 호출됐을 때 영역이 겹쳐 이상한 메모리를 건들 수 있으므로 절대로 넘겨줘서는 안된다는 걸 잘 알겠습니다. int* TestPointer() { int a=1; return &a; } void TestWrong(int* ptr) { int a[100] = { }; a[99] = 0xAAAAAAAA; *ptr = 0x12341234; } 그런데 이 예제에서 *ptr을 매개변수로 받았는데 ptr이 왜 a[100]을 가리키고 있었는지 궁금합니다. 주소를 디버깅해보니 이런식으로 나오더라고요 a 주소 : 0x0113F484 a[99] 주소 : 0x0113F610 ptr 주소 : 0x0113F614 a와 a[99]의 주소는 납득이 가는데 ptr의 주소는 왜 a[99]에서 한칸 더 가있는게 되는 건가요? 우연이라기엔 다 비슷하게 나오는거 같아서 뭔가 규칙이 있나 싶어 여쭤봅니다
-
미해결
What reasons could delay my IRS 310 Treas tax refund?
The IRS Treas 310 is an average ACH direct deposit refund or stimulus payment from a filed tax return, where there have been no offsets to the amount refund. If you got payment by direct deposit into your account but are not sure what it is for? No problem here's some information to help you figure that out. A refund from a filed tax refund, including an amended tax return or an IRS tax adjustment to your tax account, will show as being from the IRS. And you are not alone. The IRS in the United States has begun to distribute additional refund checks to taxpayers who paid too much in employment compensation tax last year. However, many people did not know why irs treas 310 tax ref randomly deposited. So let's begin and understand it. What are the IRS 310 Treas tax refund checks for? Due to coronavirus's economic impact, the IRS in the United States sent out COVID-19 relief checks to more than 25 million Americans in the fourth round of payments, which brought the total payments from the last stimulus package to more than 156 million payments, worth 372 billion dollars. And most social security payments were primarily distributed by direct deposit and paper checks. There is terms worth for those stimulus check payments landing in a bank account- irs Treas 310 tax refund. So the 310 is a code that identifies transactions as a refund from a filed tax return in the form of direct deposit. How do I get my IRS 310 Treas tax refund? You may see this transaction on your bank statement due to filed tax return. Until the end of 2021, the IRS disbursed the scheduled and missed payments for stimulus checks and advance tax credits. The America Rescue Plan provided economic impact payment of up to $1400 for eligible individuals or $28,00 for married couples filing jointly, plus $14,00 for each qualifying dependent, including adult dependents. However, if you did not get it, the irs 310 tax refund is pending. There could be reasons behind it; I will explain them later in this blog. To get the irs treasury 310 tax refund you can get it through direct deposit if you have your banking info; otherwise, the refund will be mailed as a paper check to the address on record. You can also use online services like Cash App to get your tax refund a few days sooner. If you are eligible to receive the stimulus payment or child tax credit via direct deposit, it will automatically be deposited into the same account used last year. What reasons could delay my IRS 310 Treas tax refund? If you overpaid your taxes in 2021, you would receive that money back. However, if the irs 310 Tax refund pending- here are some of the reasons behind it- There are some errors in your tax return You have not properly filed the Cash App taxes- it's incomplete The refund is suspect of identity theft or fraud May your IRS treas 310 tax refund is already deposited Your direct deposit is not working- review the details or get the tax refund via other methods such as paper checks.
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
select문과 from사이의 case문
select랑 from사이에 case문을 작성하였잖아요 그런데 그 사이에는 출력할 컬럼명이 들어와야하잖아요그럼 Member m에 대해 새로운 컬럼이 생기는건가요..?이해가 잘안가네요..그리고 학생요금, 경로요금, 일반요금을 아우르는 저 컬럼의 이름도 명시가 안되어있지 않나요..?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
import 단축키 관련
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용] 1:40초 경에 class import하실 때 사용한 Mac 단축키 알 수 있을까요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
네비게이션에 관한 질문 드립니다.
선생님이 강의하실때 사용한 에셋과는 다른 것을 사용하던 도중에 네비게이션 맵 베이킹을 사용했는데, 대부분은 원하던 대로 되지만 아래 스냅샷 같이 끊어진 다리같은 부분은 일부분이 못가는 구역으로 되어서 캐릭터가 이동 하지 못했습니다 베이킹 설정을 어떻게 건드려도 해결이 안됐습니다. 이런 부분을 매끄럽게 하려면 어떻게 해야할까요?
-
미해결기출로 대비하는 개발자 전공면접 [CS 완전정복]
Semaphore 질문드립니다
Semaphore 에서는 변수 S개 만큼의 프로세스가 동시에 임계영역에 들어갈 수 있다고 하셨는데, 만약 S=3개의 프로세스가 동시에 임계영역에 동시에 들어가서 counter++ 를 한다면원했던 counter = 3이 안되고 counter=1 이 되는 동기화 문제가 발생할 수 있는게 맞나요?? Semaphore 는 동시에 여러 프로세스가 임계영역에 들어가게 해주는데 동기화가 어떤 방식으로 해결되는지 이해가 안갑니다 ㅠㅠ