반응형

programming 27

tip - previous_post_link / next_post_link 같은 카테고리, 정렬순으로 출력

wordpress previous_post_link / next_post_link by alphabetical order 워드 프레스는 처음이라 한참 찾아보다가 나온 코드들을 조합하여 정확도는 모르지만 우선 잘 동작함 같은 카테고리 에서 타이틀 명으로 정렬하여 다음 순서의 포스트를 가져온다 각자의 테마에 있는 functions.php에 추가 add_filter('get_next_post_join', 'navigate_in_same_taxonomy_join', 20); add_filter('get_previous_post_join', 'navigate_in_same_taxonomy_join', 20); function navigate_in_same_taxonomy_join() { global $wpdb; ..

error - flutter doctor --android-licenses 에러 발생

문제 콘솔 flutter doctor 실행 확인 안드로이드 라이선스 문제 확인 flutter doctor --android-licenses 입력하여 실행 결과 Exception in thread "main" java.lang.NoClassDefFoundError: 에러 발생 해결 이 문제는 안드로이드 SDK 구성요소 중 **안드로이드 SDK 커맨드라인 도구 (Android SDK Command-line Tools)** 가 설치되어 있지 않을때 발생합니다. 문제를 해결하려면 안드로이드 스튜디오에서 SDK Manager를 실행한 후, SDK Tools 탭에서 Android SDK Command-line Tools를 설치하면 됩니다.

programming/flutter 2023.01.11

tip - visual studio for Mac 삭제 및 vscode 셋팅

환경 visual studio for mac [ unity 와 함께 설치 ] macbook air m1 삭제 Mac용 Visual Studio 제거 - Visual Studio for Mac Mac용 Visual Studio 및 관련 도구를 제거하는 방법을 알아봅니다. docs.microsoft.com Document를 따라 스크립트를 다운로드후 sh 확장자로 변경우 이어서 실행한다. 설치 vscode [sillicon] mono .net sdk vscode C# extention 문제 unity 와 사용하기 위해서는 vscode의 Omnisharp: Use Modern 옵션을 끈다

programming/unity 2022.08.05

c# - 디렉토리 / 파일 유무 체크

해당 경로 존재 여부 파악 후 경로 생성 경로상 파일 여부 파악 후 생성 - 하지만 이름만 같은 빈 파일을 생성 하기 때문에 별도 처리 필요 void DirectoryCheck(string fullPath) { DirectoryInfo di = new DirectoryInfo(fullPath); // 경로 존재 여부 파악 if (!di.Exists) { di.Create(); // 해당 경로 생성 } } void FileCheck(string fullPath) { FileInfo fi = new FileInfo(fullPath); // 경로에 파일 존재 여부 파악 if (!fi.Exists) { fi.Create(); // 해당 경로에 파일 생성 - 다른 처리 진행 } }

programming/C# 2021.09.08

unity - Assets 상위 폴더 경로 가져오기

Assets 상위 경로를 접근 Application.dataPath 를 사용하여 기본 경로를 가져온다 타겟 디바이스 마다 경로가 다르기 때문에 확인 후 사용 [ https://docs.unity3d.com/ScriptReference/Application-dataPath.html ] 본 글은 상위 폴더에 output 폴더 생성을 위하여 사용 using System.IO; public class GetPath : MonoBehaviour { public string path; void Start() { path = Application.dataPath; string newPath = Path.GetFullPath(Path.Combine(path,@"../")); Debug.Log(newPath); } }

programming/unity 2021.09.08

series - PyLotto 만들기_3 - UI 만들기_당첨번호 확인

코드 수정중... import requests from bs4 import BeautifulSoup from PyQt5.QtWidgets import QWidget, QLabel, QApplication, QHBoxLayout, QVBoxLayout from PyQt5.QtCore import Qt import sys class PyLotto(QWidget): def __init__(self): super().__init__() # UI초기화 self.initUI() # 크롤링 l = self.crawlingLotto() # UI 업데이트 self.update(l) def initUI(self): vbox = QVBoxLayout() hbox_1 = QHBoxLayout() hbox_2 = QHBoxLa..

programming/python 2021.01.16
반응형