분류 전체보기 318

세부적으로: 테두리 border vs. outline, 100% vs 100vs, 100vh

1. outline https://aboooks.tistory.com/228#google_vignette [css] outline 속성, 용도는? [css] outline 속성, 용도는? 오늘 배울 outline 속성은 border 속성과 비슷합니다. border 속성 자세히 알아 보기(border-width, border-style, border-color 사용법) boder를 테두리라고 한다면 outline은 border 바깥 외곽 aboooks.tistory.com 2. width: 100%, height: 100% vs. 100vh, 100vw https://shinye0213.tistory.com/372 [CSS] 100%와 100vw/100vh % %는 부모의 영향을 받는다. 정확히 말하면 부..

반응형 css (Making our Website Responsive)

1. CH10. Making our Website Responsive 1) hardware device pixels vs. software CSS pixels 생략 시 mobile에서 전체화면 전체가 작게 보임. content에 maximum-scale, minimum-scale, user-scaleable,... 넣을 수 있다. 2) viewport metatag vs. @media query viewport : device viewport에 맞게 hardware pixel을 software CSS pixel로 바꿔주는 역할을 함. 그러나 design의 변화는 없음. @media query : size에 따라 디자인 변경 3) mobile first 4)media query 40rem이상이면~ @med..

React ThemeProvider

1. ThemeProvider styled-components에서 ThemeProvider를 이용해 공통스타일 속성 관리할 수 있다. 하위 자식의 모든 컴포넌트는 의 props로 넘어가는 theme 값을 사용할 수 있게된. {layout === "dashboard" && ( {/* Context API 활용한 태마 변경 */} {configsButton} )} {layout === "vr" && } {getRoutes(routes)} {/* Dialog popup 전역으로 등록해 두기 */} 2. MUI ThemeProvider 3. reset -css margin 0, padding 0의 의미 : 브라우저마다 default padding 값과, default margin 값이 다 다르다. 그렇기 때문에..

JavaScript 논리 연산자 &&, ||, 화살표 함수, setInterval

1. && (A && B) A가 Truthy한 값이면 B가 결과값이 된다. example1 && example2 = example1이 true인 경우 example2을 반환하고 그렇지 않은 경우 example1을 반환 console.log(true && 'hello'); // hello console.log(false && 'hello'); // false console.log('hello' && 'bye'); // bye console.log(null && 'hello'); // null console.log(undefined && 'hello'); // undefined console.log('' && 'hello'); // '' console.log(0 && 'hello'); // 0 console..

Kafka 설치 및 Springboot 연동

1. 설치 https://www.popit.kr/%ec%b9%b4%ed%94%84%ec%b9%b4-%ec%84%a4%ec%b9%98-%ec%8b%9c-%ea%b0%80%ec%9e%a5-%ec%a4%91%ec%9a%94%ed%95%9c-%ec%84%a4%ec%a0%95-4%ea%b0%80%ec%a7%80/ 카프카 설치 시 가장 중요한 설정 4가지 | Popit 카프카 보안과 커버로스(Kerberos)를 이용해 구성하는 방법에 대해 다루는 글을 쓰려다가, 현재 제가 구성한 보안 클러스터 구성환경에 접속할 수도 없고 새로 구성하기도 어려운 상황이라, 평소 www.popit.kr

Kafka 용어

1.카프카 브로커 https://devbksheen.tistory.com/entry/Kafka-Broker-Zookeeper Kafka Broker & Zookeeper란? Kafka Broker & Zookeeper란? 브로커(broker)는 실행된 Kafka application 서버를 뜻한다. 주키퍼(zookeeper)는 이러한 분산 메세지 큐의 정보를 관리해 주는 역할을 한다. kafka를 띄우기 위해서는 주키퍼가 반드시 devbksheen.tistory.com 2. 프로듀서 컨슈머 https://devbksheen.tistory.com/entry/Kafka-Producer-Consumer Kafka Producer & Consumer란? Producer & Consumer란? 프로듀서(produ..

SpringSecurity를 사용할 때 일관적인 Exception 처리를 위해

1. Spring Security Filter chain의 구조 따라서 @Controller나 @Service에서 GlobalCustomException처리하면 (@ControllerAdvice, @ExceptionHandler) 해당 메소드로 넘어가지만, Filter에서 똑같이 Exception 터트려도 GlobalCustomException로 넘어가지 않는다. 해결방법은 Filter영역에서 Exception 처리는 아래와 같이. @Component // 유효한 자격증명을 제공하지 않고 접근하려 할 때 401Unauthorized 에러를 리턴 public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override p..

Nginx와 nginx.conf 파일 설정

1. Nginx란? 용도 클라이언트로부터 요청 받을 때 요청에 맞는 정적 파일 응답(Http Web Server) Reverse Proxy Server로 WAS 서버 부하를 줄일 수 있는 로드밸런서로 활용 특징 Nginx는 Event-Driven 구조로 동작(동접자수 1만명 넘어갈 때 효율적인 방안을 위해), 한 개 또는 고정된 프로세스만 생성 (새로운 프로세스와 쓰레드 생성하지 않음 ) Nginx는 하나의 Master Process와 다수의 Worker Process로 구성, Master Process는 설정파일을 읽고, 유효성 검사 및 Worker Process관리 0. nginx의 /etc/nginx 디렉터리 내부, 정적 콘텐츠 가저오기 위한 설정 1) sites-available : sites-a..

DevOps 2023.06.18