dev

dev/trouble shooting

문제 찾는 방법

나는 고객으로 부터 정말 많은 질문을 받는다. "이거 안되는 이유를 찾아주세요" 나는 그 이유를 찾는게 정말 빠르다. 나만의 방법을 공유하려고 한다. 첫번째, 이 문제의 경계선을 찾을 수 있는지 확인한다. 예를들면, 이게 코드의 문제인지, 데이터의 문제인지, 당시 그 시점의 DB의 문제인지 경계선을 찾는다. 경계선을 찾을 수 있다면, (1) 코드 문제 (2) Data 문제 (3) 운영체제나 DB 문제 등등 이런식으로 보기를 만들수 있다면 나는 가장 아닐것 같은것 부터 지워간다. (3) 지우고, (2) 지우고 (1)이 남았고 그렇다면 1번이 문제의 원인이다. 근데 사실 이러한 경우는 많지는 않다. 문제의 경계선을 찾을수 없다면, 나는 당시 apLog, Message, Data ,DataHistory 등등 ..

dev/데이터베이스

FlashBack Example Query

SELECT * FROM [TABLENAME] AS OF TIMESTAMP TO_TIMESTAMP('2024-01-30 16:44:15', 'YYYY-MM-DD HH24:MI:SS') WHERE 1=1 [CONDITION]

dev/기타

python - 폴더 내부의 파일 utf-8로 인코딩 변경 코드

#pip install chardet import os import chardet def convert_to_utf8(file_path): try: with open(file_path, 'rb') as f: content = f.read() encoding = chardet.detect(content)['encoding'] if encoding and not 'utf-8' in encoding.lower() : contents = content.decode(encoding) #contents = contents.encode('UTF-8') #contents = contents.replace('\r\n\r\n','\r\n') with open(file_path, 'w', encoding='UTF-8',ne..

dev/기타

특정 코드 존재시 아래의 코드 추가하는 파이썬 코드

import os import sys # 찾을 문자열 search_text = 'AddGridColumn("PRODUCTSPECNAME' root_dir = "./" # 현재 디렉토리에서 모든 폴더 탐색 for root, dirs, files in os.walk(root_dir,topdown=False): # 모든 파일 탐색 for file in files: # 파일 열기 if file == 'python.py': continue elif not file.endswith('.cs'): continue elif file.endswith('Designer.cs'): continue with open(os.path.join(root, file), "r",encoding='UTF-8') as f: # 파일의 내..

dev/기타

이클립스 folding plugin coffee-bytes

https://goodteacher.tistory.com/48 control block folding 이클립스에서는 메서드, 주석 등을 단위로 기본적으로 folding이 가능하다. 하지만 아쉽게도 if, while, for 등 제어문의 블럭을 단위로 하는 folding은 지원하지 않는다. 이때 coffee-bytes 라는 클러그인 goodteacher.tistory.com 이클립스 사용시 주석이나 메소드를 folding 해서 봐야 편할때가 있다.

dev/개인 프로젝트

만들고자하는 프로그램

나는 모델러라고 하는 프로그램을 하나 만들것이다. 모델러의 역할은 다음과 같다. 1. 기준정보를 CRUD를 하는 역할을 한다. 2. 접속한 유저를 토대로 history 를 남겨야 한다. 3. 어떤 기준정보를 CRUD를 할수 있는지 관리자가 설정할수 있어야한다. 좀더 세부적인 기능은 다음과 같다. - 관리자와 일반사용자로 구분이 되며, 관리자는 기준 정보 템플릿을 토대로 설정이 가능해야함. - Flow 도 설정할수 있어야하고 - 화면이나 버튼별로 권한을 관리 해야만 한다. 목표 구현기술 - Frontend : vue Or react 이 둘중 쉬운걸로 하자.. 좀더 개발을 잘하면 electron 까지 구현... - backend : Spring 을 사용할것이고 open jdk 11이용, jpa까지 이용하면 ..

dev/개인 프로젝트

mermaid js 를 사용한 토이프로젝트

https://youtu.be/I_r1t2Lfvh8 backend spring jpa frontend react mermaid js mui db oracle 을 사용해서 위의 간단한 토이플젝 github frontend & backend 소스 https://github.com/ParkJeongSu/sequenceDiagram_frontend GitHub - ParkJeongSu/sequenceDiagram_frontend: sequenceDiagram sequenceDiagram. Contribute to ParkJeongSu/sequenceDiagram_frontend development by creating an account on GitHub. github.com https://github.com..

dev/기타

구글 검색 팁

{A} equivalent of {B} {B} 중에서 {A} 와 비슷한 어떤것을 알고싶을때

dev/스프링

Springboot Gradle oracle JPA 연동 API 만들기

https://start.spring.io/ 사이트 접속 후 사진과 같이 프로젝트 생성 아래 사진과 같이 패키지 생성 중요한점은 폴더가 모두 데모 밑에 있다는점 ! DemoApplication과 같은 위치 MenuDefinitionController package com.example.demo.controller; import com.example.demo.domain.MenuDefinition; import com.example.demo.service.MenuService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.sprin..

dev/기타

협업프로그램 정리 ( 잔디 )

... 잔디는... 다운받았는데... 정상적으로 동작하지 않는다.. 음.. 내가 뭘 잘못했나.. 그냥 잔디 홈페이지 가서 다운로드 받았는데,,,,

jeongsu
'dev' 카테고리의 글 목록