묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
강의에서 Non으로 설명하신 이유가 따로 있을까요 ?
김영한님께서도 항상 Non으로 이해하면 헷갈린다고 말씀하셨듯이.. Non으로 굳이 설명 하신 이유가 있을까요 ? If-match , If-Modified-Since 를 사용하는게 좀 더 직관적이고 이해하기 쉬운 것 아닌가요 ?? 추가로 쿠키와 캐시의 차이가 무엇인지도 궁금합니다
-
미해결코딩으로 학습하는 GoF의 디자인 패턴
팩토리 메소드(FacotryMethod) 패턴 PPT 예제의 Product interface 에 대한 질문
안녕하세요. 백기선님, GoF 디자인 패턴 강의 정말 잘듣고있습니다!강의를 들으면서 궁금한점이 있어서 질문 드리고 싶습니다. 팩토리 메소드 패턴을 소개하는 PPT 에서 Product 는 interface 라 정의가 되어있는데,팩토리 메소드 패턴을 코드로 나타내는 예제에서 Product 의 역할을 하는것이 Ship 클래스 인것같은데,Ship 은 인터페이스가 아닌 클래스입니다.제가 이해를 잘못한 것 일까요??
-
미해결Three.js 3D 인터랙티브 바로 시작하기
괄호만 있는 건 어떤 이유인가요?
{ const axes = new THREE.AxesHelper(50); scene.add(axes); const gridHelper = new THREE.GridHelper(70, 20); scene.add(gridHelper); } 괄호안에서 처리가 되고 있는데 어떤 의미를 가지고 있는건지 궁금해요.
-
미해결데이터 분석 SQL Fundamentals
조인 실습 - 02에서 with를 쓰고 안쓰고의 차이가 뭔가요?
-- 부서명 SALES와 RESEARCH 소속 직원별로 과거부터 현재까지 -- 모든 급여를 취합한 평균 급여 select e.ename, round(avg(sh.sal),-2) from hr.emp_salary_hist sh join hr.emp e on sh.empno = e.empno join hr.dept d on d.deptno = e.deptno where d.dname in ('SALES','RESEARCH') group by e.ename 위드 절을 모른 상태에서 강의를 선행학습 하면서 이렇게 코드를 썼는데요, 강의 노트에 있는 정답(수업시에도 언급하신)은 아래와 같습니다. 차이가 있을까요? -- 부서명 SALES와 RESEARCH 소속 직원별로 과거부터 현재까지 모든 급여를 취합한 평균 급여 with temp_01 as ( select a.dname, b.empno, b.ename, b.job, c.fromdate, c.todate, c.sal from hr.dept a join hr.emp b on a.deptno = b.deptno join hr.emp_salary_hist c on b.empno = c.empno where a.dname in('SALES', 'RESEARCH') order by a.dname, b.empno, c.fromdate ) select empno, max(ename) as ename, avg(sal) as avg_sal from temp_01 group by empno;
-
미해결남박사의 파이썬으로 실전 웹사이트 만들기
pip가 문제
파이썬 웹프로그래밍 환경 설정하기에서 pip가 문제 있습니다. 저 pip처음 쓰자 pip만 노란색이 되었습니다. 그것 때문에 진도 나갈 수 없습니다.
-
미해결코딩으로 학습하는 리팩토링
클래스의 상속 vs 네임스페이스 vs nested 클래스
현재 Unity 프로젝트 진행 중입니다. Model-View-(Reactive)Presenter로 UI를 구현했습니다. 그랬더니 클래스가 다음과 같이 작성되더군요. ContentsPresenter : 버튼만 있는 화면 ContentsPresenter_WithDesc : 버튼과 설명이 있는 화면 ContentsPresenter_RoomList : 방목록 화면 ContentModel : 버튼 정보 데이터 ContentModel_Room : 버튼과 방 정보 데이터 ContentView : UI 요소(정사각형 버튼 컴포넌트 ) ContentView_Room : UI 요소(직사각형 버튼 컴포넌트) 디렉토리 상에서 봤을 때 Content라는 어휘만 유독 눈에 띄는게 거슬리고 언더바를 지우고 싶었습니다. 그래서 어떻게 바꿀지 3가지 방법을 고민해봤습니다. 1. 네임스페이스 사용 namespace ContentPresenter { public class Button {} public class ButtonWithDesc {} public class RoomList {} } namespace ContentView { public class Button {} public class ButtonForRoom {} } namespace ContentModel { public class Button {} public class Room {} } 2. 상속 사용 public class Button : ContentsPresenter {} public class ButtonWithDesc : ContentsPresenter {} public class RoomList : ContentsPresenter {} public class Button : ContentView {} public class ButtonForRoom : ContentView {} public class Button : ContentModel {} public class Room : ContentModel {} 3. nested 클래스 사용 public class ContentPresenter { public class Button {} public class ButtonWithDesc {} public class RoomList {} } public class ContentView { public class Button {} public class ButtonForRoom {} } public class ContentModel { public class Button {} public class Room {} } 작성해보고 나니 ContentPresenter의 클래스 이름이 모호하네요. 그런데 'Button만 표시하는 화면'임을 명시하는 직관적인 표현이 떠오르질 않네요... 어떤 이름이 좋을까요... ㅠ 아무튼 3가지 방법을 생각해 봤는데요. 1. 네임스페이스 사용 - 장점: 아무 비용 없이 클래스들을 묶을 수 있다. -단점: 클래스명(Button)이 다른 네임스페이스의 클래스명(Button)과 동일해서 디렉토리 또는 코드 상에서 구분이 힘들다. 2. 상속 사용. -장점: 클래스를 공통속성과 메소드들을 함께 묶을 수 있다. -단점: 공통 속성과 메소드들이 없어서 오버엔지니어링이 될 수 있다. 네임스페이스와 마찬가지로 디렉토리 또는 코드 상에서 구분이 힘들다. 3. nested 클래스 사용 -장점: 3개의 클래스 파일로 간추릴 수 있다. 코드 상에서 소속 클래스를 명시하기 때문에 구분이 가능하다. -단점: 파일이 점점 커진다. 이 3가지 방법 중에 어떤게 가장 나을지, 그리고 이 3가지 방법보다 더 나은 방법이 무엇일지 여쭤봐도 될까요? 좋은 강의 감사합니다 !
-
해결됨스파크 머신러닝 완벽 가이드 - Part 1
교차 평가 시 Evaluator 사용 관련 질문
안녕하세요, 선생님 교차 평가 부분 강의를 듣다가 궁금한 점이 생겨 글 남깁니다. CrossValidator나 TrainValidationSplit 객체 생성 시 인자로 Evaluator 객체(evaluator_accuracy)가 들어가는데요, 강의 자료의 실습 코드를 보면 모델 객체 예측 후 정확도를 평가할 때 evaluator_accuracy 변수에 객체를 다시 생성해서 할당하는데 특별한 이유가 있나요? 예를 들면, spark_cross_validation_hyperparameter_tuning.ipynb의 cmd 24에서는 18라인에 evaluator_accuracy_01 객체를 생성하고 이를 CrossValidator 생성 시 파라미터로 넘기는데, cmd 25에서 evaluate()을 실행 전에 evaluator_accuracy 변수를 새로 생성해서 정확도를 출력합니다. 그냥 위에서 생성한 evaluator_accuracy_01에서 evaluate()를 수행하면 안되나요? 감사합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
경로 질문드립니다.
안녕하세요. @GetMapping("/hello") public void hello(Model model){ model.addAttribute("data", "hello!"); } 웹 브라우저에서 hello 경로로 접근할 때 컨트롤러에서 리턴 값으로 문자를 반환하면 뷰 리졸버가 화면을 찾아서 처리한다고 하셨는데 return 반환값이 없는 void로 해도 접근이 가능해서요. hello 경로에 접근하면 스프링 내부에서 resources -> static -> templates 순서대로 hello.html이 있는지 확인하는게 아닌가 싶어서 질문드립니다!
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
img src="" 에서 경로 지정에 대해 여쭤 봅니다
react 사용시 기본 경로가 public에서 시작한다고 말씀 하신걸로 압니다 img src="" 경로를 작성할떄 images/icons... 이렇게 할떄도 있고 /images/icons 이렇게 할때도 있었는데 두개 모두 public에서 시작한다고 보고 똑같이 경로를 찾아가는건가요
-
미해결스스로 구축하는 AWS 클라우드 인프라 with 테라폼(Terraform) - 기본편
Error: Reference to undeclared resource
listener 구성할 때 미리 ELB를 만들지 않은 상태에서 "aws_lb_listener" 을 tf에 추가하여 plan을 하면 "Reference to undeclared resource" 오류가 발생합니다. ELB 를 terraform으로 일괄 생성할 수 있도록 하려면, 어떻게 해야하는 지 알고 싶습니다. dependency 관련 설정이 필요해보이는데 도움 부탁드립니다 resource "aws_lb_listener" "front_end" { load_balancer_arn = aws_lb.test.arn port = "80" protocol = "HTTP" #ssl_policy = "ELBSecurityPolicy-2016-08" #certificate_arn = "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4" default_action { type = "forward" target_group_arn = aws_lb_target_group.test.arn } } Error: Reference to undeclared resource 업데이트 depend_on 해봤는데 안되고, 아래와 같이 변경하니 되긴 하네요. #load_balancer_arn = aws_lb.test-lb.arn load_balancer_arn = "${aws_lb.test-lb.arn}"
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
view환경설정 질문드리고 싶습니다.
안녕하세요! view환경설정 수업을 듣고 따라하다가 문제가 생겨서 질문드리고 싶습니다! HelloController 부분을 따라하다가 오류가 생겼는데, HelloController가 활성화되지 않고 attributeName 과 attributeValue가 값이 정의되지 않는데 어떻게 해결하면 좋을 지 모르겠어서 질문드립니다! 질문 읽어주셔서 감사합니다!
-
미해결부트스트랩 5(Bootstrap 5) - 기초부터 웹 프로젝트 만들기
프로젝트 2 - Map section (Kakao api map Jasvascript)
프로젝트 2 - Map section (Kakao api map Jasvascript) 강의 따라서 적용시켜도 맵이 화면에 안나타나서~ 위도, 경도 제공 문제인건지요... ㅠㅠ 강의 따라서 작업한 소스코드는 아무 이상이 없고~ 강사님 작성하신 코드 파일 열어보니 강사님이 하신것도 적용이 안되있는데요. 맵 적용시키려면 어떻게 해야하는지 여쭤봐요.
-
미해결스스로 구축하는 AWS 클라우드 인프라 with 테라폼(Terraform) - 기본편
aws_subnet_ids 가 deprecated 예정이라고 합니다.
aws_subnet_ids 가 deprecated 예정이어서 aws_subnets 으로 사용하라고 하는데, 강의내용도 이 부분에 대해 반영해주시면 좋을 것 같습니다. Data Source: aws_subnet_ids aws_subnet_ids provides a set of ids for a vpc_id This resource can be useful for getting back a set of subnet ids for a vpc. NOTE: The aws_subnet_ids data source has been deprecated and will be removed in a future version. Use the aws_subnets data source instead.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문
Rambda의 == 는 어떻게 읽는 건가요?
C#의 대입 연산자는 = 고 비교연산자는 == 로 숙지하고 있는데 그럼 Rambda의 ==가 item.ItemType 와 ItemType.Weapon이 동일하면 반환된다는 건가요 ?
-
미해결
파워쿼리로 자동화한 엑셀 파일을 다른 컴퓨터로 옮길 수 있나요?
파워쿼리 수업을 듣고 업무를 자동화하였는데, 팀원에게 공유할 일이 있습니다. 참조하는 엑셀파일들이 정해진 폴더안에 있어 파일 전달시 오류가 납니다 경로를 변경하면 해결 가능할지 궁급함니다.
-
미해결CCNA - Cisco Certified Network Associate (200-301) 자격증 과정
ip route 10.0.0.1 대신 10.0.0.0 입력하는 이유가
무엇인가요?
-
미해결자바스크립트 : 기초부터 실전까지 올인원
쌤 궁금한 것이 있는데요
Bootstrap과 React를 같이 쓸 수 있나요? 그리고 문제? 가 생겼는데요~ 다른 카테고리는 너무 잘나오는데..? 가끔 글씨가 깨져요 ... 어떻게...해야..ㅠㅠ
-
미해결[리뉴얼] 처음하는 MongoDB(몽고DB) 와 NoSQL(빅데이터) 데이터베이스 부트캠프 [입문부터 활용까지] (업데이트)
brew install mongodb 설치 에러
brew install mongodb 실행후 다음같은 에러가 나옵니다. WWarning: No available formula with the name "mongodb". Did you mean mongosh or monetdb? ==> Searching for similarly named formulae... These similarly named formulae were found: mongodb-atlas-cli ✔ mongodb/brew/mongodb-community@4.2 mongodb/brew/libmongocrypt mongodb/brew/mongodb-community@4.4 mongodb/brew/mongocli mongodb/brew/mongodb-database-tools ✔ mongodb/brew/mongodb-community ✔ mongodb/brew/mongodb-mongocryptd mongodb/brew/mongodb-community-shell mongodb/brew/mongodb-mongocryptd@4.2 mongodb/brew/mongodb-community@3.2 mongodb/brew/mongodb-mongocryptd@4.4 mongodb/brew/mongodb-community@3.4 mongosh ✔ mongodb/brew/mongodb-community@3.6 monetdb mongodb/brew/mongodb-community@4.0 To install one of them, run (for example): brew install mongodb-atlas-cli ✔ ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. mongodb 설치가 잘 안되어서 ubuntu에서 mongodb 설치시 에러가 나오는 건지도 궁금합니다. 해결 방법 좀 부탁드리겠습니다.
-
해결됨아마존 AWS 입문
sudo usermod –a –G apache ec2-user 이 명령어가 안먹어요
sudo usermod –a –G apache ec2-user 해당 명령어를 입력하면 아래같이 나옵니다. 이후 진행을 못하고 있어요. [ec2-user@ip-172-31-22-71 ~]$ sudo usermod –a –G apache ec2-user Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -f, --inactive INACTIVE set password inactive after expiration to INACTIVE -g, --gid GROUP force use GROUP as new primary group -G, --groups GROUPS new list of supplementary GROUPS -a, --append append the user to the supplemental GROUPS mentioned by the -G option without removing him/her from other groups -h, --help display this help message and exit -l, --login NEW_LOGIN new value of the login name -L, --lock lock the user account -m, --move-home move contents of the home directory to the new location (use only with -d) -o, --non-unique allow using duplicate (non-unique) UID -p, --password PASSWORD use encrypted password for the new password -R, --root CHROOT_DIR directory to chroot into -s, --shell SHELL new login shell for the user account -u, --uid UID new UID for the user account -U, --unlock unlock the user account -Z, --selinux-user SEUSER new SELinux user mapping for the user account
-
미해결대세는 쿠버네티스 (초급~중급편)
좀전에 질문드린 vagrant up은 해결
download관련한 문제는 해결이 되었습니다. 하지만 모두 install후에 jon.sh파일에 아무것도 생성되지 않고 있네요 수동으로 설정을 해보았는데 [root@k8s-master ~]# kubeadm token create --print-join-command > ~/join.sh failed to load admin kubeconfig: open /root/.kube/config: no such file or directory To see the stack trace of this error execute with --v=5 or higher 이런 메세지만 보이네요 좋은 방법이 없을까요?