묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
깃 권한요청드립니다.
인프런 아이디 : hj1013.oh@gmail.com인프런 이메일 : hj1013.oh@gmail.com깃헙 아이디 : hj1013.oh@gmail.com깃헙 Username : lpwz
-
미해결스프링 핵심 원리 - 고급편
블로그 정리
안녕하세요. 영한님디자인 패턴 내용에 대해서 블로그에 정리하고자 하는데 영한님이 제공해주신 문서랑 영상 참고해서 작성해도 될까요? 출저는 남기겟습니다
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
어디가 오류인지 모르겠습니다.
import java.util.Scanner;public class exam8 { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int N = sc.nextInt(); int[] arr = new int[N]; for(int i=0; i<N; i++) { int a = sc.nextInt(); arr[i] = a; } for(int i=0; i<N; i++) { int count = 1; for(int j=0; j<N; j++) { if(arr[j]>arr[i]){ count++; } } arr[i] = count; } for(int i=0;i<arr.length;i++) { System.out.print(arr[i]+" "); } } } 출력값이 아무리 봐도 왜 4 3 2 1 1 이 나오는지 모르겠습니다 .
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
산탄대르 인코딩 방식
안녕하세요. 강의 잘 듣고 있습니다 :) 분류 실습 1 : 캐글경연대회의 산탄데르 은행 고객 만족 예측 - 012분 40초 에서 encoding = 'latin-1 ' 로 설정을 해주시는데요. utf-8-sig 로 인코딩 지정을 해줘도 되는데 왜 여기서 latin-1 로 지정해준 것인지 궁금합니다. 따로 latin-1 로 지정하는 특정한 경우가 있는지 궁금합니다. 감사합니다.
-
미해결
vector 초기화 질문입니다.
#include <iostream>#include <vector>#include <set>#include <cstring>#include <algorithm>using namespace std;template <typename T>void debug(vector<vector<T>> a){ cout << "-----------------------\n"; for (int i = 0; i < a.size(); ++i) { for (int j = 0; j < a[i].size(); j++) { cout << a[i][j] << " "; } cout << "\n"; } cout << "-----------------------\n";}set<int> data_H;vector<vector<int>> vec;int visited[101][101]; // 2차 배열vector<vector<int>> visited; //vector로 동적할당int M, val, cnt, ans;int dr[4] = { 0 , -1 , 1 , 0 };int dc[4] = { -1 , 0 , 0 , 1 };int nr, nc;void dfs(int r, int c, int val){ visited[r][c] = true; for (int i = 0; i < 4; i++) { nr = r + dr[i]; nc = c + dc[i]; if (nr < 0 || nc < 0 || nr >= M || nc >= M)continue; if (vec[nr][nc] <= val) continue; if (visited[nr][nc]) continue; dfs(nr, nc, val); } return;}int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> M; vec.resize(M, vector<int>(M,0)); visited.resize(M, vector<int>(M,0)); //vector 사이즈입력에 맞춰 셋팅 및 초기화 int input; for (int i = 0; i < M; ++i) { for (int j = 0; j < M; ++j) { cin >> input; vec[i][j] = input; data_H.insert(input); } } //debug(vec); //cout << sizeof(vec); //cout << sizeof(visited); for (auto c : data_H) { memset(&visited, false,sizeof(visited)); fill(visited.begin(), visited.end(), 0); ////위 2가지 방식으로 하면 vector로 visited 선언할 때는 안되더라구요. 배열로 선언한 것은 되는데.. cnt = 0; for (int i = 0; i < M; ++i) { for (int j = 0; j < M; ++j) { //cout << "debug i = " << i << " j = " << j << " c = " << c << "\n"; //cout << "debug vec[i][j] = " << vec[i][j] << " c = " << c << "\n"; if( (vec[i][j] > c) && (visited[i][j] != 1) ) { dfs(i, j, c); cnt++; } } } //cout << "-------cnt-----\n"; //cout << cnt << "\n"; //cout << "-------cnt-----\n"; ans = max(cnt, ans); } cout << ans;} 결론적으로, 질문을 간단히 드리면, array로 선언할 때는 memset으로 중간 초기화 작업을 할 수 있는데,vector로 사용할 때는 resize로 size 맞추면 그 다음에 초기화는 어떻게 진행해야 되는 건가요..ㅠ.ㅠ일일이 하나씩 해줘야 하는건가요?
-
미해결
스프링 핵심 원리 - 기본편 빈 스코프
request 스코프 강의를 듣던중 실습대로 따라 작성했으나 스프링 서버가 정상 실행되고 demo-log 매핑도 작동하지 않습니다. 혹시 몰라서 소스코드를 첨부 합니다. 이유를 알려주세요ㅜhttps://we.tl/t-vt386ZnUk5
-
미해결배달앱 클론코딩 [with React Native]
build.gradle, proguard-rules.pro 파일 수정 후 발생한 에러 로 어려움을 겪고 있습니다.
상황 안녕하세요. 제로초님! 'react-native-config 문제 해결하기' 강의 내용대로 build.gradle, proguard-rules.pro 파일을 수정하고 안드로이트 스튜디오에서 BuildConfig파일에 API_URL가 잘 뜨는 것까지 확인하고 npm run android를 입력했는데 메트로 서버에서 에러가 나타나고 emulator는 빈 화면만 보여주고 있습니다. 에러 메트로 서버 에러 내용 WARN The native module for Flipper seems unavailable. Please verify that react-native-flipper is installed as yarn dependency to your project and, for iOS, that pod install is run in the ios directory. ERROR TypeError: Restricted in strict mode, js engine: hermes ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter. A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter. A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermesemulator 코드 android\app\build.gradleapply plugin: "com.android.application" apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" import com.android.build.OutputFile import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation. If none specified and * // "index.android.js" exists, it will be used. Otherwise "index.js" is * // default. Can be overridden with ENTRY_FILE environment variable. * entryFile: "index.android.js", * * // https://reactnative.dev/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ enableHermes: true, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and that value will be read here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); /** * Architectures to build native code for. */ def reactNativeArchitectures() { def value = project.getProperties().get("reactNativeArchitectures") return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] } android { ndkVersion rootProject.ext.ndkVersion compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.fooddeliveryapp" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() resValue "string", "build_config_package", "com.fooddeliveryapp" if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. externalNativeBuild { cmake { arguments "-DPROJECT_BUILD_DIR=$buildDir", "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", "-DNODE_MODULES_DIR=$rootDir/../node_modules", "-DANDROID_STL=c++_shared" } } if (!enableSeparateBuildPerCPUArchitecture) { ndk { abiFilters (*reactNativeArchitectures()) } } } } if (isNewArchitectureEnabled()) { // We configure the NDK build only if you decide to opt-in for the New Architecture. externalNativeBuild { cmake { path "$projectDir/src/main/jni/CMakeLists.txt" } } def reactAndroidProjectDir = project(':ReactAndroid').projectDir def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") into("$buildDir/react-ndk/exported") } def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") into("$buildDir/react-ndk/exported") } afterEvaluate { // If you wish to add a custom TurboModule or component locally, // you should uncomment this line. // preBuild.dependsOn("generateCodegenArtifactsFromSchema") preDebugBuild.dependsOn(packageReactNdkDebugLibs) preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) // Due to a bug inside AGP, we have to explicitly set a dependency // between configureCMakeDebug* tasks and the preBuild tasks. // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) configureCMakeDebug.dependsOn(preDebugBuild) reactNativeArchitectures().each { architecture -> tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { dependsOn("preDebugBuild") } tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { dependsOn("preReleaseBuild") } } } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include (*reactNativeArchitectures()) } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } } buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = defaultConfig.versionCode * 1000 + versionCodes.get(abi) } } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' } debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' exclude group:'com.squareup.okhttp3', module:'okhttp' } debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' } if (enableHermes) { //noinspection GradleDynamicVersion implementation("com.facebook.react:hermes-engine:+") { // From node_modules exclude group:'com.facebook.fbjni' } } else { implementation jscFlavor } } if (isNewArchitectureEnabled()) { // If new architecture is enabled, we let you build RN from source // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. // This will be applied to all the imported transtitive dependency. configurations.all { resolutionStrategy.dependencySubstitution { substitute(module("com.facebook.react:react-native")) .using(project(":ReactAndroid")) .because("On New Architecture we're building React Native from source") substitute(module("com.facebook.react:hermes-engine")) .using(project(":ReactAndroid:hermes-engine")) .because("On New Architecture we're building Hermes from source") } } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.implementation into 'libs' } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) def isNewArchitectureEnabled() { // To opt-in for the New Architecture, you can either: // - Set `newArchEnabled` to true inside the `gradle.properties` file // - Invoke gradle with `-newArchEnabled=true` // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" } android\app\proguard-rules.pro# Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: -keep class com.fooddeliveryapp.BuildConfig { *; } Android Studio (BuildConfig에 public static final String API_URL 생성됨)src/pages/SignUp.tsximport React, {useCallback, useRef, useState} from 'react'; import { ActivityIndicator, Alert, Platform, Pressable, StyleSheet, Text, TextInput, View, } from 'react-native'; import {NativeStackScreenProps} from '@react-navigation/native-stack'; import {RootStackParamList} from '../../AppInner'; import DismissKeyboardView from '../components/DissmissKeyboardView'; import axios, {AxiosError} from 'axios'; import Config from 'react-native-config'; type SignUpScreenProps = NativeStackScreenProps<RootStackParamList, 'SignUp'>; function SignUp({navigation}: SignUpScreenProps) { const [loading, setLoading] = useState(false); const [email, setEmail] = useState(''); const [name, setName] = useState(''); const [password, setPassword] = useState(''); const emailRef = useRef<TextInput | null>(null); const nameRef = useRef<TextInput | null>(null); const passwordRef = useRef<TextInput | null>(null); const onChangeEmail = useCallback(text => { setEmail(text.trim()); // 스페이스바 입력못하게 미리 방지 }, []); const onChangeName = useCallback(text => { setName(text.trim()); }, []); const onChangePassword = useCallback(text => { setPassword(text.trim()); }, []); const onSubmit = useCallback(async () => { // 로딩 중일 때 회원가입 버튼 또 누르면 return해서 막기 if (loading) { return; } if (!email || !email.trim()) { return Alert.alert('알림', '이메일을 입력해주세요.'); } if (!name || !name.trim()) { return Alert.alert('알림', '이름을 입력해주세요.'); } if (!password || !password.trim()) { return Alert.alert('알림', '비밀번호를 입력해주세요.'); } if ( !/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/.test( email, ) ) { return Alert.alert('알림', '올바른 이메일 주소가 아닙니다.'); } if (!/^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[$@^!%*#?&]).{8,50}$/.test(password)) { return Alert.alert( '알림', '비밀번호는 영문,숫자,특수문자($@^!%*#?&)를 모두 포함하여 8자 이상 입력해야합니다.', ); } console.log(email, name, password); // 서버에 요청하기 try { // 로딩 상태 setLoading(true); console.log(Config.API_URL); const response = await axios.post(`${Config.API_URL}/user`, { email, name, password, }); console.log(response); Alert.alert('알림', '회원가입되었습니다'); } catch (error) { // 네트워크 에러 타입 지정 // const errorResponse = (error as AxiosError).response; console.error(error); // if (errorResponse) { // Alert.alert('알림', errorResponse.data.message); // } } finally { // 성공하든 실패하든 로딩 상태 변경 setLoading(false); } Alert.alert('알림', '회원가입 되었습니다.'); }, [email, name, password]); const canGoNext = email && name && password; return ( <DismissKeyboardView> <View style={styles.inputWrapper}> <Text style={styles.label}>이메일</Text> <TextInput style={styles.textInput} onChangeText={onChangeEmail} placeholder="이메일을 입력해주세요" placeholderTextColor="#666" textContentType="emailAddress" value={email} returnKeyType="next" clearButtonMode="while-editing" keyboardType="email-address" ref={emailRef} onSubmitEditing={() => nameRef.current?.focus()} blurOnSubmit={false} /> </View> <View style={styles.inputWrapper}> <Text style={styles.label}>이름</Text> <TextInput style={styles.textInput} placeholder="이름을 입력해주세요." placeholderTextColor="#666" onChangeText={onChangeName} value={name} textContentType="name" returnKeyType="next" clearButtonMode="while-editing" ref={nameRef} onSubmitEditing={() => passwordRef.current?.focus()} blurOnSubmit={false} /> </View> <View style={styles.inputWrapper}> <Text style={styles.label}>비밀번호</Text> <TextInput style={styles.textInput} placeholder="비밀번호를 입력해주세요(영문,숫자,특수문자)" placeholderTextColor="#666" onChangeText={onChangePassword} value={password} keyboardType={Platform.OS === 'android' ? 'default' : 'ascii-capable'} textContentType="password" secureTextEntry returnKeyType="send" clearButtonMode="while-editing" ref={passwordRef} onSubmitEditing={onSubmit} /> </View> <View style={styles.buttonZone}> <Pressable style={ canGoNext ? StyleSheet.compose(styles.loginButton, styles.loginButtonActive) : styles.loginButton } // 로딩 중일 때는 회원가입 버튼 클릭못하게 막기 disabled={!canGoNext || loading} onPress={onSubmit}> {/* 로딩 중일 때, indicator 보여주기 */} {loading ? ( <ActivityIndicator color="white" /> ) : ( <Text style={styles.loginButtonText}>회원가입</Text> )} </Pressable> </View> </DismissKeyboardView> ); } const styles = StyleSheet.create({ textInput: { padding: 5, borderBottomWidth: StyleSheet.hairlineWidth, }, inputWrapper: { padding: 20, }, label: { fontWeight: 'bold', fontSize: 16, marginBottom: 20, }, buttonZone: { alignItems: 'center', }, loginButton: { backgroundColor: 'gray', paddingHorizontal: 20, paddingVertical: 10, borderRadius: 5, marginBottom: 10, }, loginButtonActive: { backgroundColor: 'blue', }, loginButtonText: { color: 'white', fontSize: 16, }, }); export default SignUp; .envAPI_URL=http://10.0.2.2:3105 에러 해결을 위해 시도해본 것emulator 삭제 및 새로 생성 - 효과 x build.gradle, proguard-rules.pro 파일의 내용 원상복귀 - 효과 x 에러 내용 중 일부(Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication()) 구글링하여 얻은 정보로 npm start --reset-cache 입력 - 효과 x vscode 포함 모든 프로그램 종료 후 재실행 - 효과 x 어떻게 해결해야할지 모르겠습니다..!
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
sequence 오류 뜨는 이유
강의에서 하라는 대로 똑같이 했는데 저 부분에서 계속 오류가 뜹니다. 다른 곳은 하나도 없는데 .. 뭐가 잘못된거죠?
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
docker-server ssh접속불가
$ ssh root@localhost -p 10022 kex_exchange_identification: Connection closed by remote host Connection closed by ::1 port 10022docker-server 이미지를 다시 받았는데요,위와 같은 에러가 발생하여 접속이 불가합니다.docker-server에 접속하여 hosts.allow 파일을 수정하려했으나...존재하지도 않네요
-
미해결홍정모의 따라하며 배우는 C언어
while문 에러
while문 없을 때 는 scanf문이 문제 없이 잘 실행되었는데,while문이 있는 경우 status를 실행하고 나서 다음 실행문으로 넘어가지 않습니다.이유를 알 수 있을까요?
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
호스트 도커 컨테이너를 사용하도록 하라는건가요?
docker run -itd --name docker-server -p 10022:22 -e container=docker --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /var/run/docker.sock:/var/run/docker.sock edowon0623/docker:latest /usr/sbin/init위 명령어로 실행했을 때, 아래와 같은 에러가 발생합니다.docker: Error response from daemon: invalid mount path: 'C' mount path must be absolute.........좀 명확한 강의 영상을 다시 찍어주셨으면 합니다..
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
반복문 익히기 2 while 관련 질문입니다
강의에서 나온 내용을 따라해봤습니다 그런데 name이란 변수를 지정하지 않으면 작동하지 않더라구요그런데 name을 지정할때 강의에서는 ' '를 사용해서 문자열로 지정하셨는데 그냥 name=0으로 해봤는데도 작동이 되었어요input에 들어갈 내용이 문자열이여도 그냥 name을 숫자로 지정해도 되는건가요?그냥 제가 설정한 kk와 같지만 않으면 어떤걸로 해도 상관이 없나요?name을 지정해야 하는 이유는 name=kk면 작동하지 않으니까 지정해줘야 하는건가요? 너무 초보적인 질문이라서 질문이 난잡하네요ㅠㅠ
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
반복문 익히기 1강 12분경 질문입니다
list1list2list3list1list2list3이런 식으로 나와야 한다고 생각했는데 강의에서는 list1 list1 list2 list2 list3 list3 으로 나오더라구요윗줄에 있는 print 함수에서 data_list에 있는 list1 list2 list3이 다 출력된 다음에 아랫줄에 있는 print 함수에서 list1 list2 list3이 나와야 한다고 생각했는데 어떤 원리로 첨부한 사진처럼 나오는 건가요?
-
미해결Vue3 완벽 마스터: 기초부터 실전까지 - "실전편"
route.id
안녕하세요 슨생님 잘보고있습니다.강의 너무 맛있습니다. parseInt() 말고 es6 문법인 + 를 붙이면 더욱 맛있게 쓸수 있습니다.요로코롬 .. 이미 알고 계실수도 있지만서도 혹시나 공유하는 마음에 올려 보나이다... props: route => { return { id: +route.params.id, }; },
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
bulid 파일 없음
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. gradlew bulid를 칠때 요런 식으로 떠서 봤더니 인텔리제이 들어가니까 bulid 폴더가 없는데 어떻게 해결하면 되나요?영상에선 메인 메서드 실행시키니까 자동으로 생성됐는데 저는 안되네요;;
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
다대다 관계
다대다 관계에서 ManyToMany애노테이션으로 설정해주었을 때 이 관계의 주인 쪽에 연간관계 메서드를 작성해야 하나요??정리하자면 다대다 관계일 때 일대다, 다대일로 각각 설정하지 않고 강의에서 설명하신 것처럼 ManyToMany로 설정했을 때 이 관계에 대해서도 연관관계 편의 메서드를 작성해야 하는지 궁금합니다.
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
가격 크롤링 관련_
- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다)- 이외의 문의등은 평생강의이므로 양해를 부탁드립니다- 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강사님 안녕하세요. 양질의 강의 진심으로 잘 듣고 있습니다...크로링 관련해서 2시간동안 고민해보고 해도 안되는 부분이 있어서요2) 번 형태는 정상작동 하는데요. 1) 번형태는 아무리 해도 아래와 같은 오류 메세지가 계속 나옵니다.먼가 간단하게 해결될 것도 같은데 바쁘시겠지만 답변 부탁드립니다! essage: no such element: Unable to locate element: {"method":"css selector","selector":"span.delPrice"} (Session info: chrome=106.0.5249.103)1) 오류ori_price = div.find_element_by_css_selector("span.delPrice")2) 정상작동dis_price = div.find_element_by_css_selector("strong.val")
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
vivado project 관련
- 강의 내용외의 개인 질문은 받지 않아요. (개인 과제, 영상과 다른 접근방법 후 디버깅 요청, 고민 상담 등..)- 저 포함, 다른 수강생 분들이 함께보는 공간입니다. 보기좋게 남겨주시면 좋은 QnA 문화가 될 것 같아요. (글쓰기는 현업에서 중요한 능력입니다!)- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 맛비님.강의 듣던 중, build 하고 clean 파일로 리눅스에서 실행하지 않고, vivado상에서 create project를 사용해서 해보았는데 맛비님께서 따로 build, clean파일 만들어서 실행하는 이유가 있을까 궁금해서 여쭤봅니다.감사합니다.
-
미해결냉동코더의 알기 쉬운 Modern Android Development 입문
의존성 주입 관련해서 질문이 있습니다!
원래는 Factory를 통해 repository 등 viewmodel에서 사용할 것들을 전달해 주었습니다!원래 했던 프로젝트에서도 다음과 같이 프래그먼트에서 viewmodel을 다음과 같이 선언하여 팩토리를 넘겨주어 구현했었습니다. private val viewModel: BoardDetailViewModel by viewModels { BoardViewModelFactory() }이제 의존성주입을 공부하고 있어 실제 프로젝트에서도 적용해보려고 하는데, 궁금한 점이 있어 글을 작성합니다.만일 이번 강의와 같이 의존성주입을 하게되면 ViewModel에 있는 Repository를 위와 같이 팩토리를 통해 전달하지 않고 다음과 같이 적어줘도 실행되는 이유가 무엇인가요?private val bookViewModel by viewModels<BookViewModel>()분명히 BookViewModel에는 Repository를 생성자로 받으라고 나와있는데, 위에 저렇게만 적어줘도 실행되는 이유가 궁금합니다! 아직 의존성주입에 대해 이해를 못했는지... 잘 이해가 가지 않습니다!항상 좋은 강의 감사드립니다 :)
-
미해결vue.js 실전 프로젝트(트위터 클론)
fontawesome이 6으로 업데이트되면서 5와 같이 cdn키를 발급하지 않습니다. 6의 kit을 사용해봤는데요. 동작하지 않아서요. 대체제가 있을까요?
fontawesome이 6으로 업데이트되면서 5와 같이 cdn키를 발급하지 않습니다. 6의 kit을 사용해봤는데요. 동작하지 않아서요. 대체제가 있을까요?https://fontawesome.com/v6/docs/web/use-with/wordpress/troubleshoot#conflicts-in-the-cdn-or-kit-settings