묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
Type변환이 가능 하다는 기준에 대해서 질문드립니다.
강의를 듣다가 확신이 없어서 질문드립니다. 타입변환을 할 때 가능한지를 판단하는 기준이 각각의 클래스 사이즈를 보고 판단하는 것이 맞나요?
-
미해결블렌더 파이썬 BPY 입문강의
bpy.data 와 bpy.context의 쓰임 구분이 궁금합니다.
5:17초 경에 D.selected_objects 가 아닌 C.selected_objects를 하는 이유가 뭔가요? D.selected_objects로 해봤는데 안되더라고요ㅠ. 제가 bpy.data랑 bpy.context를 각각 어떨때 써야하는지 구분을 하기가 어렵습니다. bpy.data 인 D를 이용해서 선택된 오브젝트들의 이름을 가지고 오는건 불가능한건가요?
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
AttributeError: 'str' object has no attribute 'endswitch'
78번 줄에 에러가 표시되는데 어떻게 하면 될까요?
-
미해결15일간의 빅데이터 파일럿 프로젝트
질문이 있습니다! 해쉬값을 그럼 저장을 해 두면 나중에 복호화를 할 수 있겠군요??
해쉬값을 그럼 저장을 해 두면 나중에 맵핑해서 복호화 할 수 있겠군요??
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
빌드와 배포질문
안녕하세요 궁금한것이 있어 질문하려고합니다 ./gradlew bulid를 하면 빌드가 되서 .jar파일이 생성되는 것이고 java -jar hello-spring-0.0.1-SNAPSHOT.jar를 하는 명령어가 배포인가요? 빌드와 배포의 차이를 알고 싶어 질문드립니다 현업에서 근무시간이 끝나고 배포를 하는 작업이 많은데 이때 하는 배포작업이 위와 같은 것인가요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
안녕하세요! hello.html로 넘어가는게 안되는 것 같습니다..ㅠㅠ
안녕하세요! 강의를 들으며 따라 진행하던 중 에러가 나서 질문드립니다! 위 사진과 같이 500 에러가 발생하는데, 어디서 에러가 나는지 잘 모르겠습니다.. 혼자 구글링하며 해결해보려했지만 스프링이 처음이라 어디서부터 잘 못된 것인지 가늠이 안되어서 질문드립니다ㅠㅠ 혹시 몰라서 build.gradle 파일과 application, controller, hello.html 파일 사진 첨부합니다! 오타 확인해보았고 파일경로 설정도 알맞게 한 것 같은데, 어느 부분을 놓친 것일까요.... 제가 사정상 Goorm IDE에서 Spring boot 템플릿으로 실습을 진행하고 있습니다! 좋은 강의 정말 감사합니다!
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
배포 npm run start
ubuntu@ip-111-11-11-104:~/minsu-code/back$ npm start > back@0.0.1 start /home/ubuntu/minsu-code/back > nest start [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [NestFactory] Starting Nest application... [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +340ms [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] PassportModule dependencies initialized +0ms [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] EventsModule dependencies initialized +1ms [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] AppModule dependencies initialized +1ms [Nest] 22759 - 09/26/2021, 7:30:56 AM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms [Nest] 22759 - 09/26/2021, 7:30:57 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)... Error: Unknown database 'minsucode' 말 그대로 database 가 없다는 뜻인데. 우분투 말고 로컬 윈도우에서 npm run start 하면 잘 되는데. 배포모드 우분트 환경에서만 npm run start 하면 저런 에러가 나옵니다. mysql안에 db도 만들어 주었고 우분투 환경에서 mysql 설치 해주고. .env 파일도 만들어서 필요한 것들 다 입력 해줬는데 계속 저런 에러가 나옵니다 ㅠㅠ
-
미해결Slack 클론 코딩[실시간 채팅 with React]
optimistic, pessimistic ui 질문드립니다.
mutate(data, true); 에서 true면 pessimistic ui 이고 false면 optimistic ui 인가요? shouldRevalidate가 true, false 어떤것이든 mutate 하는 순간 그 data를 적용하기 위해서 해당 컴포넌트를 리렌더링하는게 맞나요? 그렇다면 여기서 pessimistic ui는 아닌 것 같아서 질문드립니다. 마지막에는 캐시에 저장된거하고 서버에서 받아온거 이렇게 차이라고 하셨는데 갑자기.. 이 얘기가 나와서 헷갈리네요.
-
미해결실전! 웹사이트제작! Step By Step! ('포메인'_풀페이지사이트 제작)
fullpage플러그인 쓸때 말고도 쓰고싶은데 waypoint가 전혀 안먹네요(counterup은 됩니다) 이유가 뭘까요?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="format-detection" content="telephone=no, address=no, email=no" /> <meta name="description" content="." /> <meta name="keyword" content="" /> <meta name="theme-color" content="#0096D6" /> <!-------------------------Open Graph-------------------------> <meta property="og:url" content="d" /> <meta property="og:type" content="website" /> <meta property="og:image" content="d" /> <meta property="og:title" content="Sennheiser" /> <!-------------------------반응형웹 선언문-------------------------> <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <!-------------------------제이쿼리-------------------------> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <!-------------------------아이콘 설정-------------------------> <link rel="apple-touch-icon" sizes="76X76" href="img/icon.png" /> <link rel="apple-touch-icon" sizes="120X120" href="img/icon.png" /> <link rel="apple-touch-icon" sizes="152X152" href="img/icon.png" /> <link rel="shortcut icon" sizes="196X196" href="img/icon.png" /> <!-------------------------폰트어썸-------------------------> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous" /> <!-------------------------XEICON-------------------------> <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/xeicon@2.3.3/xeicon.min.css" /> <!-------------------------Swiper-------------------------> <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" /> <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script> <!-------------------------CSS basic-------------------------> <link rel="stylesheet" href="css/basic/slick-theme.css" /> <link rel="stylesheet" href="css/basic/aos.css" /> <link rel="stylesheet" href="css/basic/reset.css" /> <!-------------------------JS basic-------------------------> <script src="js/basic/aos.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js"></script> <script src="js/basic/jquery.counterup.min.js"></script> <!-------------------------CSS/JS custom-------------------------> <link rel="stylesheet" href="css/style.css" /> <link rel="stylesheet" href="css/common.css" /> <link rel="stylesheet" href="css/responsive.css" /> <script src="js/custom.js"></script> <title>Document</title> </head> <!-- 페이지 로드될 때 잠깐 보이는 트랜지션 없애기 --> <body class="preload"> <section class="abc"> <article class="abc-inner"> <div class="abc-item"> <div class="abc-pic"> <img src="img/pic1.jpg" alt="" /> </div> <div class="abc-desc"> <h6>sdsdfsdf</h6> <p>skfjsldfjsldfksldfksdfjsldkfjflk</p> </div> </div> <div class="abc-item"> <div class="abc-pic"> <img src="img/pic4.jpg" alt="" /> </div> <div class="abc-desc"> <h6>sdsdfsdf</h6> <p>skfjsldfjsldfksldfksdfjsldkfjflk</p> </div> </div> <div class="abc-item"> <div class="abc-pic"> <img src="img/pic5.jpg" alt="" /> </div> <div class="abc-desc"> <h6>sdsdfsdf</h6> <p>skfjsldfjsldfksldfksdfjsldkfjflk</p> </div> </div> <div class="abc-item"> <div class="abc-pic"> <img src="img/pic8.jpg" alt="" /> </div> <div class="abc-desc"> <h6>sdsdfsdf</h6> <p>skfjsldfjsldfksldfksdfjsldkfjflk</p> </div> </div> </article> <article> <span class="counter">305,400</span><span>장</span> <img src="img/pic7.webp" alt="" /> <img src="img/pic8.jpg" alt="" /> <img src="img/pic8.jpg" alt="" /> </article> </section> <!-------------------------aos-------------------------> <!-- data-aos="fade-left" data-aos-delay="300" --> <script> $(document).ready(function () { setTimeout(function () { AOS.init({ easing: "ease-out-back", duration: 1000, }); }, 500); }); </script> </body> </html> $(document).ready(function () { // const jq = $.noConflict(); // 카운터업 $(".counter").counterUp({ delay: 10, time: 1000, }); });
-
해결됨스프링 시큐리티
Authentication의 details 에 대해 질문 있습니다.
IpAddressFilter에서 authentication.getDetails() 부분에서 최초로 접근할 때는 details가 존재합니다. 이때는 authentication이 AnonymousAuthenticationToken 입니다. 그런데, 이미 인증이 된 후에는 강의에서 만든 AjaxAuthenticationToken이 쓰이는데, 여기서는 getDetails()를 하면 WebAuthenticationDetails가 null이 됩니다. AjaxAuthenticationToken에서도 details를 사용하려면 어떻게 해야할까요?...
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part7: MMO 컨텐츠 구현 (Unity + C# 서버 연동 기초)
적 몬스터가 벽에 부비부비를 합니다
몬스터가 가끔 벽에 부비부비를 시전하는데, 이러한 현상은 다른 많은 게임에서도 볼 수 있던 버그입니다. 예를 들면 스타크래프트의 유닛이 가끔 길을 잃고 벽에 부비부비를 하는 경우가 많은데, 이것과 같다고 생각됩니다. 그래서 많이 볼 수 있는 버그이기 때문에, 정석적인 버그 해결 방법이 있을 것으로 생각됩니다..! 혹시 있다면 이런 현상은 보통 어떻게 해결하는지 여쭙고 싶습니다!
-
미해결인터랙티브 개발 실무 끝장내기 [역량 강화편]
화살표 회전 예제 질문
화살표 회전예제에서 58번째 코드 arrow.style.transform = "rotate("+rotateNum+"deg)"; 에서 arrow가 71번째 줄의 class를 말하는 건가요? 클래스 선택자는 보통 .을 쓰잖아요. 그래서 아무 선택자 없이 그냥 class.~~이렇게 쓰면 되는지 여쭤봅니당..
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
안녕하세요 파이참 환경이 아닌 주피터 환경도 가능할까요?
안녕하세요 pycham이 아닌 주피터 기존에쓰고있는데 그걸로 사용해도 되나요?
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
타임리프 특징중 하나가 내추럴 템플릿이었던거 같은데
굳이 name과 value를 지우시는 이유가 궁금합니다 개발자 입장에서 html 파일을 처음 작성할 때 굳이 적을 필요가 없다는걸 보여주시려는 이유인건가요?
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
갑자기 몰입도가 확 떨어졌습니다 정상인가요
파이썬 클래스 객제지향 까진 진짜 잘 들었는데 크롤링 들어가며 HTML하니까 삿갈리고 몰입이 안되네요!? 정상인가요?! ㅜ.ㅜ
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
intergrityError 질문드립니다.
강의 잘 듣고 있습니다. 선생님. 다름이 아니라, form_valid 구현을 했음에도 불구하고 해당 에러가 지속적으로 발생하였습니다. views.py from profileapp.forms import ProfileCreationFormfrom profileapp.models import Profileclass ProfileCreateView(CreateView): model = Profile form_class = ProfileCreationForm context_object_name = 'targetProfile' success_url = reverse_lazy('accountapp:hello_world') template_name = 'profileapp/create.html' def form_valid(self, form): temp_profile = form.save(commit=False) temp_profile.user = self.request.user temp_profile.save() return super().form_valid(form) 해당 views.py도 문제 없이 잘 작성한 거 같은데, 이런 오류가 왜 계속 발생하는 지 모르겠네요. 답변 부탁드릴게요!
-
미해결더 자바, 애플리케이션을 테스트하는 다양한 방법
enum은 또 "이늄"인가요?
미국 사시는게 맞는지 심히 궁금하네요. "enum" 은 또 "이늄"인가요?"sometimes"는 본토 발음으로 "소메티메스" 맞죠? 아무리 개발 강의라지만 너무하시네요.
-
해결됨홍정모의 따라하며 배우는 C언어 (부록)
질문. warning뜨는 이유
안녕하세요. c6385와 c6386warning이 뜨는 이유가 궁금합니다. 동적할당하고 배열 index도 잘 참조한거 같은데 warning이 안 지워지더라고요..ㅠ 오류 처리 때문인지 교수님 오류처리 코드도 다 따라 쳐 보았지만 소용이 없네요. #include <stdio.h> #include <stdlib.h> #include <String.h> #define LENGTH 100 struct movieinfo { char subj[LENGTH]; double score; }; void manual(void); void print_all_items(struct movieinfo* msptr, int* num); void print_an_item(struct movieinfo* msptr, int* num); void edit_an_item(struct movieinfo* msptr, int* num); void add_an_item(struct movieinfo** mmsptr, int* num); void insert_an_item(struct movieinfo** mmsptr, int* num); void delete_an_item(struct movieinfo** mmsptr, int* num); void delete_all_items(struct movieinfo* msptr, int* num); void save_file(struct movieinfo* msptr, int* num); void search_by_name(struct movieinfo* msptr, int* num); int main() { int input; printf("Please input filename to read press Enter.\n>> "); char fname[LENGTH] = { 0, }; scanf("%s", fname); char a = getchar(); FILE* fmovie = fopen(fname, "r"); if (!fmovie) { perror("ERROR: cannot open file."); exit(1); } puts("6 items have been read from the file.\n"); int num; if (fscanf(fmovie, "%d%*c", &num) != 1) { printf("ERROR: Wrong file format."); exit(1); } struct movieinfo* msptr = (struct movieinfo*)malloc(sizeof(struct movieinfo) * num); if (msptr == NULL) { printf("malloc failed. \n"); exit(1); } for (int i = 0; i < num; i++) { if(fscanf(fmovie, "%[^\n]%*c", msptr[i].subj) != 1 || fscanf(fmovie, "%lf%*c", &msptr[i].score) != 1) { printf("ERROR: Wrong file format.\n"); exit(1); } } while (1) { manual(); scanf("%d%*c", &input); switch (input) { case 1: print_all_items(msptr, &num); break; case 2: print_an_item(msptr, &num); break; case 3: edit_an_item(msptr, &num); break; case 4: add_an_item(&msptr, &num); break; case 5: insert_an_item(&msptr, &num); break; case 6: delete_an_item(&msptr, &num); break; case 7: delete_all_items(msptr, &num); break; case 8: save_file(msptr, &num); break; case 9: search_by_name(msptr, &num); break; case 10: puts("Good bye"); free(msptr); fclose(fmovie); return 0; default: printf("Wrong input.\n"); break; } } free(msptr); fclose(fmovie); return 0; } void manual(void) { printf("Please select an option and press enter.\n"); printf("1. print all items\t2. print an item\n"); printf("3. Edit an item \t4. Add an item\n"); printf("5. Insert an item\t6. Delete an item\n"); printf("7. Delete all items\t8. Save file\n"); printf("9. Search by name\t10. Quit\n>> "); } void print_all_items(struct movieinfo* msptr,int *num) { for (int i = 0; i < *num; i++) { printf("%i : \"%s\". %.1f\n",i, msptr[i].subj, msptr[i].score); } } void print_an_item(struct movieinfo* msptr, int *num) { printf("Input the index of item to print.\n>> "); int input; scanf("%d%*c", &input); if (input<0 || input>*num) printf("invalid item\n"); else printf("%i : \"%s\". %.1f\n", input, msptr[input].subj, msptr[input].score); } void edit_an_item(struct movieinfo* msptr, int* num) { printf("Input the index of item to print.\n>> "); int input; scanf("%d%*c", &input); if (input<0 || input>*num) printf("invalid item\n"); else printf("%i : \"%s\". %.1f\n", input, msptr[input].subj, msptr[input].score); printf("Input new title and press enter.\n>> "); scanf("%[^\n]%*c", msptr[input].subj); printf("Input new rating and press enter.\n>> "); scanf("%lf%*c", &msptr[input].score); printf("%i : \"%s\". %.1f\n", input, msptr[input].subj, msptr[input].score); } void add_an_item(struct movieinfo** mmsptr, int* num) { int flag; *num = *num + 1; struct movieinfo* msptr = (struct movieinfo*)malloc(sizeof(struct movieinfo) * *num); if (msptr == NULL) { printf("malloc failed. \n"); exit(1); } for (int i = 0; i < *num - 1; i++) { strcpy(msptr[i].subj, (*mmsptr)[i].subj); msptr[i].score = (*mmsptr)[i].score; } printf("Input title and press enter.\n>> "); flag = scanf("%[^\n]%*c", msptr[*num - 1].subj); printf("Input rating and press enter.\n>> "); flag = scanf("%lf%*c", &msptr[*num - 1].score); printf("%i : \"%s\". %.1f\n", *num - 1, msptr[*num - 1].subj, msptr[*num - 1].score); free(*mmsptr); *mmsptr = msptr; } void insert_an_item(struct movieinfo** mmsptr, int* num) { printf("Input the index of item to insert.\n>> "); int input; scanf("%d%*c", &input); *num = *num + 1; struct movieinfo* msptr = (struct movieinfo*)malloc(sizeof(struct movieinfo) * *num); if (msptr == NULL) { printf("malloc failed. \n"); exit(1); } for (int i = 0; i < *num - 1; i++) { strcpy(msptr[i].subj, (*mmsptr)[i].subj); msptr[i].score = (*mmsptr)[i].score; } int imp = *num; for (; imp - 1 > input; imp--) { strcpy(msptr[imp - 1].subj, msptr[imp - 2].subj); msptr[imp - 1] = msptr[imp - 2]; } printf("Input title and press enter.\n>> "); scanf("%[^\n]%*c", msptr[input].subj); printf("Input rating and press enter.\n>> "); scanf("%lf%*c", &msptr[input].score); printf("%i : \"%s\". %.1f\n", input, msptr[input].subj, msptr[input].score); free(*mmsptr); *mmsptr = msptr; } void delete_an_item(struct movieinfo** mmsptr, int* num) { printf("Input the index of item to delete.\n>> "); int input; scanf("%d%*c", &input); *num = *num - 1; struct movieinfo* msptr = (struct movieinfo*)malloc(sizeof(struct movieinfo) * *num); if (msptr == NULL) { printf("malloc failed. \n"); exit(1); } int imp = input; for (; input < *num; input++) { strcpy((*mmsptr)[input].subj, (*mmsptr)[input + 1].subj); (*mmsptr)[input].score = (*mmsptr)[input + 1].score; } for (int i = 0; i < *num; i++) { strcpy(msptr[i].subj, (*mmsptr)[i].subj); msptr[i].score = (*mmsptr)[i].score; } free(*mmsptr); *mmsptr = msptr; } void delete_all_items(struct movieinfo* msptr, int* num) { *num = 0; msptr = NULL; } void save_file(struct movieinfo* msptr, int* num) { printf("Please input filename to write and press Enter.\n>> "); char fname[LENGTH] = { 0, }; scanf("%s", fname); FILE* fmovie = fopen(fname, "w"); fprintf(fmovie, "%d\n", *num); for (int i = 0; i < *num; i++) { fprintf(fmovie, "%s\n%.1lf\n", msptr[i].subj, msptr[i].score); } printf("%d items have been saved to the file.\n",*num); fclose(fmovie); } void search_by_name(struct movieinfo* msptr, int* num) { printf("Input title to search and press enter.\n>> "); char strcm[LENGTH] = { 0, }; scanf("%[^\n]%*c", strcm); int i; for (i = 0; i < *num; i++) { if (strcmp(strcm, msptr[i].subj) == 0) break; } if (i == *num) printf("No movie found : %s\n", strcm); else printf("%i : \"%s\". %.1f\n", i, msptr[i].subj, msptr[i].score); }
-
미해결스스로 구축하는 AWS 클라우드 인프라 with 테라폼(Terraform) - 기본편
대괄호[]의 의미
안녕하세요. 강의 재밌게 듣고 있습니다. 다름이 아니라 다른 resource이나 variable를 참조할 때 리소스타입.리소스이름.속성 aws_vpc.test.id 이런 형태로 사용을 하는데 간혹 [aws_security_group.tf-asg-sg.id] 이렇게 대괄호를 사용하는 경우가 있는데 어떤 차이가 있는지 궁금해서 질문 남겨 봅니다. Have a nice day!
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
녹화 하실 때 사용하신 장비 좀...^^;
화면 각도하고 음성녹음이 상당히 좋았는데 저도 한번 장만하고 싶은 데 어떤 장비 였는지 알 수 있을까요? 특히 마이크요! 감사합니다^^