분류 전체보기100 [Redis] Redis sentinel 설정 방법..... (for windows) redis-sentinel을 고려하게 된 건 고가용성 측면에서 사용하게 하기 위함이다.우선 서두에 말하자면, windows for linux는 더 이상 정식 최신 버전이 나오지 않는다.wsl이나 비공식 포트로 다운 받는 것도 한 방법이다. 하지만 windows로 해보는 것도 경험이니 적어본다.윈도우용 redis-sentinel 설정 1. https://adjin.tistory.com/9 -> 기본적으로 따라하면 됨 sentinel -file(copy 할 것)- >http://download.redis.io/redis-stable/sentinel.conf2. power shell에서 실행할 것 혹은 쓰기 권한 부여 폴더 별3. 주요 설정 제외 다 주석하기.(redis 버전이 legacy 버전..) 4. 경.. 2025. 2. 13. [백준] 10799. 쇠막대기(c++) https://www.acmicpc.net/problem/10799 쇠막대기 자르는 문제였다. () 일 때 조건 처리가 중요했다.#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, ans = 0; string s; stack stk; cin >> s; for (int i = 0; i = 1 && s[i-1] == '(') { stk.pop.. 2025. 2. 12. [백준] 3986. 좋은 단어(c++) https://www.acmicpc.net/problem/3986중간에 빠져나와야 한다는 생각에 매몰되었었다.교차한다는 것이 무엇일까??를 정의하는 것이 중요했다.#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, ans = 0; cin >> n; while (n--) { string s; stack stk; cin >> s; .. 2025. 2. 11. [백준] 4949. 균형잡힌 세상(c++) https://www.acmicpc.net/problem/4949스택을 활용 기초 문제였다. #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); while (1) { string s; bool flag = true; stack stk; getline(cin, s); // 마무리 조건 if (s.size() == 1 && s[0] == '.') { break; } for (int i = 0; i 2025. 2. 10. Kotlin으로 OpenApi(Swagger)에서 multipart와 dto(vo) 같이 받는 법 https://aahc912.tistory.com/66 Swagger(스웨거) multipart/form-data에서 try out이 불가능한 문제 "Content-Type 'application/octet-stream' is not supp개요 평소 API 문서 자동화 프레임워크로 `Swagger`를 많이 써왔는데 `multipart/form-data`를 Body로 받는 API의 경우 `Swagger` 문서에서 try out(실행)할 시에 예외(HttpMediaTypeNotSupportedException)가 발생하는 문제aahc912.tistory.com일단 아이디어 출처는 이거다.@requestPart는 속성이 지정이 되지 않아서 같이 보내면 application/octet-stream이 나온다. .. 2025. 2. 10. [백준] 11003. 최솟값 찾기(c++) https://www.acmicpc.net/problem/11003스트레스 빡빡 받게 한 문제다.이 문제를 풀면서, 큐 시스템에 적용을 할 수 있을 것 같다고 생각했다.vip 관리와 우선순위가 있는 데이터들을 남겨둘 때 queue 구조(ex, redis, rabbitmq)에 적용할 수 있는 설계 기법 느낌이었다. 기가 막히고 코가 막힌다! 처음엔 map과 deque, mulitset과 deque, priority queue와 deque를 쓰면서 O(nlog(l))을 적용하면 아슬아슬하게 시간 제한을 맞출 수 있지 않을까 하는 생각에 조건문들을 건드려보았는데 되지 않았다. 결국은 O(N)이어야 한다는 것이다. 1. 현재 값보다 큰 값을 뒤에서부터 없애준다. ( 오름차순대로 위치할 수 있게 해준다.) - O.. 2025. 2. 5. 이전 1 ··· 3 4 5 6 7 8 9 ··· 17 다음