그래들 + 코틀린 + 인텔리제이에서 빌드하면서 이런 오류가 나옴. org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String 구글에 검색하면 여러가지 해결 방법들이 나온다. 1. reimport 2. .idea삭제후 재 빌드 3. 인텔리제이 재설치 나의 경우 인텔리제이 재설치로 해결
https://stackoverflow.com/questions/41325087/what-is-the-difference-between-a-pod-and-a-deployment What is the difference between a pod and a deployment? I have been creating pods with type:deployment but I see that some documentation uses type:pod, more specifically the documentation for multi-container pods: apiVersion: v1 kind: Pod metadata: n... stackoverflow.com
쿠버네티스를 처음 사용하면서 create와 apply 명령어의 차이가 뭔지 궁금해서 찾아보니 잘 정리된 글이 있어서 공부할 겸 작성 https://stackoverflow.com/questions/47369351/kubectl-apply-vs-kubectl-create kubectl apply vs kubectl create? What I understood by the documentation is that: kubectl create = Creates a new k8s resource in the cluster kubectl replace = Updates a resource in the live cluster kubectl apply = If I want to do ... stackoverflow...

csv 파일을 불러올 때 주로 pandas패키지의 read_csv를 사용하고 있습니다. 근데 최근에 대용량 파일을 불러와야 하는 경우가 있어서 효율적으로 불러오려면 어떻게 해야하는지 찾아보게되었습니다. 크게 두가지 방법이 있었는데 chunksize를 사용하는것과 dtype을 정의하는 것이었습니다. dtype을 정의한다고 많이 차이나겠어?라는 생각이 들었는데 주피터의 %memit을 사용해서 확인해보니 상당한 차이가 있었습니다... read_csv에는 low_memory 파라미터가 있는데 타입을 정의해주지 않는경우에 해당 파라미터가 사용되지 않는 경우가 많아서 인것 같습니다... 결론... read_csv를 사용할 때는 가능하면 dtype을 사용하자!
파이썬 프로젝트를 진행하다 보면 프로젝트 경로에 "__pychache__"라는 폴더가 생성되는 것을 볼수가 있습니다. 평소에 캐쉬파일인가 보다 하고 넘기다가 문득 쟤가 뭐하는 아이인지 궁금해져서 찾아보고 정리하게 됬습니다. https://stackoverflow.com/questions/16869024/what-is-pycache What is __pycache__? From what I understand, a cache is an encrypted file of similar files. What do we do with the __pycache__ folder? Is it what we give to people instead of our source code? Is it just my input ..
파이썬을 사용하다가 가끔 "리스트안에 특정 값이 있는지"를 확인하는 로직이 들어가는 경우가 있습니다. 평소에는 아래와 같이 사용을 하고 있습니다. 7 in num_list 근데 리스트의 크기가 매우 커지면서 해당 로직에 소요되는 시간이 엄청 길어졌습니다. 뭔가 다른 방법이 없을까? 하다가 검색해보니 이미 깔끔하게 정리해주신 분들이 계셔서 링크를 첨부합니다. https://stackoverflow.com/questions/7571635/fastest-way-to-check-if-a-value-exists-in-a-list Fastest way to check if a value exists in a list What is the fastest way to know if a value exists in a ..
간단한 내용이지만 막상 하려고 하니 조금 시간이 걸려서 정리해둡니다. import csv import json csvfile = open('file.csv', 'r') jsonfile = open('file.json', 'w') fieldnames = ("FirstName","LastName","IDNumber","Message") reader = csv.DictReader( csvfile, fieldnames) for row in reader: json.dump(row, jsonfile) jsonfile.write('\n') https://stackoverflow.com/questions/19697846/how-to-convert-csv-file-to-multiline-json How to conver..
파이썬으로 url 다운로드를 받을 때 다음과 같은 에러 메시지가 나오는 경우가 있다. urllib.error.URLError: 특히, 머신러닝 test코드나 download코드의 경우 발생할 수있는 에러인데 해결 방법은 간단하다. 나의 경우 mac을 사용하고 있는데, 응용프로그램 -> python3.7 -> Install Certificates.command 더블 클릭 실행 이렇게 진행하면 터미널 창에서 자동으로 설치를 한다. 그 이후 동일한 코드를 실행하면 에러없이 잘 작동하는 것을 확인할 수 있다.