본문 바로가기

내가 당면한 문제와 해결방안

(81)
python 동기 -> 비동기 싱글스레드 -> 비동기 멀티스레드 def deep_get(dictionary, keys, default=None): return reduce(lambda d, key: d.get(key, default) if isinstance(d, dict) else default, keys.split("."), dictionary) @app.task @provide_redis def each_k(redis_db, k): # print("레디스 디비 : ") # print(redis_db) document_id = k.get("id") print("document_id : " + document_id) osm_id = deep_get(k, "ATLAS-DEV.codes.osm") polygon = redis_db.hget(name="osm:polygo..
springboot test using cucumber 1. 설정 및 사전 작업 intellij에서 뭐 cucumber도 플러그인 추가해준것 같기도 io.cucumber cucumber-java8 4.3.0 test io.cucumber cucumber-junit 4.3.0 test maven 리포지토리에서 https://mvnrepository.com/search?q=cucumber 를 검색해서 필요한 것을 설치해주긔. 설치가 안되어서 노트북 깨부시고 싶었는디(컴맹의 행동양식) intellij의 .idea 폴더와 .iml 파일을 모두 지우고 && 로컬의 ~/.m2/repository/io/cucumber 다 지우고 재설치 하니까 되었음. 시나리오를 이렇게 작성해본다. 근데 영어로 쓰는게 나을지 한글으로 쓰는게 나을지. 아직 잘 모르겠다. 한글으로 쓰고 싶으..
can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?) 스프링부트 테스트 코드 작성중 이런 에러가. ㅈㄴ 친절하게 말해주는데 ㅎ ㅏ... 나는 먼지 모르겠네 ... package com.회사.lab.tour.geolocation; import com.회사.lab.tour.geolocation.controller.AirportController; import com.회사.lab.tour.geolocation.model.Place; import com.회사.lab.tour.geolocation.result.ResultApi; import com.회사.lab.tour.geolocation.service.PlaceService; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWi..
for...in / for... of loop diff - javascript const arrayExample = ['내','가','최','고']; /* 1 : for in loop */ for (let z in arrayExample){ console.log("for in loop - ", arrayExample[z]); } /* basic for문과 for in loop 은 반복변수에 index를 리턴 예시는 배열이지만 object 에도 사용 가능 */ /* 2 : for of loop */ for (let z of arrayExample){ console.log(z); } /* 3 : forEach */ arrayExample.forEach(function(j){ console.log(j); }); /* for of 와 forEach는 해당 값을 리턴 */ /* using ..
2 > /dev/null 의 의미 가린 부분은 private repository 임 ㅇㅇ 젠킨스로 Build 할때, 잘 모르겠는 부분이 있었는데 바로 2> /dev/null 여기서 /dev/null이 의미하는게 뭔지? 2는 뭔지? 궁금해했었는데 그냥 지나쳤었다. 검색해보니 연관검색어로'표준입출력스트림' 이라는 용어가.... 역시 영영사전을 검색하는 기분이야 ㅎ 아휴 시발 모르는걸검색하면 모르는말로 설명함... https://askubuntu.com/a/350216/859540 > file redirects stdout to file 1> file redirects stdout to file 2> file redirects stderr to file &> file redirects stdout and stderr to file /dev/n..
import 삽질 어제와 그제를 통째로 날린 이야기. (우울주의)(바보주의)(멍청함주의) 너무*1000000000 우울하므로 이 포스팅을 읽는 사람이있다면 https://listenonrepeat.com/watch/?v=VzLlwlb1PRI&s=&e=#Radiohead_-_Creep%2C_Live_(Rare)__94저랑 같이 들어주시고..... 이 눅눅함을 공유해주세요.... 약속하긔 ㅇㅇ 지켜주세효우.... 0 form / content-type / POST 에 대한 온전한 이해부족...(submit되면 장땡이었음)1 intellij debugger가 너무 예민하게 나를 챙겨줬는데 나는 멍청이라서 그 배려를 받아들이지 못함......할튼 툴을 잘 쓸줄을 몰랐음...2 import 라이브러리를 잘못함...... 그것을 a..
제네릭과 컬렉션에 대한 내생각이ㄷ ㅏ Enum들아~~~ ㅎ ㅎ ㅎ ㅎ ㅎ ㅎ ㅎ ㅎㅎ 내 개인적인 생각 ㅎㅎ ㅎ ㅎ ㅎ ㅎ ㅎ ㅎ ㅎ 타입이 없는 Javascript 세계에서 자유롭게 살아온 ㄴ ㅏ... ㅋㅎ 좋았즤~~~그래서 가끔 String이나 Object 타입을 헷갈려서 받기도 했었ㄷ ㅏ.... 머 그렇긴 했어 ! ^^ 그런데 컬렉션을 써주면 List ㅇ ㅏ~ Person들을 List 에 넣어주겠구먼. .... 하는 예측이 가능해지며, 고로 컴파일에도 용이하다는 점.... 컴파일언어는 대체로 타입이 있다는 거같은데 아닌것도 있나효????????????https://stackoverflow.com/questions/2555063/is-there-a-compiled-programming-language-with-dynamic-maybe-even-weak-t..
짚고 넘어가기 1 제네릭과 컬렉션2 autowired / get set https://www.baeldung.com/spring-autowire3 jpa4 서비스와 리포지토리 https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8/?utm_source=dable 인강이라두 들어야댈듯 5 의존성?6 enum http://www.nextree.co.kr/p11686/ 일단.. 상수집합이라고 이해하고 있긔. 그리고 반복자를 쓸수있다는 장점? 있는듯. Enum(열거형)상수 중에서도 비슷한 종류의 상수들을 묶어놓기 위해 Enum(열거형)을 사용한다.ex) 요일, 상태값, 월 등 Enum은 하나의 자료형으로서도 쓰임이 가능하며, 주로 정수형(NS..