묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결비전공자를 위한 개발자 취업 올인원 가이드 [통합편]
대학교 4학년 막학기입니다. 비전공 학과임에도 졸업을 먼저 하는게 맞을까요?
안녕하세요!! 저는 현재 4년제 대학 전기공학과에 다니다가 전기공학과와 관련하여 취업할 생각으로 자격증과 정량적인 스펙을 준비하면서 휴학을 좀 길게 하다보니 마지막 학기만을 남겨둔채 28살이 된 한 휴학생입니다ㅠ 원래대로라면 준비한 자격증들과 영어스펙등으로 공기업에 취업하려했으나 공부를 하면할수록 점점 더 제가 전기라는 분야에 흥미가 없고, 이 분야에서 수십년간 일하고 있을 제 모습이 그려지지 않았습니다. 그러다보니 의욕이 생기지않아 끝없는 취업고민을 하다가 결국 이번학기에 일단 졸업이라도 해야겠다고 생각하여 복학신청을 해놓은 상태였습니다. 그러다가 문득 지인과의 대화를 하다가 개발자의 세상과 비전을 듣고 예전 전공수업에 배웠던 c언어와 c++, 졸업과제로 준비했었던 인공지능 rc카를 만들며 처음으로 전기공학과를 다니며 재밌었던 순간이 떠올랐습니다. 전기적인 지식보다는 정말 기본밖에 모르는 코딩실력으로 구글링과 각종 자문을 구하며 한줄한줄 코드를 작성해가며 정말 말도안되는 코드이지만 실제로 구동하는 프로그램을 보며 두근댔던 기억에 이미 늦은 나이이고 그동안 준비한 자격증들이 아쉽긴 하지만 정말 제가 원하는 일을 해보고 싶다는 생각이 들어 그 길로 나아가 보려고 결심했습니다. 그렇게 개발자를 지망하게 된 순간부터 고민이 생겼습니다. 사실 전기공학과는 개발분야에 있어서는 비전공분야이고 어디라도 빨리 취직해야한다는 조급한 마음이 많이 드는데 한학기를 다니면 사실상 학교에서 수업하는 내용이 막학기라해도 너무나 많기때문에 제대로 개발공부를 병행하기 힘들 수 있고, 사설학원이나 국비학원을 다니면서 공부하고 싶은데 학교를 다니면 그것이 불가능합니다. 사실상 마지막학기는 어딘가에 취업만 할수있다면 취업계라는 제도를 통해 졸업을 시켜주는 제도가 학교에 있습니다. 따라서 1년동안 정말 개발이라는 분야에 최선을다해서 반드시 스타트업 혹은 작은 규모의 회사라도 취업을 해서 내년 1학기를 취업계를통해 학교를 졸업하는것이 맞을까? 하는 고민이있습니다. 요약하자면, 1. 전기공학과 마지막학기를 복학하여 일단 졸업하고 하반기부터 본격적인 개발자 공부에 몰두하기 2. 1년간 다시 휴학을 하고 그동안 국비학원 혹은 부트캠프등 사설학원을 다니면서 개발역량을 키우고 하반기 취업을 목표로 공부하기. 두서없이 긴 이야기 읽어주셔서 감사합니다. 한정수님의 의견은 어떤지 궁금합니다.
-
미해결[2021] 요즘 누가 유료로 웹서비스 구축하나, 파이어베이스의 모든 것 - Vue.js
혹시 강의 내용 업그레이드 계획이 있으신지요?
Firebase 버전 8 -> 9, Vue 버전 2 -> 3 버전 변화가 커서 예제 소스들을 학습하거나 활용하는데 어려움이 있을것으로 보입니다.
-
해결됨[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
crud 관련 질문 드립니다.
제가 간단하게 데이터베이스를 참조해서 유저를 생성, 조회, 수정, 삭제 (대략 crud)를 간단하게끔 할 수 있는 서버를 만들었습니다. 그런데 기능을 구현하는데 있어 문제가 되는점을 질문드리고자 합니다. 1. get메서드와 await User.findAll()을 사용해서 유저를 조회하는 라우터를 사용하려합니다. 만약 유저가 없을 때, 다음 코드는 []를 출력합니다. const provided = await User.findAll(); console.log(provided) // [] 그래서 유저가 없을 때 (테이블이 비어있을때)는 저런 결과를 출력하는구나 해서 조건문을 다음과 같이 구성했습니다. if (provided === []) { res.send("현재 유저가 없습니다."); } 그런데 조건문에 조건이 성사되지 않아 다음 로직으로 넘어가게 됩니다. 조건문의 식을 어떤식으로 구성해야지 조건문에 걸리게 될까요? 2. patch메서드와 await User.update()를 사용해서 유저의 정보를 편집하는 라우터를 사용하려합니다. 다음과 같은 코드가 사용됩니다. const modified = await User.update( { name, age, married, comment, }, { where: { name: params }, } ); 여기 까지는 문제가 없습니다. 데이터베이스를 확인해보면 데이터가 존재합니다. 한가지 아쉬운건 어떤점이 변경되었는지 보여주고싶은데 제가 구성한 html에 다음과 같이 출력됩니다. 유저가 변경되었습니다! [1] 제 생각에는 update 함수안에 로직의 문제 처럼 보여집니다. 로직을 어떻게 수정하면 좋을까요? 3. 유저의 정보를 수정하거나 삭제할 때 "/user~~/:who" 처럼 사용한 후 req.params.who로 유저의 이름을 받아내는 식으로 사용합니다. 한 가지 아쉬운 건 만약 유저의 이름이 영어가 아닌 한글이라면 who에 한글을 넣었을 때 제대로 동작하지 않는다는겁니다. 제 이름으로 유저를 만들고 삭제하기 위해 await User.destory가 포함된 라우터에 제 이름을 넣고 delete요청을 다음과 같이 보냈습니다. 포스트맨을 이용하였습니다. DELETE /userRemove/이 존재하지 않습니다. 404 Error: DELETE /userRemove/이 존재하지 않습니다. at D:\Coding\JS\Node\Node.js_Bible\sql-test\app.js:44:19 at Layer.handle [as handle_request] (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:323:13) at D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:341:12) at next (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:275:10) at D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:641:15 at next (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:260:14) at Function.handle (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:174:3) at router (D:\Coding\JS\Node\Node.js_Bible\sql-test\node_modules\express\lib\router\index.js:47:12) 404처리 미들웨어에서 출력되었습니다. 마치 라우터가 없다는 듯이 출력이 됩니다. 한글이 들어가서 encodeURIComponent를 고려해보긴했는데 라우트 매개변수에 encodeURIComponent를 어떤 식으로 적용해야 할지 모르겠더군요. 만약 아래와 같이 사용한다면 에러가 발생합니다. app.get(`/Hello/:${encodeURIComponent(id)}`, (req, res) => { res.send(`Hello ${req.params.id}`); }); ReferenceError: id is not defined
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
GET_DEC 1,num
GET_DEC 1,num 이 부분은 왜 [num] 이렇게 안 하는 건가요
-
해결됨Redux vs MobX (둘 다 배우자!)
mobx makeAutoObservable 과 mobx로 비동기처리해야될때 질문입니다.
class Store{ repository; rootStore; num = 0; constructor(repository,rootStore){ makeAutoObservable(this); this.repository = repository; this.rootStore = rootStore; } addnum = ()=>{ num++; } } mobx makeautoObservable 관련 질문입니다. 대충 이런식으로 store 가 있는데 makeAutoObservable이 알아서 action 이랑 observable을 지정해줍니다. 1-1. respository와 rootStore는 observable 하게 하고싶지 않은데 mobx devtools를보니 repository와 rootStore를 감지하고 있더라고요 특정 변수 또는 함수를 autoObservable 에 제외시킬수 있나요? repository 나 rootStore 앞에 private 키워드를 줘봤는데도 감지하고 있었습니다. 1-2. 위처럼 메모리에 불필요한 상태값까지 감지하게되면 나중에 state 가 커지면 성능과 메모리 차지에 큰 영향을 끼칠까요? mobx로 비동기 처리해야될때 질문입니다. 네트워크 요청해서 데이터를 보여줘야되는데 리스트로 항목 4개 보여주고 화살표로 다음 페이지버튼 보거나 이전페이지 버튼 보게 하고 있습니다. 다음페이지로 넘기면 네트워크 요청하고 응답받으면 데이터를 보여주게되고 요청을 날릴때는 빈화면이고 요청에대한 응답을 받았을때 데이터를 뿌려줘야됩니다. <button onClick = {()=>store.loadPrevious()}>previous</button> {store.listData && <MyListComponent data={store.listData.slice(store.page*4,store.page+4)}/>} <button onClick = {()=>store.loadNext()}>next</button> 이런식으로 store.listData 가 있을때 컴포넌트가 나오게 했습니다. 첫화면 로딩시 즉 useEffect() 에서 요청날렸을땐 제대로 동작하는데 다음페이지 버튼을 누르면 이미 store.listData는 이미 null이 아니기떄문에 네트워크요청 응답을 받기도전에 화면을 넘겨서 데이터를 제대로 뿌려주지를 못합니다. 2-1. 이런경우는어떻게 처리하는게 좋을까요?
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프2탄]
자바스크립트 ajax
안녕하세요. 수업을 듣다가 궁금한 것이 있어 질문 남깁니다. 1. 자바스크립트에서 작성된 것드 중에 $와 #의 의미가 정확히 뭔가요 ???? 2. $.ajax {error : function() {alert(“error”;} } 로 작성했는데 꼭 함수로 만들어야되는건가요 ?? 그냥 $.ajax{error : alert(“error”)} 로 작성하면 안되는건가요 ?? 3. $.ajax {success : dbCheck} 으로 콜백함수를 써서 작성되어있는데 dbCheck 는 밑에 dbCheck(data) 작성된것과 같이 data라는 값을 얻어야 실행되는 함수 아닌가요 ?? 그러면 $.ajax {success : dbCheck(id)} 로 작성되어야 하는게 아닌가요 ??? 답변해주시면 정말 감사하겠습니다 !!
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
detectProduct.js 오류 질문 드립니다
다른 분들과 마찬가지로 tensorflow/tfjs-node가 깔리지 않아 난항을 겪다가 어떻게 답변하신 거 보고 따라하면서 tensorflow/tfjs-node는 깔았는데요ㅠㅠ (경로로 들어가지는 걸 보니 된 것 같습니다..) 1) 10:56초처럼 node helpers/detectProduct.js 입력했더니 C:\Users\wishd\Desktop\올인원자바\grab-market-server2>node helpers/detectProduct.jsC:\Users\wishd\Desktop\올인원자바\grab-market-server2\node_modules\@tensorflow\tfjs-node\dist\index.js:49 throw new Error("The Node.js native addon module (tfjs_binding.node) can not " + ^Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:\Users\wishd\Desktop\올인원자 바\grab-market-server2\node_modules\@tensorflow\tfjs-node\lib\napi-v7\tfjs_binding.node.Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module. If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue. at Object.<anonymous> (C:\Users\wishd\Desktop\올인원자바\grab-market-server2\node_modules\@tensorflow\tfjs-node\dist\index.js:49:11) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\wishd\Desktop\올인원자바\grab-market-server2\helpers\detectProduct.js:1:12) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) 이렇게 오류가 떴습니다 2) 위에서 시키는 것처럼 npm rebuild @tensorflow/tfjs-node build-addon-from-source를 실행한 후 다시 해봤지만 똑같은 결과가 나왔습니다 3) npm install -g node-gypnode-gyp configure --verbose를 해보았는데 C:\Users\wishd\Desktop\올인원자바\grab-market-server2>npm install -g node-gypchanged 90 packages, and audited 91 packages in 4s4 packages are looking for funding run `npm fund` for detailsfound 0 vulnerabilitiesC:\Users\wishd\Desktop\올인원자바\grab-market-server2>node-gyp configure --verbosegyp info it worked if it ends with okgyp verb cli [gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',gyp verb cli 'C:\\Users\\wishd\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',gyp verb cli 'configure',gyp verb cli '--verbose'gyp verb cli ]gyp info using node-gyp@8.4.1gyp info using node@16.13.1 | win32 | x64gyp verb command configure []gyp verb find Python Python is not set from command line or npm configurationgyp verb find Python Python is not set from environment variable PYTHONgyp verb find Python checking if "python3" can be usedgyp verb find Python - executing "python3" to get executable pathgyp verb find Python - "python3" is not in PATH or produced an errorgyp verb find Python checking if "python" can be usedgyp verb find Python - executing "python" to get executable pathgyp verb find Python - "python" is not in PATH or produced an errorgyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python39\python.exegyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python39\python.exe" to get version gyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python39\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files\Python39\python.exegyp verb find Python - executing "C:\Program Files\Python39\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python39\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python39-32\python.exe gyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python39-32\python.exe" to get versiongyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run gyp verb find Python checking if Python is C:\Program Files\Python39-32\python.exegyp verb find Python - executing "C:\Program Files\Python39-32\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python39-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exegyp verb find Python - executing "C:\Program Files (x86)\Python39-32\python.exe" to get versiongyp verb find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python38\python.exegyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python38\python.exe" to get version gyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python38\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files\Python38\python.exegyp verb find Python - executing "C:\Program Files\Python38\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python38\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python38-32\python.exe gyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python38-32\python.exe" to get versiongyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python38-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files\Python38-32\python.exegyp verb find Python - executing "C:\Program Files\Python38-32\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python38-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exegyp verb find Python - executing "C:\Program Files (x86)\Python38-32\python.exe" to get versiongyp verb find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python37\python.exegyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python37\python.exe" to get versiongyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python37\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files\Python37\python.exegyp verb find Python - executing "C:\Program Files\Python37\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python37\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python37-32\python.exe gyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python37-32\python.exe" to get versiongyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run gyp verb find Python checking if Python is C:\Program Files\Python37-32\python.exegyp verb find Python - executing "C:\Program Files\Python37-32\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python37-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exegyp verb find Python - executing "C:\Program Files (x86)\Python37-32\python.exe" to get versiongyp verb find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python36\python.exegyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python36\python.exe" to get version gyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python36\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files\Python36\python.exegyp verb find Python - executing "C:\Program Files\Python36\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python36\python.exe" could not be rungyp verb find Python checking if Python is C:\Users\wishd\AppData\Local\Programs\Python\Python36-32\python.exe gyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python36-32\python.exe" to get versiongyp verb find Python - "C:\Users\wishd\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run gyp verb find Python checking if Python is C:\Program Files\Python36-32\python.exegyp verb find Python - executing "C:\Program Files\Python36-32\python.exe" to get versiongyp verb find Python - "C:\Program Files\Python36-32\python.exe" could not be rungyp verb find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exegyp verb find Python - executing "C:\Program Files (x86)\Python36-32\python.exe" to get versiongyp verb find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be rungyp verb find Python checking if the py launcher can be used to find Python 3gyp verb find Python - executing "py.exe" to get Python 3 executable pathgyp verb find Python - executable path is "C:\Users\wishd\AppData\Local\Programs\Python\Python310\python.exe"gyp verb find Python - executing "C:\Users\wishd\AppData\Local\Programs\Python\Python310\python.exe" to get version gyp verb find Python - version is "3.10.2"gyp info find Python using Python version 3.10.2 found at "C:\Users\wishd\AppData\Local\Programs\Python\Python310\python.exe"gyp verb get node dir no --target version specified, falling back to host node version: 16.13.1gyp verb command install [ '16.13.1' ]gyp verb install input version string "16.13.1"gyp verb install installing version: 16.13.1gyp verb install --ensure was passed, so won't reinstall if already installedgyp verb install version is already installed, need to check "installVersion"gyp verb got "installVersion" 9gyp verb needs "installVersion" 9gyp verb install version is goodgyp verb get node dir target node version installed: 16.13.1gyp verb build dir attempting to create "build" dir: C:\Users\wishd\Desktop\올인원자바\grab-market-server2\build gyp verb build dir "build" dir needed to be created? Nogyp verb find VS msvs_version not set from command line or npm configgyp verb find VS VCINSTALLDIR not set, not running in VS Command Promptgyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more detailsgyp verb find VS looking for Visual Studio 2015gyp verb find VS - not foundgyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8gyp ERR! find VSgyp ERR! find VS msvs_version not set from command line or npm configgyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Promptgyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more detailsgyp ERR! find VS looking for Visual Studio 2015gyp ERR! find VS - not foundgyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8gyp ERR! find VSgyp ERR! find VS **************************************************************gyp ERR! find VS You need to install the latest version of Visual Studiogyp ERR! find VS including the "Desktop development with C++" workload.gyp ERR! find VS For more information consult the documentation at:gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windowsgyp ERR! find VS **************************************************************gyp ERR! find VSgyp ERR! configure errorgyp ERR! stack Error: Could not find any Visual Studio installation to usegyp ERR! stack at VisualStudioFinder.fail (C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)gyp ERR! stack at C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)gyp ERR! stack at C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! stack at C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 gyp ERR! stack at C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\util.js:54:7gyp ERR! stack at C:\Users\wishd\AppData\Roaming\npm\node_modules\node-gyp\lib\util.js:33:16gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)gyp ERR! stack at ChildProcess.emit (node:events:390:28)gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)gyp ERR! System Windows_NT 10.0.22000gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wishd\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--verbose"gyp ERR! cwd C:\Users\wishd\Desktop\올인원자바\grab-market-server2gyp ERR! node -v v16.13.1gyp ERR! node-gyp -v v8.4.1gyp ERR! not ok 이러한 오류가 떴고,이후의 node helpers/detectProduct.js 결과는 위와 똑같이 오류가 났습니다. 4) 이후에 검색해보다가 npm i -g node-pre-gyp를 실행한 뒤 npm rebuild @tensorflow/tfjs-node build-addon-from-source를 실행해 해결할 수 있다는 말을 보고 해보았는데, C:\Users\wishd\Desktop\올인원자바\grab-market-server2>npm i -g node-pre-gypnpm WARN deprecated node-pre-gyp@0.17.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the futureadded 67 packages, and audited 68 packages in 5s2 packages are looking for funding run `npm fund` for detailsfound 0 vulnerabilitiesC:\Users\wishd\Desktop\올인원자바\grab-market-server2>npm rebuild @tensorflow/tfjs-node build-addon-from-sourcerebuilt dependencies successfully 이처럼 잘 된 것 같았는데.. 5) 다시 node helpers/detectProduct.js 실행하니까 이번에는 C:\Users\wishd\Desktop\올인원자바\grab-market-server2>node helpers/detectProduct.js node:internal/modules/cjs/loader:1183 return process.dlopen(module, path.toNamespacedPath(filename)); ^ ì°ror: The specified module could not be found. \\?\C:\Users\wishd\Desktop\ì\grab-market-server2\node_modules\@tensorflow\tfjs-node\lib\napi-v7\tfjs_binding.node at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\wishd\Desktop\올인원자바\grab-market-server2\node_modules\@tensorflow\tfjs-node\dist\index.js:58:16) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { code: 'ERR_DLOPEN_FAILED' } 이렇게 또 다른 오류가 나네요 ㅠㅠ 혼자 더 찾아서 아무거나 넣어보다가 더 잘못되는 게 아닌가 싶어서 질문 남깁니다..ㅠ 운영체제는 윈도우고 detectProduct.js 내의 코드는 const tf = require("@tensorflow/tfjs-node"); const mobilenet = require("@tensorflow-models/mobilenet"); const fs = require("fs"); const path = require("path"); function detectProduct(url) { const image = fs.readFileSync(url); const input = tf.node.decodeImage(image, 3); console.log(input); } detectProduct(path.join(__dirname, "../uploads/notebook1.jpg")); 위와 같습니다. 도움 부탁드려요 참고로 파이썬 2.7은 같은 C:/안에 설치되어있어요..
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
질문
1. wire is_done ; 으로 줘버리면 is_done 으로 들어가는 신호는 무엇이고 어떻게 정해주죠?? block diagram에서 wire is_done 이 안보여서요 마지막에 이부분인가요 ?? assign is_done = o_running && (cnt_always == num_cnt-1); 2. 지금 설계하신것이 counter를 설계하는데 일부로 FSM을 같이 접목시켜서 logic을 만들어주신거죠? 이론편에서 봤지만 여기서 그냥 counter를 만드는것보다 FSM을 접목시키면 이점이 무엇인가요 ? 3. 66번째 줄에서는 is_done이 0일때까지 고려해줘서 else를 집어넣어줬는데 왜 61번째 줄에서는 i_run이 0일때를 고려하지 않아주는거죠?? 여기도 else n_state=S_IDLE 이 들어가야 되는 것 아닌가요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
궁금한 것이 있는데 관리자 페이지도 배우나요?
개인 쇼핑몰을 만들고 싶은 학생입니다. 유저들이 들어가 쇼핑몰 페이지, 관리자만 볼 수 있는 페이지를 만들어서 패션 쇼핑몰을 만들고 싶은데요 여기서 배울 수 있는 건가요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
CrossFade에 대해 질문 드립니다!
_playerAni.CrossFade("Attack", 0.1f, -1, 0); 으로 사용 할 때 이 코드를 한 번만 부르면 예로 Start에 이것 하나만 때려 박혀있는 상태라 가정하면 Attack이 지속적으로 실행되어야하 는게 맞지 않나요..? 애니메이션이 문제인건지 뭔지를 모르겠는데 한번 실행 후 멈춰 있는 느낌이여서 어쩔 수 없이 ani를 loop가능하게 체크하고 _playerAni.CrossFade("Attack", 0.1f); 이렇게 사용 하고 있는데 _playerAni.CrossFade("Attack", 0.1f, -1, 0); 이 코드를 사용 했을 경우 애니메이션이 루프가 돌지 않는 이유야 엄청 나고 상황에 따라 다르겠지만 혹시 혹시나 돌지 않는 이유중에서 뭔가 흔한 무언 그런 이유가 있을까요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
axios.post(
import axios from "axios"; import React, { useEffect } from "react"; function LandingPage() { useEffect(() => { axios.post("/api/product/products"); }, []); return <div>LandingPage</div>; } export default LandingPage; 랜딩페이지에 axios.post("/api/product/products"); 를 추가 한후 밑에 에러가 계속 뜹니다.
-
미해결MERN STACK 커뮤니티 : 시작부터 배포까지 알려주는 React
Post 챕터 Read (1) 강의에서 axios 안되시는 분들 정보 공유합니다
백단에서 post요청 then().catch() 설정한 후 클라이언트 List.js에서 axios로 /api/post/list 포스트 요청하고 콘솔창 확인해보면 400 에러가 뜨는데 일단 서버폴더 Model/Post.js에서 스키마 부분 Collection : "posts"로 바꾼 다음에 다시 새로고침 해보니깐 postList 데이터 콘솔창에 찍힙니다 초반강의 몽구스 설정할 때 collation : "posts"로 하셨는데 오타인지 궁급합니다!
-
미해결
Facebook Account Disabled-How to resolve it:
Sometimes people end up with the ISSUES like Facebook Account Disabled. Now they could not post any of the content on their social media and fall into trouble. This is why it is important to check their profile name and realize the reason due to which such a problem took place. They can speak to the Facebook service team for solution factors as per the requirements.
-
미해결뉴욕 프로덕트 디자이너가 알려주는, 입문자를 위한 UX디자인 개론
[UX/UI] Good and Bad example
전자책/ 오디오북 이용 사이트 Bad: Audible 1. 플랜에 따른 가격 안내가 모호함 - Audible free, plus, premium의 구분이 확실치 않음 -1 credt을 받을수 있는 플랜과 아닌 플랜에 대한 설명이 확실하지 않음 ex) audible 사이트 접속 첫페이지 2. 책의 카테고라이징의 구체적인 분화가 필요함 ex) audible 사이트 접속 첫페이지 3. 오디오 북과 전자책의 구분이 모호함 4. 아마존 계정으로만 로그인이 되는게 불편함 (SSO) ex) audible 사이트 로그인 페이지 Good: 밀리의 서재 1. 밀리의 서재를 이용하면 사용자가 얻을수 있는 장점과 도서 분류가 확실하게 전달됌 2. 전자책과 오디오 북의 구분이 책 상단 오른쪽 아이콘으로 구분이 쉬움 ex) 밀리의 서재 사이트 접속 첫페이지
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
로그아웃시 쿠키
안녕하세요 잘 듣고 있는 학생입니다! 로그인할 때 genToken으로 생성한 토큰을 x_auth라는 이름으로 쿠키를 생성하지 않습니까?! 그 쿠키를 지워주는게 깔끔할까요..? 아니면 로그아웃하고 로그인하는 과정에서 자동으로 x_auth가 업데이트 되어서 쿠키 삭제를 따로 안해줘도 되는건가요? 궁금해서 글 남깁니다.. 늘 감사합니다,,
-
미해결
.
.
-
미해결Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
플러터 파이어베이스 푸시알림 (fcm, functions, flutter)
안녕하세요! 강의를 다 듣고, 푸시 알림도 구현하고 싶어서 구글링하면서 구현하고 있는데 막히는 부분이 있어 질문 드립니다. 테스트 메세징으로는 푸시 알림이 잘 오는데, firebase functions에 deploy 한 코드를 작동? 트리거 시켰을 때는 로그에만 뜨고, 애뮬레이터에는 푸시 알림이 안오는데 어디에 문제가 있는지 잘 모르겟습니다 ㅠㅠ - firebase functions log 캡쳐 화면 - index.js 코드
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
트래픽이 많은 상황에 대해 질문입니다
안녕하세요. 여태 배운걸 토대로 트래픽이 많은 상황에 대해서 생각해보고 있는데요. 클라이언트에서 order를 생성/변경하는 요청이 계속 들어온다고 생각해봤습니다. 각각의 요청에 대해서 결국 insert, 또는 update SQL이 생성될텐데요. 1. 그러면 클라이언트 1, 2, 3,,, 1000 이렇게 1000명이 동시에 요청해서 insert 또는 update를 하면, 1000개의 SQL이 각각 생성돼서 실행된다고 이해했는데 맞나요? 2. 위의 상황에서 제가 이해한 대로 1000개의 SQL이 각각 생성돼서 실행된다고하면, DB로 가는 네트워크에 부하가 생길수도 있을 것 같은데요. 이런게 문제되지는 않나요?? 혹시 이런 상황에 대해서 따로 처리하는 방법이 있는지 궁금합니다.
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
bss 섹션
변수 e는 어떻게 사용할 수 있어요 ?
-
미해결운영체제 공룡책 강의
퀴즈#02 6번 질문
교수님 안녕하세요. 운영체제 강의 잘 듣고있습니다. 다름이 아니라 퀴즈2번을 풀고있는데 6번에서 LINE X에 대한 실행 순서로 옳은 것인데 LINE X가 어디인지 잘 안보입니다. 혹시 확인한 번 부탁드려도 될까요?