분류 전체보기

Developments/VTK

vtkTransform Multiply 비교

1. 개요 vtkTransform 의 PreMultiply와 PostMultiply 방식을 비교한다. 2. PreMultiply Matrix 곱을 수행할 때 기존의 matrix를 pre 즉 앞단에 놓고 계산을 한다. 함수의 명칭때문에 헷갈리지만 명칭의 기준이 기존 matrix 값을 의미한다. Matrix = PrevMatrix * NewMatrix 로 표현할 수 있다. 이럴 경우 matrix의 좌표계는 상대 좌표계로 계산된다. 3. PostMultiply PreMultipy 와 반대로 기존 matrix 값을 post 뒷단에 놓고 계산 한다. Matrix = NewMatrix * PrevMatrix 로 표현할 수 있다. 이럴 경우 matrix의 좌표계는 월드 좌표계로 계산된다. 3. 구현 vtkAnnota..

Developments/AWS

AWS Cognito with OAuth2

Cognito 서비스에서 User Pool과 Identity Pool 에서 개별적으로 OIDC(Open Identity Connect) 기능과 OAuth2 를 제공하고 있다. 하지만 각자 사용하는 용도와 목적의 차이가 있기에 이를 정리한다. 1. Conito User Pool with OAuth2.0 OAuth2 는 인가를 위한 프레임워크로 사용자의 자격인증을 공유하지 않으면서 권한을 부여할 수 있는 방식이다. 이를 인증하는 방법은 여러가지가 있으나 기본적으로 Code 를 기반으로 인증을 수행하는 방법이 범용적으로 많이 사용된다. 여러 인증 방식은 아래의 링크를 확인하자 Understanding Amazon Cognito user pool OAuth 2.0 grants | Front-End Web & M..

Developments/AWS

AWS Service 요약

Compute Services: Amazon Elastic Compute Cloud (EC2): EC2 provides resizable compute capacity in the cloud. It allows businesses to launch virtual machines (instances) and run various applications, including web and mobile apps, databases, and enterprise applications. AWS Lambda: Lambda is a serverless compute service that runs code in response to events and automatically manages compute resourc..

Programming/C#

WPF 아키텍쳐

WPF 는 아래의 구성에서 빨간색 표시된 다이어그램이다. milcore 는 DirectX를 위한 코드이어서 native이고 나머지는 managed 코드이다. System.Threading.DispatcherObject DispatcherObject는 WPF의 대부분의 클래스의 부모클래스로 정의된다. 이는 여러개의 쓰레드간의 데이터를 주고받을 수 있도록 CLR 객체를 생성하여 STA 동작이 되도록 한다. Dispatcher를 통해서 메시지를 큐에 쌓아서 순차적으로 동작을 하면서 단일 쓰레드에서 UI를 제어 할 수 있도록 한다. 관련된 것이 cross thread exception, deadlock, race condition과 같은 문제를 방지하기 위한 것이다. System.Windows.Dependenc..

Programming/C#

WPF Style multiple controltemplate

WPF Style을 이용하여 여러개의 TargetType 에 대해서 각각의 ControlTemplate를 지정하는 방법이다. Style을 Control 에 지정하였을 때, Resource는 Target이 되는 Type별로 ControlTemplate을 정의한다. Style의 Template property 에는 style이 적용되는 control 의 TargetType 속성을 얻어와 Style.Resource 에서 매치되는 TargetType의 ControlTemplate를 적용할 수 있도록 한다. 이를 위해서 RelativeSource 의 Self 객체의 Path=TargetType 으로 값을 얻어와서 ControlTemplate의 TargetType에 binding 한다. 아래는 Button 에 St..

Programming/C#

Wpf toast message

Wpf toast message 활용하기 using Windows.Data.Xml.Dom; using Windows.UI.Notifications; public void ShowCustomizedToastNotification(string title, string message, string imageFilePath, string audioFilePath, int durationInSeconds) { // Set up the XML content for the toast notification var xml = $@" {title} {message} This is a long message that should wrap to multiple lines in the notification. param1=v..

Programming/C#

ControlTemplate & DataTemplate

개념 Templates: Templates in WPF are used to define the structure and appearance of controls. They provide a way to customize the look and feel of a control without changing its functionality. There are two main types of templates in WPF: a. ControlTemplate: A ControlTemplate allows you to redefine the entire visual appearance of a control, such as a Button, ListBox, or ComboBox. It is a blueprint..

카테고리 없음

Flutter 환경 구축하기

Window 환경에서의 Flutter를 설치해보자. 1. Windows install | Flutter 에서 Stable 버전의 Zip 파일을 다운로드한다. 2. 환경변수에서 Path 변수에 Flutter를 설치한 경로를 추가한다. 3. Android sdk 과 emulator를 설치하기 위해 android studio를 설치한다. 4. flutter doctor 명령으로 환경구축이 잘되었는지 확인한다. Flutter Doctor 환경설정 검사하기 터미널에서 > flutter doctor 를 입력하고 출력되는 에러 메시지를 확인한다. Window Version 에러 해결하기 명령에서 아래를 순서대로 입력한다. flutter channel flutter channel master flutter channe..

카테고리 없음

ASP.Net WebService Base64인코딩

ASP.Net 에서의 웹서비스 get / post에 대한 예제 using System; using System.Diagnostics; using System.Web; public class ProcessHandler : IHttpHandler { public void ProcessRequest (HttpContext context) { // Get the method used to call the page (GET or POST) string method = context.Request.HttpMethod; if (method == "GET") { // Get the parameters from the query string string param = context.Request.QueryString["..

Programming/Database

[MySQL] 서버 계정 생성 및 권한 부여하기

일반 사용자를 생성하고 특정 권한만 부여하기 CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; GRANT SELECT, INSERT, UPDATE ON mydatabase.* TO 'newuser'@'localhost'; Admin 계정을 생성하여 모든 권한을 부여하기 CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON mydatabase.* TO 'admin'@'localhost';

RichardBang
'분류 전체보기' 카테고리의 글 목록 (3 Page)