묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스
섹션 29 state 원리
const onChangeContents = (event) => { setContents(event.target.value); if (writer && title && contents) { setIsActive(true); } };리렌더링은 함수에 바뀐값이 있다면 함수가 끝난후에 리렌더링이 되고 그래서 함수가 끝나기 전에 위 코드처럼 참/거짓 검증을 하려고 하면 undefined 값이라 거짓이라 setActive 값은 리렌더링이 되지않고const onChangeContents = (event) => { setContents(event.target.value); if (writer && title && event.target.value) { setIsActive(true); } };위처럼 event.target.value로 바꾸면 참이라서 바로 리렌더링이 되어서 노란색으로 버튼이 활성화 되는건가요?
-
미해결[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
gorouter질문2
gorouter에서 pathparameter를 사용하던중 상품을 클릭하면 detail화면으로 넘어가지 않고 계속 에러가 뜹니다 ㅠ return PaginationListView( provider: recipeProvider, itemBuilder: <RecipeModel>(_,index,recipe){ return GestureDetector( onTap: (){ context.goNamed(RecipeDetailScreen.routeName, pathParameters: { 'rid':recipe.recipe_id.toString() }); }, child: RecipeCard( recipe_nm: recipe.recipe_nm, summary: recipe.summary, nation_nm: recipe.nation_nm, cooking_time: recipe.cooking_time, calorie: recipe.calorie, imgUrl: recipe.image_url, level: recipe.level_nm ), ); }); }위와 같은 코드로 메인 화면을 구성하여 상품을 클릭하면 List<GoRoute> get routes => [ GoRoute( path: '/', name: RootTab.routeName, builder: (_,__) => RootTab(), routes: [ GoRoute( path: 'recipe/:rid', name: RecipeDetailScreen.routeName, builder: (_,state) => RecipeDetailScreen( id: state.pathParameters['rid']!, ) ) ] ),위와 같이 routeprovider에 등록된 'recipe/:rid'로 이동하게 됩니다.밑에는 detail 화면 입니다. class RecipeDetailScreen extends ConsumerStatefulWidget { static get routeName => 'recipeDetail'; final String id; const RecipeDetailScreen({ required this.id, Key? key }) : super(key: key); @override ConsumerState<RecipeDetailScreen> createState() => _RecipeDetailScreenState(); } class _RecipeDetailScreenState extends ConsumerState<RecipeDetailScreen> { @override void initState() { // TODO: implement initState super.initState(); int refId = int.parse(widget.id); ref.read(recipeProvider.notifier).getDetail(id: refId); } @override Widget build(BuildContext context) { final state = ref.watch(recipeDetailProvider(int.parse(widget.id))); if(state==null) { return DefaultLayout( child: Center( child: CircularProgressIndicator(), ), ); } return DefaultLayout( child: Column( children:[ Text( state.recipe_nm, ), Text( state.summary, ) ] ) ); } }id 값을 받아오는지 확인하려고 하니 계속 빨간색 에러페이지가 뜹니다. 밑에는 에러내용입니다. ''package:flutter/src/widgets/framework.dart': Failed assertion: line 6405 pos 12: 'renderObject.child == child': is not true.
-
미해결
Which is the company for Python Development Service?
Python is a versatile and powerful language used for web development, data analysis, machine learning, automation, and more. Python Development Services typically include application development, web development, scripting, data processing, data analysis, machine learning, and integration of Python with other technologies.Qdexi Technology offers Python Development Service to help businesses create robust and scalable applications. Their team of experienced Python developers can assist in developing custom solutions, web applications, data analysis tools, machine learning models, and more. With a focus on quality and client satisfaction, Qdexi Technology provides reliable Python development services tailored to meet specific business needs.
-
미해결나도코딩의 자바 기본편 - 풀코스 (20시간)
아스키코드 질문 있습니당
String[][] seats3 = new String[10][15]; char ch = 'A'; // 아스키코드 넣기 for (int i = 0; i < seats3.length; i++) { for (int j = 0; j < seats3[i].length; j++) { seats3[i][j] = String.valueOf(ch) + (i + 1); // 아스키 코드를 문자열로 바꿔서 } ch++; } 여기서 ch라는 변수에 넣은 아스키 코드는 기본적으로 문자열로 넣은걸로 알고있는데 반복문 안에 들어가면 정수형으로 자동 형변환 되는건가용? 왜 에러가 뜨고 메소드를 써야하는지 더 자세한 설명이 궁금합니다 원리가 따로 있는건지....seats[i][j] 여기는 각각 index번호가 들어가야 하지 않나용
-
미해결파이썬/장고로 웹채팅 서비스 만들기 (Feat. Channels) - 기본편
AttributeError: 'NoneType' object has no attribute 'send'
import asyncio import os import django from channels.layers import get_channel_layer os.environ["DJANGO_SETTINGS_MODULE"] = "backend.settings" django.setup() async def main(): channel_layer = get_channel_layer() print(channel_layer) message_dict = {'content': 'world'} await channel_layer.send('hello', message_dict) response_dict = await channel_layer.receive('hello') is_equal = message_dict == response_dict print("송신/수신 데이터가 같습니까?", is_equal) asyncio.run(main())channel_layer가 자꾸 None으로 지정되서channel_layer.send이 부분도 실행이 안됩니다.구글링도 해보고 chatgpt에도 물어보고 redis 버전도 낮춰보고 다했는데 안됩니당..redis 4.3.6channels 4.0.0channels-redis 4.1.0입니다.
-
미해결설계독학맛비's 실전 Verilog HDL Season 2 (AMBA AXI4 완전정복)
./build 실행 후 Warning 메시지 관련 문의 입니다.
=================현업자인지라 업무때문에 답변이 늦을 수 있습니다. (길어도 만 3일 안에는 꼭 답변드리려고 노력중입니다 ㅠㅠ)강의에서 다룬 내용들의 질문들을 부탁드립니다!! (설치과정, 강의내용을 듣고 이해가 안되었던 부분들, 강의의 오류 등등)이런 질문은 부담스러워요.. (답변거부해도 양해 부탁드려요)개인 과제, 강의에서 다루지 않은 내용들의 궁금증 해소, 영상과 다른 접근방법 후 디버깅 요청, 고민 상담 등..글쓰기 에티튜드를 지켜주세요 (저 포함, 다른 수강생 분들이 함께보는 공간입니다.)서로 예의를 지키며 존중하는 문화를 만들어가요.질문글을 보고 내용을 이해할 수 있도록 남겨주시면 답변에 큰 도움이 될 것 같아요. (상세히 작성하면 더 좋아요! )먼저 유사한 질문이 있었는지 검색해보세요.잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.================== 맛비님,빌드 실행 하고 나면WARNING: [XSIM 43-3479] Unable to increase the current process stack size.위와 같은 WARNING 메시지가 발생 하는데,원인이 무엇인지 알 수 있을까요?
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
작업형 2 시험에서 제출 시 평가를 꼭 해야하나요 ?
회귀는 rmse, 분류는 roc 등으로 평가가 있는데,실제 시험에서 평가 없이 바로 제출해도 무방한가요 ?
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
설정 오류
settings에서 intelliJ로 바꾼후 서버가 실행이 안됩니다로그가 3개밖에 안떠요 gradle로 바꾸면무한로딩 걸리면서 서버 종료누르면이런 에러가 나와요
-
해결됨Vue3 완벽 마스터: 기초부터 실전까지 - "실전편"
nuxt 3 강의 보고싶습니다
2월말에 질답에서, 계획이 있으나 우선순위가 낮다고 하셨는데, 혹시 nuxt 3 강의 언제 쯤 나오나요? vue강의 만족스럽게 들어서 이어서 듣고싶네요
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
redux toolkit으로 thunk를 실행하는 방법이 궁금합니다
import { configureStore } from "@reduxjs/toolkit"; import { createWrapper } from "next-redux-wrapper"; import reducer from "../reducers"; import thunkMiddleware from "redux-thunk"; function getServerState() { return typeof document !== "undefined" ? JSON.parse(document.querySelector("#__NEXT_DATA__").textContent)?.props .pageProps.initialState : undefined; } const loggerMiddleware = ({ dispatch, getState }) => (next) => (action) => { console.log(action); return next(action); }; const serverState = getServerState(); console.log("serverState", serverState); const makeStore = () => { configureStore({ reducer, devTools: true, middleware: (getDefaultMiddleware) => getDefaultMiddleware({ thunk: { loggerMiddleware, }, }), preloadedState: serverState, // SSR }); }; export default createWrapper(makeStore);아런 코드에서 redux thunk를 실행하는 방법이 궁금합니다!
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
우와 12강 완료 했어요~~ ㅎㅎㅎ
우와 우와
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
1-o 시간초과
http://boj.kr/246379b4039146d9bb6c8660ce6e5dfd입력을 콘솔로바꿨을뿐인데 시간초과가납니다 무슨이유일까요
-
해결됨SW 개발자를 위한 성능 좋은 SQL 쿼리 작성법
강의 연장이 가능할런지요?
안녕하세요.개인 사정으로 강좌를 듣지 못하다가, 다시 들으려니, 도저히 기한네 (6/29) 마칠 자신이 없어 부득불 1달 정 도 연장을 부탁드렸으면 합니다."SW 개발자를 위한 성능 좋은 SQL 쿼리 작성법""SQL Server 컨설턴트가 알려주는, 쿼리 능력 레벨업(고급 T-SQL 쿼리)"번거롭게 해드려서 죄송하다는 말씀과 함께, 부탁을 드립니다. 감사합니다.
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
작업형 2유형 제출 관련
안녕하세요. 큰 도움 받고 있습니다. 감사합니다!!다름이 아니라 유형별로 답안 제출할 때,작업형1: print()작업형3: 별도의 답안 입력창에 답 입력하여 제출하는 것으로 알고 있는데,2유형은 제출 전 마지막 행을 어떤 내용으로 끝내야 하는지 헷갈려서요.pd.DataFrame().to_csv() 식의 파일 저장으로 제출하면 될까요?
-
미해결초보자를 실무자로! 엑셀 사무자동화 문서 만들기
열심히 수강을 하고 있습니다...^^;;
위에 질문을 먼저 하신 분이 계셔서 다운 받은 파일을 아무리 찾아 봐도....^^ ;;; 제가 잘 못 찾는 거 같아서이렇게 글을 드립니다....시트마다 찾아보아도 "강의 만들기 설명" 이라는 파일이나..시트가 안보여서요..죄송합니다....^^ 아무래도 설명을 글로 풀어주신 내용을 봐야 이해가 잘 될 것 같아서요...
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
passport와 인증 전략 & Custom decorator 수강 중 Unauthorized 문제가 발생했습니다.
포스트맨으로 정확히 헤더에 { Authorization: 토큰값 } 넣고 { "success": false, "timestamp": "2023-06-19T07:07:40.995Z", "path": "/cats", "statusCode": 401, "message": "Unauthorized"}으로 나와서 response를 콘솔로 찍어보니 authorization과 같이 a가 소문자로 변환되어 찍혔는데요, 혹시 이와 관련되서 토큰값을 제대로 못받는걸까요 ?혹시나해서 코드는 깃허브 참고해서 비교해봤는데 도저히 못찾겠어서 도움요청드립니다 ㅜ
-
미해결애자일 개발 방법론 개념과 실제 적용하기
강의에 사용된 PPT파일을 받을 수 있을까요?
PPT자료에 필기를 하면 학습에 더욱 도움이 될 것 같습니다.
-
해결됨[2025 리뉴얼] 스스로 구축하는 AWS 클라우드 인프라 - 기본편
bastion ec2 궁금한 게 있습니다.
현재 서버 인프라를 혼자 공부 중인데 좋은 강의 덕분에 공부가 잘되고 있습니다. 실무와 최대한 가깝게 인프라를 구축하고 싶어서 혼자 정리를 했는데, 정리한 것에서 잘못된 점들이 있는 지 궁금하여 질문을 남기게 되었습니다.서버를 구축할 때, aws vpc를 사용해서 내부를 public subnet 2개로 나눠서 하나는 nat gateway를 설치해서 private subnet에 위치한 rds/인스턴스의 버전업을 할 수 있도록 설정하고 나머지 public subnet에 bastion ec2를 두고 다른 private subnet에 위치한 인스턴스를 관리하려고 합니다. 만약에 여러 private subnet 내부에 각각 인스턴스들이 두고 애플리케이션을 설치해서 웹서버를 사용한다고 했을 때, 유지보수가 필요하게 되면 bastion ec2에 git action을 설치해서 ssh로 업로드를 진행해도 괜찮나요? bastion ec2의 역할이 유지보수라고 하셔서 혹시 실무에서도 이런 식으로 진행하는 것인지 궁금합니다. 바쁘신 와중에 질문 읽어주셔서 감사합니다.
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
섹션 6 작업형 2 정확도 오류 원인 질문드립니다! Classification metrics can't handle a mix of binary and continuous targets
from sklearn.model_selection import train_test_split X_tr,X_val,y_tr,y_val=train_test_split(train.drop('Attrition_Flag',axis=1),train['Attrition_Flag'],test_size=0.2,random_state=2023) from sklearn.ensemble import RandomForestClassifier rf=RandomForestClassifier(random_state=2023) rf.fit(X_tr,y_tr) pred=rf.predict_proba(X_val) from sklearn.metrics import accuracy_score # 정확도 print(accuracy_score(y_val, pred[:,1])) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-63-aa6b6ce781f8> in <cell line: 10>() 8 9 # 정확도 ---> 10 print(accuracy_score(y_val, pred[:,1])) 2 frames /usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py in _check_targets(y_true, y_pred) 93 94 if len(y_type) > 1: ---> 95 raise ValueError( 96 "Classification metrics can't handle a mix of {0} and {1} targets".format( 97 type_true, type_pred ValueError: Classification metrics can't handle a mix of binary and continuous targets 혹은 print(accuracy_score(y_val, pred)) 실행 시, 오류2번 Classification metrics can't handle a mix of binary and continuous-multioutput targets해당 코드로 제출까지는 잘 되고 있습니다. 그러나 정확도 측정 시 오류가 발생하여, 제출에 문제가 있는 것인가 불안하여 오류 현상 문의드립니다..!
-
해결됨3. 웹개발 코스 [스프링 프레임워크+전자정부 표준프레임워크]
무료쿠폰 발급 요청방법
모든 (기존,신규)수강생에 한해 https://www.inflearn.com/course/%EC%9B%B9%EA%B0%9C%EB%B0%9C-%EC%BD%94%EC%8A%A4-ea-%EC%A0%84%EC%9E%90%EC%A0%95%EB%B6%80-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC무료쿠폰드리고 있습니다.현재 강의보다 개선된 강의이며 자막을 제공하고 있습니다.자신의 인프런 닉네임을 적어서 쿠폰요청으로 메일 주시면 감사하겠습니다.vmproductor@gmail.com