묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
맥북 터미널 + 신탁스에러 봐주세요 ㅠ.,ㅜ
from math import * print(floor(4.99)) #소수점을 내림, 4 print(ceil(3.14) #소수점을 올림, 4 print(sqrt(16)) #제곱근, 4 터미널 내용 /Users/-----/Desktop/pythonworkspace/practice.py The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. -----ui-MacBook-Pro:~ -----$ python /Users/-----/Desktop/pythonworkspace/practice.py File "/Users/-----/Desktop/pythonworkspace/practice.py", line 79 print(sqrt(16)) #제곱근, 4 ^ SyntaxError: invalid syntax -----ui-MacBook-Pro:~ -----$ 맥북 프로 사용중입니다 파이썬은 처음 배워보는데 이런 경우는 무엇이 문제고 어떻게 해결할 수 있을까요? ㅠㅠ
-
미해결C 프로그래밍 - 입문부터 게임 개발까지
궁금한게 있습니다!!
int main(void) 여기에 정의 하는해 구현하는 것 과 함수 void int main (.....) 여기에 구현하는 것이 어떤 차이가 있는지 궁금합니다. 추가로 cursor = arrayFish; 는 미션맨 = &철수; 미션맨 = &영희; 미션맨 = &민수; 와 같이 arrayFish의 주소값을 갖는 것인가요
-
미해결<M.B.I.T> 테스트 페이지 만들기! with Django
JSONField 추가 후 result 페이지에 값이 반영되지 않는 문제
안녕하세요. 막판에 질문이 많아지네요ㅠㅠ models.py의 Developer 모델에 JSONField 추가 후 result 페이지에서 값이 보이지 않는 문제가 발생합니다.(아래 화면) 모델 변경 후 makemigrations, migrate한 뒤에 data.json 변경하고 shell_plus 명령어로 backend.data 등의 데이터가 제대로 들어간 것은 확인했습니다. 그럼 데이터를 불러오는 부분이 문제가 아니라 불러온 데이터값을 화면에 찍는 과정에서 문제가 발생한 것 같은데 어떤 부분이 문제인지 모르겠습니다. models.py 부분은 아래와 같습니다. result.html {% load static %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta property="og:title" content="MBIT" /> <meta property="og:image" content="" /> <meta property="og:url" content="" /> <meta property="og:description" content="나의 개발 유형은?" /> <title>MBTI 말고 MBIT</title> <link rel="stylesheet" type="text/css" href="{% static 'css/reset.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'css/result.css' %}"> <script src="https://code.jquery.com/jquery-3.6.0.js"></script> <script type="text/javascript" src="{% static 'js/result.js' %}"></script> <script src="https://developers.kakao.com/sdk/js/kakao.js"></script> </head> <body> <section id="main_contents"> <div class="wrapper"> <div class="result"> <div class="titles"> <h3>{{developer.data.title}}</h3> <h1>{{developer.name}}</h1> </div> <div class="result_img"> <img src="{% static 'image/' %}{{ developer.pk}}.png" alt="frontend" /> </div> </div> <div class="result_explains"> <div class="explain"> <h3 class="title">나와 맞는 개발 유형은 {{developer.name}}!</h3> <ul> {% for feature in developer.data.features %} <li> {{ feature }} </li> {% endfor %} </ul> </div> <div class="explain"> <h3 class="title">{{ developer.name }}(이)가 뭐지?</h3> <ul> {% for description in developer.data.descriptions %} <li> {{ description }} </li> {% endfor %} </ul> </div> <div class="explain"> <h3 class="title">그래서 어떤 언어부터 공부해야 할까?</h3> <ul class="language_lists"> {% for language in developer.data.languages.list %} <li> <div class="img_wrap"> <img src="{% static '' %}{{ language.img }}" alt="{{ language.name }}"> </div> <h3>{{ language.name }}</h3> </li> {% endfor %} </ul> {% if data.languages.comments %} <ul> {% for comment in developer.data.languages.comments %} <li> {{ comment }} </li> {% endfor %} </ul> {% endif %} </div> </div> <div class="lectures"> <h3 class="title">강의 추천</h3> <p>{{ developer.name }} 공부를 시작하기 좋은 강의를 추천해 드릴게요!</p> <ul> {% for lecture in data.lectures %} <li> <a href="{{ lecture.url }}" target="_blank"> <img src="{% static '' %}{{ lecture.img }}" alt="{{ developer.lecture.name }}"> <h3>{{ lecture.name }}</h3> <button type="button">강의 보러가기</button> </a> </li> {% endfor %} </ul> </div> <div class="share"> <div class="url"> <button class="copy_btn" type="button">URL 복사하기</button> </div> <div class="facebook"> <button class="facebook_share" type="button">Facebook 공유하기</button> </div> <div class="kakao"> <button class="kakao_share" type="button">카카오톡 공유하기</button> </div> </div> <div class="buttons"> <ul> <li> <h3>...이건 내가 아니야... 잘못된 게 분명해!</h3> <a href="{% url 'main:index' %}"> <button type="button">테스트 다시 하기</button> </a> </li> <li> <h3>다른 사람들은 어떤 유형일까?</h3> <a href="#"> <button type="button">다른 결과 알아보기</button> </a> </li> <li> <h3>나는 얼마나 훈련해야 전문가가 될까?</h3> <a href="http://paullab.co.kr/10000hours.html"> <button type="button">1만 시간의 법칙</button> </a> </li> </ul> </div> </div> </section> </body> </html> 답변 기다리겠습니다ㅠㅠㅠㅠ
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
다중 for문
<script> function solution(n, k, card){ let answer = 0; for(let i=0; i<n; i++){ for(let j=0; j<n; j++){ for(let s=0; s<n; s++){ if(i !== j !== s){ console.log(card[i], card[j], card[s]); } else break; } } } return answer; } let arr=[13, 15, 34, 23, 45, 65, 33, 11, 26, 42]; console.log(solution(10, 3, arr)); </script> 이렇게 구현했을 때, i = j = s 인 경우가 찍히는 이유가 뭔지 알 수 있을까요?
-
미해결타입스크립트 시작하기
타입스크립트 사용하는 이유 : 높은 생산성
2분 37초 경에 name을 firstname 으로 바꿀때영 단축키 뭐 누르셨나요?? 그냥 수정 하게 되면 그냥 저기만 수정이 되더라구요 ㅠ
-
미해결스프링 핵심 원리 - 기본편
안녕하세요 영한님. 질문이 있습니다.
안녕하세요좋은강의 항상 감사드립니다. 질문이 있습니다.저는 현재 작은회사에서 Java Spring Boot로 Back-End개발일을 하고있습니다.저같은 경우는 규모가 작아서인지 설계를 제대로하지 않은채 빠르게 개발하는것에만 집중한다는 느낌을 많이 받습니다.강의중에 도메인 협력관계, 클래스 다이어그램, 객체 다이어그램등을 설계하시고 구현하시는데, 영한님의 회사에서는 어느정도 선까지 설계를 해놓고 구현하는지 궁금합니다.또, 영한님께서 설계하실때 사용하시는 툴도 어떤것을 사용하는지 궁금합니다.항상 감사합니다.
-
미해결15일간의 빅데이터 파일럿 프로젝트
버츄얼 박스 설치 관련 문의 드립니다.
안녕하세요? 선생님! 버츄얼박스 설치 관련하여 문의 드립니다. 파일럿 환경 구성에서 버츄얼 박스 설치 내용으로 진행하였으나 버츄얼박스 5.0.40 버전은 다운로드가 안되어 5.1.0 버전을 설치했는데요. "이 앱은 이 장치에서 실행할 수 없습니다" 라고 나오네요. 무슨 문제인지는 모릅니다. 혹시 다른 버전의 버츄얼박스를 설치해야 되는지 문의 드리며, 다른 버전은 몇으로 설치하면 되는지요. 저는 개발자가 아니라 이런한 부분에 대해서 잘 해결할 수 없어 문의 드립니다. 시작한지 3일차된 수강생입니다.
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
npm install -g sequelize-cli
안녕하세요 그랩님 npm install -g sequelize-cli가 안깔립니다ㅜ 혹시나 해서 global을 제외하고 npm install sequelize-cli로만 했더니 깔렸는데 이렇게 사용해도 괜찮은건가요? 에러코드 올려봅니다 매번 감사합니다 그랩님 npm ERR! code EACCES npm ERR! syscall symlink npm ERR! path ../lib/node_modules/sequelize-cli/lib/sequelize npm ERR! dest /usr/local/bin/sequelize npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize' npm ERR! [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] { npm ERR! cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'symlink', npm ERR! path: '../lib/node_modules/sequelize-cli/lib/sequelize', npm ERR! dest: '/usr/local/bin/sequelize' npm ERR! }, npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'symlink', npm ERR! path: '../lib/node_modules/sequelize-cli/lib/sequelize', npm ERR! dest: '/usr/local/bin/sequelize' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/sumin/.npm/_logs/2021-06-08T10_23_16_558Z-debug.log sumin@192-168-1-117 grab-market-server % npm install -g sequelize-cli npm ERR! code EACCES npm ERR! syscall symlink npm ERR! path ../lib/node_modules/sequelize-cli/lib/sequelize npm ERR! dest /usr/local/bin/sequelize npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize' npm ERR! [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] { npm ERR! cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'symlink', npm ERR! path: '../lib/node_modules/sequelize-cli/lib/sequelize', npm ERR! dest: '/usr/local/bin/sequelize' npm ERR! }, npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'symlink', npm ERR! path: '../lib/node_modules/sequelize-cli/lib/sequelize', npm ERR! dest: '/usr/local/bin/sequelize' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/sumin/.npm/_logs/2021-06-08T10_25_06_402Z-debug.log sumin@192-168-1-117 grab-market-server % npm install sequelize-cli npm WARN grab-market-server@1.0.0 No description npm WARN grab-market-server@1.0.0 No repository field. + sequelize-cli@6.2.0 added 72 packages from 46 contributors and audited 258 packages in 3.405s 5 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
-
미해결타입스크립트 시작하기
코드
안녕하세요 ㅎㅎ 혹시 코드 받을수있을까요 ??
-
미해결스프링 시큐리티
SecurityContextHolder.setStrategyName 여러번 호출시?
안녕하세요. 만약 WebSecurityConfigurerAdapter 를 상속받는 Config 클래스가 2개 있다고 할때 각각의 클래스에서 각기다른 SecurityContextHolder.setStrategyName 를 설정하면 어떻게 되나요? 예를 들어 @Order(1) public class SecurityConfig1 extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { ... SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL); } } @Order(2) public class SecurityConfig2 extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { ... SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_THREADLOCAL); } } 와 같이 되어 있다고 하면 @Order 가 마지막인 설정이 적용되는건가요? (참고로 @Order 붙이니깐 오버라이드 한 configure 메서드도 호출 순서에 영향 받더라구요) SecurityContextHolder 클래스에 에 private static SecurityContextHolderStrategy strategy; 로 되어 있는걸로 봐서는 마지막에 설정된 값이 들어 가는거 같긴한데 제 예상이 맞나요? 그리고 SecurityContextHolder 클래스안에 private static int initializeCount = 0; 는 왜 만들어 놨는지 궁금하네요. 딱히 사용하는곳도 없는거 같아서요. 그냥 혹시나 개발자가 몇번 재정의 되었는지 확인할수도 있을거라 예상해서 그냥 만들어 놓은 걸까요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part7: MMO 컨텐츠 구현 (Unity + C# 서버 연동 기초)
FindPlayer에 관한 질문입니다.
제가 잘 이해하고 있는것이 맞는지 확신이 안서서 질문드립니다. 우선은 JobSerializer에서 Push를 할때 하나의 쓰레드가 접근하여 멤버변수(Flush)를 바꾸고 자신이 들어가서 Flush를 통해 Que안에 있는 잡들을 실행하는것이 JobSerializer이 하는 일이라고 이해했습니다 그렇기 때문에 JobSerializer를 상속받아서 사용하는 클래스들이 Player들을 수정하더라도 큐에 담겨져 있는 순서대로 실행되기때문에 FindPlayer를 호출해도 안전하다고 생각 할 수 있는 것이고, 관련이 없는 ( JobSerializer 상속 X ) 클래스들은 Player를 읽는것이 아니라 수정을 하게 된다면 JobQue를 비워줄때, 데이터가 변하기 때문에 사용을 하면 안된다고 생각하면 되는걸까요?
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
antd가 설치되지 않습니다 ㅜ
(사진)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
passport login error 본적없으시다던 그 부분에서 에러가났습니다.. ㅜㅜ
passport 로그인을 하던중 에러가 발생했습니다. 문제가 뭔지 모르겠습니다.
-
미해결실전! Querydsl
패치조인시 패치조인 대상 entity 검색조건 걸시 값 바인딩이 되지 않음.
아래와 같이 값 바인딩이 되지 않고 있습니다. where customer3_.cu_cph like ? escape '!' where customer3_.cu_cph like '' escape '!';
-
미해결청와대 청원 데이터 시각화
이 예제 만든걸 exe파일로 못만들까요?
제목 그대로 입니다. 이 예제 만든걸 exe파일로 못 만드나요?? 아니면 주피터 내에서 실행하면 다른창에서 볼수 있게 할수 없나요??
-
해결됨홍정모의 따라하며 배우는 C++
안녕하세요 질문입니다
#pragma once #include <string> #include "Position2D.h" class Monster { private: std::string m_name; // char * data, unsigned length; Position2D m_location; //int m_x; // location //int m_y; public: Monster(const std::string name_in, const Position2D & pos_in) :m_name(name_in), m_location(pos_in) { } //void moveTo(const int &x_target, const int &y_target) //{ // m_x = x_target; // m_y = y_target; //} void moveTo(const Position2D &pos_target) { //m_x = x_target; //m_y = y_target; m_location.set(pos_target); } friend std::ostream &operator << (std::ostream &out, Monster &monster) { out << monster.m_name << " " << monster.m_location << std::endl; return out; } }; 값 변경이 안되게 하는거 같은데 상수화하는것 같은데 moveTo 함수 내에서 파라미터로 const를 빼면 왜 안되는것인지 궁금합니다 operator << 함수에선 const 를 안붙여도 되는건가요? 그리고 #pragma once #include <iostream> class Position2D { private: int m_x; int m_y; public: Position2D(const int& x_in, const int & y_in) :m_x(x_in), m_y(y_in) {} // TODO: overload operator = void set(const Position2D & pos_target) // 파라미터 왜 const { set(pos_target.m_x, pos_target.m_y); // m_x = pos_target.m_x; // m_y = pos_target.m_y; } void set(const int &x_target, const int &y_target) { m_x = x_target; m_y = y_target; } friend std::ostream &operator << (std::ostream &out, Position2D &Position2D) { out << Position2D.m_x << " " << Position2D.m_y << std::endl; return out; } }; 마찬가지로 여기선 operator << 함수에 파라미터중 Position2D에 const를 안붙여도되나요? 너무 헷갈리는데 어디부분을 복습해야할까요..
-
해결됨코딩테스트 전 꼭 알아야 할 개념과 문제(with 자바)
만약 문자열이 매칭되는 조건("arrest", "test")이 문자열의 인덱스 기준 뒤에서부터 발생하면 어떻게 풀어야할까요?
만약 "arrest", "test" 처럼 두 개의 문자열 비교시 매칭되는 문자열이 "est"로 뒤에서부터 맞춰진다면 이런 경우는 어떻게 풀어야 할까요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
강사님 프로그램 시작시 질문있습니다
제가 야생형 코스를 따라가고 있어서 아직까지 이해가 잘 가지 않고 그냥 따라치기 바쁘네요 ㅎㅎ 다름이 아니라 JPA를 사용하면 어플리케이션 실행 할때마다 테이블을 계속해서 만들고 시작하나요 ?? 그리고 제가 디비가 약해서 디비 관계에대해 잘 이해 못하는 부분들이 조금씩 있고 각 어노테이션들의 기능들을 기본편을 보지않고 와서 그런지 모르고 가고 있는데 계속해서 진도 진행해도 될까요?
-
미해결Axure RP 9,10 - 서비스 기획자를 위한 최적의 프로토타이핑 툴
web, mobile 기본 사이즈 및 폰트 사이즈 추천 부탁 드립니다.
1. 백그라운드 표지 스타일 2. 각 백그라운드 별 적합한 font 사이즈 추천 좀 부탁 드립니다. 백그라운드 표지를 좀 크게 해서 하니까 실무 담당자 분들이 보기 불편하다고 하셔서요.
-
미해결[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드
css float, clear 속성
안녕하세요 선생님 float, clear 색상을 이용해 수업시간에 만든 것을 토대로 혼자 만들어보다가 의문이 생겼습니다. 부모요소에 border를 만약 1px 주고 width를 400px을 주고 자식 1,2요소에 각각 float:left 와 float:right를 줬다고 가정하면 자식1요소에 border를 1px 주고 width를 100px을, 자식2요소에 border를 1px 주고 width를 300px을 주면 border 두께때문에 안맞아 box-sizing 속성을 주면 자식 1, 2요소가 각각 왼쪽 오른쪽으로 두번째줄에 들어가야하는것이라고 생각했는데 생각처럼 안돼서 첨부사진과함께 여쭤봅니다.