본문 바로가기

전체 글159

flask restapi https://medium.com/@feedbotstar/python-flask-로-간단한-rest-api-작성하기-60a29a9ebd8c 2020. 2. 20.
MAC source command not found & alias mac terminal에서 source command not found 일때, source /etc/bashrc cd ~ vi .bash_profile alias ll='ls -al' 2020. 2. 20.
colab 안끊기게 유지 코랩은 켜놓고 일정시간 동안 사용하지 않으면 세션이 끊기게 됩니다. 그래서 세션이 끊기지않고 돌 수 있게 하려면 일정 행동을 해야되는데... 그걸 자동으로 실행시켜야 합니다. 크롬에서 개발자 모드를 켜는 방법은 다음과 같습니다. windows : ctrl + shift + i mac : command + shift + i 이렇게 개발자 모드를 켜고 난 뒤에는 console 부분에 다음과 같이 코드를 넣고 엔터를 눌러줍니다. function ClickConnect() { var buttons = document.querySelectorAll("colab-dialog.yes-no-dialog paper-button#cancel"); buttons.forEach(function(btn) { btn.click(.. 2020. 2. 9.
파이썬 프록시 리퀘스트 https://m.blog.naver.com/powerapollon/221791573044?fbclid=IwAR0BoBUXfvxFzeQusZMrm9-FKlZRMg9GDRrjPBqVOwElaehvCGlrA6UWo6U 2020. 2. 3.
google cloud vm인스턴스 ssh설정 ssh-keygen -t rsa -f ~/.ssh/root -C root cat root.pub => 메타데이터 SSH키 등록 ( reboot) ssh -i ~/.ssh/root root@34.66.39.178 2020. 1. 15.
google cloud 초기 비밀번호 console상의 ssh로 접속하여 sudo passwd로 ssh 비밀번호를 변경할 수 있다 2020. 1. 15.
pandas 지수표현 없이 출력하기 판다스를 쓸 때 이렇게 숫자가 지수표현식으로 나와서 불편할 때가 있습니다. 이럴 때는 pandas display option을 바꿔주면 실수표현이 가능합니다 pd.options.display.float_format = '{:.5f}'.format 이렇게 잘 적용이 되었고 다시 원래대로 옵션을 변경하고 싶을 때는 아래 명령어를 사용하시면 됩니다 pd.reset_option('display.float_format') 숫자 앞에 0채우기 text = '2' a = text.zfill(2) # 02 b = text.zfill(10) #0000000002 c = text.zfill(1) #2 2020. 1. 3.
ppt 파워포인트 글머리 번호 이렇게 PPT를 제작할 때, 글머리 번호를 매기곤 합니다. 글머리 번호는 꼭 1번부터 시작하기 때문에 내용이 길어지는 경우 다른 도형서식 안에 넣어야하는데..... 이럴 때 글머리가 다시 처음부터 시작하여 귀찮게 만드는 경우가 있습니다. 그럴 때는 [글머리 기호 및 번호 매기기]를 클릭합니다. [시작 시간]에 시작하고자 하는 숫자를 입력하고 확인을 클릭합니다. 그러면 아래과 같이 원하는 번호부터 글머리를 적용할 수 있습니다. 이렇게 하면 중간부터 글머리번호를 매길 수 있어 (띄어쓰기 or 탭)과 씨름하지 않아도 됩니다. 그럼 이만!! 2019. 12. 28.
Jupyter memory You can currently install this package from PyPI. prompt -> pip install nbresuse https://github.com/yuvipanda/nbresuse 2019. 9. 22.
Jupyter notebook setting execute command : jupyter notebook --ip=MY_IP jupyter notebook --generate-config it makes jupyter_notebook_config.py file on C:\Users\User\.jupyter delete jupyter_notebook_config.json file ipython -> from IPython.lib import passwd; passwd() -> sha1: ~~~~~ edit jupyter_notebook_config.py => c.NotebookApp.password = ' sha1: ~~ ' c.NotebookApp.notebook_dir = "PATH" c.NotebookApp.terminals_enabled =.. 2019. 9. 20.
flash 실행 안될 때 flash를 설치했는데도 실행이 안되는 경우 1. 브라우저 설정에서 플래시 사용 설정 여부를 확인 2. 사이트설정에서 플래시 사용 권한변경 1번이 잘 설정 되었는데도 플래시가 실행이 안된다면 주소창 앞에 자물쇠 버튼을 클릭하여 사이트 설정에 들어간다. 해당 사이트에 플래시를 허용해준다. 새로고침을 하면 끝 2019. 7. 30.
Jupyter to pdf 500 : Internal Server Error 2019. 7. 28.
ERR_SSL_VERSION_INTERFERENCE 특정 사이트 접속시 ERR_SSL_VERSION_INTERFERENCE 발생할 때 이런 에러가 발생할 때 https://www.thewindowsclub.com/reset-chrome-settings Reset Chrome browser settings to default in Windows 10/8/7 Chrome has introduced the Reset Chrome button. When you use this option, it will reset your profile to the post-fresh-install state on Windows PC. www.thewindowsclub.com 여기를 참고해서 진행해보았다. 크롬에서 인터넷 사용기록 확인 -> 인터넷 사용기록 전체 삭제 크롬 FL.. 2019. 7. 20.
centos python3 install django 14~ 21 30 ~ 31, 35 ~ 38 2019. 7. 10.
[MAC] mac데스크탑 아이콘 숨기기 (terminal) defaults write com.apple.finder CreateDesktop false; killall Finder defaults write com.apple.finder CreateDesktop true; killall Finder 2019. 6. 18.