분류 전체보기
-
[Java] jackson ObjectMapper개발일지/Java 2024. 1. 30. 14:50
Jackson.ObjectMapper 라이브러리 자바 객체와 json 객체사이에서 직렬화, 역직렬화 시켜주는 라이브러리 //객체생성 public class Car { private String color; private String type; // standard getters setters } // 직렬화 예시 ObjectMapper objectMapper = new ObjectMapper(); Car car = new Car("yellow", "renault"); objectMapper.writeValue(new File("target/car.json"), car); //역직렬화 예시 String json = "{ \\"color\\" : \\"Black\\", \\"type\\" : \\"BMW\\..
-
[Intellij] static import 안먹힘이것저것 2024. 1. 29. 15:05
Add on Demand Static import 부분 체크박스 확인. 켜져있어야댐 /
-
ModuleNotFoundError: No module named '_lzma'Python 2023. 10. 27. 12:25
ModuleNotFoundError: No module named '_lzma' 간혹 Ubuntu에서 Python을 apt로 설치하지 않고 wget으로 설치해서 make 할 시. APT에 등록되지 않은 기본 라이브러리들이 설치가 안되는경우가 있따. burin@boss-WS-C621E-SAGE-Series:/data/workspace/AICoverGen$ python3.9 src/webui.py Traceback (most recent call last): File "/data/workspace/AICoverGen/src/webui.py", line 10, in from main import song_cover_pipeline File "/data/workspace/AICoverGen/src/main.py..
-
파이썬 블로그 읽을거리 요약 정리 (1)이것저것 2023. 7. 26. 11:44
0726 블로그 글 읽어보기.. Stop Using Python Strings To Represent File Paths! Stop Using Python Strings To Represent File Paths! 파일경로를 나타내기 위해 문자열 사용을 그만하라. Mac, Linux filepath는 슬래시(/) Windows Uses backward slashed(\) File Path를 구분하기 위해 If else를 사용하지 않을려면 pathlib를 사용하자. import pathlib path = pathlib.Path('folder') / 'subfolder' / 'subsubfolder' print(path) # folder/subfolder/subsubfolder 주의점은 Pathlib를 사용..
-
systemd[1]: docker.socket: Failed with result 'service-start-limit-hiDocker 2023. 2. 23. 13:38
systemd[1]: docker.socket: Failed with result 'service-start-limit-hi oem@DESKTOP-VAPKAVE:/mnt/c/Users/lodics$ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-02-23 12:14:58 KST; 1min 50s ago TriggeredBy: ● docker.socket Docs: h..