전체 포스팅 보기
-
Hello bro I faced this problem that html2canvas font-family is not working (。•́︿•̀。) In my case... [Problem] Failed to apply font family when saving image with html2canvas [Solution 1] I use the latest version of html2canvas. => There is news that the bug has been fixed. [Solution 2] I used CORS and allowTaint Option. => I annotated these and they worked !! function test(){ html2canvas(document...
[Solved] Failed to apply font family when saving image with html2canvasHello bro I faced this problem that html2canvas font-family is not working (。•́︿•̀。) In my case... [Problem] Failed to apply font family when saving image with html2canvas [Solution 1] I use the latest version of html2canvas. => There is news that the bug has been fixed. [Solution 2] I used CORS and allowTaint Option. => I annotated these and they worked !! function test(){ html2canvas(document...
2023.10.12 -
아씌 insert 하는데 어떤 멍청한 데이터가 있어서 자꾸 exception이 났습니다. exception이 나면 장애 상황이므로 신경이 쓰이더군요. 따라서, exception이 난 데이터는 무시하고 다음 작업으로 이어가길 원했습니다. 방법은 다음과 같습니다. 핵심은 Exception 부분에 WHEN OTHERS THEN입니다. 저렇게 기술하시면 함수에서 exception 발생 시 무시하고 다시 루프를 돕니당 DECLARE create_date TIMESTAMP = now(); BEGIN -- Open the cursor OPEN cur_dl; LOOP BEGIN -- fetch row into the cur_dl FETCH cur_dl INTO rec_dl; -- exit when no more row..
[Postgresql] 함수 exception에서 continue 효과 내기아씌 insert 하는데 어떤 멍청한 데이터가 있어서 자꾸 exception이 났습니다. exception이 나면 장애 상황이므로 신경이 쓰이더군요. 따라서, exception이 난 데이터는 무시하고 다음 작업으로 이어가길 원했습니다. 방법은 다음과 같습니다. 핵심은 Exception 부분에 WHEN OTHERS THEN입니다. 저렇게 기술하시면 함수에서 exception 발생 시 무시하고 다시 루프를 돕니당 DECLARE create_date TIMESTAMP = now(); BEGIN -- Open the cursor OPEN cur_dl; LOOP BEGIN -- fetch row into the cur_dl FETCH cur_dl INTO rec_dl; -- exit when no more row..
2023.09.26 -
c#에서 텍스트 파일을 생성하는데, 경로에 대한 액세스가 거부되었습니다. 라는 에러에 직면하였다. 원인은 명확하다. 1. 파일명까지 작성하였는가? 나의 경우, 경로만 입력하였다 ㅠ 경로 뿐 아니라 파일명까지 전달했는지 체크해보자! string savePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\jsonData.txt";
[C#] 텍스트 파일 저장 액세스 거부c#에서 텍스트 파일을 생성하는데, 경로에 대한 액세스가 거부되었습니다. 라는 에러에 직면하였다. 원인은 명확하다. 1. 파일명까지 작성하였는가? 나의 경우, 경로만 입력하였다 ㅠ 경로 뿐 아니라 파일명까지 전달했는지 체크해보자! string savePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\jsonData.txt";
2023.09.20 -
This worked for me! I use html2canvas. And I wrote allowtain and useCORS options. //html2canvas and download var canvasPromise = html2canvas(document.getElementById("myHTML"), { allowTaint: true, useCORS: true, foreignObjectRendering: true }); canvasPromise.then(function(canvas) { var myImage = new Image; myImage.crossOrigin="anonymous" myImage = canvas.toDataURL(); }); Don't forget to describe ..
[Solved] html2canvas Tainted canvases may not be exportedThis worked for me! I use html2canvas. And I wrote allowtain and useCORS options. //html2canvas and download var canvasPromise = html2canvas(document.getElementById("myHTML"), { allowTaint: true, useCORS: true, foreignObjectRendering: true }); canvasPromise.then(function(canvas) { var myImage = new Image; myImage.crossOrigin="anonymous" myImage = canvas.toDataURL(); }); Don't forget to describe ..
2023.09.19 -
안녕하세요. 팀드모네입니다. C# httpListener를 사용하여 REST API 서버 구축하는 방법을 공유드립니다. AJAX를 통해 데이터를 전송하고 C# 서버 (httpListener)를 통해 데이터를 받은 후 잘 되었으면 success를 회신하는 A부터 Z급 예제입니다. 이 포스팅은 계속 업데이트 예정입니다! 로이 필딩이 언급하였던 것처럼, REST 규칙을 다 지켜야 RESTful API겠죠? (ㅠㅠㅠㅠ) 무튼 JSONP를 사용하지 않도록, CORS 문제도 해결해뒀습니다. nuget으로 받기 편하시게, using 남겨드립니다. 한글이 깨지지 않도록 인코딩 처리도 했습니다 :) 0. AJAX 요청 var data= { "id":"han", "name" : "hoon" } $.ajax({ type: ..
[5분 내로] C# httpListener를 사용하여 REST API 서버 구축하기안녕하세요. 팀드모네입니다. C# httpListener를 사용하여 REST API 서버 구축하는 방법을 공유드립니다. AJAX를 통해 데이터를 전송하고 C# 서버 (httpListener)를 통해 데이터를 받은 후 잘 되었으면 success를 회신하는 A부터 Z급 예제입니다. 이 포스팅은 계속 업데이트 예정입니다! 로이 필딩이 언급하였던 것처럼, REST 규칙을 다 지켜야 RESTful API겠죠? (ㅠㅠㅠㅠ) 무튼 JSONP를 사용하지 않도록, CORS 문제도 해결해뒀습니다. nuget으로 받기 편하시게, using 남겨드립니다. 한글이 깨지지 않도록 인코딩 처리도 했습니다 :) 0. AJAX 요청 var data= { "id":"han", "name" : "hoon" } $.ajax({ type: ..
2023.09.18 -
🔥 TODO 👉 ajax body에 json 담는 방법은? 🧙 Solution 👉 아래에 기술된 코드를 이용하시면 됩니다. crossdomain, accept 등은 옵션입니다. 상황에 따라 제거 또는 냅두셔도 됩니다. var data= { "id":"han", "name" : "hoon" } $.ajax({ type: "POST", crossdomain: true, accept: "application/json", contentType: "application/json; charset=utf-8", url : url, data : JSON.stringify(data), dataType : "json", success : function(data) { console.log('성공 - ', data); },..
[jQuery] ajax body에 json 담는 방법🔥 TODO 👉 ajax body에 json 담는 방법은? 🧙 Solution 👉 아래에 기술된 코드를 이용하시면 됩니다. crossdomain, accept 등은 옵션입니다. 상황에 따라 제거 또는 냅두셔도 됩니다. var data= { "id":"han", "name" : "hoon" } $.ajax({ type: "POST", crossdomain: true, accept: "application/json", contentType: "application/json; charset=utf-8", url : url, data : JSON.stringify(data), dataType : "json", success : function(data) { console.log('성공 - ', data); },..
2023.09.18