묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
이상태에서 aws ec2를 다운 받으려면 조금더 기다려야하나요?
돈은 빠져나간듯하던데요
-
미해결Kotlin으로 개발하는 Spring Boot Web MVC
validSchedule 메서드가 검증을 안해주는 것 같습니다.
@AssertTrue(message = "Dateformat should be yyyy-MM-dd HH:mm:ss")fun validSchedule(): Boolean { return try { LocalDateTime.parse(schedule, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) true } catch (e: java.lang.Exception) { false }} todoDtoTest() 에서 this.schedule에 올바르지 않은 포맷을 넣었는데도 테스트를 통과 합니다. 이전 강의에서 배웠던 내용으로 @field:StringFormatDateTime// yyyy-MM-dd HH:mm:ssvar schedule: String? = null, 변경해서 검증을 하게끔 바꾸긴 했지만, DTO 내부의 AssertTrue를 통해 검증을 하려면 @field:NotBlank를 다른 걸로 변경 해야 하는건가요?
-
해결됨실전! Querydsl
offset과 distinct
팀과 멤버 (1:N) 팀 A의 멤버1, 멤버2, 멤버3, 멤버4, 멤버5가 있습니다. 팀A를 멤버와 함께 fetchjoin해서 가져오게 되면 팀A 객체 5개가 반환됩니다. 그런데 querydsl에서 아래와 같이 distinct()를 사용하지 않고 offset()만 사용하였는데 queryFactory .selectFrom(team) .join(team.members, member).fetchJoin() .offset(pageable.getOffset()) .fetch(); distinct 한 것처럼 중복이 제거되었습니다. 무슨 이유일까요?
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
채점기 질문있습니다.
안녕하세요 강사님 채점기에 대한 질문있습니다. 현재 윈도우11 에서 과정을 진행중에 있습니다. 채점기가 실행은 되는데 전부 wrong_answer이 뜹니다. 혹시나 싶어 dev c++, visual studio 둘 다 빌드 해봤지만 상황은 같습니다. 폴더에 있는 정답 소스코드를 붙여 넣어도 전부 wrong_answer라고 떠서 윈도우 11에선 작동하지 않는건가 궁금합니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
WriteUnlock() 질문드립니다.
WriteUnlock() 코드를 보면은 Interlocked 를 사용하셔서 _flag를 EMPTY_FLAG로 변경하시는데, 이부분은 _flag = EMPTY_FLAG; 로 해도 되지 않나요? 대입은 원자적인 연산으로 처리되는 걸로 알고 있어서 요
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
안녕하세요 코드 리뷰 부탁드립니다! 섹션 5 - 5
항상 선생님 수업 잘 듣고 있습니다! 이렇게 하면 괜찮은지 한번 봐주시면 감사하겠습니다!항상 부족한 실력이지만 선생님 덕분에 조금씩 늘고 있습니다. 오늘도 좋은 하루 보내시길 바랍니다. function solution(k, arr) { let lt = 0, sum = 0, max = 0, count = 0; for (let rt = 0; rt < arr.length; rt++) { sum += arr[rt]; count++; if (max < sum) max = sum; while (count === k) { sum -= arr[lt++]; count -= 1; } } return max; } let a = [12, 15, 11, 20, 25, 10, 20, 19, 13, 15]; console.log(solution(3, a));
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
폰트어썸
강의 내용에는 폰트어썸을 별도로 설치하는 과정 없이 index.html에 추가만 하고 사용하셨는데.. 실제로는 라이브러리 다 설치 하고 사용해야하는 건가요? 버튼 추가했는데 화면에 나타나지 않아서 질문 드립니다 ㅠㅠ
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
안녕하세요 getServerSideProps 에 대해 여쭤봅니다.
질좋은 강의 감사합니다. 언제나 도움이 되는 거 같네요. 강의 내에선 getServerSideProps을 대부분 쓸 것이고, getStaticProps, getStaticPath를 쓸 일은 정말 현저히 적을 것이라고 말씀하셨는데요. (저도 next를 사용해보면서 그렇게 느꼈구요.) 최근 공지사항에서 'getServerSideProps를 최소화하시는 게 좋습니다. 이를 위해서는 유저 정보를 SSR하지 마시고 CSR해야 합니다. getStaticProps나 getStaticPath를 써야 서버쪽에서 컴포넌트 캐싱이 가능합니다. 유저 정보는 개인마다 다 다르기때문에 캐싱이 불가능하거든요. 다음 리뉴얼 때는 getStaticPath와 getStaticProps만 써서 Incremental Rendering을 보여드릴까 생각 중입니다.' 라고 하셔서 조금 혼란이 옵니다 ㅠㅠ... Incremental Rendering을 검색하면 뭔가 방법이 나올까하고 구글링해봤는데 큰 소득을 얻지 못해서 구체적으로 어떤 방식으로 코드를 써야 할 지 갈피가 잡히지 않아 질문드립니다. 모든 페이지를 // export async function getStaticPaths() { // const await = axios.get('/post...') // return { // paths: [ // { params: { id: '1' } }, // { params: { id: '2' } }, // { params: { id: '3' } }, // { params: { id: '4' } }, // ], // fallback: true, // }; // } 이런식으로 바꾸어야 좋은 건가요? SSR를 최소한으로 한다면 next를 쓰는 의미가 없을 거 같은데 생각할수록 답을 알 수 없어지는 느낌입니다.
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
django 기본 제공해주는 권한 사용할려면
상기 그림과 같이 django 기본 제공해주는 권한 사용할려면 DjangoModelPermissions를 사용해야되나요? 생각보다 많이 어렵네요
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
UI_Inven_item 이름 변경할때 BIND에서 FAILED TO BIND 디버그가 뜹니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문 강의 내에 UI INVEN ITEM의 이름을 변경하기 위한 CS 파일인데 이걸 실행하면 요. FAILED TO BIND가 뜹니다 바인드의 디버그 로그가 뜨는데 UI_INVEN 생성에서는 바인드 디버그 오류 없이 잘 나왔는데 왜 인벤 아이템은 바인드 자체가 안되는지 모르갰습니다..
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
build와 실행은 되는데 사이트 연결이 안됩니다.
IntelliJ로 run을 한 후 hello 페이지(8080포트)를 확인해보면 제대로 연결이 되는데 따로 build를 하고 실행시킬 때 에러없이 실행은되는데 페이지 연결은 되지 않습니다. 실행은 WSL을 사용하였습니다. 어떤게 문제일까요
-
미해결
sizeof 부분이 자꾸 오류가 나오네요
#include <stdio.h> int main(void) { char name[256]; printf("이름이 뭐에요? "); scanf_s("%s", &name, sizeof(name)); int age; printf("몇살이세요? "); scanf_s("%d", &age); float weight; printf("몸무게는 몇 kg 이에요? "); scanf_s("%f", &weight); double height; printf("키는 몇 cm 이에요? "); scanf_s("%lf", &height); char what[256]; printf("어떤 범죄를 저질렀나요? "); scanf_s("%s", &what, sizeof(what)); //조서 내용 출력 printf("\n\n--- 범죄자 정보 ---\n\n"); printf("이름 : %s\n", name); printf("나이 : %d\n", age); printf("몸무게 : %.2f\n", weight); printf("키 : %.2lf\n", height); pirntf("범죄 : %s\n", what); return 0; } 으로 코딩문을 작성했는데 C6328 크기 불일치: 'unsigned __int64'이(가) _Param_(3)으로 전달되었습니다. 다음 호출에는 'unsigned int'이(가) 필요합니다. 'scanf_s'. 라는 오류가 뜨는데 어디가 잘못된건지 잘 모르겠습니다.
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
Set the SECRET_KEY environment variable 오류가 계속 뜨네요
pragmatic 에 settings 파이썬 패키지를 만들고 settings.py를 새로만든 settings 에 옮기고 base.py로 바꾸고 deploy, local을 만들고 디렉토리 관련된것들 deploy,local에 옮기고 데이터베이스도 옮기고 deploy 디버그는 false로 하고 datebase 사이트 들어가서 바꾸고 base.py parent 한번 더 붙이고 manage.py 마지막 .local을 붙였는데 Set the SECRET_KEY environment variable 이렇게 뜨네요 어떻게 해야할까요? 계쏙
-
해결됨비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
MySQL 비밀번호 초기화 방법
가끔씩 MySQL 비밀번호 설정을 잘못하거나 오류가 나서 초기화해야하는 경우가 있습니다. 그럴 땐 아래 단계를 따라주시면 됩니다. 0. 터미널 관리자 권한 sudo su 1. Mysql 종료 service mysql stop 2. Mysql 인증 생략 옵션 추가 & 안전모드로 mysql 실행 /usr/bin/mysqld_safe --skip-grant-tables & 이러면 아마 /var/run/mysqld 에 유닉스 소켓 파일이 없다는 에러가 뜰 수도 있습니다. 이럴땐 해당 경로를 생성하고 권한 설정을 해주면 됩니다. - 폴더 생성 mkdir -p /var/run/mysqld - 권한 설정 chown -R mysql:mysql /var/run/mysqld - 다시 인증 생략하고 mysql 실행 /usr/bin/mysqld_safe --skip-grant-tables & 여기까지해서 mysqld_safe starting ~~~ 이런 문구가 뜨면 정상적으로 실행된거라고 보시면 됩니다. 3. mysql 콘솔 진입 인증 생략 옵션을 넣었기 때문에 비밀번호 없이 접근이 가능합니다. mysql -u root 4. 비밀번호 재설정 update mysql.user set authentication_string=PASSWORD('비밀번호') WHERE user='root'; flush privileges; 5. mysql 재시작 service mysql restart
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요?
client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요? 강의하시는 프로젝트의 App.js 와 Config.js 위치가 component 안에 있는데, 제 경우에는 boiler plate를 받아왔을때, 위치가 client src 부분에 있는데, 이 상태로 실습을 진행하는 것은 상관없는 것인가요?
-
미해결겜팔이의 안드로이드 세뇌교실 - 인★그램 개발부터 배포까지
okhttp설치 코드 공유
https://goo.gl/91liKsb 경로 코드 받을 수 있을가요? 감사합니다. 수고하세요.
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]
9강 질문
안녕하세요 선생님 강의 잘 듣고 있습니다 다름이 아니라 9강을 듣다가 잘 이해가 안가서요 25분경에서 요청할때는 넘어오는 데이터가 없으니까 받을 필요가 없다고 하셨는데 클라가 서버에 요청을 할때 넘어오는 데이터가 없다는게 무슨 말인지 잘 이해가 안갑니다.. 그래서 resp를 쓰셨는데 요청을 하면 서버가 처리를 해서 응답을 하는 거 아닌가요? 왜 넘어오는게 없다는거죠??? 클라이언트가 요청을 해줬으니까 (우리가만든 페이지를 띄워야달라고 하는게 요청이라고 생각했어요) req라는 변수를 써줘야하는거 아닌가요? 그리고 resp가 클라이언트를 식별하고 있으니까 GetWriter를 이용해서 이 클라이언트와 연결된 출력 스트림을 하나 얻어오면 된다고 하셨는데 이게 무슨 소리일까요? 그리고 왜 System.out.println이라는 출력 소스가 따로 있는데 굳이 PrintWriter라는 클래스를 가지고와서 쓰는건가요? 그리고 클래스를 객체로서 사용하려면 Printwriter out = new Printwirter() 이런 형식으로 먼저 써줘야하지 않나요? 어떻게 바로 resp라는 변수를 넣을 수 있는걸까요?? 답변해주시면 감사하겠습니다.
-
미해결
npm install 에러
C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-master>npm install Debugger attached. npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old versio npm WARN old lockfile so supplemental metadata must be fetched from the registr npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals an update to graceful-fs@4.x. npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or highe npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compode.js npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading B npm WARN deprecated request-promise-native@1.0.8: request-promise-native has beated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#depre npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or highe npm WARN deprecated har-validator@5.1.3: this library is no longer supported npm WARN deprecated gulp-symlink@2.1.4: Use vinyl-fs.symlink (or gulp.symlink w npm WARN deprecated babel-preset-es2017@6.24.1: 🙌 Thanks for using Babel: we ad https://babeljs.io/env to update! npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, folljs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/sou npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#de npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source- npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, f npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older mstances, which is known to be problematic. See https://v8.dev/blog/math-rando npm WARN deprecated request@2.88.2: request has been deprecated, see https://gi npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacynstead. npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updatewer dependencies npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, folpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "cof npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 ha a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gypated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgra npm WARN deprecated parcel-bundler@1.12.4: Parcel v1 is no longer maintained. Phe 'parcel' package. See https://v2.parceljs.org/getting-started/migration for npm WARN deprecated core-js@2.6.11: core-js@<3.4 is no longer maintained and nosues. Because of the V8 engine whims, feature detection in old core-js versionsing is polyfilled. Please, upgrade your dependencies to the actual version of c npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-master\node_ npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js npm ERR! Debugger attached. npm ERR! Debugger attached. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | win32 | x64 npm ERR! gyp info find Python using Python version 3.9.7 found at "C:\Users\use npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Promp npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 o for more details npm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ***************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Stud npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ***************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejsd-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Prognode-gyp\lib\find-visualstudio.js:363:14) npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_mo npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Fiode-gyp\\bin\\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\user\Desktop\e-webtoon-master (2)\e-webtoon-mast npm ERR! gyp ERR! node -v v16.14.2 npm ERR! gyp ERR! node-gyp -v v8.4.1 Z-debug-0.log Waiting for the debugger to disconnect..connect... vs code 터미널 창에 npm install을 입력했는데 다음과 같은 에러가 나옵니다. 어떻게 해결하는지 도저히 모르겠는데 도와주세요..! ㅠㅠ
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
섹션 8을 수강하며 궁금한 점이 있습니다..
섹션8.재귀함수와완전탐색(DFS:깊이우선탐색)을 전부 들었는데요. 아직은 알듯 말듯한 느낌이있는데특히나 자신이 없는 부분이어떤 경우에 방문 체크를 해야하고, 또 어떤 경우에는 방문 체크 없이 구현해야 하는지.. 잘 감이 안옵니다. 혹시 규칙같은게..있나요?
-
미해결파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
연탄이.. .신택스 에러가 납니다
# 애완동물을 소개해 주세요~ animal = "강아지" name = "연탄이" age = 4 hobby = "산책" is_adult = age >= 3 print("우리 집" + animal +"의 이름은" + name + "예요.") print(name + "는" + str(age) +"살이며," + hobby + "을 아주 좋아해요.") print(name + "는 어른일까요?" + str(is_adult)) 이렇게 코드를 짰는데 제가 보기에는 다른 부분이 없는데 유효하지 않은 신택스라고 나와요..