전체 글
-
gps 위경도 구하기.하드웨어 2021. 10. 15. 16:08
사용한 gps 제품은 TOP130L 이라는 모델입니다. 하지만 대부분의 GPS 는 포멧이 거의 동일하기 때문에 큰 차이점은 없습니다. 저 같은 경우는 3가지의 GPS 의 포멧을 분석해봤지만 위경도의 경우는 첫 태그만 종종 다를뿐 위경도 계산공식은 동일하게 사용하고 있습니다. GPS 데이터를 일부만 잘라 보겠습니다. 여기서는 위경도만 구합니다. (저는 헤딩값까지 사용하긴 합니다.) ========================================================== $GNGSA,A,3,72,76,,,,,,,,,,,2.21,1.47,1.66,2*04 $GNGSA,A,3,27,,,,,,,,,,,,2.21,1.47,1.66,3*04 $GPGSV,3,1,10,05,25,124,26,10,22,..
-
다음api를 이용한 우편번호 연동JAVASCRIPT 2021. 10. 13. 13:00
안녕하세요. 쇼핑몰 사이트를 운영할려면 가장 기본이자 필수인 우편번호 연동입니다. 옛날엔 직접 DB를 가지고 사용했던 기억이 있는데(벌써 10년도 넘었네요...) 요즘은 보통 api 쓰시죠? 다음 api 연동방법입니다. 참고 https://postcode.map.daum.net/guide Daum 우편번호 서비스 우편번호 검색과 도로명 주소 입력 기능을 너무 간단하게 적용할 수 있는 방법. Daum 우편번호 서비스를 이용해보세요. 어느 사이트에서나 무료로 제약없이 사용 가능하답니다. postcode.map.daum.net 1 . 다음api 키 발급받기. 감사하게도 다음은 api 키를 발급 받을 필요가 없습니다. 다음카카오 복 받으세요 :) 2. 사용 코드 " target="_blank" rel="noop..
-
네이버 단축url API 이용하기.PHP 2021. 10. 13. 10:00
안녕하세요. 네이버 단축URL API 를 이용해서 PHP 에서 사용하는 방법입니다. 이번에도 간단해서 걍 풀 소스코드만 붙여 드릴게요. 참조 https://developers.naver.com/docs/utils/shortenurl/ 단축 URL API 적용 가이드 단축 URL API는 원본 URL을 `https://me2.do/example`과 같은 형태의 짧은 URL로 반환하는 RESTful API입니다. developers.naver.com 1. 네이버에서 KEY 값 받기. 여기에서 키 값을 받아와야 사용이 가능합니다. 2. 소스코드 입,출력 코드 var UserURL = prompt("단축시킬 url을 입력하세요."); //alert(UserURL) if(UserURL != "" && UserUR..
-
산뜻한 화요일 아침블라블라 2021. 10. 12. 10:08
직장인 눈물과 시련의 시기 12월 25일까지 이제는 휴일이 없다.(도라버려..) 이를 깍! 깨물고 애써 웃음지으며 출근한 화요일 아침 pc를 키는순간 어디서 들리는 드릴소리.. 드르르르르르르르르르... 아이참~ 옆집 벽 뚫나~? 아침부터 아주 바쁘시네 드르르르르르.... 드르르르르르.... 드르르르르르.... 이건 벽이 아냐.. 내 PC가 뚫리는 소리지... 급하게 나약한 포장지를 뜯고 몇년만에 먼지가득한 내부를 보는 순간 너무 더러워서 급히 반 닦고 찰칵... 어우.... 어우......... /흐린눈 저 더러운 파워서플라이가 소음을 내는구나? 어쩌지... 당장 갈아낄게 없는데..... 어쩌지.. 할 일 많은데.. 넌 너무 시끄러워... 나보다 말이 많아... 불주먹 쾅! 해결 완. 역시 사람에게 가장..
-
웹뷰 err_unknown_url_scheme 오류ANDROID 2021. 10. 8. 16:37
저 같은경우는 카카오페이 연동을 할 때 나와서 간단히.. 주황 배경 부분을 추가했습니다. 저렇게 처리해주면 기존 웹 페이지는 그대로 나옵니다. webview.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { Log.d("OverrideUrlLoading", url); if (url != null && url.startsWith("intent://kakaopay/")) { try { Intent intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME); startActivity(intent); return ..
-
serial 통신C# 2020. 3. 5. 17:26
SerialPort SerialPort = new SerialPort(); if (SerialPort.IsOpen == false) { SerialPort.PortName = Globals.COMPORT1; // Com port name Com1 SerialPort.BaudRate = Globals.COMPORT1B; // 9600 SerialPort.DataBits = 8; SerialPort.StopBits = StopBits.One; SerialPort.Parity = Parity.None; try { SerialPort.Open(); SerialPort.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler); //데이터 받기..
-
홈텍스 사업자등록상태조회 프로그램PHP 2020. 3. 5. 17:20
참고 https://medium.com/@kam6512/%EC%82%AC%EC%97%85%EC%9E%90%EB%93%B1%EB%A1%9D%EC%83%81%ED%83%9C-%EC%9E%90%EB%8F%99%EC%A1%B0%ED%9A%8C-%EB%A7%8C%EB%93%A4%EA%B8%B0-770e9914abf1 사업자등록상태조회 프로그램 만들기 4가지 언어로 만드는 자동조회 프로그램 medium.com 위 사이트 보고 따라 했으며 , php는 샘플이 없어서 만들었습니다. ============================ php curl 함수를 사용한 방법 =========================== $txprDscmNo = $_REQUEST["txprDscmNo"]; // 사업자 번호를 넣어줍니다. ..