일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 이것이 자바다
- ruby #string #strip #split #gsub
- after_update
- docker
- 사용중인포트검색
- change_column
- 주차장 시스템
- change_column_null
- Kotlin
- Rails
- install
- MySQL
- RUBY
- 우분투
- 오랜지파이
- Java
- Time.znoe.now
- mac
- with_indifferent_access
- 쿠버네티스
- Migrate
- 우분투 24
- 설치
- Visual Studio Code
- ubuntu
- 도커
- Orange Pi 3B
- after_save
- Ruby on Rails
- docket
- Today
- Total
목록Back-End (52)
중고 신입이 개발해보기..
우분투에 도커설치는 정보가 많아서.. 검색하면 쉽게 알수 있다.. 순서되로 실행하면 설치가 완료된다. $ sudo apt-get update$ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"$ sudo apt-get install docker..
https://www.data.go.kr/data/15084084/openapi.do 기상청_단기예보 ((구)_동네예보) 조회서비스초단기실황, 초단기예보, 단기((구)동네)예보, 예보버전 정보를 조회하는 서비스입니다. 초단기실황정보는 예보 구역에 대한 대표 AWS 관측값을, 초단기예보는 예보시점부터 6시간까지의 예보를,www.data.go.kr 활용신청을 한다... 그럼 인증키를 준다..
Ruby on Rails에서 두 GPS 좌표 간의 거리를 계산하려면 여러 방법이 있지만, 일반적으로 Haversine 공식을 사용합니다. 이 공식은 두 점 사이의 대원 거리를 계산하는 데 사용됩니다. Rails에서는 `Geokit` 또는 `geocoder` gem을 사용하여 이 작업을 쉽게 수행할 수 있습니다. 아래에 두 가지 방법을 설명합니다.### 방법 1: Geokit Gem 사용1. **Geokit Gem 설치** `Gemfile`에 `geokit`을 추가합니다: ```ruby gem 'geokit' ``` 그리고 `bundle install`을 실행하여 gem을 설치합니다.2. **Geokit 설정 및 사용** `config/initializers/geokit_config...

https://spring.io/tools Spring | Tools spring.io sts를 다운받아 설치한다 e (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 60.0 이 에러를 보니.. 클래스 버전에 맞는 것을 설치해야된다. 그리고 다시 설정~~~ 그럼 실해된다 ㅋㅋ lombok 설치는 여기를 참고 https://hyuneexpress.tistory.com/entry/macOS-lombok%EB%A1%AC%EB%B3%B5-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EB%B0%8F-%EC%84%A4%EC%B9%98 그리들 리플래쉬가 안되어서..
ChatGPT 3.5의 검색결과 루비 온 레일즈(Ruby on Rails)에서 `after_update`와 `after_save`는 두 가지 다른 콜백 메서드입니다. 이 두 메서드는 ActiveRecord 모델의 생명주기 동안 특정 시점에 코드를 실행하도록 설계되어 있습니다. 1. `after_update` 콜백: - `after_update`는 ActiveRecord 객체가 업데이트된 후에 호출됩니다. - 이 메서드는 레코드가 이미 존재하고 업데이트가 수행된 경우에만 호출됩니다. - 레코드가 처음 생성될 때는 `after_update`가 호출되지 않습니다. 예를 들어: class YourModel < ApplicationRecord after_update :some_method private def s..
rbenv install --list brew upgrade ruby-build rbenv install 3.2.2 rbenv local 3.2.2 gem install rails -v 7.0.4.3 rails _7.0.4.3_ new palla -d mysql 최신 버전으로 모두 설치 보았다. ㅋㅋ
ruby코드를 보는중.. yield if block_given? 라는것이 있다.. https://smartbase.tistory.com/54 참고 Ruby 처음 배우기 : Block & Yield Blocks 블록은 클로저 혹은 익명함수와 비슷합니다. 즉 이름 없는 메서드를 생성하는 방법이라고 할 수 있으며, do...end 혹은 {} 로 정의합니다. 블록은 처리를 하나의 단위로 묶은 것으로, 메서드 smartbase.tistory.com def block_given_sample puts "before yield" yield if block_given? puts "after yield" end 메서드가 있다.. block_given_sample 실행하면... before yield after yield ..