문제 상황 이런식으로 문제가 발생하는 경우 안된다 -> 아ㅚㄴ다 없다 -> 없ㅏ 받침 입력시 주로 문제 발생 해결 1. 한글패치 설치하기 vscode에 한글패치를 적용 해 버리면 문제가 해결된다고 하는데... 한글입력시 텍스트가 조금 깜빡이는 문제는 있다. 한글패치 후에 다른 Extension과 충돌이 발생하면 또 오류가 난다고 한다. Cmd + LShift + P -> 'language" 입력 한국어 선택 2. 폰트변경 Cmd + , -> Font family 검색 Droid Sans Fallback 삭제 내 환경에서는 이렇게만 있었다. Menlo, Monaco, 'Courier New', monospace
먼저 User 테이블을 생성하기 위해서 터미널에서 아래 명령 실행 $ rails g scaffold User username:string nickname:string group:string 실행하면 아래의 마이그레이션 파일이 생성된다 # db/migrate/20230424110200_create_users.rb class CreateUsers < ActiveRecord::Migration[7.0] def change create_table :users do |t| t.string :username t.string :nickname t.string :group t.timestamps end end end 이 테이블에는 인덱스가 생성되지 않았다. 여기 인덱스를 추가하려면? 인덱스 추가 1. 터미널 명령어로 ..
https://github.com/Nutlope/aicommits 썩 만족스럽진 않지만 그냥 쓸만은 하다 설치 npm 설치 npm i -g aicommits 키 받기 https://platform.openai.com/account/api-keys 설정추가 aicommits config set OPENAI_KEY=sk_kkkkk 사용 $ git add . $ aicommits ┌ aicommits │ ◇ Detected 4 staged files: src/main/kotlin/com/example/process/payout/PayoutService.kt src/main/kotlin/com/example/api/account/module/mypage/MyController.kt │ ◇ Changes anal..
파이썬은 생각없이 latest, lts을 설치하면 고생한다 버전업이 빠르고 하위호환이 제대로 지원되지 않는 경우가 많아 현재 지원이 잘 되는 버전을 써야한다. sdk의 하위호환은 약해도 python 버전을 3.5 -> 3.9 -> 3.11로 변경해도 코드는 크게 수정할 필요가 없는 경우가 많아서 신경 안 써도 된다. 2023.03 시점에서 아직은 3.9 버전을 쓰는게 좋고 3.11을 쓰면 고생을 좀 할 수 있다. AWS Lambda : 3.9, 3.8 Pandaas : 3.8, 3.9, 3.10, 3.11 https://pyreadiness.org/3.11/ Python 3.11 Readiness - Python 3.11 support table for most popular Python packages..
https://marketplace.visualstudio.com/items?itemName=Kimseungtae.aicodehelper AICodeHelper - Visual Studio Marketplace Extension for Visual Studio Code - AI-based coding assistant marketplace.visualstudio.com AI Code Helper ChatGPT API를 이용해서 개발을 도와주는 툴 내 코드를 드래그로 선택해서 단축키를 누르면 Ctrl+Shift+Alt+Z 주석도 달아주고 Ctrl+Shift+Alt+R 리팩토링도 해주고 Ctrl+Shift+Alt+C 코드 리뷰도 해주고 Ctrl+Shift+Alt+M. 코드 이외에 문장도 만들어주고 Ctrl+..
Gradle Build ./gradlew build -x test Error 내용 Configuration on demand is an incubating feature. > Task :batch:bootJar FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':batch:bootJar'. > Error while evaluating property 'mainClass' of task ':batch:bootJar' > Failed to calculate the value of task ':batch:bootJar' property 'mainClass'. > Main class name h..
http request GET https://api.server.com/members?statuses=PENDING 필요한 request param @RequestParam("statuses", required = false) statuses: List? = null, Error 내용 No primary or single unique constructor found for interface java.util.List, requestparam 이 메시지가 나오는 이유는? Enum을 request body로 사용 할 때는 그냥 되는데 request parameter으로 받을 때는 컨버터가 필요하다. Converter 생성 class MemberStatusConverter : Converter { overri..
필요할 때 검색하면 안나와서 기록 Go언어로 Base64 인코딩/디코딩 하는 방법 Sample Code package main import ( "encoding/base64" "fmt" ) func main() { message := []byte("Hello, World!") encodedMessage := base64.StdEncoding.EncodeToString(message) fmt.Println(encodedMessage) // encodedMessage "SGVsbG8sIFdvcmxkIQ==" decodedMessage, err := base64.StdEncoding.DecodeString(encodedMessage) if err != nil { fmt.Println("Error decodin..
필요한 경우 oauth 인증시 redirect uri query 파라미터로 /등 특수문자를 보낼 때 사용불가 캐릭터 / (forward slash) ? (question mark) & (ampersand) = (equals sign) % (percent sign) + (plus sign) # (hash or pound sign) (greater than sign) : (colon) , (comma) Sample Code URL Encode import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class UrlEncoderExample { public static void main..
- Total
- Today
- Yesterday
- URLEncode
- JQuery
- 사용법
- Kotlin
- golang
- Scala
- enum
- git
- js
- ActiveRecord
- Algorithm
- spring
- gradle
- Knowhow
- HelloWorld
- BASE64
- RubyOnRails
- ChatGPT
- index
- urldecode
- Regex
- Snippet
- version
- cdn
- Mac
- 노가다
- error
- sample
- vscode
- Source
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |