전체 글
Windows 10 에서 Vue.js 설치해서 사용하기
들어가기에 앞서... NodeJS 는 설치 되어 있어야 합니다. 해당 링크를 참조하세요 : https://docs.microsoft.com/ko-kr/windows/dev-environment/javascript/nodejs-on-windows 네이티브 Windows에서 NodeJS 설치 Windows에 직접 Node.js 개발 환경을 설치하는 방법에 대한 가이드입니다. docs.microsoft.com 1. PowerShell 실행 Windows 키 + X 를 조합하여 아래 창을 띄우고, PowerShell (Admin)를 실행합니다. 2. Vue.js 설치 npm install vue 3. Vue-Cli 설치 npm install -g @vue/cli 4. cannot be loaded because..
갤럭시 S21 시리즈 9월 28일 업데이트 후기
10월 2일에 업데이트 알람이 뜨길레, Samsung members 에서 업데이트 내용을 확인해 보았습니다. 9월 28일자 업데이트 내용인 것 같다. 해당 내용을 보고 별 것 없는 업데이트 인 줄 알았지만... 업데이트 이후 드라마틱하게 휴대폰이 부드러워 졌습니다. 홈화면 전환, 앱 실행과 홈 버튼으로 앱을 종료 시키는 등의 동작 등에서 눈에 띄게 잔끊김이 사라졌고 지금까지 카메라 앱을 실행할때와 카메라가 로딩될때까지 앱을 종료시키기가 매우 어려웠는데 카메라 앱을 종료할 때 버벅이 조금 줄어들고 앱을 빠르게 종료할 수 있게 되었습니다. 카메라 버벅임이 완전히 해결됬으면 했는데 S21 시리즈는 포기해야 할 것 같습니다. 휴대폰도 조금 더 빠릿빠릿하게 동작하는 것 같고, 리프레쉬 현상이 줄어들었습니다. 리프..
(백준/Kotlin) 7510번 : 고급 수학
난이도: Bronze 3 프로그래밍 언어: Kotlin 문제명: 고급 수학 푼일자: 2021년 10월 주소: https://www.acmicpc.net/problem/7510 문제풀기 제곱 후 비교문장 하나로 해결할 수 있는 문제였습니다. Scenario #N뒤에 콜론을 붙이지 않고 제출하는 등으로 틀렸습니다를 겪었습니다. import kotlin.math.pow fun main() = with(System.`in`.bufferedReader()) { // 고급 수학 repeat(readLine().toInt()) { println("Scenario #${it+1}:") val math = readLine().split(" ").map { i -> i.toDouble().pow(2) }.sorted() ..
highlight.js 에서 hljs.initHighlightingOnLoad() 는 구식이다. hljs.highlightAll() 를 이용하자.
블로그 HTML 편집을 하며 디버깅을 하던 중에 콘솔창에 해당 메세지를 확인했습니다. initHighlightingOnLoad() 는 구식 함수입니다. highlightAll() 로 변경하여줍시다. 이렇게 된 부분을 이렇게 변경해주면 끝입니다. 관련 공식 Post : https://highlightjs.org/#news-142
yyyy-mm-ddTHH:mm:ss(LocalDateTime) 를 원하는 데로 주무르기(T 만 없애는 등)
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss", Locale.KOREA) val nowDateTime = LocalDateTime.now() val localStartDateTime = LocalDateTime.parse(nowDateTime.toString(), formatter) val DT = DateTimeFormatter.ofPattern("HH시 mm분 ss초").format(localStartDateTime) LocalDateTime.parse(nowDateTime.toString(), formatter) 에 변환할 LocalDateTime 형식의 변수를 할당하여 주시고 리턴되는 값을 변경하고 싶으시다면, DateTi..
깃허브에서 스터디/공부 할 수 있는 레포 모음 레포
국내 개발 도서 리스트, Computer Science(CS), Github 관리 법, 개발 컨텐츠 전공 지식, 기술 면접(면접 질문/인터뷰), 채용 정보 등을 모두 모아 놓은 깃허브 레포지트리 입니다. https://github.com/Kuass/study-at-github GitHub - Kuass/study-at-github: (Korean data) Many people thankfully share a repository with a lot of information. Here, the rep (Korean data) Many people thankfully share a repository with a lot of information. Here, the repository are collec..
Initialized JPA EntityManagerFactory for persistence unit 'default' Stuct 문제 해결
2021-09-28 09:44:56.028 INFO 24956 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 위의 메세지는 에러가 아닙니다. 하지만 Spring Application 를 Run 또는 Debug 할 경우 저 부분에서 계속 멈춰있게 됩니다. 해결 빌드 결과물에 문제가 생겼던 것 같습니다. gradle clean -> build 이후에 해결 되었습니다.
코틀린에서 java.time.LocalDateTime 을 비교하기
import java.time.Duration import java.time.LocalDateTime 임포트를 해줍니다. val targetDate: LocalDateTime = LocalDateTime.of(2021, 9, 27, 17, 37, 39) val nowDate = LocalDateTime.now() // 2021, 9, 27, 17, 38, 00 val duration: Duration = Duration.between(targetDate, nowDate) 위와 같이 코드를 구성해 주면... 20초 라는 결과를 얻을 수 있습니다. 나노초 단위도 얻을 수 있습니다. 소요 시간을 한글로 표현 및 출력하려면 아래처럼 작성할 수 있습니다. val hours = seconds / 3600 val m..
RestTemplate 와 ObjectMapper 활용기(스프링에서 다른 서버의 JSON API Token 을 가져와서 이용해야 할 때)
우선 API 서버의 스펙을 확인하고 data class 를 만들어 줍니다. data class GetToken( val responseCode: String, val token: String ) Http Request 이후 Json 을 담아줄 클래스에 아래 내용을 추가해 줍니다. @Autowired lateinit var restTemplate: RestTemplate var mapper: ObjectMapper = ObjectMapper().registerModules(KotlinModule()) 펑션을 하나 만드셔서 안에 아래 내용을 작성하기 시작합니다. val headers = HttpHeaders() headers.contentType = MediaType.APPLICATION_JSON conte..
Kotlin Spring Boot 에 Querydsl 종속성이 추가된 프로젝트 소스 공유
스프링 이니셜라이저에는 왜 querydsl 이 없는가! 그래서 제가 공개 템플릿 레포를 하나 만들었습니다. https://github.com/Kuass/Kotlin-Spring_Boot-Example GitHub - Kuass/Kotlin-Spring_Boot-Example: Why isn't there a querydsl in the spring initializer! Why isn't there a querydsl in the spring initializer! - GitHub - Kuass/Kotlin-Spring_Boot-Example: Why isn't there a querydsl in the spring initializer! github.com