데이터베이스 생성 CREATE DATABASE db_name default CHARACTER SET UTF8; //초기에 UTF-8로 지정해줘야함 테이블안의 필드 업데이트 UPDATE table_ex set field_ex='example1' where 필드명 = 'example2'; //table_ex테이블의 field_ex필드가 example2인것을 example1로 바꾸라 테이블안의 필드와 그 속성확인 DESC example; //example테이블의 필드와 속성 확인 테이블에 필드 추가 ALTER TABLE example_t ADD example_f varchar(50); //example_t 테이블에 varchar(50)이라는 속성을 가진 example_f 필드 추가
https://ngrok.com/download ngrok - download Download & setup ngrok Get started with ngrok in just a few seconds. Download ngrok First, download the ngrok client, a single binary with zero run-time dependencies. Unzip to install On Linux or OSX you can unzip ngrok from a terminal with the following c ngrok.com 에서 자신의 운영체제에 맞는걸 찾아 다운받는다. 실행시킨후 ngrok http (자신이 설정한 포트번호) 를 입력한다 필자의 경우 ngrok http 800..
django-admin startproject mysite //mysite라는 이름의 프로젝트 생성, 이름을 변경해도 무관함 cd mysite //만들어준 프로젝트로 이동해줌 python manage.py startapp polls //polls라는 이름의 어플리케이션을 생성 cd mysite //최상위 루트 안에있는 동명의 디렉토리로 이동 notepad settings.py //셋팅파일을 열어 환경변수를 설정함 python manage.py runserver //포트번호를 지정하지 않으면 디폴트로 127.0.0.1 주소 및 8000번 포트를 사용 //python manage.py runserver 0.0.0.0:8000 -> 0.0.0.0의 의미는 현재 명령 실행중인 서버의 IP주소가 //무엇으로 설정..
cmd창에서 깃헙에 프로젝트 올리는법 cmd 화면에서 본인이 올리고싶은 경로까지 이동 git init //.git 폴더 생성 git add //올리고픈 프로젝트 add뒤에 .을 붙이면 모든파일 git commit -m "blablabla" //커밋을 하는데 -m 뒤에 "추가하고픈 문장"을 넣는다 git remote add origin https://github.com/xyexxx5/xxxx_3.git git push origin master //올리기 //원하는 디렉토리에 깃에 올라가있는 프로젝트 받아오기 git clone https://github.com/xyexxx5/xxxx_3.git //깃헙 url주소 //깃에 push한 소스코드를 받아오는 코드, 사용전에 remote 추가해줘야함 git pull..
보통 액티비티를 종료할때 finish()를 많이 사용한다. 하지만 이렇게 종료하면 현재 액티비티만을 종료시킬 뿐 루트 액티비티는 그대로 남아있다 여기서 루트액티비티와 현액티비티를 모두 종료시켜 앱을끄고 싶다면 아래와 같은방법을 사용하자 Activity.finishAffinity() //해당 앱의 루트 액티비티를 종료시킨다. (API 16미만은 ActivityCompat.finishAffinity()) System.runFinalization() //현재 작업중인 쓰레드가 다 종료되면, 종료 시키라는 명령어이다. System.exit(0) // 현재 액티비티를 종료시킨다. 자바에서는 뒤에 세미콜론(;)만 붙여서 사용하면 같은효과를 볼 수 있다. 앱을 재시작 하고싶다면 finishAffinity() val ..
var dialog = AlertDialog.Builder(context) dialog.setTitle("친구 삭제") dialog.setMessage("친구목록에서 지우시겠습니까?") dialog.setIcon(R.mipmap.ic_launcher) fun toast_p() { } fun toast_n(){ } var dialog_listener = object: DialogInterface.OnClickListener{ override fun onClick(dialog: DialogInterface?, which: Int) { when(which){ DialogInterface.BUTTON_POSITIVE -> toast_p() DialogInterface.BUTTON_NEGATIVE -> toast..
Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? 1. 상단 build -> clean project 2. 상단 build -> rebuild project 후 다시 run
패키지 이름을 변경하다보면 No matching client found for package name 에러를 만나는 경우가 있다. 해결방법은 다음과 같다 안드로이드 스튜디오에 좌측 네비게이션바 보기방식을 기본인 Android에서 Project로 바꿔준다. 프로젝트명/app/밑에 google-service.json파일을 더블클릭한다. google-service.json 파일에 패키지명들을 확인해주고 변경시킨 패키지명이 맞는지 확인한다. 혹시 google-service.json파일이 없다면 안드로이드 스튜디오 상단에 Tools -> SDK manager -> SDK tools -> google-service를 다운 받아준다.
- Total
- Today
- Yesterday
- 해결
- DART
- Android
- 안드로이드스튜디오
- Hummingbird
- Git
- Django
- Tutorial
- Kotlin
- Android Studio
- 코틀린
- flame
- RecyclerView
- socket.io
- CHANNELS
- password
- springboot
- flutter
- 에러해결
- node.js
- 에러
- chatting
- redis
- mysql
- WAS
- github
- 플러터
- 안드로이드
- 알고리즘
- django server
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |