일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- golang
- option pattern
- Linux
- AnimatedPositioned
- Flutter
- vscode
- sqlc
- otel
- go
- version 2
- mysql
- 옵션 패턴
- 윈도우즈 터미널
- module upgrade
- elasticSearch
- openrc
- user-secrets
- 맥미니
- pg_stat_statements
- User
- rc-service
- SQL Server
- IDX Project
- docker
- log
- shared_preload_libraries
- opentelemetry
- DotNet
- Android
- 무선 디버깅
- Today
- Total
목록Dev (48)
CATCHV Blog
1. vscode에 Extension을 설치 합니다. 2. Go 도구 설치 3. Go 도구를 설치 합니다.
수평 창 생성 : Alt + Shift + + 수직 창 생성 : Alt + Shift + - 2. 분할된 다른 새로운 창 생 Alt + 새로운 3. 분할된 창 선택(포커스) 변경 Alt + 방향키 4. 분할된 창 크기 변경 Alt + Shift + 방향키 5. 분할된 창 닫기 Ctrl + Shift + W 6. 명령 창 Ctrl + Shift + P 7. 분할된 창 확대/축소 Ctrl + Shift + P '확대' 입력
옵션 클래스: 매개 변수가 없는 public 생성자를 사용하는 비추상이어야 합니다. 형식의 모든 공용 읽기-쓰기 속성이 바인딩됩니다. 필드가 바인딩되지 않습니다. 위 코드에서 Position은 바운딩되지 않습니다. Position 필드를 사용하므로 클래스를 구성 공급자에 바인딩할 때 문자열 "Position"을 앱에서 하드 코딩하지 않아도 됩니다. public class PositionOptions { public const string Position = "Position"; public string Title { get; set; } = String.Empty; public string Name { get; set; } = String.Empty; } # JSON - appsettings.json "..
request -> ExceptionHandler -> htsts -> HttpsRedirection -> static Files -> Routing -> CORS -> Authentication -> Authorization -> custom middleware -> endpoint Configuration
운영에서는 보통 vault를 많이 사용하지만 개발 중에 간단하게 저장하기 위해서 dotnet은 dotnet user-secrets 을 제공합니다. Project 폴더에서 아래의 명령어로 키-값 형태의 정보를 저장할 수 있습니다. dotnet user-secrets init dotnet user-secrets set "key" "value" dotnet user-secrets 는 아래의 command를 지원합니다. Commands: clear Deletes all the application secrets init Set a user secrets ID to enable secret storage list Lists all the application secrets remove Removes the spe..
vault에는 kv를 만들때 v1, v2 버전 두가지가 존재한다. 문제는 데이터를 API로 불러올 경우 v2가 약간 이상해서 정리를 한다. The KV Secrets Engine can operate in different modes. Version 1 is the original generic Secrets Engine the allows for storing of static key/value pairs. Version 2 added more features including data versioning, TTLs, and check and set. > vault secrets list -detailed dev/ kv kv_b23e6e1a map[version:2] dev1/ kv kv_72afe45..
EF Core(Entityframwork core) 쿼리를 실행하는 경우 Parameter의 값이 ?로 로그에 출력 합니다. 이유는 실제 쿼리가 parameter binding되어 실행되기 때문에 쿼리문 자체는 ?로 실행됩니다. 두번째 줄의 Parameters에 ? 와 컬럼 타입 및 CommandTimout 값만 표시 된다. dbug: 2023-04-11 16:19:23.468 RelationalEventId.CommandExecuting[20100] (Microsoft.EntityFrameworkCore.Database.Command) Executing DbCommand [Parameters=[@__GetName_0='?' (Size = 4000)], CommandType='Text', CommandT..
maxCrossAxisExtent 컬럼의 최대 넓이로 row child 갯수 생성 SliverGrid( gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent( maxCrossAxisExtent: 200, mainAxisSpacing: 1.0, crossAxisSpacing: 1.0, childAspectRatio: 2.0, ), minCrossAxisExtent이 없으므로 계산을 통해서 컬럼의 최소 넓이로 row child 갯수를 생성 double deviceWidth = MediaQuery.of(context).size.width; SliverGrid( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( cr..
1. 설치 https://github.com/grafana/loki/releases 에서 플랫폼에 맞는 것을 다운로드 받는다. # 다운로드 받기 $ wget https://github.com/grafana/loki/releases/download/v2.7.4/logcli-linux-amd64.zip # 압축 해제 $unzip logcli-linux-amd64.zip 2. logcli에서 사용할 loki를 설정한다. # export LOKI_ADDR=http://: export LOKI_ADDR=http://loki:3100 3. loki의 설정된 job 리스트 확인 $ ./logcli-linux-amd64 labels job 2023/03/08 04:48:29 http://loki:3100/loki/ap..