라벨이 vscode인 게시물 표시

vscode remote ssh with out password

이미지
 ## set up local SSH key pair  ## copy ssh key to server [root@localhost vue-element-admin]# vi ~/.ssh/authorized_keys [root@localhost vue-element-admin]# systemctl restart sshd  ## set config file

Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: on vscode

 ## fix error (base) min@min-MS-7C94:~/.mozilla/firefox$ rm -rf ~/.config/Code/Cache

terminal font width is unusually wide on ubuntu

이미지
## font width ## change setting { "editor.fontFamily": "Ubuntu Regular", "terminal.integrated.inheritEnv": false, "terminal.integrated.fontWeight": "normal", "terminal.integrated.defaultProfile.osx": "zsh", "terminal.external.osxExec": "iTerm.app", "terminal.integrated.fontFamily": "'Ubuntu Mono', 'PowerlineSymbols'", "git.confirmSync": false, "git.autofetch": true, "explorer.confirmDragAndDrop": false, "editor.fontLigatures": false, "terminal.integrated.fontWeightBold": "bold" } ## Result

git autologin with vscode

  ## set git $ git config credential.helper store  

Setting up git auto-login in Visual Studio Code

   ## setting command git config --global credential.helper store  

chatterbot on windows (No module named 'chatterbot_corpus' error)

chatterbot환경 setup  ModuleNotFoundError: No module named 'chatterbot_corpus' error가 발생할 경우의 대처 1. 환경준비     Centos 7.x     Anaconda Python 3.7 version 2. 에러 화면 PS C:\work\python\test> pip install -U PyYAML Collecting PyYAML   Using cached https://files.pythonhosted.org/packages/f5/93/b5ebdabc7e450418c26a1395d995d878a59bc4272d6ac63d2ada922126ad/PyYAML-5.1.1-cp37-cp37m-win_amd64.whl Installing collected packages: PyYAML   Found existing installation: PyYAML 5.1 Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead  to only a partial uninstall. PS C:\work\python> cd 'c:\work\python'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Users\sungm\Anaconda3\python.exe' 'c:\Users\sungm\.vscode\extensions\ms-python.python-2019.6.24221\pythonFiles\ptvsd_launcher.py' '--default' '--clien

python flask 실행 시, no module named xxx error

이미지
파이썬 Flask 실행 시, [min@superset ~]$ cd /home/min ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /bin/python3.6 /home/min/.vscode/extensions/ms-python.python-2019.5.18875/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 37919 /home/min/www/hello.py  * Serving Flask app "hello" (lazy loading)  * Environment: production    WARNING: This is a development server. Do not use it in a production deployment.    Use a production WSGI server instead.  * Debug mode: on  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)  * Restarting with stat /bin/python3.6: No module named hello  위와 같은 에러가 발생할 경우 vscode의 실행 위치를 잘 지정할 필요가 있다. /www  |- hello.py  |- xxx.py 의 경우 , vscode의 실행 root는 www에 위치 시켜야한다. 마지막으로 정상적으로 실행된 결과..