안녕하세요. 강의 잘보고 있습니다. 유저에게 텍스트파일, 카테고리를 입력받아 핵심 키워드와 주제 유사도를 보여주는 웹을 만들려고 합니다. 그런데 어떻게 만들어야하는지 막막해서 질문 글 올려봅니다. DB는 유저에게 텍스트파일과 카테고리를 입력받기 위해 User에 content와 category를 만들었습니다. 유저가 입력한 데이터를 바탕으로 핵심키워드를 보여주기 위해서 MachineKeywordCategory에서 user_id를 외래키로 받았고 핵심 키워드는 keyword에 저장하려고 합니다. 질문 유저가 입력한 텍스트 파일과 카테고리를 받아서 ML에서 결과물을 받아서 유저에게 보여주려고 합니다. 장고로 어떻게 만들어야 하는지 전체적인 흐름을 설명해주실수 있을까요? MachineKeywordCategory라는 ML의 결과물을 저장하는 DB를 굳이 만들어야 하나요? 아래 로직은 UserViewSet에서 @action을 이용해서 커스텀으로 만드는 것이 맞나요? MachineLearning.py에서 얻어온 키워드를 저장하는 로직은 MachineKeywordCategoryViewSet에 구현하는 것이 맞나요?
안녕하세요 강의 열심히 듣고 있는 학생입니다. 수업 중 '깃헙 리포지토리 안내 및 클론' 강의에서 vue-til 리포지토리를 지우고 git에서 다시 클론하라고 안내해주시는데 클론한 후로 npm install에서 아래와 같은 에러가 발생합니다. gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19) gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21) gyp ERR! System Darwin 21.4.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/{username}/vue-final/vue-til/node_modules/fsevents gyp ERR! node -v v10.16.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN jsdom@15.2.1 requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies yourself. npm WARN ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 audited 1494 packages in 9.186s found 477 vulnerabilities (6 low, 162 moderate, 239 high, 70 critical) run `npm audit fix` to fix them, or `npm audit` for details 그래서 찾아보니 build tool 을 설치하라는 답변이 많아 설치해보니 $npm install --global windows-build-tools Debugger listening on ws://127.0.0.1:51480/84244842-786f-47a6-a5c9-801180c33531 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details. npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for windows-build-tools@5.2.2: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"}) 이런 에러가 발생합니다. 현재 Mac 으로 진행하고 있으며 build tool의 경우 cmd나 powershell이 아니라 발생하는 것 같은데 혹시 다른 방법이 있을까요? 그리고 추가적으로 vue + tab 을 하면 되던 자동완성도 clone이후 작동하지 않습니다. 시간나실때 답변 부탁드리겠습니다.
강의 제목 : sw개발자를 위한 성능 좋은 sql 쿼리 작성법 을 모두 들었는데요 그 중에서 파생테이블, CTE, APPLY 활용, CASE 내부 Subquery 주의 편에서 APPLY에 대한 내용이 전혀 나오지 않아요. 무척 기대했던 부분인데... 왜 강의 내용이 없지요? 누락 된건 아닌지요?
안녕하세요. 강의 13.5 10: 57 부근에 대한 질문입니다. 교수님께서 강의를 진행하시는 대로 그대로 코드를 작성하고 실행하였으나, 0부터 144짜지 2의 간격으로 깔끔하게 출력되던 교수님의 결과창과 달리 제 출력 결과는 마치 주소값을 나타내듯 불규칙한 -값의 연속, 그리고 중간중간 0과 정수 등이 섞여있는 결과를 보여주었습니다. 바이너리 파일이 2진 데이터 그대로의 파일이기 때문에, 파일 내부에 어떠한 값이 들어있을지는 출력해보기 전까지 모르고 또 출력되더라도 다른 컴퓨터의 결과와 완전히 동일한 결과가 출력되지 않을 수 있는 것이 정상인가요? 혹시 제가 코드를 잘못 작성했는지 비교해보았으나 그런 것 같지는 않습니다.
<div class="twits"> . . . {% for twit in twits %} <div class="twit"> main.html 넌적스 코드에 이런식의 코드가 있는데 twits 안에서 twit들을 반복을 하고 이 반복문이 돌아가면서 화면에 트윗들이 반복에서 출력되는걸로 이해를 하고 있습니다 그런데 {{twit.User.nick}} {{twit.User.id}} 이런 twit의 user.nick과 user.id는 데이터베이스에 posts 테이블에서 가져오는 것 같은데 twit과 데이터 베이스의 posts가 연결되서 가져오는 코드가 어디에 정의되어있는건가요?
합계 데이터가 출력되지 않아 서버로부터 받아온 Data를 출력하면 어레이 형태의 객체인데, for 구문에서는 읽어온 data가 반영되지 않습니다. 코드와 오류는 아래와 같습니다. function getData(){ return new Promise(function(resolve, reject){ axios.get(url).then((response) => { console.log(response.data); resolve(response.data); }).catch((error)=>{ console.log(error.message) }) }) } var total=0; getData().then(function(data){ console.log(data) for (var items of data){ total += item.price; } console.log(total) }) </script> </body> </html>
function helloUser() { const username = prompt('What is your name?'); socket.emit('new_user', username, (data) => { drawHelloStranger(data); }); } 사용자가 처음 화면에 진입했을 때에 사용자가 이름을 입력하고 나면 ‘new_user’에 해당하는 게이트웨이 로직이 실행되는 것으로 알고 있습니다. 이 로직 안에서 ‘user_connected’에 대해 브로드 캐스팅을 해주고 있는데요 socket.broadcast.emit('user_connected', username); 프론트엔드에서 아래와 같이 connected!라는 채팅글도 화면에 나타나야 할 것 같은데 socket.on('user_connected', (username) => { drawNewChat(`${username} connected!`); }); 화면 진입자 입장에서는 connected!부분이 나타나지 않습니다. 왜 그런지 설명해주실 수 있을까요? 화면 진입자 또한 위 코드를 수행하고 있는데 화면 진입자를 제외한 나머지 사용자에게는 connected!가 나타나지만 화면 진입자는 나타나지 않는 이유가 궁금합니다.
이 오류와 함께 빌드가 안됩니다. 안드로이드랑 windows 빌드 독같이 오류가 뜨고 오큘러스 연결은 완료했습니다. DirectoryNotFoundException: Could not find a part of the path "C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmp35509cb5.tmp".