일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- JavaScript
- nodejs
- Chunk
- spring
- Node
- Effective Java
- 정규표현식
- regex
- Effective Java 3/e
- expire_logs_days
- npm
- Spring Batch
- git
- 퀵소트
- Express
- java
- REACTJS
- try catch
- upgrade
- MySQL
- update
- Regular expression
- eslint
- log4j2
- log_bin
- migration
- REACT
- spring cloud
- mysql 5.5
- current_date
- Today
- Total
목록분류 전체보기 (160)
내 세상
호흡 1. 수축한 후, 짧게 '후' 뱉음. 자세 1. 발은 어깨보다 살짝 넓게 바깥쪽 대각선(5~10도)을 향하도록 자세를 잡음. 2. 두손 쥐고 가슴 앞에 둔채로 골반을 살짝 뒤로 뺌. 3. 허리는 아치형 유지, 복압 유지, 가슴 쭉 편 상태로 진행함. 3. 앉을 때(수축)는 무릎도 발 방향과 똑같은 방향으로 빠지도록 해야함. 4. 일어설 때(이완)는 발바닥 전체면으로 바닥을 민다고 생각하고 일어서야함.
Base62 - 문자나 일반 데이터를 Base 62 색인표를 기반으로 인코딩하는 방식. - Base64에서 62번째(+), 63번째(/) 기호는 url에서 parameter로 사용할 수 없기 때문에, 제외한 것. - cf) Base64 Url Safe 버전이 있음. ( +(plus) 기호 → -(minus)기호, /(divide) 기호 → _(underline) 기호 ) 랜덤성을 위해 base62 문자열 위치 변경 AS-IS: abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ TO-BE: aZbYc0XdWeV1fUgTh2SiRjQ3kPlOm4NnMoL5pKqJr6IsHtG7uFvEw8DxCyB9zA @Service public class Ba..
1. MySQL Stop 2. MySQL의 Data를 원하는 경로로 복사함. 3. 복사한 폴더의 사용 권한에서 NETWORK SERVICE를 추가하여 모든 권한을 부여함. 4. my.ini에서 [mysqld] 아래에 datadir="D:/MySQL Server 5.5/data" 를 추가하고 저장 5. MySQL Start Windows의 서비스에서 MySQL을 찾아보면, "다음 사용자로 로그온" 항목에 "Network Service"라고 되어있음. 그렇기 때문에 신규로 사용할 datadir에 대해서 해당 계정에 대한 권한을 부여해야함. 부여하지 않을 시, 에러 발생하여 실행되지 않음.
React 기반 프로젝트에서 Context Menu를 사용하기 위해 기존에 react-contextmenu(github.com/vkbansal/react-contextmenu)를 사용하였다. 그러나, 속도 및 기타 이슈 등으로 인해 개선을 위해 react-contexify(github.com/fkhadra/react-contexify)로 변경하게 됨. npm trends를 통해 react-contextmenu와 react-contexify를 비교해보았을 때, react-contextmenu가 월등히 높음. (www.npmtrends.com/react-contexify-vs-react-contextmenu) 사용해본 결과로, react-contextmenu의 경우 depth가 1인 메뉴를 보여주는데는 딜레..
1. wait_timeout - mysqld와 mysql client가 connection된 후, idle 상태인 connection 끊을 때까지 서버가 대기하는 시간 - mysql 서버가 client와의 connection을 계속해서 가져가 max connections error가 발생하는 경우가 있음. - 28800(8시간, default) → 300(5분) 2. interactive_timeout - mysqld와 mysql client가 connection된 후, idle 상태가 아닌 connection을 끊을 때까지 서버가 대기하는 시간. - mysql 서버가 client와의 connection을 계속해서 가져가 max connections error가 발생하는 경우가 있음. - 28800(8시..
head / tail을 사용해서 양쪽 끝단을 시용한다. → Double Linked List의 특징 단, head의 경우 next의 값부터 사용하는 것을 전제로 함. 이유는 head->next를 첫번째 값으로 사용했을 경우, null 상태일때 대처를 손쉽게 할 수 있기 때문임. const int MAX_N = 30001; struct node { int val; node* next; node* prev; node* alloc(int _val, node* _next, node* _prev) { val = _val; next = _next; prev = _prev; return this; } }buf[MAX_N], *head, *tail; int bCnt; void init() { for (int i = 0..
#define _CRT_SECURE_NO_WARNINGS #include const int LM = 5e5 + 100; const int MOD = 65537; int strcmp(const char* a, const char *b){ while (*a && *a == *b){ a++; b++; } return *a - *b; } int bCnt; struct Node { char id[14]; int isLogin; Node* next; Node* alloc(Node* np){ isLogin = 0, next = np; return this; } }buf[LM], htab[MOD]; int N, cmd; int memberCnt, loginCnt; unsigned int djb2(char* s){ un..
/// === main.cpp === #define _CRT_SECURE_NO_WARNINGS #include const int MAX_LEN = 1100000; int N, bn; struct Node { char val; Node* prev; Node* next; Node() : prev(NULL), next(NULL), val(0) {} Node* alloc(char _val, Node *_prev, Node *_next){ val = _val; prev = _prev; next = _next; return this; } }buf[MAX_LEN]; Node* Head; Node* cursor; void insert(char ch){ Node* temp = buf[bn++].alloc(ch, NULL..
#ifndef NULL #define NULL 0 #endif const int SIZE = 100010; struct Node{ int num; Node* next; Node() : num(0), next(NULL) {} Node(int n, Node* np){ num = n, next = np; } ~Node() { delete next; } void erase(Node*& ref){ ref = next; next = NULL; delete this; } }buf[SIZE]; int bcnt; struct Queue{ Node*head, *tail; int cnt; Queue(){ cnt = 0; head = tail = new Node(); } ~Queue(){ cnt = 0; delete head..
#define _CRT_SECURE_NO_WARNINGS #include const int MAX_N = 50050; int N, M; int group[MAX_N]; int ans; int find(int k){ if (group[k] == k) return k; return group[k] = find(group[k]); } int main() { freopen("input.txt", "r", stdin); scanf("%d %d", &N, &M); ans = N; int i, u, v; for (i = 1; i
#define _CRT_SECURE_NO_WARNINGS #include const int MAX_N = 1004; int N, arr1[MAX_N], temp[MAX_N]; void input() { scanf("%d", &N); for (int i = 0; i = en) return; int m = (st + en) / 2; mergeSort(arr, st, m); mergeSort(arr, m + 1, en); int i = st, j = m + 1; for (int k = st; k en) temp[k] = arr[i++]; else if ..
const #define Type O (const int i=3;) X (#define i 3) Scope Global Scope(전역) / Local Scope(지역) Only Global Scope(전역) Bug 확인 컴파일러단에서 처리하기 때문에 디버깅 용이 전처리기가 동작하여 값을 가지고 있기 때문에 디버깅 어려움. 오동작 X Const에 대한 값이 계산된 후 연산이 되기 때문에 오동작하지 않음. ex) const int i = 1+2; int b = i * 3; 결과: 9 O 컴퓨터에서 해당 식 자체를 인식하고 있기 때문에 연산에 오동작이 발생할 수 있음. ex) #define i 1+2 int b = i * 3; 결과: 7 1 + 2 * 3 = 1 + (2 * 3) = 7
환경 - Backend: NodeJS (Express) - Frontend: React - Database: MySQL 문제 - Update Query를 각기 다른 여러개의 where 조건으로 매우 많이 진행해야하는 상황이 생김. - 개별로 진행할 경우, Update Timing이 다르기 때문에 실시간 정보를 가져옴에 있어 Delay가 생김. 해결 - Update의 경우 여러개의 where 조건을 사용하여 일괄적으로 사용이 어렵다. - 이때, INSERT INTO 구문을 UPDATE 구분처럼 사용할 수 있는 방안이 있음!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - INSERT INTO를 했을 때, 기존에 Primary key가 겹치는 데이터가 있을 때 특정 칼럼을 업데이트하는 방식임. 만약..
ko.reactjs.org/docs/react-dom-server.html ReactDOMServer – React A JavaScript library for building user interfaces ko.reactjs.org ReactDOMServer – React A JavaScript library for building user interfaces ko.reactjs.org renderToString() ReactDOMServer.renderToString(element) React 엘리먼트의 초기 HTML을 렌더링합니다. React는 HTML 문자열을 반환합니다. 빠른 페이지 로드를 위해 초기 요청 시에 서버에서 HTML을 생성하여 마크업을 보내거나, 검색 엔진 최적화를 위해 검색 엔진이 ..
git의 filter-branch를 통해서 아래의 명령어로 해결할 수 있다. git filter-branch --commit-filter " if [ "$GIT_COMMITTER_NAME" = "테스트/Test" ]; then GIT_COMMITTER_NAME="test2"; GIT_AUTHOR_NAME="test2"; GIT_COMMITTER_EMAIL="test2@naver.com"; GIT_AUTHOR_EMAIL="test2@naver.com"; git commit-tree "$@"; else git commit-tree "$@"; fi" HEAD
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/d1GqZe/btqVtaOBHap/j7fNrKrixXwF8Xb0JahhG1/img.gif)
개발환경 Server NodeJS(Express) socket.io : 2.3.0 Client ReactJS socket.io-client : 2.3.0 socket.io document - socket.io/docs/v3 Client Side - ReactDOM에서 Root에 해당하는 부분에 아래와 같은 설정값으로 client side websocket 선언함. this.socket = socketIOClient(webSocket_Info, { query: { userId: "sga", part: "tistory", }, transports: ["websocket"] }); - 그 외의 Component에서 일시적으로 WebSocket 관련 동작이 필요할 경우, 파라미터로 넘겨서 사용함. - Ex) R..