반응형

Program 43

JDBC(Java Database Connectivity)

JDBC(Java Database Connectivity) JDBC란? - Java언어로 데이타베이스에 연결해서 입력,수정,삭제 및 조회등의 작업을 할 수 있도록 해주는 기술이다 - JDBC는 프로그램과 각각의 데이타베이스(Oeacle,MS-SQL,DB2,MySQL등) 중간에서 각 데이타베이스의 벤더(회사)에서 제공하는 API들을 사용할 수 있도록 변환해주는 기능을 수행한다. - JDBC가 각 벤더에 맞는 API를 사용할 수 있도록 프로그래머는 각 벤더에서 제공해주는 드라이버를 다운받아 JAVA개발환경에 설정 해줘야 한다. - 데이타베이스에 일관된 방식으로 접근 할 수 있도록 API를 제공하는 클래스의 집합이라고 할 수 잇다. 드라이버 다운로드 및 JDBC프로그래밍을 위한 환경 설정] -드라이버 다운로드..

Program/Java 2019.08.08

ehcache 가이드

라이브러리 - ehcache-core-x.x.xjar 환경설정 - Cache 객체명, Data Size, 유효기간, 동기화 정책 - ehcache.xml 캐시정책 maxEntriesLocalHeap="1500000" //저장될 객체의 최대수 eternal="false" // 시간 설정 무시 옵션 timeToIdleSeconds="600" //설정된 시간 동안 Idle 상태시 갱신(10분) timeToLiveSeconds="3600" // 설정된 시간 동안 유지 후 갱신(1시간) diskPersistent="true" //디스크 저장 사용 옵션 overflowToDisk="false" //메모리 부족시 디스크 저장 옵션 memoryStoreEvictionPolicy="LRU" // 데이터 제거 알고리즘 옵..

Program/Java 2019.05.17

현재서부터 입력받은 날짜시간까지의 남은 기간 출력

// 남은 시간 카운터function remain(str_time){if(code.length!=14)return ''; var now = new Date(); var v_y = str_time.substring(0,4); var v_m = str_time.substring(4,6); var v_d = str_time.substring(6,8); var v_h = str_time.substring(8,10); var v_i = str_time.substring(10,12); var v_s = str_time.substring(12,14); var startTime = new Date(v_y+'-'+v_m+'-'+v_d+'T'+v_h+':'+v_i+':'+v_s+'Z'); var gap = Math.rou..

Program/javascript 2018.04.07

현재 년월일시분초 출력

/* * 현재 년월일시분초 출력(20180406180000) */function func_get_now_yyyymmddhhiiss(){var date = new Date(); var year = date.getFullYear(); var month = new String(date.getMonth()+1); var day = new String(date.getDate()); var hour = date.getHours(); var minute = date.getMinutes(); var second = date.getSeconds(); // 한자리수일 경우 0을 채워준다. if(month.length == 1){ month = "0" + month; } if(day.length == 1){ day = "0..

Program/javascript 2018.04.07

입력 받은 날짜에 대한 남은 날짜 시 분 출력하기 php

/* * 현재로부터 입력받은 날짜에 대한 남은 일 시 분 조회 * */public static function func_get_left_time ($str_date) {if (strlen($str_date)!=14) return '';$date = new DateTime($str_date);$currentdate = new DateTime();$res = $date->diff($currentdate)->format(" %d일 %h시간 %i분 전");$res= str_replace(" 0일","",$res);$res= str_replace(" 0시간","",$res);$res= str_replace(" 0분","",$res);return $res;}

Program/Php 2018.04.07

(400) Unknown metric(s): ga:timeOnSite 워드프레스 google analytics 오류시

The ga:timeOnSite metric was depricated back in April.Metric – ga:timeOnSite – Use ga:sessionDuration instead. GA Core Change LogIn order to fix the chart on the dashboard you’ll need to edit the plug-in.It’s line 454 in google-analytics-summary-widget.php, just replace ga:timeOnSite with ga:sessionDuration and it will work again. 즉 ga:timeOnSite 대신 ga:sessionDuration 으로 교체하면 됩니다.수정할 위치는 google-..

Program/Php 2017.11.30

윈도우 환경에 php7 apache2.4 설치

httpd -k stop 서비스종료 httpd.exe -k restart 서비스 재시작 httpd.exe -k uninstall or httpd.exe -k unistall -n AMP_Apache2 제거 httpd -k start 서비스시작 httpd -k install 설치 아파치설치 https://www.apachelounge.com/download/ 최신버전 32/64 맞게 다운 Visual C++ Redistributable for Visual Studio 2015 설치를 선행 요구함 없을 경우 https://www.microsoft.com/ko-kr/download/details.aspx?id=53840 32/64구분하여 설치 아파치 압축하여 Apache폴더만 원하는 곳에 풀어준다. C:\Ap..

Program/Php 2017.01.31
반응형