본문 바로가기

TIL

(43)
2022.11.08.TIL 프리즘 강의: https://www.youtube.com/watch?v=iTUy6AlyDgA prism 기본 설정: App.xaml.cs public partial class App { protected override Window CreateShell() { return Container.Resolve(); } protected override void RegisterTypes(IContainerRegistry containerRegistry) { } protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog) { base.ConfigureModuleCatalog(moduleCatalog); moduleCatalog.AddMo..
2022.10.13.TIL (알고리즘,못 품) 백준 문제풀이 2629번 https://www.acmicpc.net/problem/2629 2629번: 양팔저울 첫째 줄에는 추의 개수가 자연수로 주어진다. 추의 개수는 30 이하이다. 둘째 줄에는 추의 무게들이 자연수로 가벼운 것부터 차례로 주어진다. 같은 무게의 추가 여러 개 있을 수도 있다. 추의 무 www.acmicpc.net 배낭문제 재귀로 해결해야 함 사용한 추의 갯수와 추의 총 무게만 생각하여 만들 수 있는 무게들을 구함 추를 모두 사용했을 때 ture인지 false인지 확인 #include #include #include #include #include #include #include using namespace std; int weight; int wss[30]; int ball; int..
2022.10.06.TIL EC2 CPU 사용율 99퍼뜨면서 서버 나가는 오류 해결하기 -> 프리티어라 메모리가 1GB인데 이것이 부족하기 때문이라는 생각이 듬 Ubuntu Swap영역 설정하기: https://sundries-in-myidea.tistory.com/102 AWS EC2 프리티어에서 메모리 부족현상 해결방법 AWS free tier를 사용하다보면 2%가 부족할 때가 있다. AWS 프리티어는 가난한 대학생에게는 한줄기 빛과 같은 존재인데, AWS의 프리티어라서 적게 돈이 나가는 것도 좋고, 실제로 이것저것 해볼 수 있 sundries-in-myidea.tistory.com 결과:
2022.10.04.TIL 트레픽 제한하기: https://khj93.tistory.com/entry/Bucket4j%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%9C-Spring-API-%EC%9A%94%EC%B2%AD-%ED%95%9C%EB%8F%84-%ED%8A%B8%EB%9E%98%ED%94%BD-%EC%A0%9C%ED%95%9C%ED%95%98%EA%B8%B0 Bucket4j란? Bucket4j를 사용한 Spring 트래픽 제한하기 들어가기 앞서.. Spring REST API를 개발하며 특정 API들에 대해 일정시간 혹은 사용자마다 요청한도(트래픽)을 제한하고 싶은 경우가 있습니다. 해당 기능을 개발하기 위한 유용한 라이브러리인 Bucke khj93.tistory.com EC2 IP주소 고정하기: htt..
2022.09.21.TIL https://github.com/483759/Square4Us/wiki/Openvidu-%EA%B5%AC%EC%B6%95-%EA%B3%BC%EC%A0%95 GitHub - 483759/Square4Us: WebRTC 기반의 화상 스터디 플랫폼 WebRTC 기반의 화상 스터디 플랫폼. Contribute to 483759/Square4Us development by creating an account on GitHub. github.com openvidu 설치하고 구동하기 프론트: https://cool-ceres-72b.notion.site/FRONT-OpenVidu-4f6270d003884898adf054d54e73c76e FRONT (OpenVidu) OpenVidu Front cool-ceres-..
2022.09.20.TIL 우분투에 docker 설치하기: https://dongle94.github.io/docker/docker-ubuntu-install/ [Docker] Ubuntu에 Docker 설치하기 리눅스 OS 중 우분투 OS에서 도커(Docker) 프로그램을 설치하는 방법을 알아본다. dongle94.github.io 도커 권한없음 에러: https://codin9.tistory.com/9 room() { List Rooms = chatService.findAllRoom(); return ResponseDto.success(new ClassDto(Rooms),"성공적으로 클래스를 가져왔습니다."); } @PostMapping("/api/class") @ResponseBody public ResponseDto Cre..
2022.09.19.TIL 테이블에 @JsonIgnore달면 리스폰스에 안나옴(자꾸 까먹는다) RequestBody와 RequestPart는 같이쓸 수 없다. dto랑 파일 같이 보내는법(with postman): @PostMapping("/api/class") public ResponseDto CreateClass(@RequestPart(value = "RoomRequestDto") RoomRequestDto requestDto, @RequestPart(value = "Multipart") MultipartFile multipartFile) throws IOException { System.out.println(requestDto.getRecipe_id()+ " "+ requestDto.getClass_name()); Syste..
2022.09.14.TIL @EnableWebSecurity @RequiredArgsConstructor public class SecurityConfig extends WebSecurityConfigurerAdapter { private final TokenProvider tokenProvider; private final JwtAuthenticationEntryPoint jwtAuthenticationEntryPoint; private final JwtAccessDeniedHandler jwtAccessDeniedHandler; @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } // h2 database 테스트가 원활하도록..