4월, 2022의 게시물 표시

[colab error] NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

  colab error NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.  Runtime > Change Runtime Type > select GPU

[flutter] text에 노란 줄

 scaffold를 안써서 생김 https://stackoverflow.com/questions/47114639/yellow-lines-under-text-widgets-in-flutter

[flutter http] Error: XMLHttpRequest error

이미지
flutter 앱에서 django 서버에서 http로 api 받아오는 것을 하고 있었다. 그런데  http.get이 작동안함. 코드를 고쳤더니  Error: XMLHttpRequest error. 이런 에러가 뜨는데 영 무슨 에러인지 모르겠어서 검색을 했더니 비슷한 에러 질문 글들에서 CORS에러, 서버에서 접근을 막은 것일 거라는 답글이 많았다. 크롬으로 실행해서 개발자 도구 열어서 확인 했더니 그게 맞음을 확인. 서버에서 cors관련 설정을 추가하고 경로 지정을 할 수 있는데 그냥 전부 허용으로 해서 해결했다

flutter 코드 formatting 자동 완성

 환경 마다 다 다르다 여기서 참고하기 https://docs.flutter.dev/development/tools/formatting beautify 나 formatting 플러그인을 사용해도 되지만 flutter에 해당하는 건 잘 없다 flutter 앱에 기능으로 포함되어 있는데 설정에 들어가서 format 검색해서 format on paste  format on type format on save 를 활성화해 주었더니 해당 상황에서 작동한다.