묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
npm install -g truffle error 가 났습니다
PS C:UsersAdministrator> npm -v6.4.1PS C:UsersAdministrator> npm install -g trufflenpm ERR! Unexpected end of JSON input while parsing near '...nt":"^0.24.0","got":"'npm ERR! A complete log of this run can be found in:npm ERR! C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-11-08T14_58_44_094Z-debug.logPS C:UsersAdministrator>여기서 막혔습니다 도와주세요
-
미해결
npm install -g truffle error가 발생했습니다
PS C:UsersAdministrator> npm -v6.4.1PS C:UsersAdministrator> npm install -g trufflenpm ERR! Unexpected end of JSON input while parsing near '...nt":"^0.24.0","got":"'npm ERR! A complete log of this run can be found in:npm ERR! C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-11-08T14_58_44_094Z-debug.logPS C:UsersAdministrator>여기서 막혔습니다. 도와주세요
-
미해결홍정모의 따라하며 배우는 C++
vcpkg에서
만약 vcpkg를 64비트로 설치하고 비주얼 스튜디오는 86비트이면 <boost/asio.hpp>가 인클루드가 안되나요?
-
미해결Node.js 교과서 - 기본부터 프로젝트 실습까지
views/sequelize.pug의 form 부분에 action이 없는 이유는 뭔가요?
안녕하세요. 항상 좋은 강좌 잘 듣고 있습니다.호주 귀국 하루전에 우연히 서점에 들려서 펼처봤는데 내용이 너무 좋아서, 동영상 강좌도 듣고 있습니다. 질문이 있는데 form 에 관한 부분입니다. 제가 기억하기로는 form은 action 부분이 있어야 어디로 보내는지를 설정할 수 있는데 본문의 sequelize.pug에 있는 form에는 action이 들어있지 않네요. 특별한 이유가 있나요?없어도 처리가 된다면 어떤 원리도 처리가 되나요?이하는 코드 전문입니다. doctype htmlhtml head meta(charset='utf-8') title 시퀄라이즈 서버 style. table { border: 1px solid black; border-collapse: collapse; } table th, table td { border: 1px solid black; } body div form#user-form fieldset legend 사용자 등록 div input#username(type="text" placeholder="이름") div input#age(type="number" placeholder="나이") div input#married(type="checkbox") label(for="married") 결혼 여부 button(type="submit") 등록 br table#user-list thead tr th 아이디 th 이름 th 나이 th 결혼여부 tbody for user in users tr td= user.id td= user.name td= user.age td= user.married ? '기혼' : '미혼' br div form#comment-form fieldset legend 댓글 등록 div input#userid(type="text" placeholder="사용자 아이디") div input#comment(type="text" placeholder="댓글") button(type="submit") 등록 br table#comment-list thead tr th 아이디 th 작성자 th 댓글 th 수정 th 삭제 tbody script(src='/sequelize.js')
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
코드를 다른 방식으로 적어보았어요
항상 수업 열심히 듣고, 복습/자습 열심히 하고 있습니다 감사합니다 :D % , format, f-string에서 %가 제일 빠르다고 하던데 정말인지 궁금합니다! print() 함수에서 출력되는 문자 마지막에 엔터가 안들어가게 하는 방법이 있을까요? print("구구단게임시작![1~9=구구단외우기, 0=게임종료]") x = 1 while x != 0: print("몇 단을 계산할까요?") x = int(input()) if (x == 0): break if not x in range(1, 10): print("잘못된 값을 입력하였습니다.") continue else: print(f"구구단 {x}단을 계산합니다.") for i in range(1, 10): print(f"{x} X {i} = {x*i}") else: print("게임다시하기[1~9=구구단외우기, 0=게임종료]") print("구구단 게임 종료")
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
이런 에러는 어떻게 해결할까요...
SSL handshake failed on verifying the certificateprotocol: <asyncio.sslproto.SSLProtocol object at 0x106f89a90>transport: <_SelectorSocketTransport fd=10 read=polling write=<idle, bufsize=0>>Traceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_completeraise handshake_excFile "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldataself._sslobj.do_handshake()File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 763, in do_handshakeself._sslobj.do_handshake()ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)SSL error in data receivedprotocol: <asyncio.sslproto.SSLProtocol object at 0x106f89a90>transport: <_SelectorSocketTransport closing fd=10 read=idle write=<idle, bufsize=0>>Traceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 526, in data_receivedssldata, appdata = self._sslpipe.feed_ssldata(data)File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldataself._sslobj.do_handshake()File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 763, in do_handshakeself._sslobj.do_handshake()ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)✘ BackendClientError('Request to the API endpoint has failed.nCheck your network connection and/or the server status.')
-
미해결누구나 따라하면서 배우는 JSP 커뮤니티 게시판 만들기
비밀번호 틀림 오류
안녕하세요. 강의 수강 중인 인원입니다.제 질문 내용은 아래와 같습니다.질문 내용▶ 오류 내용 : 비밀번호 입력을 제대로 했음에도 불구하고 main.jsp page 로 넘어가지 않고 비밀번호 틀림 안내문구가 계속 발생.'''package user;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;public class UserDAO {private Connection conn;private PreparedStatement pstmt;private ResultSet res;public UserDAO() { try { String dbURL = "jdbc:mysql://localhost:3306/BBS?serverTimezone=UTC"; String dbID = "root"; String dbPassword = "1234"; Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection(dbURL, dbID, dbPassword); } catch (Exception e) { e.printStackTrace(); }}public int login(String userID, String userPassword) { String SQL = "SELECT userPassword FROM USER WHERE userID=?"; try { pstmt = conn.prepareStatement(SQL); pstmt.setString(1, userID); res = pstmt.executeQuery(); if(res.next()) { if(res.getString(1).equals(userPassword)) return 1; //로그인 성공 else return 0; // 로그인 실패, 비밀번호 다름 } return -1; //아이디 존재 없음 } catch (Exception e) { e.printStackTrace(); } return -2; //DB 오류}public int join(User user) { String SQL = "INSERT INTO USER VALUES(?, ?, ?, ?, ?)"; try { pstmt = conn.prepareStatement(SQL); pstmt.setString(1, user.getUserID()); pstmt.setString(2, user.getUserPassword()); pstmt.setString(3, user.getUserName()); pstmt.setString(4, user.getUserGender()); pstmt.setString(5, user.getUserEmail()); return pstmt.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } return -1;}}'''인프런 지식인 분들의 답변 부탁드립니다.
-
미해결Node.js 교과서 - 기본부터 프로젝트 실습까지
main.pug 중간에 if 문에 대해서 궁금한 것이 있습니다.
if user && user.id !== twit.user.id && !follow위의 if 조건문에 따라서 팔로우하기 버튼이 보이고 안보이고가 정해지는데저 조건문에서 조건을 따지는 순서나 방법이 궁금합니다!== 연산자의 순위가 &&보다 높으니 user.id !== twit.user.id 먼저 비교를 하고if user && 결과 && !follow 이 상태에서 앞에서 차례로 true, false를 따져주면 되는건가요?ㅠㅠ 헷갈립니다 도와주세요!
-
미해결Node.js 교과서 - 기본부터 프로젝트 실습까지
선생님 노드 cli프로그램만들기 보다가 궁금한점이 생겼는데
path와 directory의 차이가 뭔가요?둘다 경로를 말하는 건 알겠는데 차이를 모르겠습니다.어떤때에 어떤걸쓰는지 궁금합니다
-
미해결홍정모의 따라하며 배우는 C++
질문
git config --global user.name \"Mona Lisa\"명령어를 수행해도 자격증명관리자에 접근이 되지 않는데 이럴때는 어떻게 해야 하나요?
-
미해결홍정모의 따라하며 배우는 C++
질문
git config --global user.name \"Mona Lisa\"명령어를 수행해도 자격증명관리자에 접근이 되지 않는데 이럴때는 어떻게 해야 하나요?
-
미해결
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전 좀 부탁드립니다.kali linux virtualbox버전이 다운로드가 안됩니다.수고하세요
-
미해결
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전 좀 부탁드립니다.kali linux virtualbox버전이 다운로드가 안됩니다.수고하세요
-
미해결
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전 좀 부탁드립니다.kali linux virtualbox버전이 다운로드가 안됩니다.수고하세요
-
미해결
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전 좀 부탁드립니다.kali linux virtualbox버전이 다운로드가 안됩니다.수고하세요
-
미해결
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전
비박스환경을 활용한 웹모의해킹 완변실습 강의자료, kali linux virtualbox버전 좀 부탁드립니다.kali linux virtualbox버전이 다운로드가 안됩니다.수고하세요
-
미해결Node.js 교과서 - 기본부터 프로젝트 실습까지
parseCookie 부분에 대해 질문 있습니다.
ParseCookies=(cookie~ 로 시작하는 부분에 질문있습니다.이게 쿠키 property를 받아서 나누고 쪼개는 역할을 하는 거 같은데요, 처음에 (cookie = '') => 이 부분은 기본 쿠키값이 비어있게 설정하는 건가요?쿠키를 ; 로 나누고, 그다음 = 으로 나눈 후에, 인자 "k" 부분 부터 이해가 안갑니다.여기서 인자 k는 뭔가요 ㅇ,.ㅇ;마지막에 reduce를 해 주는 곳에서 인자 갑자기 "acc" 가 나오는데, 이 친구는 뭐를 가르키는 건가요?이하는 쿠키 부분의 코드 입니다. const parseCookies = (cookie = '') => cookie .split(';') .map(v => v.split('=')) .reduce((acc, [k, v]) => { acc[k.trim()] = decodeURIComponent(v); return acc; }, {});이하는 코드 전문입니다. ```const http = require('http');const fs = require('fs');const url = require('url');const qs = require('querystring');const parseCookies = (cookie = '') =>cookie.split(';').map(v => v.split('=')).reduce((acc, [k, v]) => {acc[k.trim()] = decodeURIComponent(v);return acc;}, {});const session = {};http.createServer((req, res) => {const cookies = parseCookies(req.headers.cookie);if (req.url.startsWith('/login')) {const { query } = url.parse(req.url);const { name } = qs.parse(query);const expires = new Date();expires.setMinutes(expires.getMinutes() + 5);const randomInt = +new Date();session[randomInt] = {name,expires,};res.writeHead(302, {Location: '/','Set-Cookie': session=${randomInt}; Expires=${expires.toGMTString()}; HttpOnly; Path=/,});res.end();} else if (cookies.session && session[cookies.session].expires > new Date()) {res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });res.end(${session[cookies.session].name}님 안녕하세요);} else {fs.readFile('./server4.html', (err, data) => {if (err) {throw err;}res.end(data);});}}).listen(8084, () => {console.log('8084번 포트에서 서버 대기중입니다!');});
-
미해결아두이노 강좌
그럼 어떻게 쓰면....
어떻게 하면 정확히 1초를 할 수 있나요?
-
미해결모두를 위한 프로세스 마이닝
강의자료를 볼 수 있는 방법 좀 알려주세요
149801_ files 압축파일을 열어보면 ***.fbt확장자로 되어 있는데 이걸 어디서 볼 수 있는지 궁금합니다
-
미해결스프링 데이터 JPA
요청이 많은 API에서 JpaRepository에서 save시 lock발생
안녕하세요.요청이 많은 API에서 JpaRepository를 사용하여 데이터를 저장하고 있습니다.'''repository.save(logs);'''이럴때 DB에서 lock이 걸려 모든 dbconnection이 밀리게 됩니다.보통 이럴떄는 어떻게 처리하나요?