서버 프로그래밍(274)
-
Visual Studio Code에서 Python Formatter 사용
VS Code의 Extensions에서 "Black Formatter"를 설치한다. https://github.com/psf/black GitHub - psf/black: The uncompromising Python code formatter The uncompromising Python code formatter. Contribute to psf/black development by creating an account on GitHub. github.com VS Code 하단의 "{}" 영역을 클릭해서 Black Formatter를 켜준다. Ctrl + Shift + P 누른 다음, "Preferences : Open User Settings (JSON)" 선택하고 다음과 같이 formatter 옵션..
2024.02.28 -
WSL Ubuntu에 Python 설치
Ubuntu에 Python 버전이 여러개 설치 되어 있을 경우, 처리하는 방법 https://seongkyun.github.io/others/2019/05/09/ubuntu_python/ 우분투에서 파이썬 버전 변경하기 · Seongkyun Han's blog 또한 alternative는 python뿐만이 아니라 java와 같은 다양한 프로그램의 버전을 관리하는데 사용이 가능하다. seongkyun.github.io https://iohk.zendesk.com/hc/en-us/articles/16724475448473-Install-Python-3-11-on-ubuntu https://roeldowney.tistory.com/522 [Python] 우분투(Ubuntu)에서 pip & pip3 설치(ins..
2023.11.21 -
FCM V1 API로 마이그레이션
2년 넘게 잘 쓰고 있던 Firebase 메시징 기능이 어느날 갑자기 동작을 하지 않는다. 이것 저것 테스트를 해보아도 response는 정상이지만, 단말기로 메시지가 도착하지 않는다. 결국 FCM V1 API로 마이그레이션을 결정하고 적용했다. 핵심은 서버키 대신 OAuth 2.0 인증을 해야하는 것. 그런데 왜 공식 레퍼런스는 늘 한번에 이해하기 힘들게 되어 있는지... 업데이트도 안되어 있고. https://firebase.google.com/docs/cloud-messaging/migrate-v1?hl=ko#linux-or-macos 기존 HTTP에서 HTTP v1로 마이그레이션 | Firebase 클라우드 메시징 Google I/O 2023에서 Firebase의 주요 소식을 확인하세요. 자세히 ..
2023.11.20 -
React용 Big Calendar
일정 관리를 위해 Calendar 컴포넌트들을 이것저것 검토해봤는데 최종적으로는 이것으로 결정 https://github.com/jquense/react-big-calendar GitHub - jquense/react-big-calendar: gcal/outlook like calendar component gcal/outlook like calendar component. Contribute to jquense/react-big-calendar development by creating an account on GitHub. github.com https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/examples--exa..
2023.09.18 -
Flask-apispec에서 파일 업로드 처리
내가 원한건 파일 업로드를 위한 POST API를 Swagger UI에서 테스트할 수 있도록 하는것인데 정말 쓸만한 레퍼런스가 없다. 이 간단한 코드를 만들기 위해 여기 저기서 짜깁기를 해야하다니.. 헐 from flask_apispec import marshal_with, use_kwargs from flask_apispec.views import MethodResource from marshmallow import Schema, fields from werkzeug.datastructures import FileStorage @use_kwargs({"file": fields.Raw(type="file")}, location="files") @marshal_with(ResponseSchema) def ..
2023.06.21 -
갑자기 WSL2 오류 발생 문제 해결 방법
멀쩡히 잘 동작하던 Windows용 Docker Desktop 실행이 안되서 보니 WSL에 문제가 생긴 것이었다. WSL은 물론 Docker까지 uninstall하고 다시 설치 했음에도 불구하고 같은 문제가 계속 발생한다. WSL이나 Virtual Machine Platform까지 uninstall/install을 해도 차이가 없었다. https://gist.github.com/4wk-/889b26043f519259ab60386ca13ba91b Clean uninstall then reinstall of WSL on Windows 10, with systemD support Clean uninstall then reinstall of WSL on Windows 10, with systemD support..
2023.06.19