안녕하세요. 8장에서 postgres 에 insert하는 dag를 실행하면 아래와 같은 오류로 대기하다가 실패로 끝납니다. 구글에 찾아보면 'secret_key'를 모두 동일하게 적용해주라고 하는데, 어떻게 적용해야 되는지 찾지는 못해서 이렇게 문의하게 되었습니다. 아래 소스도 git에 올라와 있는 소스 그대로 올려서 수행했기 때문에 따로 올리지는 않았습니다. docker-compose.yaml dags_python_with_postgres 위에 상태에서 최종 오류로 떨어지면 오류 메세지를 확인할 수 있었습니다 .ㅜ 사실 원인은 위에 메세지가 아닌것 같아요. ERROR - Failed to execute job 1119 for task insrt_postgres (connection to server at "172" (0.0.0.172), port 5432 failed: Connection timed out Is the server running on that host and accepting TCP/IP connections? connection to server at "28.0.3" (28.0.0.3), port 5432 failed: Connection timed out Is the server running on that host and accepting TCP/IP connections? 그리고, 저의 docker-compose.yaml 에서 postgres_custom, postgres의 설정부분입니다. 그리고, airflow의 connection 연결할 때도 포트는 5432로 했습니다. 사실 질문답변을 검색해보면 저와 비슷한 오류가 1개 있어서 확인을 해봤는데요 그 오류는 5429에서 5432로 변경해서 해결됐다고 나온 것 같고 저는 5432인데 해결이 안돼서 제가 실수한게 있는지 확인부탁드립니다. ㅜ
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
안녕하세요.. 쌤 강의를 열심히 듣고 공부하고 있는 플러터 초보입니다. 제가 완전 초보라서 그런지 에러가 뜨면 어떻게 고쳐야 할지 모르겠어요 ㅠㅠ 이미 망해서.. 손 놓고 쌤 강의 마저 듣고 이번 프로젝트는 마무리 하려고 합니다. 해결 방법을 아예 모르겠어요. 현 상황을 설명해 드릴게요. 캘린더_스케쥴러 강의 막바지에 발생했습니다. 이전 강의는 모두 잘 따라갔음 <처음 에러가 뜬 시점은 schedulebottomsheet> child: GestureDetector( onTap: () async { await showModalBottomSheet<ScheduleTable>( context: context, builder: (_) { return ScheduleBottomSheet( selectedDay: selectedDay, ); }, ); <아래의 에러 메시지도 함께 떴는데, 해결 방법을 몰라 귿대로 코딩 진행함> lib/screen/home_screen.dart:144:63: Error: Required named parameter 'id' must be provided. return ScheduleBottomSheet( ^ lib/component/schedule_bottom_sheet.dart:14:9: Context: Found this candidate, but the arguments don't match. const ScheduleBottomSheet({ ^^^^^^^^^^^^^^^^^^^ <결국 아래처럼 에러 메시지가 쌓여서 손을 놓게 됨> lib/screen/home_screen.dart:144:63: Error: Required named parameter 'id' must be provided. return ScheduleBottomSheet( ^ lib/component/schedule_bottom_sheet.dart:14:9: Context: Found this candidate, but the arguments don't match. const ScheduleBottomSheet({ ^^^^^^^^^^^^^^^^^^^ lib/screen/home_screen.dart:65:21: Error: The getter 'schedule' isn't defined for the class '_HomeScreenState'. - '_HomeScreenState' is from 'package:calendar_scheduler/screen/home_screen.dart' ('lib/screen/home_screen.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'schedule'. id: schedule.id, ^^^^^^^^ lib/component/schedule_bottom_sheet.dart:41:61: Error: The getter 'waiting' isn't defined for the class 'ConnectionState'. - 'ConnectionState' is from 'package:flutter/src/widgets/async.dart' ('../../flutter_windows_3.22.2-stable/flutter/packages/flutter/lib/src/widgets/async.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'waiting'. if (widget.id != null && snapshot.connectionState.waiting) { ^^^^^^^ lib/component/schedule_bottom_sheet.dart:43:22: Error: The argument type 'Type' can't be assigned to the parameter type 'Widget?'. - 'Type' is from 'dart:core'. - 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter_windows_3.22.2-stable/flutter/packages/flutter/lib/src/widgets/framework.dart'). child: CircularProgressIndicator, ^ lib/component/schedule_bottom_sheet.dart:220:17: Error: No named parameter with the name 'initialValue'. initialValue: startTimeInitValue, ^^^^^^^^^^^^ lib/component/custom_text_field.dart:10:9: Context: Found this candidate, but the arguments don't match. const CustomTextField({ ^^^^^^^^^^^^^^^ lib/component/schedule_bottom_sheet.dart:229:17: Error: No named parameter with the name 'initialValue'. initialValue: endTimeInitValue, ^^^^^^^^^^^^ lib/component/custom_text_field.dart:10:9: Context: Found this candidate, but the arguments don't match. const CustomTextField({ ^^^^^^^^^^^^^^^ lib/component/schedule_bottom_sheet.dart:259:9: Error: No named parameter with the name 'initialValue'. initialValue: initialValue, ^^^^^^^^^^^^ lib/component/custom_text_field.dart:10:9: Context: Found this candidate, but the arguments don't match. const CustomTextField({ ^^^^^^^^^^^^^^^ 요약 <캘린더 스케쥴러 - 기존 일정 업데이트하는 기능 만들기 강의> 초반부에서 제가 키를 잘못 눌렀는지, ScheduleBottomSheet에 밑줄이 그어졌어요. 근데 그냥 무시하고 강의를 들으면서 쭉 코딩을 해서 오류 메시지가 쌓인 것입니당 이때 느낀게, 코드가 한 번 꼬이면 뒤까지 모두 지장을 주는 구나라는 것을 알게 되었어요. 만약 초보인 제가 코드 에러를 마주했을 때 어떤식으로 해결을 해야하는 지 알려주실 수 있나요 ?? 스케쥴러에서는 구조가 복잡해 지다 보니 특정 오류나 오타를 잡아 내는 것이 좀 벅차다는 느낌을 받았습니다. 하하.. 아니면 코드가 복잡해 진다 싶으면 챕터별로 나누어서 저장하는 것도 방법인지? 궁금하네요.
24년 1회 c언어 20:37 I 가 N t가 d i가 s s가 c 8 이 1 으로 바뀌는데 공백은 어찌하여 생기는건가요 24:58 부분에 BankAcc myAcc 가 있고 initAcc에 있는 MyAcc 가 왜 위에 myAcc 이며 9981, 2200.0 은 왜 void initAcc 에 acc에 x 값에 넣고 y 값에 넣는지 모르겠습니다 why? 일까요 2023 3회 부분 complete(i) 1~100 까지인건 알겠는데 왜 위로 올라가서 complete(int n) 은 0 부터 시작되나요? 2023 2회 20:34 정적 동적 부분 자세한 설명이 필요합니다 강의에서 제가 놓친걸까요 해당 부분 알려주시면 학습하겠습니다.
선생님과 다른느낌으로 코드를 작성한것 같은데, 검사기는 오류없이 잘 돌아갔어요 이렇게 작성하면 틀린걸까요?? import sys sys.stdin=open("input.txt","rt") input=sys.stdin.readline n,m=map(int,input().split()) a=[[0]*(n+1) for _ in range(n+1)] for i in range(m): x,y=map(int,input().split()) a[x][y]=1 s=0 b=[0]*(n+1) b[1]=1 def DFS(L): global s if L==n: s=s+1 return for j in range(1,n+1): if a[L][j]==1 and b[j]==0: b[j]=1 DFS(j) b[j]=0 DFS(1) print(s)
업캐스팅 문제 예시 8. 자식 클래스에만 있는메서드를 호출하면? 관련입니다. A b = new B(1); b.paint(); b.draw(); b.specialDraw(); ← 여기가 오류가 난다는 건 이해했습니다. 또한, 이 문제 정답 관련해서 정답:에러 error: cannot find symbol 라고 적혀있는 것은 확인했습니다. 그런데, b.specialDraw(); 부분 이전까지는 정상적으로 작동을 하니까 생성자 of AA10 생성자 BB1 CD 까지는 출력이 되어야 하는게 아닌가 궁금합니다. 아니면 b.specialDraw(); 부분 오류 때문에 error: cannot find symbol로만 출력되는건지 궁금합니다.
1 객체지향 설계원칙 이 6페이지, 7페이지에 들어있는데(내용은 조금 상이) 각각의 목차에서 필요해서 넣으신것인지 중복되어 들어간 것인지 문의드립니다 2 그리고 소프트웨어 아키텍처의 설계과정 두 번 들어갔어요 이것도 이유가 있으신가요? 3 목차 4번 서버 프로그램 구현에 결합도와 응집도 따로 들어가있던데요 이건 소제목이 없어서요 앞 내용이랑 이어지지 않는데.. 이건 여기 있는 게 맞는건지.. 소제목이 따로 없는 지 문의 드려요
안녕하세요! 오토인코더 구현 중 질문이 있어서 글을 남기게 되었습니다. class AutoEncoder(nn.Module): def __init__(self): super().__init__() k = 16 self.encoder = nn.Sequential( nn.Conv2d(1, k, 3, stride=2), nn.ReLU(), nn.Conv2d(k, 2*k, 3, stride=2), nn.ReLU(), nn.Conv2d(2*k, 4*k, 3, stride=1), nn.ReLU(), nn.Flatten(), nn.Linear(1024, 10), nn.ReLU() ) self.decoder = nn.Sequential( nn.Linear(10, 1024), nn.ReLU(), nn.Unflatten(1, (4*k, 4, 4)), nn.ConvTranspose2d(4*k, 2*k, 3, stride=1), nn.ReLU(), nn.ConvTranspose2d(2*k, k, 3, stride=2), nn.ReLU(), nn.ConvTranspose2d(k, 1, 3, stride=2, output_padding=1) ) 여기에서 nn.Linear(1024, 10), nn.ConvTranspose2d(k, 1, 3, stride=2, output_padding=1)에 질문이 있습니다. 채널 수를 직접 맞춰주는 것이 아니라 반환 받아서 그 값을 nn.Linear(이 부분, 10)에 넣어주고 싶은데 gpt 한테 물어보니까 그러려면 이렇게 직접 구해서 add_module을 해줘야 한다던데... 정말 이런 방법 뿐인지ㅜㅜ 매번 채널수를 직접 구해야 하는 것인지 궁금합니다! def __init__(self, input_shape=(1, 28, 28)): super().__init__() k = 16 self.encoder = nn.Sequential( nn.Conv2d(1, k, 3, stride=2), nn.ReLU(), nn.Conv2d(k, 2*k, 3, stride=2), nn.ReLU(), nn.Conv2d(2*k, 4*k, 3, stride=1), nn.ReLU(), nn.Flatten(), ) self.latent_dim = self.get_encoder_dim() self.encoder.add_module('linear', nn.Linear(self.latent_dim, 10)) self.encoder.add_module('relu', nn.ReLU()) def get_encoder_dim(self): x = torch.randn(1, self.input_shape) x = self.encoder(x) return x.view(1, -1).size(1) nn.ConvTranspose2d(k, 1, 3, stride=2, output_padding=1) 여기에서도 output_padding=1이 필요한지 알기 위해서는 직접 계산을 다 해봤어야 하는 것인데.. 이것도 위의 경우와 마찬가지로 직접 구하는 방법 뿐인지 알고 싶습니다! 감사합니다!
스머프 (Smurf Attack): 출발지 주소를 공격 대상의 IP로 설정하여 브로드캐스팅을 통해 네트워크를 마비시키는 공격입니다. 이로 인해 피해자는 네트워크 과부하로 인해 정상적인 서비스를 제공할 수 없게 됩니다. 랜드 어택 (Land Attack): 출발지와 목적지의 IP를 동일하게 설정하여 패킷을 보내 가용성을 침해하는 공격입니다. 이로 인해 시스템은 스스로에게 패킷을 보내며 과부하에 빠집니다. 둘 다 출발지 = 목적지 ip 설정을 하는 것인데, 차이점은 브로드 캐스팅과 패킷 전송이 맞나요?
파일 'c:\Program Files\Test.Pyton\ test.py '(NoPermissions (FileSystemError): Error: EPERM: operation not permitted, open 'c:\Program Files\Test.Pyton\ test.py ')을(를) 쓸 수 없음 이렇게 나오는데 재부팅 해도 똑같네요
슬라이드가 아스키코드라고 되어있어서 긴가민가하다가 질문남깁니다!*p=null p=a ; 여기부분이 포인터 변수 p가 null값이고p는 a값이라 서로 다른 변수라 봐야하나요? 저는 printf("%s\n" p) 이 부분을 보고나서p는 포인터변수로 선언하고 a를 넣어줬는데 그럼 배열 a의 맨 처음 인덱스가 들어와서 A만 출력되는 거 아닌가? 어 근데 %s면 문자열인데..하다가 슬라이드명이 ascii코드라서 거기에 사로잡혀서 A는 65니까 문자열로 못쓸거라 판단하고 여기서부턴 포인터 p랑 p랑 아예 달라서 그냥 Art를 문자열로 전부 출력하라는 말이구나 하고 다시 풀긴했거든요. 근데 답은 맞았어도 과정이 이게 맞나 싶어서요.기출에 포인터랑 아스키코드랑 막 섞어서 출제됐던 적이 있었던 기억이 나서 문제풀 때 이런 부분들이 자꾸 헷갈리네요 ㅠ
질문은 동영상 강의에서 오른쪽에 커뮤니티 버튼을 통해 해주세요. 그렇게 해주셔야 어떤 강좌에서 질문하셨는지 알 수 있습니다. 영상에서 몇 분 몇 초 대를 알려주셔야 한 번에 확인이 가능합니다. 이미 다른 누군가가 질문을 한 이력이 있을 수 있습니다. 질문 게시판을 한 번 확인 부탁드립니다. 질문을 올릴 때 이 글은 모두 지우고 내용을 입력해주세요.