묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
컨트롤러에서 multer 사용 질문
안녕하세요. 매일 노고많으십니다. const uploadNone = multer(); router.post("/write", uploadNone.none(), (req, res, next) => { console.log(req.body); }) multer는 (req, res) 전에 클라이언트 요청을 해석하여 req로 넣어주는 걸로 알고 있습니다. // 컨트롤러 const uploadNone = multer(); exports.noticeWrite = uploadNone.none(), async (req, res, next) => { console.log(req.body); res.end(); }; // 라우터 const { noticeWrite } = require("../controllers/notice"); router.post("/write", isLoggedIn, noticeWrite); 컨트롤러에서 처리하려고 (req, res) 요청 전에 넣어주니 라우터 응답이 안돼서요. 어쩔 수 없이 라우터에서 적어줘야 하는 건지 모르겠습니다. 질문. 컨트롤러에서 multer 사용하는 방법이 궁금합니다!
-
미해결
Howto-cancel.com
It is seen that several individuals encounter complication whenever they look for any kind of subject pertaining to 'howto-cancel.com/'. Considering these we have actually reviewed right here assistance as well as a system i.e. http://howto-cancel.com/ that will definitely assist you to decrease every one of the questions when it pertains to Howto-cancel. A short on HowTo-Cancel.com: · The howto-cancel.com web page is the internet site on 'how to' which is especially made to reveal the individuals on how to cancel practically virtually every product and services imaginable. · It intends to supply its individuals to urge the termination procedure, reimbursement and also return treatment less complex than ever before. · This is done by establishing a complimentary treatment that consists of detailed directions on how to- cancel along with 600 exceptional solution systems and also even more checking. · The overviews that are furnished are etched in a basic as well as simple layout in a way where anybody can recognize as well as discover them. Obtain the critical Assistance: It occurs with a number of the individuals that acquire the paid subscription or membership however have actually possessed it simply a couple of times. At the same time, the business charges with the subscription or service charge from the bank card frequently, even if it is no more utilized by you as well as hence trigger irritability. The primary inflammation shows up when a lot of the moment obtains squandered looking for howto-cancel the subscription or registrations. Most of the participants obtain irritated to find out the real treatment on howto-cancel as well as therefore pay the month-to-month registration cost in order to stop the irritability. Summarizing: Hence, the http://howto-cancel.com/ web site is developed to scroll with the procedure of termination detailed. Whichever solution or membership develops it is; it will not matter, one can conveniently discover the overview that is trying on how to cancel. The primary objective or purpose is to lower the difficulties, questions and also stress that emerge while the participant aims to cancel the membership account. Helpful Blog: https://www.houzz.co.uk/ideabooks/159357569/list/howto-cancel-com
-
미해결딥러닝 CNN 완벽 가이드 - TFKeras 버전
SGD 지그재그 질문드립니다.
안녕하세요. 강사님 옵티마이저의 이해 - Momentum, AdaGrad 챕터 중 Momentum의 효과에서 local minima가 loss 값이 작은 목표 지점인 것은 알겠는데 그쪽으로 갈때 SGD가 왜 지그재그로 움직이는지 직관적으로 잘 이해가 안됩니다. 교재의 그림에서 X Y 좌표와 등고선이 뜻하는 건 무엇인가요. 그리고 강의 11:43 쯤에 말씀하신 y축으로 갈때 Loss가 크게 감소한다고 말씀하셨는데 왜 그런지 그 이유도 궁금합니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
클립이 없다고 오류가떠요
AudioClip Missing ! SoundsUnityChan/univ0001 UnityEngine.Debug:Log (object) SoundManager:Play (Define/Sound,string,single) 매니저로 만든 게임오브젝트를 확인하니깐 오디오 클립이 논 이더라고요 플레이 부분에도 코드 잘넣어줫는데 어디서 문제가 난걸까요??
-
미해결입문자를 위한 자바스크립트 기초 강의
이미지 api
안녕하세요 선생님 포토 앨범 만들기에 실습 파트에서 이미지 api https://api.beansdrawer.com/ 해당 사이트가 접속이 안되는데 혹시 다른 문제가 있는걸까요? 감사합니다!
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
transition v-enter-from 관련 문제 해결
저 같은 경우 개발자도구 콘솔창에 transition-group children must be keyed. warning이 뜨고 enter 트랜지션이 적용이 안되길래 이것저것 해보다가 <li> key 에 todoitem.item 이 아닌 index 로 넣으니까 해결이 됐어용 근데 이게 맞는 방법인진 모르겠네요.. <li v-for="(todoItem, index) in propsdata" :key="index" class="shadow">
-
미해결자바스크립트+jQuery 기초부터 실무까지 : 기초 Part.1
자바스크립트 코드 실행
welcome.html 실행하는데 이런 오류가 뜨더라고요. 확장자를 설치하라는 것 같은데 보통 이런 문구가 뜨나요? 제가 맥북으로 해서 방법이 다른 건지 아무리 찾아봐도 해결 방법을 잘 모르겠습니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
알고리즘 교안 struct 사용 커스텀 정렬
안녕하세요 강사님. 알고리즘 교안 학습 중 struct 관련 질문드릴 부분이 있어서요. 활용 예시로 y를 1순위 오름차순, x를 2순위 내림차순, z를 3순위 오름차순이라고 되어 있는데, 해당 코드를 보면 x가 1순위 오름차순, y가 2순위 내림차순으로 되어 있는 것 같아서요. 저는 y를 1순위 오름차순, x를 2순위 내림차순, z를 3순위 오름차순을 아래와 같이 생각했는데, 알고리즘 교안의 내용이 맞는건지 궁금합니다.
-
미해결PWA 시작하기 - 웹 기술로 앱을 만들자
깃헙권한 요청드립니다.
인프런 아이디 : hoyuen.kim@hanmail.net 인프런 이메일 : hoyuen.kim@hanmail.net 깃헙 아이디 : hoyuen.kim@hanmail.net 깃헙 Username : hoyuenkim
-
해결됨[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
혹시 함수의 매개변수 타입을 명시적으로 나타내도록 할 수는 없나요?
강의 내용에는 나오지 않는 부분인 것 같아 먼저 죄송하단 말씀 드립니다! 마땅히 물어볼 곳이 없네요... 질문 드리고자 하는 것은 explicit 키워드와 관련된 것인데요. explicit 키워드를 사용하면 '생성자'의 매개변수 타입을 명시적으로 나타내야만 컴파일러가 통과시켜 준다는 것을 알게 되었는데요. 그렇다면 함수도 explicit 키워드를 사용하면 똑같은 일을 할 수 있지 않을까? 했는데 컴파일러가 안받아주더군여... 혹시 함수도 이런 명시적으로 선언하도록 강요할 수 있는 키워드나 어떤 방법이 있을까요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
영상 9분 프록시 기초 부분에서
ERROR: Column "INSERT_MEMBER" not found; SQL statement:라는 문구가 뜨는데 어떻게 설정을 다시 해줘야 할지 모르겠습니다. 아래는 JpaMain 입니다. Member입니다.
-
미해결스프링 핵심 원리 - 기본편
똑같이 따라 쳤는데 null이 뜹니다..
안녕하세요 강의 잘보고 있습니다!! 코드를 따라치다가 계속해서 setUrl의 값을 받지 못하고, null값만 뱉어 냅니다.. 아무리 찾아봐도 모르겠어서 질문 남깁니다.. 어는 부분에서 문제가 생긴건가요...? 감사합니다! package hello.core.lifecycle; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; public class NetworkClient implements InitializingBean, DisposableBean { private String url; public NetworkClient() { System.out.println("생성자호출, url = " + url); } public void setUrl(String Url) { this.url = url; } //서비스 시작시 호출 public void connect() { System.out.println("connect: " + url); } public void call(String message){ System.out.println("call: " + url + " message =" + message); } //서비스 종료시 호출 public void disConnect() { System.out.println("close " + url); } //의존관계 주입이 끝나면 호출 됨 @Override public void afterPropertiesSet() throws Exception { System.out.println("NetworkClient.afterPropertiesSet"); connect(); call("초기화 연결 메시지"); } @Override public void destroy() throws Exception { System.out.println("NetworkClient.destory"); disConnect(); } } package hello.core.lifecycle; import org.junit.jupiter.api.Test; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; public class BeanLifeCycleTest { @Test public void lifeCycleTest() { ConfigurableApplicationContext ac = new AnnotationConfigApplicationContext(LifeCycleConfig.class); NetworkClient client = ac.getBean(NetworkClient.class); ac.close(); } @Configuration static class LifeCycleConfig { @Bean public NetworkClient networkClient() { NetworkClient networkClient = new NetworkClient(); networkClient.setUrl("http://hello-spring.dev"); return networkClient; } } } /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=58427:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/changhyeon/.m2/repository/org/junit/platform/junit-platform-launcher/1.8.2/junit-platform-launcher-1.8.2.jar:/Users/changhyeon/.m2/repository/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2.jar:/Users/changhyeon/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/changhyeon/.m2/repository/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2.jar:/Users/changhyeon/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/junit/lib/junit5-rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/changhyeon/Desktop/이창현/coding/study/infren/core/out/test/classes:/Users/changhyeon/Desktop/이창현/coding/study/infren/core/out/production/classes:/Users/changhyeon/Desktop/이창현/coding/study/infren/core/out/production/resources:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-test/2.6.4/4befb5f23c4bac74125d1c9e4f3721586b315d3a/spring-boot-starter-test-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter/2.6.4/31adf5f726b6a5703815b99056110b96db7eff58/spring-boot-starter-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.22/9c08ea24c6eb714e2d6170e8122c069a0ba9aacf/lombok-1.18.22.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-test-autoconfigure/2.6.4/fe1ab93aa3ca84e50d0f470a17468a8e7e2770e3/spring-boot-test-autoconfigure-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-test/2.6.4/f7669dafbe66e2805349049c090d9cbca974fbd5/spring-boot-test-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/5.3.16/eba2a6612c3bb86cc71b31c731cb46164309f796/spring-test-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.16/db1b277cd548c725144580dda8703ce179fb3769/spring-core-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/com.jayway.jsonpath/json-path/2.6.0/67f565b424f7903a12d4f5b9361b11462ecacdac/json-path-2.6.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/jakarta.xml.bind/jakarta.xml.bind-api/2.3.3/48e3b9cfc10752fba3521d6511f4165bea951801/jakarta.xml.bind-api-2.3.3.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.assertj/assertj-core/3.21.0/27a14d6d22c4e3d58f799fb2a5ca8eaf53e6942a/assertj-core-3.21.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest/2.2/1820c0968dba3a11a1b30669bb1f01978a91dedc/hamcrest-2.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter/5.8.2/5a817b1e63f1217e5c586090c45e681281f097ad/junit-jupiter-5.8.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-junit-jupiter/4.0.0/b76de25bd6e5d8f7924d0536729c0076e37e9396/mockito-junit-jupiter-4.0.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/4.0.0/f5195e0c4a45716bbd2d1d29173adbd148acce3a/mockito-core-4.0.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.skyscreamer/jsonassert/1.5.0/6c9d5fe2f59da598d9aefc1cfc6528ff3cf32df3/jsonassert-1.5.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.xmlunit/xmlunit-core/2.8.4/35be57989ca80eefa03161b211630e319a8f36c6/xmlunit-core-2.8.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-autoconfigure/2.6.4/36e75a2781fc604ac042945eed8be2fe049731df/spring-boot-autoconfigure-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot/2.6.4/356c0ee25794ca46d8344d13cffbc30bfae1dc0e/spring-boot-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-logging/2.6.4/e8bab752fd29797df304ef2ad8575e5392d96c4c/spring-boot-starter-logging-2.6.4.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/jakarta.annotation/jakarta.annotation-api/1.3.5/59eb84ee0d616332ff44aba065f3888cf002cd2d/jakarta.annotation-api-1.3.5.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.29/6d0cdafb2010f1297e574656551d7145240f6e25/snakeyaml-1.29.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jcl/5.3.16/18d422952e0ce534c2b0ac8b47176c2432fb7e78/spring-jcl-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/net.minidev/json-smart/2.4.8/7c62f5f72ab05eb54d40e2abf0360a2fe9ea477f/json-smart-2.4.8.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.36/6c62681a2f655b49963a5983b8b0950a6120ae14/slf4j-api-1.7.36.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/jakarta.activation/jakarta.activation-api/1.2.2/99f53adba383cb1bf7c3862844488574b559621f/jakarta.activation-api-1.2.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-params/5.8.2/ddeafe92fc263f895bfb73ffeca7fd56e23c2cce/junit-jupiter-params-5.8.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/5.8.2/4c21029217adf07e4c0d0c5e192b6bf610c94bdc/junit-jupiter-api-5.8.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.11.22/8b4c7fa5562a09da1c2a9ab0873cb51f5034d83f/byte-buddy-1.11.22.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.11.22/2fbcf3210dfc09b42242e3b66a5281cc5b9adb80/byte-buddy-agent-1.11.22.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/com.vaadin.external.google/android-json/0.0.20131108.vaadin1/fa26d351fe62a6a17f5cda1287c1c6110dec413f/android-json-0.0.20131108.vaadin1.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/5.3.16/efb9c749b335bf62dc07c1674e9d76d382a027e5/spring-context-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.10/f69d97ef3335c6ab82fc21dfb77ac613f90c1221/logback-classic-1.2.10.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-to-slf4j/2.17.1/3619fd18278a1a895c1dca8c5be002768071a20e/log4j-to-slf4j-2.17.1.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.slf4j/jul-to-slf4j/1.7.36/ed46d81cef9c412a88caef405b58f93a678ff2ca/jul-to-slf4j-1.7.36.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/net.minidev/accessors-smart/2.4.8/6e1bee5a530caba91893604d6ab41d0edcecca9a/accessors-smart-2.4.8.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.apiguardian/apiguardian-api/1.1.2/a231e0d844d2721b0fa1b238006d15c6ded6842a/apiguardian-api-1.1.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/1.8.2/32c8b8617c1342376fd5af2053da6410d8866861/junit-platform-commons-1.8.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.opentest4j/opentest4j/1.2.0/28c11eb91f9b6d8e200631d46e20a7f407f2a046/opentest4j-1.2.0.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/5.3.16/d61c0545e0395de608be52db1cccb60ba841a26b/spring-aop-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.3.16/15decec5cea7a91423272daaae6f5d050c23cf3b/spring-beans-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/5.3.16/831a17ce70686c571f3c05c4bcfb81012c5814df/spring-expression-5.3.16.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.2.10/5328406bfcae7bcdcc86810fcb2920d2c297170d/logback-core-1.2.10.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.17.1/d771af8e336e372fb5399c99edabe0919aeaf5b2/log4j-api-2.17.1.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/9.1/a99500cf6eea30535eeac6be73899d048f8d12a8/asm-9.1.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-engine/5.8.2/c598b4328d2f397194d11df3b1648d68d7d990e3/junit-jupiter-engine-5.8.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/3.2/7fadf57620c8b8abdf7519533e5527367cb51f09/objenesis-3.2.jar:/Users/changhyeon/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-engine/1.8.2/b737de09f19864bd136805c84df7999a142fec29/junit-platform-engine-1.8.2.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 hello.core.lifecycle.BeanLifeCycleTest,lifeCycleTest 15:53:33.453 [main] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6253c26 15:53:33.472 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' 15:53:33.615 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor' 15:53:33.620 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory' 15:53:33.624 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' 15:53:33.626 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' 15:53:33.634 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'beanLifeCycleTest.LifeCycleConfig' 15:53:33.641 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'networkClient' 생성자호출, url = null NetworkClient.afterPropertiesSet connect: null call: null message =초기화 연결 메시지 15:53:33.756 [main] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6253c26, started on Thu Apr 07 15:53:33 KST 2022 NetworkClient.destory close null Process finished with exit code 0
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
useEffect에 관한 질문입니다!
해당 강의에서 product 파일의 index.js에 useEffect를 쓰는데요 useEffect를 쓰지 않고 import { useParams } from "react-router-dom"; import axios from "axios"; import { useEffect } from "react"; function ProductPage() { const { id } = useParams(); axios .get( `https://0433858f-3e14-4d79-b271-b955ae5e953a.mock.pstmn.io/products/${id}` ) .then(function (result) { console.log(result); }) .catch(function (error) { console.error(error); }); console.log("id는", id); return <h1>상품 상세 페이지 {id} 상품</h1>; } export default ProductPage; 이렇게 코딩을 하면 console에 result가 두 번 찍히는데 useEffect를 쓰지 않으면 왜 .then이 두 번 불리는지 잘 이해가 가지 않아서 질문 드립니다!
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
import 할 시에 어떻게 from 경로 지정에서 ./main 만 해줘도 되죠 ?
import 시 from 경로에 ./main 만 해줘도 index.js를 찾는다고 했는데 이게 어떻게 가능한건가요 ?? 다른 js 파일이 있더라도 자동으로 찾아주나요 ?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
깃허브 repo 권한 요청합니다.
인프런 아이디 : cheonshin99 인프런 이메일 : cheonshin99@naver.com 깃헙 아이디 : cheonshin99@naver.com 깃헙 Username : AssembleCat
-
미해결[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
트랜잭션
공식문서를 읽어보면서.. 자동으로 롤백처리되는 transaction을 쓰려고하는데 Cannot read property 'transaction' of undefined 자꾸 이 에러가 뜨는데 찾아봐도 해결이 안되서 질문드립니다.. 몇시간째 찾아봐도 보이지않아요..ㅜㅜ try { const tran = await sequelize.transaction(async (t) => { const {cate1_idx, cate2_idx, cate3_idx, gosu_name, my_place, distance, gender, hp} = req.body; const [results, created] = await Gosu.findOrCreate({ where: {mem_id: req.id}, defaults: {my_place, distance, gender, hp, gosu_name}, } ,{transaction: t}); const result = results && results[0] ? results[0] : created; res.status(200).json(result); }); }catch (err){ console.log(err); next(err); }});
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
라이브러리 설치 오류
- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다)- 이외의 문의등은 평생강의이므로 양해를 부탁드립니다- 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 라이브러리 설치 중에 SSLCertVerificationError 메시지가 나오면서 설치가 되질 않습니다. SSL 인증 에러 같은 경우 어떻게 해결해야하나요??
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
파이어베이스 익명로그인 강의 09:01 부분 문의
해당 부분 에서 FirebaseAuth, Firebase는 자동으로 import가 되는데 Firebase.auth 부분에서 뒤에 auth가 자동 import가 뜨질 않고 Unresolved reference:auth 에러가 계속 발생합니다. 한 번만 확인해주시면 감사하겠습니다. // LoginActivity package com.fitdback.userinterface import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.widget.Button import android.widget.Toast import com.fitdback.pointdetection.R import com.google.firebase.auth.FirebaseAuth import com.google.firebase.ktx.Firebase class LoginTestActivity : AppCompatActivity() { private lateinit var auth: FirebaseAuth override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login_test) // Initialize Firebase Auth auth = Firebase.auth val btnAnonymousLogin = findViewById<Button>(R.id.btnAnonymousLogin) btnAnonymousLogin.setOnClickListener { auth.signInAnonymously() .addOnCompleteListener(this) { task -> if (task.isSuccessful) { // Sign in success, update UI with the signed-in user's information Log.d("LoginTestActivity", "signInAnonymously:success") val user = auth.currentUser // updateUI(user) } else { // If sign in fails, display a message to the user. Log.w("LoginTesetActivity", "signInAnonymously:failure", task.exception) Toast.makeText( baseContext, "Authentication failed.", Toast.LENGTH_SHORT ).show() // updateUI(null) } } } } } // build.gradle(app) apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'com.google.gms.google-services' android { compileSdkVersion buildConfig.compileSdk defaultConfig { applicationId 'com.fitdback.userinterface' minSdkVersion buildConfig.minSdk targetSdkVersion buildConfig.targetSdk versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_static' cppFlags "-std=c++11","-frtti", "-fexceptions" } } ndk { abiFilters 'armeabi-v7a' } } // externalNativeBuild { // cmake { // path "CMakeLists.txt" // } // } lintOptions { abortOnError false } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } aaptOptions { noCompress "tflite" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } repositories { maven { url 'https://google.bintray.com/tensorflow' } flatDir { dirs 'libs' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':openCVLibrary341') implementation deps.kotlin.stdlib.jdk // implementation(name:'tensorflow-lite', ext:'aar') implementation deps.android.support.appcompatV7 implementation deps.android.support.constraintLayout implementation deps.android.support.design implementation deps.android.support.annotations implementation deps.android.support.supportV13 implementation deps.timber implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly' implementation 'org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly' // Import the Firebase BoM implementation platform('com.google.firebase:firebase-bom:29.2.1') // Declare the dependency for the Firebase Authentication library // When using the BoM, you don't specify versions in Firebase library dependencies implementation 'com.google.firebase:firebase-auth-ktx' testImplementation deps.junit androidTestImplementation(deps.android.test.espresso, { exclude group: 'com.android.support', module: 'support-annotations' }) }
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
def 에서의 함수 선언 질문 드립니다.
안녕하세요 오전에 답변 달아주신 내용 확인하고 추가적인 공부를 하고 왔습니다. 2.6 사이킷런으로 수행하는 타이타닉 생존자 예측.ipynb 파일에서 def fillna(df) 등을 선언 하실 때 df에 대한 정의 (df = titanic_df ) or (df = pd.read_csv('titanic_train.csv') 없이 강의가 진행 되더라구요. 어떻게 df가 자동으로 titanic_df 값을 받을 수 있는지 이해가 되지 않아서 직접 코드를 실행 해보았습니다. A. pd.read_csv 미작용, df 미정의 >> 오류발생 B. pd.read_csv() 작성, df 미정의 >> 오류발생 C. read_csv() 작성, df 정의 >> 함수가 제대로 정의 되었는지 확인 가능 1. 위 내용처럼 제가 혼자 코드를 작성 해보았을 땐 정의를 해주어야만 def 구문이 제대로 작성되었는지 확인 할 수 있었습니다.. 자동적으로 df가 titanic_df로 인식되게 할 수 있게 하는 다른 방법이 있는걸가요? 2. AttributeError: 'numpy.int64' object has no attribute 'fillna' 관련 질문입니다. 아래의 두 캡처본에서 오류가 발생하는것과 발생하지 않는것의 차이가 무엇인가요? A. def로 정의한 함수를 그대로 출력하여 null값 확인 B. def로 정의한 함수를 A로 받아서 null값 확인 마지막 질문입니다. 3.이번 질문의 경우는 너무 혼란스럽습니다. df를 정의 하지 않았고, dt=titanic_df로 정의 하였으며 def fna(KK) 에 대해서 선언을 하였고, dt에 대한 series값에 대해 fillna() 함수를 적용 하고 return df를 입력 하였습니다 또한 null값 확인을 위해 fna(dt).isnull() 값을 출력하였는데 함수가 적용된 결과값이 출력 되었습니다. 이 문제는 df, dt, KK 등에 어떠한 문자를 입력해도 같은 결과값이 출력이 되더군요.. 파이썬 자체의 오류인걸까요? -아래는 3번 질문에 대해서 작성 했던 코드입니다- import pandas as pd titanic_df = pd.read_csv('titanic_train.csv') dt = titanic_df def fna(KK) : dt['Age'].fillna(df['Age'].mean(), inplace = True) dt['Cabin'].fillna('N', inplace = True) dt['Embarked'].fillna('N', inplace = True) return dffna(dt).isnull() ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ 이러한 인자들을 무작위로 넣어보면서 출력을 했던 이유는 ex) df = titanic_df def fillna(df) : df['Age'].fillna(df['Age'].mean(), inplace = True) 위와 같은 def 구문처럼 <def 사용자 마음대로 지정 가능한 함수(매개변수1) : 매개변수2["컬럼값"].파이썬에 내장된 함수() > 형태에서 매개변수1과 매개변수2는 동일한 문자를 사용해야 하는지 확인해보고 싶었기 때문입니다. 매개변수 1에 df를 썼다면 매개변수 2에도 df를 반드시 써주어야 하는건가요?
-
미해결
how do i buy ethereum?
+1 855 300 1590 For another maybe more aggressive model, think about what as a Web3 informal organization would resemble. Clients could claim their own information and be allowed to adapt it (or not). Sponsors could execute straightforwardly with end clients, compensating them for their consideration as opposed to paying a go-between to attract a responsive crowd. Clients, who could be proprietors and partners in the organization, could have the choice (and motivation) to play a functioning job in the development of the organization by, for instance, deciding on redesign recommendations and choosing how to assign reserves. Different members, certain that the stage can keep up with valid nonpartisanship over the long haul, could feel more secure devoting assets by building items and administrations on the stage. This expansion of utility could attract more clients and, thus, more engineers in a positive input circle that could supercharge development of the organization. With motivations adjusted accurately, such an organization could develop quickly while advancing powerfully and in light of a legitimate concern for its clients, who - once more - likewise end up being its proprietors. Read More:- how do i buy ethereum