본문 바로가기

전체 글185

input에 자연수(정수)만 입력받기 1. input에 type을 number로 하고 2. onkeypress 항목을 추가해서 입력된 키가 0~9만 true로 반환하도록 설정한다. 2023. 5. 9.
the selected avd is currently running in the emulator. 오류 해결 안드로이드 스튜디오에서 에뮬레이터 수정하려고 하는데 계속 the selected avd is currently running in the emulator. please exit the emulator instance 이런 경고창이 뜨고 수정이나 삭제를 진행할 수 없었다. 이런 경우, 작업 관리자에서 qemu-system-x86_64.exe 삭제하니 해결되었다. 처음에는 C:\Users\사용자이름\.android\avd 폴더에서 해당 에뮬레이터로 들어가서 lock 파일을 삭제하려고 했지만, 실행중이여서 삭제를 할 수 없었다. 그래서 작업관리자에서 삭제함! 2023. 3. 3.
모바일에서 touch-punch 사용시 클릭 이벤트 안되는 오류 개선 모바일에서 드래그 기능 (draggable)을 사용하려고 touch-punch.js를 사용했는데, ⭐ 드래그 기능과 클릭 이벤트(onclick)를 동시에 사용할때는 드래그만 되고 클릭 이벤트는 잘 되지 않는 문제가 생겼다. 검색해보다가 개선된 touch-punch.js를 발견했다! 이 touch-punch.js를 사용하면 움직임 수치를 통해 클릭이벤트로 감지하도록 처리할 수 있다. 드래그/터치 충돌을 개선한 touch-punch👇 https://github.com/RWAP/jquery-ui-touch-punch GitHub - RWAP/jquery-ui-touch-punch: A duck punch for adding touch events to jQuery UI A duck punch for addin.. 2022. 10. 19.
leetcode 218. The Skyline Problem 🍀 문제 https://leetcode.com/problems/the-skyline-problem/ The Skyline Problem - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 🍀 나의 코드 class Solution { public List getSkyline(int[][] buildings) { List answer = new ArrayList(); List height = new ArrayList(); // x좌표와 높이 저장 for(int i=0.. 2022. 9. 30.
leetcode 658. Find K Closest Elements 자바 🍀 문제 (23) Find K Closest Elements - LeetCode Find K Closest Elements - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 🍀 내 코드 class Solution { public List findClosestElements(int[] arr, int k, int x) { List answer = new ArrayList(); Queue q = new LinkedList(); int max = Math.abs(ar.. 2022. 9. 29.
GitHub Desktop 실행 안되는 문제 / 안 열림 해결 잘 되던 깃허브 데스크톱이 갑자기 더블클릭해도 실행이 안되었다. 어떠한 메시지도 뜨지않고 변화없음 이길래 검색을 막 해보다가 누군가의 답변으로 해결하였다! 해결팁 요약 : 깃허브 데스크톱 폴더 위치로 가서 폴더 이름만 변경해주니 해결 되었다! 깃허브 데스크톱 폴더를 열어보면 app~으로 시작하는 폴더가 여러개 있는데, 그중 가장 최신 버전의 폴더의 이름을 바꿔준다! 나의 경우 app-3.0.3이 가장 최신버전이여서 app1-3.0.3으로 바꾸었다. 그리고 깃허브 데스크톱을 다시 실행하니 잘 뜨며 해결!! 참고한 사이트 👇 https://github.com/desktop/desktop/issues/11141 GithubDesktop won't open · Issue #11141 · desktop/deskt.. 2022. 7. 2.