본문 바로가기

전체보기

(325)
[WSL] WSL1을 WSL2로 업그레이드하기 우선 Windows Subsystem for Linux (WSL)이 현재 컴퓨터에 설치되어 있는지 확인부터 하는 것이 좋다. 명령 프롬프트나 PowerShell에서 아래 명령어를 사용하여 버젼을 확인하자. wsl --list --verbose 예를 들어, Ubuntu-18.04 Running 1 라고 출력되면, Ubuntu 18.04 배포판이 WSL에서 ' Running '실행 중이며, "1"은 WSL의 버전을 나타낸다. 이제 WSL을 2로 업그레이드해볼 것이다. 우선 WSL2는 Windows 10 버전 1903 이상 (빌드 18362 이상)에서만 사용할 수 있다. Windows를 확인하자. 먼저 WSL2 용 Linux 커널 업데이트 패키지를 설치해야한다. 링크https://learn.microsoft...
[React] Unexpected use of 'location' 에러 location 대신 window.location을 사용할 것.
[R] Warning - package ‘ggplot’ is not available for this version of R install.packages("ggplot") library("ggplot") 대신 아래 코드로 설치 및 불러오기 install.packages("ggplot2") library("ggplot2")
[JavaScript] 두 개의 배열(List) 같은 지 다른 지 비교하기 const list1 = [1, 2]; const list2 = [1, 2]; const list3 = [1, 3]; console.log(list1 === list2); // false console.log(list1 === list3); // false list1과 list2는 분명 같은데도 false가 출력된다. 이것은 배열이 같은 값을 가지고 있지만, 동일한 객체는 아니기 때문이다. 즉, 두 배열이 같은 값을 가지고 있는 지를 확인하려면 JSON.stringify() 함수를 사용하면 된다. 배열의 내용을 문자열로 변환하고서 비교하는 방식이다. const list1 = [1, 2]; const list2 = [1, 2]; const list3 = [1, 3]; console.log(JSON.stri..
[React] MUI(Material UI) in React에서 <Paper> Component에서 onClick이 안되는 현상 IconButton으로 감싸주면 된다.