본문 바로가기

반응형

프로그래밍

(46)
[php] tcpdf와 fpdi를 같이 사용해서 기존 pdf위에 글씨 넣기 SetMargins(PDF_MARGIN_LEFT, 40, PDF_MARGIN_RIGHT);$pdf->SetAutoPageBreak(true, 40);$pagecount = $pdf->setSourceFile('a.pdf');for($i=1; $iaddPage(); $tplId = $pdf->importPage($i); $pdf->useTemplate($tplId); $pdf->SetTextColor(255,0,0); $pdf->SetXY(55,27); $pdf->Cell(30, 0, "test", 0, $ln=0, 'C', 0, '', 0, false, 'T', 'L'); }$pdf->Output('output.pdf', 'I');
[php] 네이버 클라우드 플랫폼 버킷목록 가져오기 require '/www/aws/aws-autoloader.php'; $accessKey = "key"; $secretKey = "secret"; use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; $credentials = new Aws\Credentials\Credentials($accessKey, $secretKey); $s3 = new S3Client([ 'version' => 'latest', 'region' => 'kr-standard', 'endpoint' => 'https://kr.object.ncloudstorage.com', 'credentials' => $credentials ]); $result = $s3->listBuckets([]);..
php 오류 출력(error reporting) error_reporting(E_ALL); ini_set("display_errors", 1); 파일의 가장 상단에 위 내용을 추가해보자.
react native webVIew를 HOOK으로 호출할떄 ref사용방법 export default function App() { const wvRef = useRef(); return( ); function test(){ let text = "123123"; wvREF.current.injectJavaScript(`(function(){ window.alert('`+text+`'); })(); `); }; } HOOK형태로 사용할때는 current를 넣어주셔야 합니다. >_
tvheadend EPG xml데이타 소켓으로 밀어넣기 B쇼핑 [슬레진저] (혼)여성 아쿠아 와이어 트레일화 홈쇼핑 전체 관람가 EPG자료는 알아서 구해주세요.. 위와같은 xml파일이 있다고 가정합니다. 여기서 중요한 부분은 display-name부분의 이름과 tvhead의 채널명이 동일해야 하며, channel id의 숫자와 programme 부분의 채널숫자가 동일해야 화면상에 나타납니다. 위의 내용이 http://abcd.com/epg.xml 에 있을경우 서버에 파이썬3를 설치한 다음 아래 내용대로 파일을 작성후 실행하시면 tvhead의 epg데이타에 강제로 밀어넣는 모습을 보실 수 있습니다. 실행하실때는 synology의 작업관리자에 매일 특정시간에 실행되도록 넣어두시면 좋습니다. import os import urllib.request import s..
크롬 익스텐션 제작시 input에 엔터키 전송방법 function assa(e){ chrome.tabs.executeScript(null, { code: "var a = document.querySelector('#gs_lc50 > input');" +"a.value= '123123';" +"var enter = new KeyboardEvent('keydown',{code:'Enter',key:'Enter',keyCode:13}); " +"a.dispatchEvent(enter)" +"" }); } document.addEventListener("DOMContentLoaded",function(){ var btn01 = document.querySelector('#btn'); btn01.addEventListener("click",assa); }); p..
react native webview의 로딩속도가 느릴경우. react native의 webview는 이미지가 다 로딩이 되어야 렌더링이 된다. 그렇기 때문에 lazy 로딩등 이미지 순차로딩을 사용할 경우 빠르게 로딩이 가능하다. jquery 아래에 아래 스크립트를 삽입한다. 이미지 태그를 아래와 같이 다 변경한다. 페이지의 가장 하단에 아래 스크립트를 삽입한다. 이렇게 하면 네이티브 앱과 속도차이가 거의 없는 웹뷰를 제작할 수 있다.
MinGW i386 압축파일(윈도우용 64비트 c언어 컴파일러) 인터넷 사이트에서 다운로드 하면 너무~~ 느려서... 다운받은 후 압축해서 올려놓습니다. https://drive.google.com/file/d/1KskryrTcLBkeVySBY9KaK5lsN7_rnVuw/view?usp=sharing MinGW.zip drive.google.com C언어 공부하시려는 분들 다운하셔서 사용해주세요. 감사합니다. https://youtu.be/fP5R3fkIp4c

반응형