묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결SCSS(SASS)+GRID+FLEX 실전 포트폴리오 퍼블리싱
live sass complier 버전 문제
안녕하세요!live sass compiler 익스텐션 설치 및 세팅 영상 공부하고 있는데요!강의에 나오는 ritwick dey의 익스텐션은 더 이상 사용이 불가하다고 하여, 그 아래에 있는 glenn marks 버전을 설치했습니다.설치 후 json 세팅을 하고 있는데설정 > 확장에 live sass compiler가 나오지 않아 문의 드립니다. sass를 검색했을 때 아래 부분만 나오는데요! json 세팅을 할 수 있는 다른 방법이 있을까요? 감사합니다.
-
미해결스프링 핵심 원리 - 기본편
SingletonService 호출 관련 질문
안녕하세요. 강의 너무 잘 듣고 있습니다.싱글톤 패턴을 사용하는 테스트 코드에서SingletonService.getInstance(); 로 SingletonService 객체를 받는데 그 전에 private static final SingletonServiceinstance = new SingletonService(); 가 호출되고 그 다음getInstance()가 호출되어야 이 객체를 받을 수 있는 것아닌가요??private static final SingletonServiceinstance = new SingletonService(); 이 부분은 언제 호출되어서 정상적으로 객체가 반환되는지 알고 싶습니다..!
-
미해결[리뉴얼] 처음하는 SQL과 데이터베이스(MySQL) 부트캠프 [입문부터 활용까지]
pymysql 사용해 테이블, 데이터 저장하는 연습문제에 오류가 납니다
강의 : 패턴으로 익히는 파이썬과 MySQL - 데이터 삭제와 총정리가장 마지막에 언급하신 연습 문제를 하고 있는데, 자꾸 에러가 뜹니다 코드--------------------------------------------- import pymysqldb = pymysql.connect(host='localhost', port=3306, user='root', passwd='Qpspelrxm34*', db='ecommerce', charset='utf8')cursor = db.cursor()SQL = """ CREATE TABLE corw3 ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, model_num VARCHAR(15) NOT NULL, model_type VARCHAR(30) NOT NULL, PRIMARY KEY(id) ); INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', '7700', 'Kaby Lake'); INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', '7500', 'Kaby Lake'); INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', '7700K', 'Kaby Lake'); INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', 'G4600', 'Kaby Lake'); INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', '7600', 'Kaby Lake'); """cursor.execute(SQL)result = cursor.fetchall()for record in result: --- print(record)db.commit()db.close() 에러 메세지------------------------- ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO corw2 (name, model_num, model_type) VALUES('i7', '7700', 'Kaby Lake'' at line 9") 에러에서는 INSERT INTO 부분이 이상하다고 하는 것 같은데,mysql에서는 해당 공식으로 테이블을 바꿔서 입력해도 그 테이블에 데이터가 잘 저장이 되어서요 코드에 혹시 문제가 있는건지 여쭤보고 싶습니다아니라면 데이터베이스나 다른 테이블에 문제가 있는 건지 제가 더 고민해보도록 하겠습니다.. ㅜㅜㅎㅎ 저같은 코린이도 어떻게든 해볼 수 있게 친절하고이해가 쏙쏙 되게 가르쳐주셔서 감사합니다!!
-
해결됨IT 기업 취업을 위한: 코딩테스트 혼자서 정복하기 (C/C++)
강의자료
안녕하세요. 제가 못 찾은 것일 수도 있지만 '그래프와 탐색 알고리즘' 부분의 강의자료가 보이지 않아서 혹시 업로드해 주실 수 있는지 문의드립니다.
-
미해결스프링 시큐리티 OAuth2
안녕하세요 MSA 구성을 진행하고 있는 뉴비 신입 개발자입니다.
KeyCloak 을 인가서버로 활용하고Resource 자원 사용하는 Data API 인가 처리를 하는 Auth API (Gateway) 를 구현해서 진행하고 있습니다.그런데 너무 여러가지 방식이 많다보니 혼돈이 와서 선생님이 가르쳐주신 방식으로 인가와 인증을 구현하려고하는데,인가 서버 -> KeyCloak 사용 게이트 웨이에 Oauth2 를 넣으려고 하는데 개념적으로 궁금한 점이 있어 여쭤봅니다.공개 클라이언트 방식과 기밀 클라이언트 가 구현함에 있어 어떤 차이를 가지는지 의문입니다.가령 react -> KeyCloak 요청 시 token 을 바로 가져오려고 하는데, 이 토큰을 받는 것 까진 문제가 없습니다. 하지만 영상에서 보여주신 것과 같이 자원 API 로 접근하는 권한을 획득하기 위해서 기밀 클라이언트 방식으로 구현하면 code 를 리다이렉트 받은 uri 와 token 요청시 리다이렉트 uri 가 같아야하는 문제가 있어서 code 를 auth api 로 받은 뒤 토큰 엔드포인트를 찍어 스프링 프로젝트에서 가져올 때 오류가 발생합니다.react -> keycloak -> code 반환 받은 것 -> spring -> redirect uri 문제로 토큰 발급 불가 가 되는데 어떤 형식으로 처리해야 맞는 것인지 궁금합니다.
-
미해결대세는 쿠버네티스 (초급~중급편)
service 를 통한 HA
서비스 - pod1 을 연결하여 서비스를 하다가 pod1을 delete pod --force로 강제삭제한 후에 서비스에 연결된 다른 pod2 바로 넘어가야하는데 넘어가는시간이 1분 정도 걸립니다. application단은 아니고 Layer4에서 넘어가야하는 건데요 더 빠르게 할 방법이 없을까요?
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프2탄]
mvc패턴 외워야 하나요?
강사님은 이게 어떤 방식으로 되는지 다 아시는데 보는 저는 이해가 잘 되지 않습니다. 처음이라 그런거겠지요. 근데 mvc패턴 다 외워야 하나요??
-
해결됨[리뉴얼] 타입스크립트 올인원 : Part2. 실전 분석편
안녕하세요.
안녕하세요 슬랙 클론코딩 공부 전 다른 책과 병행하여 한번 더 공부하고 있는데 책 내용중 모르는 것이 있어 질문 드립니다.as const 를 사용하면 문맥 손실(losing context)과 관련된 문제를 깔끔하게 해결할 수 있다고 나왔는데 이게 무슨 뜻인지 잘 모르겠습니다.코드는 첫번째 코드에서 두번째 코드로 수정되는 상황이었습니다.function panTo(where: [number, number]) { } const loc = [10, 20]; panTo(loc); // Error // Argument of type 'number[]' is not assignable to parameter of type '[number, number]'. Target requires 2 element(s) but source may have fewer. function panTo(where: readonly [number, number]) { } const loc = [10, 20] as const; panTo(loc)타입 스크립트가 loc를 number[]로 추론하여 매개변수와 타입이 맞지 않아 아래와 같이 수정했는데 as const가 붙으면 readonly가 붙고 그게 더 좁은 타입이라 매개변수에도 readonly를 붙여준다는 것까진 이해했습니다. as const를 사용하여 문맥 손실과 관련된 문제를 해결한다는 것이 무슨 뜻인지 궁금합니다!! 제가 생각하기에는 한변 변수에 넣어줬기 때문에 [10, 20]이란 값을 직접적으로 사용하지 못하고 그거에 대한 타입을 추론하여 함수에 값이 아닌 타입으로만 검사를 하는 것을 보고 문맥 손실이 일어났다 하는 것이라 추론했습니다.감사합니다.
-
미해결그림으로 배우는 쿠버네티스(v1.30) - {{ x86-64, arm64 }}
4.5 외부 이름 에서 질문드립니다.
안녕하세요 강사님 질문 하나 드립니다.강의에서k run net --image=~ 이후 k exec net 을 하여 net으로 접근합니다 그 후에 nslookup으로 확인을 하는데요 여기에 질문이 있는데 , 강의에서 클러스터 내부에서 접근해야된다고 말씀해 주셨는데, 이미 마스터노드 안이라 nslookup을 바로 하면 될 줄 알았는데 Net을 통해 접근을 해야 되더라구요..! 첫번째로 마스터 노드에서 net을 통해 클라스터로 접근을 하는 부분이 이해가 안되며, 두번째로 net을 통해 접근하는거 또한 이해가 되지 않습니다. net의 역할이 정확히 무엇인지 개념이 정립이 안되네요 죄송합니다. 제가 생각하기로는 클러스터 안에 노드 그 안에 파드 라고 생각했는데 어떤게 맞는지 정확히 모르겠습니다 .! 감사합니다.
-
미해결[개정3판] Node.js 교과서 - 기본부터 프로젝트 실습까지
res.end() 앞 return 여부의 차이
아래는 res.end()앞에 return이 없는 경우입니다.http.createServer(async (req, res) => { res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); const data = await fs.readFile('./http.html'); res.end(data); } 아래는 res.end()앞에 return이 없는 경우입니다.http.createServer(async (req, res) => { const data = await fs.readFile('./restFront.html'); res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); return res.end(data); // res.end() 앞에 return이 있음. }위 예시 말고도 코드 여러 군데에서 어떤건 return 이 들어가고 안들어가고 하더라고요. return이 있고 없고에 어떤 차이가 있는 걸까요?감사합니다.
-
미해결Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
firebase 이메일 로그인 설정 관련 오류 문의의 건
안녕하세요, 강사님. Flutter 입문 - 안드로이드, iOS 개발을 한 번에 강의 수강중에 있으나 버전(?) 충돌로 인하여 문의 드립니다.("13. Firebase로 이메일 로그인 기능 구현" 학습중...) firebase 연동하여 이메일을 통해 로그인 될 수 있도록 설정하는 과정에서 오류가 발생된 것으로 보이는데 어떻게 해야 하는지 문의 드립니다.if (!snapshot.hasData) { return SignInScreen( providerConfigs: [EmailProviderConfiguration(),] ); "RUN시 오류 내용"Running "flutter pub get" in instagram_clone_renew...Because every version of flutter from sdk depends on collection 1.15.0 and firebase_auth_platform_interface >=6.4.0 depends on collection ^1.16.0, flutter from sdk is incompatible with firebase_auth_platform_interface >=6.4.0.And because firebase_auth 4.2.5 depends on firebase_auth_platform_interface ^6.11.3 and no versions of firebase_auth match >4.2.5 <5.0.0, flutter from sdk is incompatible with firebase_auth ^4.2.5.So, because instagram_clone_renew depends on both flutter from sdk and firebase_auth ^4.2.5, version solving failed.pub get failed (1; So, because instagram_clone_renew depends on both flutter from sdk and firebase_auth ^4.2.5, version solving failed.) 환경설정값 및 버전Flutter 3.3.2 • channel stable • https://github.com/flutter/flutter.gitFramework • revision e3c29ec00c (4 months ago) • 2022-09-14 08:46:55 -0500Engine • revision a4ff2c53d8Tools • Dart 2.18.1 • DevTools 2.15.0 dependencies: flutter: sdk: flutter image_picker: ^0.8.6 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 firebase_core: ^2.4.1 firebase_auth: ^4.2.5 flutterfire_ui: ^0.4.3+20
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
django 코드를 보려고 하는데 질문드립니다.
저는 클래스의 self가 클래스의 인스턴스를 만들었을때 그 인스턴스 자신을 self라고 하는것으로 알고있었습니다. 그런데 장고코드에는 클래스기반뷰에서 클래스의 인스턴스를 만들지 않음에(예를들어 a=RedirectVIew()어쩌구 하는게 아니라 a=RedirectView.as_view()를 통해서 함수를 넘기잖아요)도 불구하고 self가 다양하게 들어가는데 이건 어떤 의미인가요?^^;;
-
미해결딥러닝 CNN 완벽 가이드 - TFKeras 버전
필터 관련문의
강의 잘 듣고 있습니다.지금 CIFAR 데이터셋 CNN구현 실습 부분을 보고 있으면서 궁금한점 이 생겨 문의드립니다. 학습시 Conv2D, Activation, Maxpooling2D 같은 필터 개수는 어떻게 정의하는건가요 ? param이 어떻게 변하는지는 설명을 잘 해주셔서 이해했는데, Conv2D 등을 통해 필터시 어떤 기준으로 여러번 사용하는지가 이해가 안되내요. 감사합니다.
-
미해결호돌맨의 요절복통 개발쇼 (SpringBoot, Vue.JS, AWS)
호돌맨님 강의 챕터 순서대로 듣지 않아도 상관없을까요?
Spring Rest Docs 까지 순서대로 들었는데 깃헙이나 배포, Vue 이 부분보다 인증 부분이 좀 더 급한 거 같아 그 부분 먼저 들으려고 하는데 상관없을까요?
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
navigation에 fragment를 추가하고 실행을 하면 오류
navigation에 fragment를 추가하고 실행을 하면 오류가 발생합니다. 정확히 말씀드리면 <트로트 가수 음악 목록 앱 소개 및 레이아웃 설정> 8분 가량 실행하는 것이 안됩니다. 이전 강의들은 모두 잘 되었는데 여기서 부터 막히니 다음 강의인 파이어베이스와 연결에서도 오류가 발생해 더 이상 진도가 안 나아가서 질문 드립니다 ㅠㅠ <오류 문구입니다.>7 issues were found when checking AAR metadata: 1. Dependency 'androidx.appcompat:appcompat-resources:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 2. Dependency 'androidx.appcompat:appcompat:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 3. Dependency 'androidx.activity:activity-ktx:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 4. Dependency 'androidx.activity:activity:1.6.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 5. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 6. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 7. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
hello.html에서 ${data}에 줄이 그어집니다.
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]hello.htmlHellocontrollerlocalhost:8080/hello! hello.html에서 줄이 그어져있고웹에서 출력하니 null로 값이 들어와있습니다. ! 어디가 문제인지 알수 없네요 ㅠㅠ현재 인텔리제이 교육용 라이센스, 스프링부트 2.7.8, 자바 11사용 중입니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
2-S 문제(1325)
define CRTSECURE_NO_WARNINGS#include <iostream>#include <vector>#include <algorithm>#include <queue>#include <tuple>#include <string>#include <map>#include <stack>using namespace std;vector<int> adj[100001];int visited[100001];int n, m, cnt, ret = 1;int a, b;void dfs(int node){ visited[node] = 1; for (int i = 0; i < adj[node].size(); i++) { if (!visited[adj[node][i]]) { cnt++; dfs(adj[node][i]); } }}int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> m; for (int i = 0; i < m; i++) { cin >> a >> b; adj[b].push_back(a); } for (int i = 1; i <= n; i++) { fill(&visited[0], &visited[0] + 100001, 0); cnt = 0; dfs(i); ret = max(ret, cnt); } for (int i = 1; i <= n; i++) { fill(&visited[0], &visited[0] + 100001, 0); cnt = 0; dfs(i); if (cnt == ret) cout << i << " "; } return 0;} 다음과 같이 코드를 작성하였는데 계속 시간초과가 뜨고 인접행렬로 풀면 메모리 초과가 나서 변경하였는데 추가로 어떻게 수정해야될지 모르겠습니다 ㅠㅠㅠvisual studio에서는 cnt출력 및 i 를 출력했을 때 결과는 맞게 나옵니다
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
영한님의 스프링 강의를 듣다보면 REST API 도 익히게 되나요
스프링 핵심 원리 - 기본편 스프링 컨테이너와 스프링 빈 부분 공부중입니다.REST API 는 HTTP 요청을 보낼 때 , 어떤 URI에 어떤 메소드를 사용할지 개발자들 사이에 널리 지켜지는 약속.이라고 얕게 알고 있습니다.영한님 강의를 들으면서 따라 치고 이해하는 과정속에 자연스럽게 이 부분도 녹여져 있는지 궁금합니다. 무엇이던지 별도로 추가적으로 공부하면 좋겠지만영한님의 스프링 강의 과정을 따라가다보면 자연스럽게 익히게 되는지 궁금합니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
우분투에서 작업시 윈도우로 mysql 설치하는 것에 관해서
제로초쌤 제가 우분투에서 Nodebird를 진행하고 있는데 더북에 써져있는 거처럼 리눅스(우분투)에서 설치하는 방법 그대로 설치하다가 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) 소켓 에러가 계속 나서 해결하려고 인터넷에 찾아보면서 따라하고 있는데 해결이 안되서 혹시 윈도우로 mysql설치해서 진행해도 크게 차이가 없을까요?
-
미해결배달앱 클론코딩 [with React Native]
build.gradle 에 react.gradle 없는 문제
안녕하세요~최초 npx react-native init 프로젝트명 커맨드로 프로젝트를 만들면 build.gradle 파일에는 아래의 react.gradle 이 존재하지 않습니다.apply from: "../../node_modules/react-native/react.gradle"이부분은 향후에도 지원하지 않고 deprecated 된다고 하네요.그래서 https://github.com/facebook/react-native/blob/main/template/android/app/build.gradle 여기 공식 github 에도 나와있지만 이제부턴 apply plugin: "com.facebook.react" 를 쓴다고 하고 프로젝트 init하면 default도 그렇게 되어 있습니다. 그런데 문제는!이러한 build.gradle 환경에서 android 빌드해보면 아래와 같은 에러가 발생합니다.bundleDebugJsAndAssets 를 :app 에서 찾을 수 없다고 나오는데 어떻게 해결하면 될까요? info Starting JS server...info Installing the app...5 actionable tasks: 5 up-to-dateFAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:generateBundledResourcesHashDebug'.> Task with path 'bundleDebugJsAndAssets' not found in project ':app'.* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 4serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:generateBundledResourcesHashDebug'.> Task with path 'bundleDebugJsAndAssets' not found in project ':app'. 아래와 같은 이슈인거 같은데 known 이슈로 지금 디버깅 중인걸까요?https://github.com/microsoft/react-native-code-push/issues/2418