error 5

[안드로이드] java.lang.IllegalStateException: An instance of OnFlingListener already set 해결

문제 발생 @ModelView(autoLayout = ModelView.Size.MATCH_WIDTH_WRAP_HEIGHT) internal class PagerSnapHelperCarousel @JvmOverloads constructor( context: Context ) : Carousel(context) { init { if (onFlingListener == null) { PagerSnapHelper().attachToRecyclerView(this) } } } Epoxy의 Custom Carousel로 SnapHelper를 붙이는 도중 OnFlingListener가 이미 등록되어있다는 오류가 발생했다. 당연하게도 이유는 RecyclerVIew에 OnFlingListener가 이미 등록되어 있어..

[lxc] 인스턴스 생성 실패 Failed detecting root disk device: No root device could be found 해결방법

ubuntu@:~$ sudo lxc launch ubuntu:22.04 manager1 Creating manager1 Error: Failed instance creation: Failed creating instance record: Failed initialising instance: Invalid devices: Failed detecting root disk device: No root device could be found lxc 인스턴스 생성시에 No root device could be found 오류가 떴을 경우, profile에 root disk에 대한 storage 설정을 해주어야한다. storage 목록이 만약에 비었다면, $ lxc storage ls +------+--------..

Windows10에서 VMWare 실행 오류 해결법

VMware Player and Device/Credential Guard are not compatible. VMware Player can be run after disabling Device/Credential Guard. Please visit http://www.vmware.com/go/turnoff_CG_DG for more details. VMware 설치 후 이제 시작해볼려니깐 이렇게 오류가 뜨는데, 이 오류는 Hyper-V가 Workstation player와 호환되지 않아서라고하는데, Hyper-V와 DeviceGuard를 꺼주면 해결된다. Hyper-V를 끄는 방법 1. 제어판에서 Windows 기능 켜기/끄기를 실행시킨다. 2. Hyper-V를 찾아 체크 해제한다. 제대로 되지 않으..

[C++] Exception / Error Handling 연습하기

C++에서 Error Handling은 에러가 날 부분에서 throw, throw 코드를 동작시키는 부분에서 try/catch를 통해 이루어진다.Java와 똑같다. 그리고 당연하게도 Exception 클래스를 직접 만들 수도 있다.아래는 학교 PPT에 나온 예제를 바탕으로 코드를 완성시켜 본 것이다.내 git hub 에서도 찾아볼 수 있다. https://github.com/lx5475/cpp_practice/blob/master/error_handling.cpp 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727..