묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
구글 인증 설정 과정이 조금 달라진것 같아여
https://console.developers.google.com 에서 화면이 달라진것 같은데 설정해야할 url http://127.0.0.1:8000/accounts/google/login/callback/ http://127.0.0.1:8000/ 를 어디에 채워야 될지 몰겠어여 알려주시면 감사여 ~!
-
미해결유니티 게임 개발 (2D) 실전편 - 스크립트는 물론, 디자인 패턴과 알고리즘까지
자료 다운로드 받을수 있게 해주세요
유니티 실전 자료 다운로드 받을수 있게 해주세요
-
미해결Vue.js - Django 연동 웹 프로그래밍
속성이 외래키일 경우는 어떻게 해야할지 궁금합니다.
예를 들어 속성이 외래키인 경우에 listview를 통해 응답을 받게 되면 외래키인 속성에 대한 username가 올줄 알았는데 user_id = pk 가 와서요.. 그래서 vue에서 접근해주고 싶지만 django와 달리 뷰에서는 테이블 참조가 안되닌까 django에서 해줘야할 것같은데 응답을 user_id가 아니라 user_name 그리고 category_id가 아니라 category_name을 주고싶은데 잘 안되고 있네요...
-
미해결함수형 프로그래밍과 JavaScript ES6+
catchNoop을 해줘야되는 이유에 대해서 궁금한게있습니다.
한 콜스택 내에서 error를 catch하지 못했기 때문에 error가 콘솔에 뿜어져서 catchNoop을 해준다고 하셨는데요. C.reduce가 아니라 그냥 reduce의 경우에는 세로로 하나씩 실행되면서 filter가 Promise.reject(nop)을 리턴할 때가 있는데요. 이 call stack이 끝나고 reduce에 의해 recur이 실행되어 L.map으로 넘어가는데 L.map이 받은 Promise.reject(nop)은 filter와 다른스택 아닌가요? 제 생각으로는 L.map으로 가기전에 L.filter의 처리를 담은 프로미스가 끝나서 한 call-stack이 끝나고 C.reduce와 마찬가지로 에러를 만들어야될 것 같은데 아니네요.
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
gist 권한좀 부탁드립니다.
댓글 남겼는데 응답이 아직 없네요. 권한 부탁드려요.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
권한 부탁드립니다!
권한 부탁드려요!
-
미해결스프링 웹 MVC
부탁이 있습니다 ^^
강의 잘 듣고 있습니다. 한가지 바람이 있다면 인텔리제이 진행하실때 Presentation Assistant 같은 플러그인을 쓰시면 화면에 단축키하고 메뉴가 표시되어서 좋을것 같아요
-
미해결실습 UI 개발로 배워보는 순수 javascript 와 VueJS 개발
처음 vue를 접하다보니 로직 흐름이 잘 이해가 안됩니다..ㅠㅠ
처음 vue를 배우는데 강좌를 계속 듣다보니 의아한게 있어서 질문드립니다.. 로직 흐름이 어려워서 이런 문의를 드리게 됬습니다..ㅠㅠ 예를들어 말씀드리면, 1. 검색창 input태그(HTML)로 작성한 부분을 템플릿(#search-form) 으로 바꾸고 , 기존에 검색창 input(html)이 있던 자리에 디렉토리(search-form)를 만드셨는데 왜 이렇게 하신건가요? 2.템플릿(#search-form)에 검색창에 필요한 기능들이 있는데, 아래 예시와 같이 디렉토리(search-form)에 추가 기능을 넣는 이유가 먼가요? ex. <search-form v-bind:value="query" v-on:@submit="onSubmit" v-on:@reset="onReset"></search-form> 3. app.js만 작성하다가 개발이 완료된 후, 컴포넌트 작성이 추가됬는데요. 왜 컴포넌트 작성을 추가하신건가요? 그리고 인스턴스와 컴포넌트 무슨 관계라고 생각하면 될까요?
-
미해결밑바닥 부터 시작하는 머신러닝 입문
과제관련
홈페이지 업데이트가 된 이후로 과제가 다 사라져있는데 이거는 언제 복귀가 가능한가요? 과제를 다시 풀어보고싶은데 못하고 있습니다. ㅠㅠ
-
Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
혹시 광고성 강좌인가요?
삭제된 글입니다
-
미해결파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기
키에러가 납니다
뉴버전 보고있는데 Close Open High Low Volume Change Date 2019-04-22 204.53 202.83 204.94 202.34 19440000.0 0.0033 2019-04-23 207.48 204.43 207.75 203.90 23320000.0 0.0144 2019-04-24 207.16 207.36 208.48 207.05 17540000.0 -0.0015 2019-04-25 205.28 206.83 207.76 205.12 18540000.0 -0.0091 2019-04-26 204.30 204.90 205.00 202.12 18650000.0 -0.0048 2019-04-29 204.61 204.40 205.97 203.86 22200000.0 0.0015 2019-04-30 209.95 202.69 209.95 199.17 1730000.0 0.0261 Traceback (most recent call last): File "pandas/_libs/index.pyx", line 457, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item TypeError: an integer is required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2525, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 459, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 465, in pandas._libs.index.DatetimeEngine._date_check_type KeyError: '2016-02-25' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 457, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item TypeError: an integer is required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1435, in get_loc return Index.get_loc(self, key, method, tolerance) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2527, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 459, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 465, in pandas._libs.index.DatetimeEngine._date_check_type KeyError: '2016-02-25' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 449, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 817, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1456358400000000000 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2525, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 451, in pandas._libs.index.DatetimeEngine.get_loc KeyError: Timestamp('2016-02-25 00:00:00') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "pandas/_libs/index.pyx", line 449, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 811, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 817, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1456358400000000000 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1444, in get_loc return Index.get_loc(self, stamp, method, tolerance) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2527, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 421, in pandas._libs.index.DatetimeEngine.get_loc File "pandas/_libs/index.pyx", line 451, in pandas._libs.index.DatetimeEngine.get_loc KeyError: Timestamp('2016-02-25 00:00:00') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hyeonseongjun/Desktop/inflearn/section2/test/bnmva23-1/download4-7-3.py", line 24, in <module> print(df_app.ix['2016-02-25']) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 127, in __getitem__ return self._getitem_axis(key, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1108, in _getitem_axis return self._get_label(key, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 145, in _get_label return self.obj._xs(label, axis=axis) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py", line 2344, in xs loc = self.index.get_loc(key) File "/Users/hyeonseongjun/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 1446, in get_loc raise KeyError(key) KeyError: '2016-02-25' 에러메세지인데요 혹시나 해서 복붙해봤는데 역시나 마찬가지입니다
-
미해결Javascript ES6+ 제대로 알아보기 - 초급
함수들을 배열에 저장하는 부분에서 let i로 선언한 값들이 어떻게 함수내에 저장되는지 잘 이해가 안갑니다.
let funcs = [] for (let i = 0; i < 10; i++) { funcs.push(function() { console.log(i) }) } funcs.forEach(function(f) { f() }) forEach로 f함수를 실행시키는 부분에서 i의 스코프가 어디서 살아 있는 건가요? 제가 이해하기로는 funcs = [ ..., function() { console.log(i) }, ...]로 i에 대한 값은 없이 함수만 저장되어 있고 forEach로 실행시키는 부분에서는 for문 밖에서 실행시키기 때문에 for 문의 스코프에 영향을 받지 않을 것이라 예상되는데 만약 i가 for 문의 스코프에 영향을 받는다면 어떤 방식으로 받는 것인지, 그것이 왜 메모리 측면에서 효율적인지 알고 싶습니다!
-
미해결3dsmax 초급부터 전문가까지 - 한방에 끝내는 3dsmax 강좌
topology_interface 단축키
안보여서 설정을 못했어요..
-
해결됨파이썬으로 구현하는 거래 자동화 봇 (챗봇)
pip install requests
Pycharm terminal 에서 pip install requests 라고 입력하면 아래와 같이 나옵니다. 이미 설치가 되었다는 것 같은데... 그리고 메인창에 import requests 를 입력하면 아무것도 안나오는데요. -------------------------------------------------------- Microsoft Windows [Version 10.0.17763.437] (c) 2018 Microsoft Corporation. All rights reserved. (base) C:\Users\USER\PycharmProjects\autobot>pip install requests Requirement already satisfied: requests in c:\anaconda3\lib\site-packages (2.21.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\anaconda3\lib\site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\anaconda3\lib\site-packages (from requests) (2019.3.9) Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\anaconda3\lib\site-packages (from requests) (1.24.1) Requirement already satisfied: idna<2.9,>=2.5 in c:\anaconda3\lib\site-packages (from requests) (2.8)
-
미해결Javascript ES6+ 제대로 알아보기 - 초급
왜 node 환경과 브라우저 환경에서 전역 this의 동작이 다른가요?
강의 중간에 나온 함수에서 `this.value = 3`이 브라우저 환경에선 window.value로 할당되는 반면 노드 환경에서는 왜 그렇게 동작하지 않는지 궁금합니다.
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
app.setStudentInfo(1111, "sejong", "male", 7, {from: web3.eth.accounts[1]}) 에러가 뜹니다 ㅠㅠ
The send transactions "from" field must be defined! 이런 에러문구가 뜨는데 뭐가 잘못된걸까요??
-
미해결Node.js로 웹 크롤링하기
npm start 후 error
UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client 이런 오류가 생기는데, 어떤게 문제인지 모르겠습니다. 원래 강의대로라면 crawler schema에 table이 생겨야하는데, 위 오류가 발생합니다. mysql 설치시 validation을 설치했는데 그거 때문에 생긴 문제일까요? 코드는 다음 코드에서 돌렸습니다. const puppeteer = require("puppeteer"); const dotenv = require("dotenv"); const db = require("./models"); dotenv.config(); const crawler = async () => { await db.sequelize.sync(); try { let browser = await puppeteer.launch({ headless: false, args: ["--window-size=1920,1080", "--disable-notifications"] }); let page = await browser.newPage(); await page.setViewport({ width: 1080, height: 1080 }); await page.goto("http://spys.one/free-proxy-list/KR/"); const proxies = await page.evaluate(() => { const ips = Array.from( document.querySelectorAll("tr > td:first-of-type > .spy14") ).map(v => v.textContent.replace(/document\.write\(.+\)/, "")); const types = Array.from( document.querySelectorAll("tr > td:nth-of-type(2)") ) .slice(5) .map(v => v.textContent); const latencies = Array.from( document.querySelectorAll("tr > td:nth-of-type(6) .spy1") ).map(v => v.textContent); return ips.map((v, i) => { return { ip: v, type: types[i], latency: latencies[i] }; }); }); const filtered = proxies .filter(v => v.type.startsWith("HTTP")) .sort((p, c) => p.latency - c.latency); await Promise.all( filtered.map(async v => { return db.Proxy.upsert({ ip: v.ip, type: v.type, latency: v.latency }); }) ); await page.close(); await browser.close(); const fastestProxies = await db.Proxy.findAll({ order: [["latency", "ASC"]] }); browser = await puppeteer.launch({ headless: false, args: [ "--window-size=1920,1080", "--disable-notifications", `--proxy-server=${fastestProxies[0].ip}` ] }); const browser2 = await puppeteer.launch({ headless: false, args: [ "--window-size=1920,1080", "--disable-notifications", `--proxy-server=${fastestProxies[1].ip}` ] }); const browser3 = await puppeteer.launch({ headless: false, args: [ "--window-size=1920,1080", "--disable-notifications", `--proxy-server=${fastestProxies[2].ip}` ] }); // const context = await browser.createIncognitoBrowserContext(); // const context2 = await browser.createIncognitoBrowserContext(); // const context3 = await browser.createIncognitoBrowserContext(); // console.log(await browser.browserContexts()); const page1 = await browser.newPage(); const page2 = await browser2.newPage(); const page3 = await browser3.newPage(); await page1.goto( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); await page2.goto( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); await page3.goto( "https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC" ); // page = await browser.newPage(); // await page.goto('https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=%EB%82%B4+%EC%95%84%EC%9D%B4%ED%94%BC'); // await page.waitFor(10000); // await page.close(); // await browser.close(); await db.sequelize.close(); } catch (e) { console.error(e); } }; crawler();
-
미해결자바 스프링 프레임워크(renew ver.) - 신입 프로그래머를 위한 강좌
강의 소리가 너무 작아요
카페에서 노트북으로 듣고 있는데 이강의는 무소음 장소에서 듣는 용도 인가요?
-
미해결실전 HTML & CSS 강좌
강의 예제 파일
강의 예제 파일을 첨부해주시면 좋겠는데... 불가한가요?
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
질문입니다
혹시 개인적으로 리눅스 분야 관련해서 여쭤봐도 될까요?? 취업진로긴합니다..