제가 이해한 바로는 Java코드 내에 직접 html을 써서 view를 제공해줬는데 이게 아무래도 하나하나 치는게 불편하다보니 JSP가 등장했고 이를 통해 java에서 html을 쓰는게 아니라 html코드 내에 중요한 부분에만(for를 이용한 동적 활용이나 repository 데이터 조회 등 ?) java코드를 씀으로써 좀 더 코드를 간결하게 만들수 있다는 것 같은데 맞나요 ?? jsp와 타임리프는 둘다 뷰를 그리는 도구이다... ???
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
bool debugCheckHasMediaQuery(BuildContext context) { assert(() { if (context.widget is! MediaQuery && context.getElementForInheritedWidgetOfExactType<MediaQuery>() == null) { throw FlutterError.fromParts(<DiagnosticsNode>[ ErrorSummary('No MediaQuery widget ancestor found.'), ErrorDescription('${context.widget.runtimeType} widgets require a MediaQuery widget ancestor.'), context.describeWidget('The specific widget that could not find a MediaQuery ancestor was'), context.describeOwnershipChain('The ownership chain for the affected widget is'), ErrorHint( 'No MediaQuery ancestor could be found starting from the context ' 'that was passed to MediaQuery.of(). This can happen because you ' 'have not added a WidgetsApp, CupertinoApp, or MaterialApp widget ' '(those widgets introduce a MediaQuery), or it can happen if the ' 'context you use comes from a widget above those widgets.', ), ]); } githubs 파일만 가져와서 실행했는데 error가 나오네요..
[Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems. 강사님, 해당 에러 확인되셔서 수정되었을까요? 강의 처음부터 수강하려고 하는데 염려되는 부분이라 이렇게 문의글 남기게 되었습니다. Ventura, Xcode 14에서도 강의 원할하게 수강할 수 있게 가이드 부탁드립니다.
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
모델에서 scheduleWithColor 를 생성할때 drift_database.g.dart 가 아닌 drift_database.dart 에서 Schedule 을 import 하는 것은 어떤 원리인가요? Schedule 클래스는 drift_database.g.dart 에 있는데 drift_database.dart 가 import 되는 원리를 알고 싶습니다.
클라우드스터딩에도 올렷는데 최근질문이 20년도라 혹시나 해서 이곳에 올려봅니다 예제를 안보고 먼저 풀어보고 강의를 봤는데 public static int cube(int num) 이 부분이 있습니다 처음에 이곳에 (int x) int n = 3; result=n*n*n; 이렇게 한번 써보았고 선생님이 푼 모습을 보고 int n = 3 이건 지우고 (int a) result=a*a*a; 이렇게 햇는데도 정답이라고 나왓습니다 왜 (int num)을 쓰셧고 num 자리에 main부분대로 (int x) 가 아닌 다른 문자를 넣어도 잘 작동하는건가요??
안녕하세요 강의 완강 후 따로 프로젝트를 만들어 보던 중 궁금한 게 생겨서 질문 드립니다. PostMapping으로 등록할 때 CreateRequest라는 별도의 클래스를 만들어 주어서 파라미터로 받았는데 이 CreateRequest안에 List를 받아야 할 경우가 있다면 어떻게 해줘야 하는지 잘 모르겠습니다. Product 클래스 입니다. Module 클래스 입니다. 하나의 Product에 여러 개의 Module이 들어갈 수 있기 때문에 ProductModule 클래스를 만들어줬습니다. 이러한 경우에서 Product를 등록할 때 아래와 같이 넘겨주고 싶으면 CreateProductRequest 에서 List를 어떤식으로 받아줘야 하나요? 아래와 같이 해봤는데 잘 안되는 것 같아서요...
[리뉴얼] 처음하는 파이썬 데이터 분석 (쉽게! 전처리, pandas, 시각화 전과정 익히기) [데이터분석/과학 Part1]
- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다) - 이외의 문의등은 평생강의이므로 양해를 부탁드립니다 - 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다 - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 확진자를 사망자로 바꾸는 작업을 진행중인데 강의 8:44초 기준 최종코드에서 나머지는 다 같고 Confirmed를 Deaths로 바꾸어 주었습니다. 그런데 에러가 발생하고 에러내용은 다음과 같습니다. 에러를 풀기가 너무 어렵네요,, 도움 부탁드립니다. KeyError: "['Deaths'] not in index" "None of [Index(['Country/Region', 'Deaths'], dtype='object')] are in the [columns]" -전체 코드- import json import pandas as pd with open('csse_covid_19_daily_reports/country_convert.json', 'r', encoding='utf-8-sig') as json_file: json_data = json.load(json_file) def country_name_convert(row): if row['Country_Region'] in json_data: return json_data[row['Country_Region']] return row['Country_Region'] def create_dateframe(filename): PATH = "csse_covid_19_daily_reports/" doc = pd.read _csv(PATH + filename, encoding='utf-8-sig') #csv 파일 읽기 try: doc = doc[['Country_Region','Deaths']] except: doc = doc[['Country/Region', 'Deaths']] doc.columns = ['Country_Region', 'Deaths'] doc = doc.dropna(subset=['Deaths']) # 3. 특정 컬럼에 없는 데이터 삭제하기 doc['Country_Region'] = doc.apply(country_name_convert, axis=1) # 4. 'Country_Region'의 국가명을 여러 파일에 일관되게 변경하기 doc = doc.astype({'Deaths': 'int64'}) # 5. 특정 컬럼의 데이터 타입 변경하기 doc = doc.groupby('Country_Region').sum() # 6. 특정 컬럼으로 중복된 데이터를 합치기 # 7. 파일명을 기반으로 날짜 문자열 변환하고, 'Confirmed' 컬럼명 변경하기 date_column = filename.split(".")[0].lstrip('0').replace('-', '/') doc.columns = [date_column] return doc import os def generate_dateframe_by_path(PATH): file_list, csv_list = os.listdir(PATH), list() first_doc = True for file in file_list: if file.split(".")[-1] == 'csv': csv_list.append(file) csv_list.sort() for file in csv_list: doc = create_dateframe(file) if first_doc: final_doc, first_doc = doc, False else: final_doc = pd.merge(final_doc, doc, how='outer', left_index=True, right_index=True) final_doc = final_doc.fillna(0) return final_doc
11:00 강의에서 printarray함수 안에서 dereference 통해서 값을 바꿨는데 함수 밖에서도 값이 바뀌는 것이 잘 이해가 안 가서요 찾아보니 질문에서 dereference 이용해서 값을 찾아 들어가서 바꿨다고 답변이 있던데 printarray의 array와 main의 array가 이름만 같고 다른 개체라면 왜 둘 다 같이 바뀌는 건가요?? 같은 주소를 참조하고 있기 때문인가요??
클래스를 빈으로 등록하면 스프링이 싱글톤 패턴으로 객체를 관리한다고 하셨는데 그렇다면 MemberServieTest에서 각 테스트 케이스마다 독립성을 보장하기 위해 beforeEach 메서드를 이용하여 매번 객체를 새로 생성해서 주입해주었던 방법을 더 이상 사용하지 않아도 되는건가요? beforeEach 메서드를 주석처리하고MemoryMemberRepository 클래스의 생성자에 "생성되었습니다"라는 구문을 넣어서 테스트 해보니 각 테스트 케이스가 실행될 때마다 MemoryMemberRepository 객체가 새로 생성됨을 알 수있었는데 그렇다면 junit에서는 static이 아닌 객체는 각 테스트 케이스마다 새로 생성하나요?