안녕하세요! 강의를 대략 3번 완강하면서 직접 배포를 해보았는데요 장고 강의 최종배포 stack에는 superuser가 포함되지 않고 배포가 되는데 (superuser 를 포함하기엔 이름 비밀번호가 들어가니 그걸 설정해주기 번거러워서??) 만약 stack포함하지 않고 배포한 후 superuser를 만들려면 어떻해야할까요? 컨테이너에 들어가서 만들려고하니깐 secretkey가 걸려서 만들어지지않는다네요 docker secret에 따로 관리해서 불러올수 없는것일텐데 어떻해야 superuser를만들수있을까요? 1. docker-compose.yml 에포함해서 superuser를 생성해서 배포하는법?? (물론 잘모르지만 이 방법은 아예 안될수도 있다는 생각도 드네요 ) 2. docker-compose.yml에 포함하지 않고 배포 후 컨테이너에서 직접 superuser만드는법? (결국 django secret key를 불러와서 생성하는법 일까요??) 사실 두가지 방법 다 알고 싶은데 어떻해야할까용!!??
강사님 소스랑 똑같이 따라쳤는데 제목과 같은 에러가 납니다. TypeError: Cannot read property 'passport' of undefined at SessionStrategy.authenticate (D:\z3-develope\slack-socket\backend\node_modules\passport\lib\strategies\session.js:51:18) at attempt (D:\z3-develope\slack-socket\backend\node_modules\passport\lib\middleware\authenticate.js:360:16) at authenticate (D:\z3-develope\slack-socket\backend\node_modules\passport\lib\middleware\authenticate.js:361:7) at Layer.handle [as handle_request] (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:317:13) at D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:335:12) at next (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:275:10) at initialize (D:\z3-develope\slack-socket\backend\node_modules\passport\lib\middleware\initialize.js:66:5) at Layer.handle [as handle_request] (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\layer.js:95:5) 패스포트를 못읽어오는거 같은데 네스트 버그인가요? 저와같은 에러 나오시는분 계신가요? 이게 처음부터 이 에러가 아니라 아마, 저 에러로 인해서 UnhandledPromiseRejectionWarning: TypeError: exception.getStatus is not a function at HttpExceptionFilter.catch (D:\z3-develope\slack-socket\backend\dist\main.js:2211:34) at ExceptionsHandler.invokeCustomFilters (D:\z3-develope\slack-socket\backend\node_modules\@nestjs\core\exceptions\exceptions-handler.js:33:26) at ExceptionsHandler.next (D:\z3-develope\slack-socket\backend\node_modules\@nestjs\core\exceptions\exceptions-handler.js:13:18) at D:\z3-develope\slack-socket\backend\node_modules\@nestjs\core\router\router-proxy.js:24:35 at Layer.handle_error (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\layer.js:71:5) at trim_prefix (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:315:13) at D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:335:12) at next (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\index.js:275:10) at Layer.handle_error (D:\z3-develope\slack-socket\backend\node_modules\express\lib\router\layer.js:67:12) 이 에러가 나는데 에러이셉션에서 에러를 가로채올때 이 에러같은 경우에는 스테이스를 가져올 수 없기때문에 바로 위 에러가 먼저나오고, 이셉션에서 에러 찍으면 제일 위에 있는 에러가 나옵니다. 내일 다시 해볼생각이긴 하지만 혹시 먼저 경험해보신분 계시면 해결방법 공유 부탁드립니다.
import random import os # 게임 초기화 os.system("clear") print("*"*60) print("숫자야구게임을 시작하겠습니다.") print("*"*60) # 사용자 입력 def user_input(cast=str): while True: user_num=cast(input("0~9까지 숫자를 겹치지 않게 3개를 입력해주세요. >> ")) if user_num.isnumeric() and len(user_num)==3: return user_num else: continue # 숫자생성 def com_input(): com_num="" com_n=str(random.randint(0,9)) for i in range(3): while com_n in com_num: com_n=str(random.randint(0,9)) com_num+=com_n return com_num # 게임시작 def game(*args): count_strike=0 count_ball=0 for i in range(3): for j in range(3): if args[0][i] == args[1][j] and i==j: count_strike+=1 elif args[0][i] == args[1][j] and i!=j: count_ball+=1 return count_strike, count_ball # 게임결과 def result(*args): if args[0]==0 and args[1]==0: print("3아웃입니다.") else: hint="" if args[0]>0: hint+="{} 스트라이크".format(args[0]) if args[1]>0: hint+=" {} 볼".format(args[1]) print(hint.strip()) # 종합 go=[0] com_num=com_input() while go[0]<3: user_num=user_input() go=game(user_num,com_num) result(go[0],go[1]) print("3 스트라이크!! 게임종료") 홀로 4번쯤 연습하다가 마지막 한번은 클래스로 구현해봤는데 깔끔하게 표현되지가 않습니다 ㅠ 더 깔끔하게 코딩가능하다면 조언 부탁드리겠습니다..
안녕하세요. 영상을 보다가 '스프링 시큐리티 OAuth2 인증 서버 설정' 해당 강의만 유투브로 대체되어 있어서 일시적인 인프런 오류인지 아니면 영상이 삭제되어 어쩔 수 없이 교체된 것인지 궁금합니다. 강의 내용에는 지장이 없지만 갑자기 유투브로 넘어가야 하니 조금 불편한감이 들어 궁금해서 문의 드립니다.
안녕하세요 강사님, User service - 프로젝트 생성 강좌 중,,, 이클립스에서 User service 프로젝트를 생성하고 컴파일 후, target 폴더가 생성되는데 저는 target 폴더의 하위폴더가 없는데 향후 문제가 있을까요?... 왜 target 폴더의 하위폴더가 생성이 안될까요?
LockFreeQueue class 제작 중 compare_exchange 를 자주 사용 하였는데요, 밑의 코드는 그 중 하나입니다. ``` void push(const T& value) { Node* node = new Node{ value }; node->next = _head; // -> 이부분 while (_head.compare_exchange_weak(node->next, node) == false) ;;; } ``` node->next = _head; 부분이 꼭 필요한 코드인가요? 1. 첫 compare_exchange 가 실패하면 어차피 대입 될 부분이고, 성공했다면 대입 할 필요가 없던 것 아닌가요? 또한 memcmp 와 같은 방식으로 비교한다고 c++reference 에 적혀있던데, nullptr 과 nullptr 을 비교하면 항상 같다로 처리되나요? 2. nullptr이 물리적으로 항상 0x00000000 인가요? 3. 표준에는 padding bit 와 trap bit 혹은 nan에 의해 strong 과 weak의 차이가 발생 한다고 설명하는데, padding bit 와 trap bit가 무엇인가요?
사실, 알고리즘 문제 풀다보면, "for 문", "if절"로 break와 continue를 써야할 상황을 다 커버하기 때문에, 요즘 들어서는 "이런 거를 언제 써야 하나??" 라는 생각이 자꾸 듭니다. 물론, 이런 문법이 있다는 것 정도는 알아야겠지만, 정말로 break와 continue만을 써야하는 상황이 있나요?? 아니면, 그냥 지금처럼 for 문, if절로 다 커버가 가능하니, 그냥 이런 게 있다는 것 정도만 알고 넘어가는 게 맞을까요??
안녕하세요! 강의 잘 듣고 있습니다 :) 벌써 따라가다보니 30강까지 수강하고 있는데, 사진과 같이 클라이언트 login 페이지에서 로그인이 되지 않고 에러가 떠서 질문 드립니다. npm run dev 한 뒤에, 포스트맨으로 회원가입, 로그인 이상없이 잘 되는데 클라이언트 페이지에서 로그인하려고 하면 콘솔창에서 아래와 같은 에러가 뜨네요. message (pin) : "Request failed with status code 404" name (pin) : "Error" stack (pin) : "Error: Request failed with status code 404 at createError (http://localhost:3000/static/js/vendors~main.chunk.js:1206:15) at settle (http://localhost:3000/static/js/vendors~main.chunk.js:1440:12) at XMLHttpRequest.onloadend (http://localhost:3000/static/js/vendors~main.chunk.js:609:7)" 404 에러가 뜨고, 포스트맨에서는 정상 로그인이 되는 것으로 보아 클라이언트에서 서버에 데이터(이메일, 비밀번호) 를 보내주지 못하고 있는 것으로 추측됩니다. 답변 주시면 제가 완강하는데 큰 도움 될 것 같아요 :) 좋은 강의 감사드립니다! 깃헙 주소: https://github.com/overult01/boiler-plate.git