centos 7에 mariadb 깔았는데

심하게 뜬금없에 latin1_swedish_ci로 설정이 되어있다.

아무튼 일일이 하나씩 변경을 해야하나..?


In MariaDB, the default character set is latin1, and the default collation is latin1_swedish_ci (however this may differ in some distros, see for example Differences in MariaDB in Debian). 

[링크 : https://mariadb.com/kb/en/library/setting-character-sets-and-collations/]

[링크 : https://slobell.com/blogs/38]

Posted by 구차니

네이버 지도 글들은 아니지만

일단 네이버 예제를 보면 실수 3 자리와 소수 7 자릿수로 나타나는데

그걸 담을 적절한 방법을 찾아 보면 될 듯

(*10해서 10자리라던가?)



[링크 : https://stackoverflow.com/...-ideal-data-type-to-use-when-storing-latitude-longitudes-in-a-mysql]

[링크 : https://dev.mysql.com/doc/refman/5.6/en/spatial-types.html]

Posted by 구차니

마커를 추가하고 클릭시에 이벤트를 어떻게 발생시키는지 찾는중

(네이버 지도에서 검색하고 마커를 누르면 목록에서 선택되는데 이런 작동을 찾는중)


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-UI-Event.html]

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-viewportevents.example.html]

[링크 : https://developers.naver.com/forum/posts/24051]

Posted by 구차니

getBounds()로 화면상에 영역의 정보를 얻고

mapBounds.hasLatLng()를 통해서 인자로 받는 영역이 해당 바운드에 속하는지 확인한다.


function updateMarkers(map, markers) {


    var mapBounds = map.getBounds();

    var marker, position;


    for (var i = 0; i < markers.length; i++) {


        marker = markers[i]

        position = marker.getPosition();


        if (mapBounds.hasLatLng(position)) {

            showMarker(map, marker);

        } else {

            hideMarker(map, marker);

        }

    }

}


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-viewport.example.html]

[링크 : https://developers.naver.com/forum/posts/15738]

Posted by 구차니

git remote set-url origin을 통해서 변경함

 

$ git remote -v
$ git remote set-url origin https://github.com/user/repo2.git 

 

[링크 : http://minsone.github.io/git/github-managing-remotes-changing-a-remotes-url]

 

+

23.11.13

기존 리포지토리 remote 제거
git remote remove origin

새 리포지토리 remote 추가
git remote add origin https://github.com/계정/리포지토리

[링크 : https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 리비전 돌아 다니기  (0) 2018.10.18
git 상태 다시 읽기  (0) 2018.09.20
git archive (svn export)  (0) 2018.09.05
git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
Posted by 구차니

svn export 하면 다른 디렉토리로 사본을 복사해주었는데

git에도 있을 것 같아서 찾아보니 git archive로 존재


[링크 : https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export]



git archive --format zip --output /full/path/to/zipfile.zip master  

[링크 : https://gist.github.com/kristofferh/1442717]

[링크 : https://git-scm.com/docs/git-archive]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
git add / reset / checkout  (0) 2018.08.22
Posted by 구차니

몇가지 검색을 해봤는데.. 아무래도 이런 branch에 소유자가 아니면 push 할 수 없는 제한은

git 본연의 기능이 아닌 github나 gitlab의 확장된 기능인것으로 보인다.


[링크 : https://docs.gitlab.com/ee/user/project/protected_branches.html]

[링크 : https://help.github.com/articles/about-protected-branches/]


[링크 : https://git-scm.com/docs/git-push/2.3.5]


별다른 댓글은 없지만 pre-push hookup 스크립트를 이용해 구현한걸 보면

이런식으로 github/gitlab에서 적용해 놓은 걸수도?

[링크 : https://blog.ghost.org/prevent-master-push/]


+

2019.04.23

프로젝트 관리 메뉴에서 "Protected Branches"


하단의 Unprotect를 해주면 팀원이 Master가 아닌 Developer라도 push, merge가 가능해진다.


'프로그램 사용 > gitlab & github' 카테고리의 다른 글

github 의 README.md 에 이미지 넣기  (0) 2024.12.31
gitlab 백업하기  (0) 2019.03.23
gitlab wiki  (2) 2019.01.28
gitlab  (2) 2018.08.13
Posted by 구차니

네이버 지도 v3 쪽으로 setSize 메소드가 있는지 봐야 할 듯


 oMap.setSize(new nhn.api.map.Size(w, h)); 

[링크 : http://donzbox.tistory.com/548]


setSize(size)

지도 화면의 크기를 픽셀 단위로 설정합니다. 

[링크 : https://navermaps.github.io/maps.js/docs/naver.maps.Map.html#setSize]

Posted by 구차니

로컬에서 iis 실행해서 localhost로 쓰다가

테스트 삼아 파일을 그냥 읽어서 하는데

잠시 지도가 나오다 사라지고는, 아래와 같은 이미지도 도배되면서


콘솔에는 아래와 같은 에러가 발생한다.

NAVER Maps JavaScript API v3  

네이버 지도 Open API 인증이 실패하였습니다. 클라이언트 아이디와 웹 서비스 URL을 확인해 주세요., * Error Code / Error Message: 28 / Authentication failed (인증에 실패했습니다) - Invalid Client Info (등록된 정보가 일치하지 않습니다), * Client ID: ********************, * URI: file:///D:/work/web/main.html 


일단 가입할 때, 이런식으로 서비스 환경 경로를 물어보는데

거기 등록된 주소가 아니면 이런식으로 인증 실패했다고 띄우는 것으로 보인다.


결론, 테스트 하려고 해도 웹서버가 있어야 하는 드러운(?) 세상

Posted by 구차니

크롬에서 하는데 이런 에러가 나서(기본 예제인데)

VM1727:5 Uncaught ReferenceError: naver is not defined

    at initMap (<anonymous>:5:13)

    at n (maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:14)

    at exec (maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:14)

    at e.boot (maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:14)

    at new e (maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:14)

    at maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:15

    at maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:15

    at maps.js?clientId=GS4uOBhG7v0DeAg28HSn&callback=initMap:15 


검색을 해보니

<script type="text/javascript" src="https://openapi.map.naver.com/openapi/v3/maps.js?clientId=YOUR_CLIENT_ID"></script> 


요 부분이 제대로 로드되지 않아서 라고..

일단은.. 메인 페이지의 <head>안에 <script>로 넣어주니 잘된다...

jquery 이용해서 부분을 바꿔치기 하는 방법이라

바꿔치기 하는 부분에 script로는 외부 파일을 읽어오지 못하는 듯..


[링크 : https://developers.naver.com/forum/posts/8674]

Posted by 구차니