본문 바로가기

분류 전체보기150

pymongo 코드 요약 pymongo 코드는 dictionary로 CRUD 가능 # 저장 - 예시 doc = {'name':'bob,'age':21} db.users.insert_one(doc) # 한 개 찾기 - 예시 user = db.users.find_one({'name':'bob'}) # 여러개 찾기 - 예시 ( _id 값은 제외하고 출력) all_users = list(db.users.find({},{'_id':False})) # 바꾸기 - 예시 db.users.update_one({'name':'bob'},{'$set':{'age':22}}) # 지우기 - 예시 db.users.delete_one({'name':'bob'}) 2022. 5. 15.
Error handling response: TypeError: Cannot read properties of undefined (reading 'always') Error handling response: TypeError: Cannot read property 'always' of undefined at chrome-extension://cnfngpgfjllafbghaimjcmailafcdhod/releaseDrag.js:90:49 도대체 이 에러 메세지가 뭘까.. 고민을 많이 했는데, 크롬 확장 프로그램 중에서 Drag-Free(드래그 프리) 때문에 발생되는 오류였다. Drag-Free를 삭제하거나 사용안함으로 설정을 변경하니, 에러 메세지가 안뜬다. 2022. 5. 14.
yolov4 darknet cuda 11.x.props 또는 cuda11.x.targets 에러 뜰 때 (1) 설치/환경설정 복수개의 CUDA SDK 설치되야하고, C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\ 위치에 다음과 같은 파일 존재해야 함. (당연하게도 파일 이름에 포함된 숫자 11.2는 해당 버전에 따라 다름) CUDA 11.2.props CUDA 11.2.targets CUDA 11.2.xml (*혹시 없다면... CUDA SDK 설치된 곳에서 복사해오길, CUDAPATH\v11.3\extras\visual_studio_integration\MSBuildExtensions 위치에 있음) CUDA 컴파일러 NVCC를 다르게 사용하고자 할 때.... 2022. 5. 13.
V4l2loopback troubleshooting(jetson xavier) sudo su cd /usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9 ## dropped in latter release##make modules_prepare mkdir v4l2loopback git clone https://github.com/umlaeute/v4l2loopback.git v4l2loopback cd v4l2loopback && git checkout -b v0.10.0 make ## if the sequence above fails - adopt the line: make -C /lib/modules/4.9.140-tegra/build M=`$pwd` modules ## make -C /lib/modules/`u.. 2021. 9. 28.