본문 바로가기

기타54

웹푸시 WEB PUSH / FCM 요즘 웹푸시쪽을 활용하는 사이트들이 늘어났다 그래서 실제로 사용해보기 위해서 진행 1. FIREBASE 등록 1-1. 파이어베이스 앱에 웹등록 1-2. 클라우드 메시징에서 웹 푸시 인증서 키 등 2. 실제 진행 2-1. 루트폴더에 firebase-messaging-sw.js 파일생성 importScripts('https://www.gstatic.com/firebasejs/9.17.1/firebase-app-compat.js'); importScripts('https://www.gstatic.com/firebasejs/9.17.1/firebase-messaging-compat.js'); // Initialize the Firebase app in the service worker by passing in .. 2023. 2. 27.
cURL error 60: SSL certificate https://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-get-local-issuer-certificate cURL error 60: SSL certificate: unable to get local issuer certificate I am trying to send an API request using Stripe but get the error message: cURL error 60: SSL certificate problem: unable to get local issuer certificate This is the code I am running: public fun... stackoverflow... 2022. 11. 25.
There is no active transaction https://stackoverflow.com/questions/41392982/php-pdo-there-is-no-active-transaction PHP PDO - There is no active transaction I am having problem with transactions in php script. I would like to make multiply queries and be able to recall them all, if at least one of them fails. Below you can find a simple example of the ... stackoverflow.com 한줄요약 beginTransaction()의 경우 try catch문 밖에 위치해야한다. == T.. 2022. 10. 26.
kobert https://github.com/SKTBrain/KoBERT GitHub - SKTBrain/KoBERT: Korean BERT pre-trained cased (KoBERT) Korean BERT pre-trained cased (KoBERT). Contribute to SKTBrain/KoBERT development by creating an account on GitHub. github.com 윈도우환경에서 설치시 에러나 넘쳐난다. 특히나 numpy 버전쪽에서 넘어가질 않는다. https://github.com/SKTBrain/KoBERT/issues/84 [BUG] windows pycharm 환경에서 kobert 설치 할때 에러가 발생합니다. · Issue #84 · SKTBrain/KoBE.. 2022. 8. 4.
react create-react-app xxx --template particles-typescript yarn add @material-ui/core 2021. 9. 8.
SSL -> 정보가져온곳 가비아 SSL 구축 대상자 보안서버 인증서는 현행법상 개인정보를 수집하는 영리 목적의 사이트에는 반드시 구축해야 하는 의무 조항이며, 위반 시 과태료가 부과되므로 유의하시기 바랍니다. 이 때 ‘개인정보’란 아이디, 비밀번호, 주민등록번호 뿐 아니라 휴대폰 번호, 이메일 주소도 포함합니다. 일반적으로 회원가입과 로그인, 결제 프로세스가 있는 영리 목적의 사이트는 모두 해당된다고 볼 수 있습니다. 주민등록번호만 개인정보로 인식하는 경우가 많은데, 결제/게시판/주문 및 상담 시에 ‘이메일’과 ‘휴대폰 번호’를 취급한다면 SSL 설치 의무화 및 점검 대상이 되므로 반드시 인증서를 설치해야 합니다. SSL의 종류 Single Domain SSL (단일도메인) Wildcard Domain SSL .. 2020. 10. 5.
webrtc WEBRTC https://webrtc.org/ WebRTC가 브라우저에서 실시간 통신 (RTC) 기능을 가능하게하는 웹 오픈 프레임 워크. webrtc.org MDN https://developer.mozilla.org/en-US/docs/Glossary/WebRTC WebRTC WebRTC (Web Real-Time Communication) is an API that can be used by video-chat, voice-calling, and P2P-file-sharing Web apps. developer.mozilla.org 2개 문서를 기준으로 WEBRTC를 구현해본다. https://webrtc.github.io/samples/ WebRTC samples webrtc.github.io .. 2020. 7. 30.
'' // "" // 따옴표처리 magic_quotes_gpc가 설정되어있을경우 자동으로 값을 이스케이프 시켜준다. 이값을 사용자 화면에 출력할경우 데이터베이스에 "sample"이라고 저장했을때 사용자에게 바로 출력하게되면 \"sample\" 해당형태로 출력되게 된다. 해당형태를 해결해주는 방법은 stripslashes() 함수를 통해서 해결할수있다. 하지만 input 태그에 해당부분을 넣게되면 해당형태로 주석처리되어 해당문자 하나만 출력되는것을 알수있다. 해당부분을 해결하기위해서 htmlspecialchars를 사용한다 해당함수는 특수문자를 HTML엔티티로 변경하게된다 예를들면 ""(곁따옴표) 의 경우는 " ''(홑따옴표) 의 경우는 &0#39;의형태로 변형시킨다. 해당 함수 적용 결과값이지만 우리가 원하는 형태는 아니다 strips.. 2020. 3. 31.
form에 input이 1개가있으면 submit된다 진짜 옜날부터 있던 내용인데 모르고있으면 왜그런지 모르고 한세월 찾아보게되는 내용이다 기본적으로 onsubmit 을통한 해결을 주로한다. https://blog.outsider.ne.kr/292 form에 input type=text가 1개만 있으면 엔터누르면 서밋이 된다고??? :: Outsider's Dev Story 지난주에 OKJSP에서 놀다가 신기한 질문을 봤다. blog.outsider.ne.kr https://iberis.tistory.com/18 불러오는 중입니다... 2020. 3. 2.