본문 바로가기
반응형

분류 전체보기709

100 days of SwiftUI - Day31 오늘은 훌륭하게 만든 단어게임 업그레이드 하기 1. 3글자 이하이거나 root단어와 동일하면 오류 발생하게 하기2. 툴바에 다시 시작하기 버튼 넣기(당연히 기능도 해야쥬?)3. 점수 넣기 ( 난 단어의 길이만큼 점수 추가! ) //// ContentView.swift// WordScramble//// Created by HanTJ on 11/25/24.//import SwiftUIstruct ContentView: View { @State private var usedWords = [String]() @State private var rootWord = "" @State private var newWord = "" @State private var errorTit.. 2024. 11. 27.
열심히 다시 ai 를 해보려 했지만... 환경설정하다가 그동안 고생한 나의 그래픽 카드가 더이상 최신버전의 cuda 를 설치하지 못한다는것을 깨달았다. (깨닫기 까지 cuda12.4버전을 3번 설치한건 안 비밀 ㅡㅜ ) nvidia 최신드라이버만 깔면 cuda toolkit 과 pytorch 의 최신버전을 이용할 수 있을줄 알았지만! gpu에 따라 설치할 수 있는 cuda 제한이 있었다! CUDA - Wikipedia CUDA - WikipediaFrom Wikipedia, the free encyclopedia Parallel computing platform and programming model In computing, CUDA (originally Compute Unified Device Architecture) is a propriet.. 2024. 11. 26.
100 days of SwiftUI - Day29, 30 이번엔 영단어 만들기.. 한국어로 하는걸로 바꾸고 싶었지만.. 지금은 실력이 부족해서 패스! //// ContentView.swift// WordScramble//// Created by HanTJ on 11/25/24.//import SwiftUIstruct ContentView: View { @State private var usedWords = [String]() @State private var rootWord = "" @State private var newWord = "" @State private var errorTitle = "" @State private var errorMessage = "" @State private var showi.. 2024. 11. 25.
100 days of SwiftUI - Day28 어제의 프로그램을 조금더 개선? 수정? 하는 내용이다.  위의주석에 나와있는것처럼1. VStack -> Section 으로 변경하기2. Stepper -> Picker 변경하기3. 상단 계산버튼 제거하고 아래에 크게 결과 나타내기 이다./*1. Replace each VStack in our form with a Section, where the text view is the title of the section. Do you prefer this layout or the VStack layout? It’s your app – you choose!2. Replace the “Number of cups” stepper with a Picker showing the same range of values.3... 2024. 11. 24.
100 days of SwiftUI - Day27 저번 시간에 결과로 뽑아낸 ML모델을 이용해서 간단한 앱을 만든다.제목하야 더 나은 숙면을 위하여!알다시피 저번 ML이 하루에 먹은 커피양, 일어나고 싶은 시간, 자고싶은 시간을 입력하면 몇시에 자야 되는지에 대해서 추측할수 있는 거다. 그래서 UI는 그것들을 입력받아서 ML을 호출해서 팝업으로 띄워주는 내용이다.  //// ContentView.swift// BetterRest//// Created by HanTJ on 11/23/24.//import SwiftUIimport CoreMLstruct ContentView: View { @State private var wakeUp = defaultWakeTime @State private var sleepAmount = 8.0 @S.. 2024. 11. 23.
100 days of SwiftUI - Day26 새로운게 또 나온다. 그거슨 바로 ML. 머쉰러닝!xcode를 이용해서, 머신러닝을 돌리고 모델링을 할 수 있다. 교육에서는 BetterRest라는 앱을 만드는데, 깨어있는시간+커피+추정자는시간을 입력하면  실제 잔시간을 예측하는 모델이다.아래는 교육용 자료니 일단 다운받고. Xcode를 실행하고, Xcode > Open Developer Tool > Create ML 을 선택생성할 폴더를 선택하고, New Document 를 선택 예측모델? 템플릿들이 뜨는데 Tabular Regression 선택ProjectName : BetterRest 입력 > Next Traing Data 밑에 드랍다운을 선택하고 csv파일을 선택Target : actualSleepFeatures: 나머지 3개 선택상단에 플레이 .. 2024. 11. 22.
react-native iOS 모듈 만들기 1. 리액트-네이티브 프로젝트 생성brew install nodebrew install watchmannpx react-native@latest init AwesomeProject 2. 프로젝트 실행후, iOS 시뮬레이터에서 실행 확인npm start# 실행시 meteo 가 실행 되고, i 를 누르면 iOS에뮬레이터가 실행되며 cocoapod 설치 여부 물어봄 설치! 3. 네이티브 모듈 생성 ( 파일2개 )RCTCalendarModule.h//// Header.h// AwesomeProject//// Created by 한태종 on 11/22/24.//#ifndef RCTCalendarModule_h#define RCTCalendarModule_h#import @interface RCTCalenda.. 2024. 11. 22.
react-native iOS 프로젝트 오류시 클린 정리 후 재실행 하기 1. cocoapod 재설치 업데이트# 프로젝트 루트에서cd iospod deintegratepod cleanpod installcd .. 2. xcode 캐시 정리rm -rf ~/Library/Developer/Xcode/DerivedData 3. 프로젝트 리빌드# 역시 프로젝트 루트에서npx react-native cleannpx react-native run-ios 성공! 2024. 11. 22.
100 days of SwiftUI - Day25 정리의 시간과 마지막 도전!가위바위보 게임이지만 승리를 정해놓고 가위바위보를 내기!!/** So, very roughly:Each turn of the game the app will randomly pick either rock, paper, or scissors.Each turn the app will alternate between prompting the player to win or lose.The player must then tap the correct move to win or lose the game.If they are correct they score a point; otherwise they lose a point.The game ends after 10 questions, at w.. 2024. 11. 21.
반응형