프로그래밍
-
[Flutter] Flutter 환경 설정프로그래밍/Flutter 2023. 4. 9. 00:38
Flutter 시작하려고 한다. https://docs.flutter.dev/get-started/install/windows Windows install How to install on Windows. docs.flutter.dev 들어가면 된다 나는 윈도우니깐 설치하다보니 이런 문제 발견 예전에 안드로이드 SDK 설치 해놓은 장소가 있어서 이렇게 설정해 주었다. flutter config --android-sdk="D:\tool_dev\android_sdk" 약간 바뀌었다. 하라는 데로 해봐야겠다. https://velog.io/@jiyeah3108/Flutter-%EC%84%A4%EC%B9%98-%EB%B0%8F-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%83%9D%E..
-
[SpringBoot] SpringBoot with Gradle프로그래밍/Java 2023. 2. 9. 22:49
1. SpringBoot with Gradle - Java 11 - IDE : IntelliJ or Eclipse https://start.spring.io 다운 받은 뒤 lecture/springBootStudy 폴더 밑에 압축을 푼다. IntelliJ 실행 버전은 2022.3(Community Edition) open or import -> build.gradle 열기 No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a..
-
[Python] Unicode에 관해서.프로그래밍/파이썬 2022. 12. 23. 21:27
유니코드 때문에 머리가 아프다. 한글이 Unicode 형태로 나온 데이터를 ascii 형식으로 올렸다.. 라고 정리 했는데 맞는진 모르겠다. 왜냐면 파일 형식이 결국 ascii 였기 때문. Documents/\uac1c\ubc1c\ud504\ub85c\uc81d\ud2b8/\uacf5\uc6a9 Documents/개발프로젝트/공용 문제는 다음과 같다. 위 문자열을 아래와 같이 한글로 만들기만 하면 된다. 파이썬에서 확인해보려고 했는데 쉽지 않다. 결국 라이브러리나 쉬운 방법을 찾지 못해 이런식으로 진행하기로 한다. 1. 글자에서 유니코드 형태를 찾는다. 2. 그 유니코드의 \u뒤 4자리를 10진수로 변환한다. 3. 그 10진수를 아스키코드로 변환(chr)하고 그 변환 문자를 대신 유니코드 자리에 넣는다(..
-
[Java] No enclosing instance of type Main1 is accessible. Must qualify the allocation with an enclosing instance of type Main1 (e.g. x.new A() where x is an instance of Main1 ).프로그래밍/Java 2022. 11. 3. 21:57
Main이 있는 곳에 class를 추가했더니 이렇게 나왔는데 그냥 추가한 클래스 앞에 static을 붙여주면 해결된다. static public class Account { private int account; private double balance; ... } public static class Account { private int account; private double balance; ... } 이렇게 하면 된다.
-
[SpringBoot] 나를 빡치게 하는 Hello World!프로그래밍/Java 2022. 10. 18. 01:05
https://start.spring.io/ 그리곤 인텔리제이의 실행에 들어가니 Alt + Shift + F10에 실행.... 이라는 버튼이 있었는데 눌렀더니 되어 버렸다. 하지만 나는 여전히 빡쳐있다. 왜냐? 어제는 안됐었거든. 다른 폴더는 안되었거든. 이게 도대체 뭔데 나를 이렇게 빡치게 만드는 것일까. 안될때마다 적을테다. 오전 12:48:11: 실행 중 ':DemoApplication.main()'... > Task :compileJava > Task :processResources > Task :classes > Task :DemoApplication.main() . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_..
-
[Python]ffmpeg: FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다.프로그래밍/파이썬 2022. 9. 7. 17:22
1. 상황 : ffmpeg라는 파이썬 모듈을 알게되고, 동영상을 자르거나 인코딩, 효과등을 넣을 수 있는 라이브러리이다. 정도만 듣고 python -m pip install ffmpeg-python 이라는 명령어로 설치했다. 구글신에게 레퍼런스들을 검색하고, 많은 선배님들의 블로그를 읽어보았지만 처음부터 오류로 막히는게 아닌가. 상대경로, 절대경로 다 넣어보고 난리 부르스를 췄지만 찾을 수 없었다. 문제는 ffmpeg.run(stream) 부분을 실행할때만 오류가 난다는 것이었다. 꽤 삽질을 열심히 했지만 결국 해결했다. 2. 해결 오류 내역을 자세히 살펴보니 낯익은 파일이름이 눈에 보였다. subprocess.py 예전에 저걸 사용해 본 기억이 난다. 파이썬에서 자바를 실행할때, 리눅스 환경에서 리눅스..
-
[JAVA] Class has been compiled by a more recent version of the Java Environment (class file version 55.0)프로그래밍/Java 2022. 9. 5. 17:38
1. 상황 JDBC 파일을 다운받았다. mssql-jdbc-11.2.0.jre11.jar 파일이었는데, JRE11에서 알수 있듯 자바 11버전 JDBC이다. java -cp 로 실행해보니 저런 메세지가 튀어나왔다. 도대체 저건 무슨 의미일까? 찾아보니 저 뒤의 class file version 55.0 이라는 의미는 https://stackoverflow.com/questions/47457105/class-has-been-compiled-by-a-more-recent-version-of-the-java-environment Class has been compiled by a more recent version of the Java Environment While running Selenium script..
-
[Eclipse] 이클립스 한글 깨짐프로그래밍/Java 2022. 5. 30. 23:22
놀랍게도 이클립스에서 한글이 깨지는걸 한달정도 못고쳤다. 주로 파이썬을 사용하기도 하고 한글을 꼭 써야 할일은 없어서 그럭저럭 잘 사용했지만... 한글로 해야하는 일이 있어서... 정면돌파를 하기로 했다. 1. UTF-8로 변경 - Run Configuration, properties 부터 시작해서 모든 인코딩을 UTF-8로 변경해도 실패 2. 폰트가 깨졌나 싶어서 확인 - 다른 폰트로 바꿔도 잘안나옴 3.(해결) EUC-KR 사용 - EUC-KR이 목록에 없어서 직접 쳤더니 생김 어쨌든 해결. 다음에 또 한글 깨지면 또 설정 바꿔야지 뭐..