본문 바로가기

반응형

프로그래밍

(47)
PostgreSQL에서 auto_increment 값 조정하는 방법 SELECT last_value FROM your_table_idx_seq;형태로 기존 갑을 확인 할 수 있으며, SELECT setval('your_table_idx_seq', (SELECT MAX(idx) FROM your_table) + 1); 형태로 기존 값을 현재값의 가장 높은값 +1로 조정할 수 있다.
input type=month 이전달, 다음달 넣기 input type=month에 이전달과 다음달 넣기 버튼입니다. 이전 월 다음 월
[ai] Adobe illustrator multiple file into one 어도비 일러스트레이트에서 여러개의 파일을 하나의 대지(artboard)에 합치는 스크립트 입니다. singsinghe/mergeAiFile: This program is combines multiple illustrations and pdf files into one file. (github.com) GitHub - singsinghe/mergeAiFile: This program is combines multiple illustrations and pdf files into one file. This program is combines multiple illustrations and pdf files into one file. - GitHub - singsinghe/mergeAiFile: This pr..
한진택배 api PHP에서 HMACSha245 값 처리방법 php로 한진택배 송장출력 api를 작성중에 관련 소스가 없어서 오픈한다. $hanjin_client_id = "고객사 id"; // 영문아이디 $hanjinApiKey = "한진APIKEY"; $hanjinSecretKey = "한진SecretKey"; $method = "POST"; // "POST"; // $_SERVER['REQUEST_METHOD']; $requestUrl = "http://$_SERVER[HTTP_HOST]"."$_SERVER[REQUEST_URI]"; $queryString = getQueryString($requestUrl); $timestamp = date("YmdHis"); $message = $timestamp . $method . $queryString . $hanj..
[php] 원천징수 계산함수(3.3%) function getTaxAfter($price){ $a = round(floor($price*0.03),-1); $b = round(floor($a*0.1),-1); $p = $price - ($a+$b); return $p; }
파이썬 ftp로 접속후 한글파일 다운로드 import ftplib import os # ftp 정보 host = 'server' user = 'id' passwd = 'pw' try: # ftp 연결 with ftplib.FTP() as ftp: ftp.connect(host=host,port=21) print(ftp.getwelcome()) # 접속 메세지 출력 ftp.encoding = 'utf-8' ftp.sendcmd('OPTS UTF8 ON') # 이 문구를 넣어줘야 한글 사용이 가능함 s = ftp.login(user=user,passwd=passwd) ftp.cwd('/테스트폴더A') dirlist = ftp.nlst() print(dirlist) ftp.cwd('테스트폴더B') dirlist = ftp.nlst() print(di..
codef.io php로 토큰값 가져오기 $url = "https://oauth.codef.io/oauth/token?grant_type=client_credentials&scope=read"; $clientId = "클라이언트ID"; $clientSecret = "클라이언트시크릿키"; $credentials = base64_encode($clientId.":".$clientSecret); $headers = []; $headers[] = "Authorization: Basic {$credentials}"; $headers[] = 'Content-Type: application/json'; $headers[] = 'Cache-Control: no-cache'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL..
jquery Formdata를 이용해 업로드 방법 jquery를 이용한 ajax 업로드 방법입니다. 페이지를 전환하지 않고 파일이나 자료등을 전송할 수 있습니다.

반응형