파이썬 문법 자료

 파이썬 문법 https://docs.python.org/ko/3/tutorial/index.html  파이썬 공식문서 한글 영어 그리고 여러 언어 https://wikidocs.net/book/1     점프투파이썬 한글  https://dojang.io/mod/page/view.php?id=2291    코딩도장 한글 좀 더 자세

matplotlib marker

https://matplotlib.org/stable/api/markers_api.html  

우분투 커널 복사 붙여넣기

 우분투 커널에서 복사 붙여넣기는 우클릭 후 copy paste해도 괜찮지만  ctrl + shift + c ctrl + shift + v

atom html 여러줄 한번에 쓰기

ctrl+alt 누르고 방향키로 줄 정함

html 단축키 플러그인 emmet

atom에서도 사용가능  atom에서 file>settings>+install>emmet검색 div>li*5 탭 이런식으로 사용 가능

용어

CDN contents delivery network

아직도 그리스 문자가 헷갈리는 나에게

  https://ko.wikipedia.org/wiki/%EA%B7%B8%EB%A6%AC%EC%8A%A4_%EB%AC%B8%EC%9E%90 이제 안 헷갈린다
SEO: search engine optimization

듀얼 모니터 사용 후 창이 안 보일 때

듀얼 모니터 사용 후 창이 안 보일 때 듀얼 모니터 사용 후 창이 안 보일 때가 있다. atom을 사용할 때마다 그런다. 단축키로 화면밖의 창을 화면 안으로 옮겨주자 window + 방향키 로 창을 키보드로 옮기거나 아니면 alt + space + m 으로 마우스로 옮긴다.

matplotlib와 함께 사용할 수 있는 seaborn

  matplotlib와 같이 사용가능한 서드파티 패키지 목록은 여기서 확인 가능 https://matplotlib.org/stable/thirdpartypackages/index.html 컬러 팔레트 기능이 마음에 들어서 여기서 seaborn을 사용해 본다 cmd에 pip install seaborn numpy scipy pandas matplotlib 중에 없는 것이 있으면 자동으로 다운받는다. 컬러팔레트 설명 https://medium.com/analytics-vidhya/deep-dive-into-seaborn-palettes-7b5fae5a258e

LyX 프로그램으로 TeX/LaTeX 쉽게 쓰기

TeX/LaTeX 쉽게 쓰기 LyX:  LaTeX  편집기 https://www.lyx.org/AboutLyX

파이썬 string 비교

  . equals () 파이썬이 아니라 자바임

sketch2code 그림으로 html 코드 생성하기

그림을 그려서 사진을 올리면 자동으로 html 코드를 생성해준다 https://sketch2code.azurewebsites.net/   미래에는 디자이너가 html 다 만드려나 이미지만 올리고 자동으로 코드 생성해서...

[python] np.shape에서 (4,1) (4,)의 차이

 np.shape에서 (4,1) (4,)의 차이는 이차원 일차원 이다. 당연히 둘이 곱할 수 없다 https://stackoverflow.com/questions/13212215/whats-the-difference-between-4-and-4-1-for-the-shape-in-numpy

[python] python에서 제곱은 ^이 아닌 **이다

까먹어서 ^를 썼더니 xor 쓸수 없다고 에러가 떴다. ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' ^  ->  **

윈도우 type here to search가 작동하지 않는 경우

갑자기 윈도우 type here to search가 작동하지 않는다. 해결을 위해 한 시도는 다음과 같다. 세번 restart하기 -> 효과 없음 trobleshoot에서 search and indexing -> 에러를 찾아서 고쳤다고 뜨는데 효과는 없음. 업데이트  -> 해결!

jupyter notebook의 kernel이란 무엇인가

 what is kernel in jupyter notebook A ' kernel ' is a program that runs and introspects the user's code.  IPython  includes a  kernel  for Python code, and people have written  kernels  for several other languages. At  kernel  startup,  Jupyter  passes the  kernel  a connection file. ... You can implement the  kernel  machinery in your target language.

[python] surface_plot

매개 변수가 이차원이어야 하기 때문에  meshgrid를 쓴다.  x y 짝지어줌 여기 설명 좋음 https://m.blog.naver.com/choi_s_h/221659462973 예제 여기서 보기 https://wikidocs.net/14647

[python] np array에서 앞뒤에 새로운 원소 추가

 concatenate를 사용하는 방법이 있다. np.concatenate([[front],a,[back]]) https://stackoverflow.com/questions/32828922/insert-elements-to-beginning-and-end-of-numpy-array

파이썬은 함수에서 리턴값이 여러개일 수 있다.

 예시
파이썬 리스트1=리스트2 복사가 아닌 참조! c언어도 그랬던거 같은데

마크다운 문서를 작성하는데 도움이 되는 사이트

  수형도 랑 간단한 그래프 그리는 mermaid generator Mermaid live editor (mermaid-js.github.io) mathjax 목록 MathJax basic tutorial and quick reference - Mathematics Meta Stack Exchange mathjax 기호 그려서 찾기 Detexify LaTeX handwritten symbol recognition (kirelabs.org) 표 생성기 Markdown Tables generator - TablesGenerator.com 마크다운 cheetsheet Markdown Cheatsheet · adam-p/markdown-here Wiki · GitHub

only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

  only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices index가 float가 돼서 그런듯

sorting algorithm

 quick sort merge sort heap sort bubble sort insertion sort select sort bucket sort radix sort

오늘의 영어 단어와 뜻 정리

추천 영어 단어 외우기 영어 단어 뜻은 네이버 영어사전. implementation   [U] 이행 , 실행 ; 완성 , 성취 ; 충족     criteria    규준 , 표준 , 기준 , criterion 의 복수형 .           protocol 외교 의례 , 의전 , 초안 [ 원안 ]; 보충 협약 , 프로토콜 , 통신 규약 optimization        최적화 , 최대한의 이용 [ 활용 ]., 최적화 , 가장 적합한 조건 , 가장 효과적인 상태 .         comprise            … 으로 구성되다 [ 이뤄지다 ], 구성하다 , 차지하다         immune 면역성이 있는 , … 의 영향을 받지 않는 , … 에 면역이 된           compatible         호환이 되는 , 양립될 수 있는 , 화합할 수 있는 [ 사이좋게 지낼 ]      constraint           제약 , 제한 , 통제   violation 위반 , 위배 , 방해 , 침해 , 침입 , 모독 , 성폭행 , 바이얼레이션       given that        ...

cannot push these commits as they contain an email address marked as private on github

이미지
  github desktop에서 push 하는데 나온 에러 cannot push these commits as they contain an email address marked as private on github 최근에 github 이메일을 private으로 설정을 바꿨기 때문에 일어난 일. 깃허브 공식 문서 참고 https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address github > settings > emails 에서 keep my email address 설정을 해제하거나 설정을 유지하려면 github > settings > emails에 있는 숫자+아이디@users.noreply.github.com을 desktop file>option>git>email 에 있는 이메일 설정을 바꾸면 된다.

raspberrypi imager로 micro sd에 OS 깔기

이미지
imager 여기서 다운받는다 https://www.raspberrypi.org/software/ imager 사용하는 법  간단한 유튜브 설명 동영상 https://www.youtube.com/watch?v=J024soVgEeM 우분투 따로 다운로드 하려면 https://ubuntu.com/download/raspberry-pi choose OS에서 OS 선택하고 choose card에서 카드 선택하고 write 누르면 끝~ 아주 간편하다 other general purpose OS에서 ububtu를 다운 받을 수 있다 우분투 서버(gui 없는 거) 선택했다 write를 눌러서 설치가 완료되었다. 나는 5분정도 걸림

Hello, blogger!

이미지
 My first post in blogger! 아래는 문서 작성을 테스트해보며 작성한 것 입니다. blogger에서는 글을 문서처럼 작성할 수 있다 사진도 넣을 수 있다! 글씨체를 다양하게 사용하고 (한글을 기본 글꼴이 많이 없다) use various fonts 정렬도  다양하게  할 수 있다 💀💀이모지 색깔 하이라이트 취소선 언더라인 기울기 볼드체

STUDY

@GetMapping("/proxy-download") public ResponseEntity<Resource> proxyDownload() {     String sourceUrl = "https://example.com/file-to-download.bin";     ResponseEntity<byte[]> response = restTemplate.exchange(         sourceUrl,         HttpMethod.GET,         null,         byte[].class     );     byte[] fileBytes = response.getBody();     // 👉 원본 Content-Disposition 헤더에서 파일 이름 추출     String disposition = response.getHeaders().getFirst(HttpHeaders.CONTENT_DISPOSITION);     String filename = "default.bin"; // fallback     if (disposition != null && disposition.contains("filename=")) {         // Content-Disposition: attachment; filename="some_file.bin"         filename = disposition.split("filename=")[1].replace("\"", "").trim();     }     HttpHeaders ...