메모 48

C

[React] index.js:1 Warning: Each child in a list should have a unique "key" prop.

# 에러 전문 index.js:1 Warning: Each child in a list should have a unique "key" prop. Check the render method of `App`. See https://reactjs.org/link/warning-keys for more information. at Potato (http://localhost:3000/static/js/main.chunk.js:25:3) at App React의 모든 Component는 고유한 id를 가져야 한다!! var arr = ['Sushi', 'potato', 'Compost', 'Burger']; function renderFood(dish) { return } 호출하려는 function의 key={..

C

[Android Studio] View binding

뷰 바인딩 안드로이드 스튜디오가 업데이트되면서 코틀린의 바인딩 기능을 더이상 지원하지 않으므로 안드로이드의 뷰 바인딩 기능을 활성화 해서 사용한다. build.gradle 파일 열기 코드 입력 후 Sync Now buildFeatures { viewBinding = true } 액티비티 메인 바인딩을 만들고 뷰바인딩에 연결 하면 설정 끝. activityMainBinding.(가져오려는 View의 id).setText ~~ 식으로 사용하면 된다. bingding 전역변수 생성 클래스의 필드에 private lateinit var binding: ActivityMainBinding 이렇게 생성해주면 onClick 메소드에서도 사용 가능하다. class MainActivity : AppCompatActivi..

메모 2021.04.23

C

[ Windows ] PowerToys - 윈도우 작업 능률 향상 프로그램

# 다운링크 github.com/microsoft/PowerToys/releases/ Releases · microsoft/PowerToys Windows system utilities to maximize productivity. Contribute to microsoft/PowerToys development by creating an account on GitHub. github.com PowerToysSetup-0.35.0-x64.exe 클릭해서 다운 후 설치 # 기능들 1. Color Picker 단축키로 실행해 화면의 색상코드를 바로 확인 할 수 있다. 2. FancyZones Win + 방향키로 가능한 화면분할 기능의 레이아웃을 임의로 변경할 수 있다. 3. 파일 탐색기 추가 기능 SVG 아..

메모 2021.04.10

C

[ VSCode - terminal ] .\activate.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 ~~~ \activate.ps1 파일을 로드할 수 없습니다.

# 에러 전문 \activate.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 \venv\Scripts\activate.ps1 파일을 로드할 수 없습니다. # 해결방법 Powershell을 관리자 권한으로 실행 Set-ExecutionPolicy Unrestricted 입력 후 Y 이제 vscode에서 teminal을 돌려도 에러가 뜨지 않는다. # 참조 https://stackoverflow.com/a/18713789

C

[ Python ] File "<stdin>", line 1 SyntaxError: invalid syntax

#에러 전문 >>> set PYTHONIOENCODING=utf8 ; if ($?) { py } "d:\dev\Repositiory\Python-prac\py_basic\prac3.py" File "", line 1 set PYTHONIOENCODING=utf8 ; if ($?) { py } "d:\dev\Repositiory\Python-prac\py_basic\prac3.py" ^ SyntaxError: invalid syntax # 해결법 code-runner 실행 설정에서 "code-runner.executorMap": { "python": "set PYTHONIOENCODING=utf8 | py" } 파이썬 항목을 이렇게 바꿔주면 된다. # 에러 발생이유 이미 실행되어있는 파이썬 인터프리터 내부..

C

[ MYSQL ] * is not valid at this position for this server version

# 에러 예시 "SELECT" is not valid at this position for this server version, expecting ~~~~ "DROP" is not valid at this position for this server version, expecting ~~~~ "CREATE" is not valid at this position for this server version, expecting ~~~~ # 해결 주로 문법이 맞지않는 query를 입력했을때 나오는 에러. # 관련 문서 stackoverflow.com/questions/53471882/mysql-workbench-reports-is-not-valid-at-this-position-for-this-server-ve..

C

[ MS office Word ] 코드 삽입시 코드 블럭 효과주기

pygments.org/demo/#try Demo — Pygments Demo - Try it out! The highlighting here is performed in-browser using a WebAssembly translation of the latest Pygments master branch, courtesy of Pyodide. Your content is neither sent over the web nor stored anywhere. Enter code and select a language pygments.org word에 삽입하려는 코드를 붙여넣고 Highlight! 버튼을 누르고 적용된 코드를 word에 붙여넣으면 된다.

메모 2021.03.30