본문 바로가기

분류 전체보기85

Alfred의 Web Search 기능으로 간편 검색 사용하기 들어가기 전 브라우저의 검색엔진을 이용한 빠른 검색 방법은 이전에 작성한 글에 있습니다. Alfred란? Spotlight의 역할과 비슷하지만 더 강력한 기능을 가지고 있는 macOS용 앱입니다. 자세한 내용은 알프레드 공식 홈페이지 참고 Spotlight 단축키를 Alfred 단축키로 대체하는 방법은 아래와 같습니다. Spotlight 단축키 끄기: 시스템 설정 -> 키보드 -> 키보드 단축키 -> Spotlight -> Spotlight 검색 보기 체크 해제 Alfred 단축키 변경: Alfred Preferences -> General -> Alfred Hotkey의 박스를 클릭 -> 키보드로 단축키 변경 macOS 설정에서 기본 브라우저를 통해 검색합니다. 기본적으로 새 탭으로 검색합니다. 하지만.. 2024. 4. 5.
[NestJS] createDto.toEntity() is not a function 에러 사전 배경 // createDto export class CreateUserDto { toEntity() { return new User(); } } ----- // entity export calss userEntity { constructor() {} } ----- // controller @Post() create(@Body() createUserDto: CreateUserDto) { return this.usersService.signUp(createUserDto); } 문제 발생 Controller에서 @Body를 통해 받은 CreateUserDto를 Entity로 변환하기 위해 createUserDto.toEntity()를 호출하면 예외 발생 원인 파악 디버깅 해보니 Controller에서 .. 2024. 3. 19.
[Spring Security 6.1.3] SecurityConfiguration 구성하기 1. SecurityConfiguration 기본 구성 공식문서에 의하면 WebSecurityConfigurerAdapter를 사용해서 구성하는 방식은 deprecated 되면서 SecurityFilterChain 빈을 등록하는 방식으로 변경되습니다. 2. cors, csrf, session 등 HttpSecurity 설정 자세한 내용은 공식문서를 참고하면서 보면 됩니다. 2-1. cors cors() 방식은 Deprecated 되었으므로 cors(Customizer corsCustomzier) 방식을 사용해야 합니다. @Configuration @EnableWebSecurity public class CorsSecurityConfig { @Bean public SecurityFilterChain sec.. 2023. 9. 8.
macOS Monterey 12.3 업데이트 이후, Alfred 4 workflow에서 발생하는 오류 해결 방법 원인 macOS 12.3 릴리즈 노트를 확인해보니 12.3 업데이트에서 파이썬 2.7을 macOS에서 제거했다고 합니다. 해결 방법 주의. 모든 workflow가 이 방법으로 해결이 가능한 지는 확인하지 못했습니다. 1. 아래 명령어를 통해 pyenv를 설치하고 pyenv를 이용하여 python을 설치한다. export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}" eval "$(brew shellenv)" brew install pyenv pyenv install 2.7.18 ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python" pyenv global 2.7.18 2.. 2022. 4. 14.