본문 바로가기
반응형

전체 글171

[MySQL] 위도, 경도를 받아 반경 구하기 https://pnot.tistory.com/8 [MySQL] 위도 경도 값으로 반경(거리) 구하기 GPS를 이용한 거리 및 반경을 구하는 경우 MySQL을 이용하여 쿼리문의 정보를 가져오기 편하다. 예제 테이블 명 : MAP_INFO 예제 Lat 컬럼명 : P_LAT 예제 Lon 컬럼명 : P_LON 예제 예시 좌표값 : 37.4685225, 126.. pnot.tistory.com 2019. 4. 5.
[Laravel] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes ERROR 발생 시 https://laravel-news.com/laravel-5-4-key-too-long-error Laravel 5.4: Specified key was too long error Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything. For t laravel-news.com 참고!! 2019. 4. 5.
[SigFox] SigFox 개념 정리 1. SIGFOX TECHNOLOGY : Sigfox Cloud interfaces SigFox Cloud는 모든 sigfox service를 지원한다. SigFox customer들은 SigFox cloud와 상호 작용한다. 데이터 자체가 cloud이기 때문에 3가지의 인터페이스를 통해 데이터를 주고 받을 수 있다. 첫번째 인터페이스는 Internet(웹 포털) 두번째 인터페이스는 APIs ( 컴퓨터와 상호 작용을 위한 API) -> Pull Mode 웹 포털을 통해 스크립트 방식으로 API Access를 사용하여 (Pull Mode) 완벽하게 통합된다. 지속적인 요청과 응답이 필요 세번째 인터페이스는 callbacks automatic, new event를 수신한다. -> Push Mode 2. Si.. 2019. 4. 3.
[Linux] .bashrc alias 및 path설정, function 이용 하기 1. cd 명령어를 입력하여 home directory로 이동한다. 2. vi or vim .bashrc 입력 vi .bashrc 3. alias 와 path 설정 - cd(Change Directory)를 이용하지 않고 , alias를 새로 만들어서 디렉토리를 이동 시키고 싶다면? #ex_1) alias "실행 시키고 싶은 명령어"="cd "/이동시킬명령어" alias test = 'cd /home/tistory' #test -> /home/tistory디렉토리로 이동 한다. - cd(Change Directory)를 이용하지 않고 , alias를 새로 만들어서 디렉토리 이동 후 디렉토리 리스트를 보고싶다면? #ex_2) alias test='cd $1;ls' test tistory #tistory 디.. 2019. 4. 2.
[Laravel] php command 사용하기 https://stackoverflow.com/questions/26193314/could-not-open-input-file-artisan Could not open input file: artisan When trying to create a new laravel project, The following error appears on the CLI: Could not open input file: artisan Script php artisan clear-compiled handling the post-install-cmd event stackoverflow.com 2019. 3. 27.
[PHP]문자열 자르기 , substr $test = "안녕하세요";   //substr(자를 문자열 , 자를 문자열의 시작점(기본이 0부터 , 본인은 1부터 시작했으니 "녕"부터 시작)             자를 문자열의 마지막 끝점(본인은 3을 적었으니, "세" 까지 잘림)   $changeval = substr($test,1,3);   echo $changeval;  결과는 "녕하세" ?> 2019. 3. 27.
반응형