전체 글

One By One
· Tools
https://pullpo.io/pr-template-builder [https://pullpo.io/pr-template-builder pullpo.io](https://pullpo.io/pr-template-builder) 📍 Jira ticket Tip: Install Jira-GitHub integration Task 123 📝 Description Please include a summary of the changes. Principal change 1 - Did this and this. Principal change 2 - Did this and this. Principal change 3 - Did this and this. 🧪 Testing Please describe the tests ..
· Tools
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS) google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information. 인증되지 않은 IP에서 구글 API(google-generativeai)를 사용할 때 생기는 문제 두가지 문제로 이 Error가 발생한다. 첫번째 google-auth의 버전이 낮아 ..
· Python
Python f-string을 활용한 깔끔한 출력 1) int 문자열 출력 f-string으로 숫자를 가독성이 좋은 형태로 구분자 선택을 할 수 있다. n : int = 1000000 print(f"{n}") # 1000000 print(f"{n:_}") # 1_000_000 print(f"{n:,}") # 1,000,000 2) 문자열 출력 blank space 채우기 특정 항목을 출력할 때 문자열의 길이가 달라 보기힘든 경우 일일히 문자열의 크기만큼 빈칸을 사용해야한다. 이 경우 f-string으로 보정할 수있다. type1 : str = 'color' type2 : str = 'size' print(f"{type1:
· Tools
NotesOllama로 Mac 메모장에서 자동 한글 번역을 사용해보자! NotesOllama는 메모장에서 OpenLLM 구동할 수 있게 해주는 Application이다. Obsidia Ollama에서 영감을 받아 만들었다고 한다. Good~ 사용 요구사항은 Ollama가 구동 되어야한다. 각설 제외~ 하고 바로 Go~ 1) Ollama 설치 https://ollama.com/download Download Ollama on macOS Download Ollama on macOS ollama.com 2) NotesOllama 설치 https://smallest.app/notesollama/ NotesOllama NotesCmdr Slash commands, markdown and templates for ..
· Database
SELECT * FROM (SELECT colA, colB FROM tableA UNION SELECT colA, colB FROM tableB) WHERE colA > 1 https://stackoverflow.com/questions/5437507/union-with-where-clause UNION with WHERE clause I'm doing a UNION of two queries on an Oracle database. Both of them have a WHERE clause. Is there a difference in the performance if I do the WHERE after UNIONing the queries compared to performin... stackove..
ValueError: The `response.parts` quick accessor only works for a single candidate, but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked. 원인 : 잘못된 request로 prompt 응답이 차단된 case 혹은 safety setting error request 보내기 전에 parameter를 다 기입해준다. 현재로서는 max_tokens candidate_count : 출력 수 top_p : log_probabilities들의 argmax 값을 역순으로 정렬한뒤 단어 단위로 재구성 (글렀다_argmax : 0.7, 힘들다_a..
다했다
B's