'분류 전체보기'에 해당되는 글 2491건

  1. 2019.04.05 How to disable ErrorPageFilter in Spring Boot?
  2. 2019.04.05 com.ibm.ws.webcontainer.invokeFlushAfterService to false
  3. 2019.02.14 jarsper null
  4. 2019.02.14 Jasper Report Date and Time Pattern
  5. 2018.09.28 파워포인트용 목업디자인 플러그인 파워목업(PowerMockup) 다운로드
  6. 2018.07.10 Example of Software Design Document(SDD)
  7. 2018.07.10 Software design description
  8. 2018.06.28 [펌] 아마존 웹서비스 (AWS) 대략적 이용 가격
  9. 2018.06.19 mariadb 달력 테이블 만들기
  10. 2018.06.12 chrome, ie html to excel export 1
  11. 2018.01.10 hadoop hdfs의 사용량
  12. 2017.09.05 spring-boot-devtools
  13. 2017.08.17 oracle 12c 사용자 생성시 ora - 65096
  14. 2017.07.05 [펌]리눅스 SNMP 설정 1
  15. 2017.06.02 oracle 스케줄 등록
  16. 2017.04.17 centos7 방화벽 설정 1
  17. 2017.03.28 네이버지도 v2 지도 레벨 설정 1
  18. 2017.03.07 hadoop fs -copyToLocal
  19. 2017.02.28 windows10 랜카드 2개 내부망, 외부망 사용하기
  20. 2017.02.24 How To Install Dokuwiki on CentOS 7
  21. 2017.02.21 dokuwiki 링크 새창 띄우기
  22. 2017.02.20 dokuwiki 한글 파일명
  23. 2017.01.04 visjs 예제
  24. 2016.12.12 spring boot file upload The field osFile exceeds its maximum permitted size of 1048576 bytes.
  25. 2016.12.01 linux 사용자 계정 환경변수 등록
  26. 2016.12.01 javascript grid 에서 page api 사용하지 않을때
  27. 2016.11.07 chartjs canvas resize
  28. 2016.10.19 시큐어리녹스 SELinux
  29. 2016.10.07 구글 좌표계 다음 좌표계로 변환 EPGS4326 to 900913 EPGS900913 to 4326
  30. 2016.09.29 String 바이트 길이로 잘라서 배열로 반환
카테고리 없음2019. 4. 5. 09:02
카테고리 없음2019. 4. 5. 08:50
반응형

2017-01-06 18:28:23.933 ERROR 80102 --- [nio-8088-exec-6]
o.s.boot.web.support.ErrorPageFilter : Cannot forward to error page for
request [/strategy/list/] as the response has already been committed. As a
result, the response may have the wrong status code. If your application is
running on WebSphere Application Server you may be able to resolve this
problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

 

--------------------------------------------

public MainApplication(){
super();
setRegisterErrorPageFilter(
false);
}

----------------------------------------------

@Bean public ErrorPageFilter errorPageFilter() {
return new ErrorPageFilter();
}
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(ErrorPageFilter filter) {
FilterRegistrationBean filterRegistrationBean =
new FilterRegistrationBean();
filterRegistrationBean.setFilter(filter);
filterRegistrationBean.setEnabled(
false);
return filterRegistrationBean;
}

Posted by 1010
카테고리 없음2019. 2. 14. 14:05
반응형

$F{field_name} !=null ? $F{field_name} : "N/A"

Posted by 1010
카테고리 없음2019. 2. 14. 14:04
반응형

Date and Time Pattern

To print the Date and Time with particular format in Report.
We can print the date and time in report as per our format. Report wise date and time printing format is different. Below is the information for how to print the date time with different pattern. We can write the date and time expression to print the date time with pattern.
Below is the date expression to print the date as : Monday 24 February 2014

Expression : new java.text.SimpleDateFormat("MMMM YYYY").format(new Date())
Below is the Example of Date and Time. 




Letter           Date OR Time Component            Presentation Example
G Era designator Text AD
y Year Year 2014; 14
M Month in year Month February; Feb; 07
w Week in year Number 27
W Week in month Number 2
D Day in year Number 189
d Day in month Number 24
F Day of week in month Number 2
E Day in week Text Monday; Mon
a Am/pm marker Text PM
H Hour in day (0-23) Number 0
k Hour in day (1-24) Number 24
K Hour in am/pm (0-11) Number 0
h Hour in am/pm (1-12) Number 12
m Minute in hour Number 30
s Second in minute Number 55
S Millisecond Number 978
z Time zone  General Time
Zone
Pacific Standard Time; PST; GMT-08:00     
Z Time zone  RFC 822 time           
Zone
-0800
DATE AND TIME PATTERN RESULT
"yyyy.MM.dd G 'at' HH:mm:ss z" 2001.07.04 AD at 12:08:56 PDT
"EEE, MMM d, ''yy" Wed, Jul 4, '01
"h:mm a" 12:08 PM
"hh 'o''clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time
"K:mm a, z" 0:08 PM, PDT
"yyyyy.MMMMM.dd GGG hh:mm aaa" 02001.July.04 AD 12:08 PM
"EEE, d MMM yyyy HH:mm:ss Z" Wed, 4 Jul 2001 12:08:56 -0700
"yyMMddHHmmssZ" 010704120856-0700
"yyyy-MM-dd'T'HH:mm:ss.SSSZ" 2001-07-04T12:08:56.235-0700


Posted by 1010
카테고리 없음2018. 9. 28. 08:55
반응형

파워포인트용 목업디자인 플러그인 파워목업(PowerMockup) 다운로드


MS 파워포인트용 목업디자인 플러그인 파워목업(PowerMockup)을 소개 합니다.

MS Office 제품 중 Powerpoint 제품에 설치되는 플러그인 형식의 제품 입니다.


요즘은 웹디자인 일을 하지는 않지만, 웹페이지 개발을 의뢰할 경우가 종종 있습니다.

프로그래머와 일을 진행하거나 웹페이지 기획이 필요한 경우 레이아웃 작업에 손이 상당히 많이 갑니다.


간단하게 박스 몇개 그리는 일이니 단순해 보이기는 하지만 막상 파워포인트로 작업을 시작하면, 은근히 박스하나, 버튼하나 그리는 일이 부담으로 다가 옵니다. 이런 분들에게 희소식이 될 파워목업(PowerMockup) 플러그인을 소개 합니다.



공식 홈페이지는

https://www.powermockup.com 이며, TRIAL버젼을 다운로드 받아 사용하실 수 있습니다.


약 800개 이상의 UI 개체를 제공하고 있으며, 단순한 도형이 아니라 크기 변화에 따라 레이아웃이 조정되는 파워포인트 도형으로 인식 됩니다.






빠른검색기능 제공


800개가 넘는 와이어프레임이 각 카데고리별로 분류되어 제공되지만 일일이 찾기는 버거울 수 있습니다. 파워목업은 상단에 각 모양을 검색해서 사용할 수 있습니다.





.



드래그 앤 드롭


우측창에 보이는 모양은 단순히 슬라이드에 드래그 하는 것으로 바로 사용할 수 있습니다.




사용자 커스텀 도형기능


사용자가 제작한 도형을 마우스 오른쪽버튼을 클릭하면 [ Add to PowerMokup ] 메뉴가 나타나면서 파워목업에 모양을 등록해서 사용할 수 있습니다. 자주 사용하는 모양을 여러 시트에 바로 적용할 수 있겠습니다.




스마트 모양 기능


드롭다운 메뉴 등 텍스트 수정이 필요한 모양을 삽입하면 내용을 수정할 수 있는 창이 제공되어 손쉽게 텍스트 내용을 수정할 수 있습니다.




안드로이드 OS 템플릿




애플 iOS 템플릿



모바일 앱 개발을 위한 목업 템플릿 또한 공식 인터페이스 가이드라인에 맞춰 제공되고 있습니다.




추가 템플릿은 온라인으로 다운로드 하여 사용할 수 있습니다.




위의 이미지는 제가 이번에 홈페이지제작 기획을 하면서 회원가입 페이지 레이아웃을 프로그래머에게 전달하기 위해 파워목업(PowerMockup)을 사용하여 제작한 슬라이드 입니다. 간단한 레이아웃이지만, 일일이 작업하면 시간이 많이 소요됐을텐데, 파워목업을 다운로드 받아 2-3분 만에 레이아웃을 완성할 수 있었습니다.


파일포맷이 파워포인트 파일(*.ppt, *.pptx)로 저장되니, 제작된 슬라이드는 파워목업이 설치되지 않은 PC에서도 열어서 수정할 수 있습니다. 웹페이지나, 모바일페이지, 애플리케이션 개발등을 하시는 분들에게 상당히 유용한 플러그인이 될것 같습니다.


블로그를 사용하시는 분은 포스팅을 하면 무료 라이센스키를 제공 해 준다고 하네요..

크랙이나 키젠을 찾는 것 보다, 포스팅을 통해 무료 정식 라이센스키를 받아 사용 해 보시는 것이 좋을 것 같습니다.

https://www.powermockup.com/order/free-license


담당자에게 '이름', '블로그 포스팅 주소'를 보내니 금방 라이센스 코드를 보내주시는군요... ^^

유용하게 잘 사용할 수 있을것 같네요... ^^


------------

이 글의 원본 주소는 http://www.foxcg.com/158 입니다.



출처: https://foxcg.com/158 [FoxCG]

Posted by 1010
카테고리 없음2018. 7. 10. 10:11
반응형
Sample SDD 1
Creator: HASNEEZA Create Date: 26-APR-2012
Sample SDD 2
Creator: HASNEEZA Create Date: 26-APR-2012
SDD Template
Creator: HASNEEZA Create Date: 26-APR-2012
Lecturer Notes : School of Computer & Communication Engineering : Semester 2 Sidang Akademik 2011/2012 : EKT420 Software Engineering : Example of Software Design Document(SDD)


Posted by 1010
카테고리 없음2018. 7. 10. 10:09
반응형

https://swehb.nasa.gov/display/7150/SWE-111+-+Software+Design+Description



Software Development Plan (SDP)

Software Requirements Specifications (SRS)

Software Design Documents (SDD)

Software Test Documents (STD)

Operation handbook



Posted by 1010
카테고리 없음2018. 6. 28. 14:45
반응형

출처 : http://hamait.tistory.com/675




아마존 웹서비스 (AWS) 이용 가격


세부적으로는 요금계산기를 통해 알아보고 대충 머리속에 기억하고 있을만한 내용만 적어보았다.
여기서 나오는 가격은 모두 대략 이란 것을 명심하라. 각종 옵션에 따라 매우 달라진다.


정확한 계산을 위한 계산기는 여기 http://calculator.s3.amazonaws.com/index.html



S3 (스토리지) 


- 일반적인 저장소로서 1TB 저장하는데 한달에 대략 5만원  (1기가당 50원) 

- 같은 리전에 있는 EC2 와 S3 간의 데이터 전송에는 전송 요금이 청구되지 않음.

- Copy 요청을 통해 S3 지역에서 데이터를 전송한 경우 데이터 전송 요금이 청구되지 않음.

- S3 에서 인터넷으로의 데이터 송신은 1TB 월당 대략 15만원 ( GB 당 150원 )

 S3 의 get/set 횟수에 따른 요금이 부과된다.


Glacier (백업 스토리지)


백업용 저장소로서 1TB 저장하는데 한달에 대략 1만원  (1기가당 10원) 



EC2 (컴퓨팅)


온디맨드 (선결재나 장기 약정 없이 사용한 만큼) 


- t2.medium CPU 2개, 메모리 4기가 : 시간당 100원 한달 대략 7~8만원 

- m4.xlarge CPU 4개, 메모리 16기가 : 시간당 400원 한달 대략 25 ~만원 


스팟 인스턴스 ( 시작 및 종료 시간이 자유로운 애플리케이션, 컴퓨팅 가격이 저렴해야하는 경우)

 - 온디맨드보다 대략 반정도 싸다고 생각하면 된다. 


예약 인스턴스 ( 수요가 꾸준한 애플리케이션, 1년~3년동안 약정할 수 있는 고객)

 - t2.medium 은 1년 약정 기준 한달에 대략 6만원 , 3년 약정 기준 2만원 



RDS (관계형 데이터베이스)


PostgreSQL 기준 ( RDS 를 이용하면 스토리지 관리,업그레이드,복제,백업등을 관리) 


온디맨드 DB 인스턴스

- db.t2.medium  100기가 스토리지 + 100기가 백업 스토리지:   한달에 대략 10만원 

- db.m4.xlarge   100기가 스토리지 + 100기가 백업 스토리지:   한달에 대략 40만원 



Route53 (DNS) 


- 한달에 100만 쿼리면 천원 , DNS Failover Health Check 하면 만원까지 올라감. 



CloudFront (컨텐츠 캐쉬)


- Data Transfer Out 의 한달량이 1기가이고 10kb 데이터가 만번 요청되면 5만원.



IoT 플랫폼


- 메세지 백만개당 (512바이트 블록 기준, 최대 128kb 를 하나의 블록으로 전송)  7천원 
- 키네시스와 다른 점은 이것은 스트리밍 처리가 아니라는 점


예) 1개 디바이스가 10초당 1개의 500바이트 메세지를 IoT 로 보낼때 : 1 * 6 * 60 * 24 * 30 = 259200개 
     즉 4개의 디바이스가 10초에 한번씩 메세지를 전송하면 한달에 7천원 든다. 
     디바이스 4000개면 한달에 7백만원이다. 



Lambda (분산 실행 모듈)


-  모듈에 함수를 요청 할때 마다 과금됨.

-  매월 첫 요청 1백만 회까지 무료, 이후 요청 1백만회당 200원 
-  Lambda 에서 처리한 데이터를 S3 에 put 하는데는 S3 의 get/set 의 요금이 부과된다.

예) 1개의 디바이스가 전송한 데이터를 분삭할 모듈을 호출한다고 해보자. 10초에 한번씩 전송하면 
     한달에 1 * 6 * 60 * 24 * 30 = 259200번 호출된다.  디바이스 4개면 천원 든다.
     디바이스 4000 개를  분석하기위한 호출을 하는데 한달에 백만원이다. 



Kinesis Streams (데이터처리 스트림)
-  중요한건 스트리밍이라는 점.. ( 외부에서 생성된 ,디바이스라든지 데이터가 끊임없이 밀려들어 오는것 처리)


-  종량 과금제 

-  샤드 1개는 초당 1MB 의 데이터 입력 및 2MB 의 데이터 출력 용량을 제공

-  샤드 1개는 초당 최대 1,000개의 레코드를 지원한다.  

-  각 샤드에 대한 시간 단위로 사용료가 부과

-  샤드 시간 (초당 1MB 수신, 초당 2MB 송신 ) :   10원 

-  PUT 페이로드 유닛, 1백만개 유닛당 : 20원



Kinesis Firehose (데이터처리 인프라)


-  중요한건 스트리밍이라는 점.. ( 외부에서 생성된 ,디바이스라든지 데이터가 끊임없이 밀려들어 오는것 처리)


Amazon S3로 로드하기 위해 미국 동부 리전의 Amazon Kinesis Firehose로 스트리밍 데이터 레코드를 초당 1,000개 전송하고, 각 레코드 크기는 3KB인 경우, 월별 요금은 다음과 같이 계산됩니다.

월별 요금

미국 동부 리전의 수집 데이터 요금은 GB당 0.035 USD입니다.

3KB의 레코드 크기를 5KB 단위로 올림 처리 = 5KB

수집 데이터(초당 GB) = (레코드 1,000개/초 * 5KB/레코드) / 1,048,576KB/GB = 0.004768GB/초

수집 데이터(월별 GB) = 30일/월 * 86,400초/일 * 0.004768GB/초 = 12,359.62GB/월

월별 요금 = 12,359.62GB * 0.035 USD/GB = 432.59 USD

Amazon S3와 Amazon Redshift로 로드하기 위해 미국 동부 리전의 Amazon Kinesis Firehose로 스트리밍 데이터 레코드를 초당 5,000개 전송하고, 각 레코드 크기는 7KB인 경우, 월별 요금은 다음과 같이 계산됩니다.

월별 요금

미국 동부 리전의 수집 데이터 요금은 GB당 0.035 USD입니다.

7KB의 레코드 크기를 5KB 단위로 올림 처리 = 10KB

수집 데이터(초당 GB) = (레코드 5,000개/초 * 10KB/레코드) / 1,048,576KB/GB = 0.0476837GB/초

수집 데이터(월별 GB) = 30일/월 * 86,400초/일 * 0.0476837GB/초 = 123,596.19GB/월

월별 요금 = 123,596.19GB * 0.035 USD/GB = 4,325.87 USD


Kinesis Analytics (데이터 분석 인프라)


-  중요한건 스트리밍이라는 점.. ( 외부에서 생성된 ,디바이스라든지 데이터가 끊임없이 밀려들어 오는것 처리)

고객은 Amazon Kinesis Analytics를 사용하여 Kinesis Firehose에서 캡처한 스트리밍 데이터를 지속적으로 필터링하고 원하는 레코드만 보관합니다. 이 고객의 월별 Kinesis Analytics 요금은 다음과 같이 계산됩니다.

월별 요금

미국 리전의 요금은 스트림 처리 애플리케이션에서 사용한 KPU별로 시간당 0.11 USD입니다. 1KPU는 메모리 4GB, 컴퓨팅 1vCPU 및 해당 네트워킹 기능과 동일한 스트림 처리 용량을 제공합니다.

이 간단한 스트리밍 필터는 Firehose의 데이터를 처리하는 데 1.7GB의 메모리와 1vCPU의 50%를 사용합니다.

스트리밍 SQL 쿼리가 메모리를 4GB 미만 그리고 컴퓨팅을 1vCPU 미만으로 사용하므로, 애플리케이션에서 워크로드를 처리하는 데 1KPU만 있으면 됩니다.

월별 요금 = 30일 * 24시간 * (1KPU * 0.11 USD/시간) = 79.20 USD


고객은 Amazon Kinesis Analytics를 사용하여 Kinesis Stream에 캡처되어 있는 온라인 쇼핑 트랜잭션에서 판매된 항목의 1분 슬라이딩 윈도우 합계를 계산합니다. 이 스트림은 보통 초당 레코드 1,000개의 속도로 데이터를 수집하지만, 데이터는 하루에 한 번 프로모션 캠페인 중에 1시간 미만 동안 초당 레코드 6,000개의 속도로 급증합니다. 이 고객의 월별 Kinesis Analytics 요금은 다음과 같이 계산됩니다.

월별 요금

미국 리전의 요금은 KPU별로 시간당 0.11 USD입니다. 1KPU는 메모리 4GB, 컴퓨팅 1vCPU 및 해당 네트워킹 기능과 동일한 스트림 처리 용량을 제공합니다.

수신 Kinesis 스트림은 초당 레코드 1,000개의 속도로 데이터를 전송합니다. 하지만 하루에 한 번 1시간 미만 동안 Stream이 초당 레코드 6,000개로 급증합니다. 

  • 하루 24시간 중 23시간 동안 발생하는 '안정 상태'의 경우:

    슬라이딩 윈도우 쿼리는 데이터를 처리하는 데 3.2GB의 메모리와 1vCPU의 50%를 사용합니다.

    스트리밍 SQL 쿼리가 메모리를 4GB 미만 그리고 컴퓨팅을 1vCPU 미만으로 사용하므로, 이 시간 동안은 애플리케이션에서 워크로드를 처리하는 데 1KPU만 있으면 됩니다.

  • 하루 24시간 중 1시간 동안 발생하는 '스파이크 상태'의 경우:

    슬라이딩 윈도우 쿼리는 스트림의 더 큰 데이터 처리량을 처리하는 데 6.4GB의 메모리와 1vCPU의 75%를 사용합니다. 이 스트리밍 SQL 쿼리는 단일 KPU에서 제공하는 메모리를 초과하여 사용하지만, 2개의 KPU에서 제공하는 메모리 양인 8GB보다는 적게 사용합니다. 이 고객에게는 하루 24시간 중 1시간은 2개의 KPU에 대한 요금이 부과됩니다.

월별 요금: 

안정 상태 = 30일 * 23시간 * (1KPU * 0.11 USD/시간) = 75.90 USD

스파이크 상태 = 30일 * 1시간 * (2KPU * 0.11 USD/시간) = 6.60 USD

요금 합계 = 75.90 USD + 6.60 USD = 82.50 USD



출처: http://hamait.tistory.com/675 [HAMA 블로그]

Posted by 1010
02.Oracle/DataBase2018. 6. 19. 10:33
반응형

call SP_B_GPS_REG_DATES( 

        '20170101',

        '20171231'

    );


--------------------------------------


CREATE OR REPLACE PROCEDURE `wbdb`.`GenerateRangeDates`(IN S_INDATE DATE, IN E_INDATE DATE)

BEGIN


    -- CREATE TEMPORARY TABLE IF NOT EXISTS dates (day DATE);

DELETE FROM B_GPS_REG_DATES_TMP;


    loopDate: LOOP

        INSERT INTO B_GPS_REG_DATES_TMP

        (

        YY, MM, DD, QUARTER, INDATE

        )

        VALUES 

        (

        -- SUBSTR(S_INDATE,1,4), SUBSTR(S_INDATE,6,2), SUBSTR(S_INDATE,9,2), QUARTER(S_INDATE), S_INDATE

SUBSTR(S_INDATE,1,4), SUBSTR(S_INDATE,6,2), SUBSTR(S_INDATE,9,2), QUARTER(S_INDATE), CONCAT(SUBSTR(S_INDATE,1,4), SUBSTR(S_INDATE,6,2), SUBSTR(S_INDATE,9,2))

        )

        ; 

        SET S_INDATE = DATE_ADD(S_INDATE, INTERVAL 1 DAY);


        IF S_INDATE <= E_INDATE 

            THEN ITERATE loopDate;

            ELSE LEAVE loopDate;

        END IF;

    END LOOP loopDate;


    -- SELECT day FROM dates;

    -- DROP TEMPORARY TABLE IF EXISTS dates;


END

Posted by 1010
반응형

function excelExport(){

  exportTable($('#jsGrid').html(), 'myFilename.xls');

}


function exportTable(myTable, filename) {

  var agent = navigator.userAgent.toLowerCase();

  if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {

       // ie일 경우

       csvData = myTable;

       if (window.navigator.msSaveBlob) {

           var blob = new Blob([csvData], {

               type: "text/html"

           });

           navigator.msSaveBlob(blob, filename);

       }

  }else{

       // ie가 아닐 경우

       window.open("data:application/vnd.ms-excel," + encodeURIComponent(myTable));

  }

}



Posted by 1010
카테고리 없음2018. 1. 10. 13:08
반응형

hdfs dfsadmin -report 

Posted by 1010
spring boot2017. 9. 5. 10:30
반응형

https://spring.io/blog/2015/06/17/devtools-in-spring-boot-1-3



Spring Boot 1.3 will ship with a brand new module called spring-boot-devtools. The aim of this module is to try and improve the development-time experience when working on Spring Boot applications.

To use the module you simply need to add it as a dependency in your Maven POM:

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
    </dependency>
</dependencies>

or your Gradle build file:

dependencies {
    compile("org.springframework.boot:spring-boot-devtools")
}

Once included, the spring-boot-devtools module provides a number of nice features that we cover below (If you can’t be bother to read the text, skip to the end of the post for a short video).

Property Defaults

If you’ve used templating technologies such as Thymeleaf with Spring Boot 1.2, you might be familiar with properties such as spring.thymeleaf.cache. These properties are used to disable caching and allow you to update pages without needing to restart your application. Having support for these properties is pretty handy, but remembering to set them during development has always been a bit of a pain.

Now, when you use the spring-boot-devtools module, you no longer need to remember to set the properties. During development caching for Thymeleaf, Freemarker, Groovy Templates, Velocity and Mustache are all automatically disabled.

Automatic Restart

You may have used tools such as JRebel or Spring Loaded in the past to provide instant reload for your Java applications. These tools are great, but they do often require additional configuration or IDE plugins to work (and some of them even cost money!)

With Spring Boot 1.3 we’ve been working on something that’s a little slower than these “instant reload” techniques, and instead works by restarting your application. When you have the spring-boot-devtools module included, any classpath file changes will automatically trigger an application restart. We do some tricks to try and keep restarts fast, so for many microservice style applications this technique might be good enough.

LiveReload

With sensible “cache properties” and “automatic restarts” working, needing to manually click the browser refresh button each time something changes starts to become a little tedious. So to help save your mouse buttons, Spring Boot 1.3 DevTools includes an embedded LiveReload server. LiveReload is a simple protocol that allows your application to automatically trigger a browser refresh whenever things change. Browser extensions are freely available for Chrome, Firefox and Safari from livereload.com.

Remote Debug Tunneling

If you’ve ever tried to host a Java application using Docker, or if you’ve tried a micro PaaS such as Lattice, you may have been frustrated about how difficult it can be to debug your code. You need configure Java to start with -Xdebug and somehow forward the appropriate port so that you can attach the remote debugger.

To help with this, Spring Boot 1.3 can tunnel JDWP (the Java Debug Wire Protocol) over HTTP directly to your application. This can even work with applications deployed to Internet Cloud providers that only expose port 80 and 443 (although since JDWP is quite a chatty protocol this can be quite slow).

Remote Update and Restart

The final trick that DevTools offers is support for remote application updates and restarts. This works by monitoring your local classpath for file changes and pushing them to a remote server which is then restarted. As with local restarts, you can also use this feature in combination with LiveReload.

Video Preview

All the features discussed in this post are already available in Spring Boot 1.3.0.M1 and detailed documentation is available in the reference guide. If you’re not ready to install the bits yourself yet, here’s a short video that shows how they work:

Posted by 1010
02.Oracle2017. 8. 17. 10:24
반응형

alter session set "_ORACLE_SCRIPT"=true;

Posted by 1010
카테고리 없음2017. 7. 5. 11:56
반응형


출처 : http://realforce111.tistory.com/37



리눅스에 SNMP를 설정하는 방법을 알아보겠습니다.



# yum list | grep snmp 

SNMP 패키지 리스트 리스트를 보여 줍니다.



# yum -y install net-snmp.x86_64
# yum -y install net-snmp-util.x86_64

net-snmp.x86_64, net-snmp-utils.x86_64 두 가지 파일을 설치 합니다.



# vi /etc/snmp/snmpd.conf


# First, map the community name "public" into a "security name"


# sec.name source community

com2sec notConfigUser default public

com2sec kimms 192.168.1.0/24 public     // SNMP 허용 아이피와 community name 입력

com2sec kimms default public


####

설치 완료 후 /etc/snmp/snmpd.conf 파일 수정



# groupName securityModel securityName 
group notConfigGroup v1 notConfigUser 
group notConfigGroup v2c notConfigUser 
group kimmsgroup v1 kimms      // 그룹 추가
group kimmsgroup v2c kimms 
group kimmsgroup usm kimms

####



# Finally, grant the group read-only access to the systemview view. 
# group context sec.model sec.level prefix read write notif 
# access notConfigGroup "" any noauth exact roview rwview none 
access kimmsgroup "" any noauth exact all all all


SNMP 서비스를 시작 합니다.


SNMP 서비스가 정상적으로 실행중인지 확인하기 위해 netstat 명령을 실행 합니다.



# snmpwalk -v 2c -c public localhost system
# snmpwalk -v -2c -c public 192.168.0.100 system     // snmpwalk-v 2c -c public "허용 IP" system

정상적으로 출력 된다면 해당 장비의 정보를 가져올 수 있습니다.



출처: http://realforce111.tistory.com/37 [realforce111님의 블로그]

Posted by 1010
02.Oracle2017. 6. 2. 14:20
반응형

VARIABLE jobno number;

BEGIN

   DBMS_JOB.SUBMIT(

      :jobno, 

      'JOB_TRAFFIC_INFO();',

      SYSDATE,

      'TRUNC(SYSDATE+1)+7/24');

   COMMIT;

END;


Posted by 1010
카테고리 없음2017. 4. 17. 08:36
반응형

systemctl stop firewalld

 systemctl start firewalld


# firewall-cmd --permanent --zone=public --add-port=8080/tcp

# firewall-cmd --reload

Posted by 1010
카테고리 없음2017. 3. 28. 17:41
반응형

map.setCenterAndLevel(new nhn.api.map.LatLng(36.35041200438027,127.38454801772923),7);

Posted by 1010
hadoop2017. 3. 7. 15:53
반응형

hadoop fs -copyToLocal /실제파일위치경로 /내려받을경로

Posted by 1010
카테고리 없음2017. 2. 28. 16:05
반응형

route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 metric 1 -p

route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 2 -p

Posted by 1010
카테고리 없음2017. 2. 24. 10:38
반응형

How To Install Dokuwiki on CentOS 7

r00t November 21, 2015

install Dokuwiki on ubuntu 15.04

In this tutorial we will show you how to install and configuration of Dokuwiki on your CentOS 7 server. For those of you who didn’t know, DokuWiki is considered to be the most versatile open source Wiki software application which is proven to meet your demanding wiki needs. Using a very familiar interface, it allows you to easily scale and optimize using many advanced features. Utilizing files instead of a database, DokuWiki is extremely flexible with the type of system it will run on (no database server required).

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Dokuwiki in CentOS 7 server.

Install Dokuwiki on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LAMP server.

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install required PHP modules:

Step 3. Installing Dokuwiki.

First thing to do is to go to DokuWiki’s download page and  download the latest stable version of Dokuwiki:

We will need to change some folders permissions:

Step 4. Configuring Apache web server for Dokuwiki.

It is time to configure Apache. Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content

Create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts:

Create a virtual host for our domain:

Add the following lines at the end of the file:

Save and close the file. Restart the apache service for the changes to take effects:

Step 5. Accessing DokuWiki.

DokuWiki will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/install.php or http://server-ip/install.php and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Dokuwiki. Thanks for using this tutorial for installing Dokuwiki on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Dokuwiki web site.


Posted by 1010
카테고리 없음2017. 2. 21. 10:32
반응형

local.php
$conf['target']['extern'] = '_blank';


Posted by 1010
카테고리 없음2017. 2. 20. 10:46
반응형

dokuwiki 한글 파일명 


한글파일명 다운 받을때 한글이 깨질경우


/lib/exe/fetch.php


$data = array(

        'media'         => $MEDIA,

        'file'          => $FILE,

        'orig'          => $MEDIA,

        'mime'          => $MIME,

        'download'      => $DL,

        'cache'         => $CACHE,

        'ext'           => $EXT,

        'width'         => $WIDTH,

        'height'        => $HEIGHT,

        'status'        => $STATUS,

        'statusmessage' => $STATUSMESSAGE,

        'ispublic'      => media_ispublic($MEDIA),

    );


수정

Posted by 1010
카테고리 없음2017. 1. 4. 15:13
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.min.js"></script>
        <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.min.css" />
        <style type="text/css">
          body {
              font: 10pt sans;
          }
          #network {
              width: 100%;
              height: 600px;
              background: white;
              border: 1px solid lightgray;
          }
      </style>
        <script type="text/javascript">
            function main() {
                var graph = {
                    nodes: new vis.DataSet([
                      {"id""0""label""Parent""level"0}, 
                      
                      {"id""0.1""label""Child""level"1},
                      {"id""0.2""label""Child""level"1},
                      
                      {"id""0.1.1""label""Grand Child""level"2},
                      {"id""0.2.1""label""Grand Child""level"2},
                      {"id""0.2.2""label""Grand Child""level"2},
                      {"id""0.2.3""label""Grand Child""level"2},
                      
                      {"id""0.2.2.1""label""Grand Grand Child""level"3},
                      {"id""0.2.2.2""label""Grand Grand Child""level"3},
                      {"id""0.2.2.3""label""Grand Grand Child""level"3}
                    ]),
                    edges: new vis.DataSet([
                      {"from""0""to""0.1"},
                      {"from""0""to""0.2"},
                      
                      {"from""0.1""to""0.1.1"},
                      
                      {"from""0.2""to""0.2.1"},
                      {"from""0.2""to""0.2.2"},
                      {"from""0.2""to""0.2.3"},
                      
                      {"from""0.2.2""to""0.2.2.1"},
                      {"from""0.2.2""to""0.2.2.2"},
                      {"from""0.2.2""to""0.2.2.3"},
                    ])
                };
                
                var options = {
                  nodes: {
                    borderWidth: 1,
                    borderWidthSelected: 1,
                    shape: "box",
                    color: {
                      border: 'lightgray',
                      background: 'white',
                      highlight: {
                        border: 'lightgray',
                        background: 'lightblue'
                      },
                      hover: {
                        border: 'lightgray',
                        background: 'lightblue'
                      }
                    }
                  },
                  edges: {
                    smooth: {
                      type: 'cubicBezier',
                      forceDirection: 'vertical',
                      roundness: 1
                    },
                    color: 'lightgray'
                  },
                  layout: {
                    hierarchical: {
                      direction: 'UD',
                      nodeSpacing: 150
                    }
                  },
                  interaction: {dragNodes :false},
                  physics:false
                  };
                var network = new vis.Network(document.getElementById("network"), graph, options);
            }
        </script>
    </head>
    <body onload="main();">
        <div id="network"></div>
    </body>
</html>
cs


Posted by 1010
카테고리 없음2016. 12. 12. 14:24
반응형

application.properties



spring.http.multipart.max-file-size=100MB

spring.http.multipart.max-request-size=100MB

Posted by 1010
카테고리 없음2016. 12. 1. 13:16
반응형

[ipsdn@IPSDNC02 ~]$ cat .bashrc 

# .bashrc


# Source global definitions

if [ -f /etc/bashrc ]; then

. /etc/bashrc

fi


# User specific aliases and functions


JAVA_HOME=/home/ipsdn/apps/jdk1.8.0_111

JRE_HOME=$JAVA_HOME/jre

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

export JAVA_HOME

export JRE_HOME

export PATH



Posted by 1010
카테고리 없음2016. 12. 1. 11:30
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function makePage(page){
    
    if(typeof page == "undefined"){
        page = 1//현재페이지
    }
    
    var totalConunt = 3846;    //전체로우수
    var pageRowSize = 20;  // 화면에 보여줄 로우수
    var pageCount = Math.ceil((totalConunt / pageRowSize )) // 전체페이지수
    var listOffset = 10// 한화면에 보여줄 페이지수 
    var startPage =  Math.ceil(page / listOffset) * listOffset - (listOffset - 1);
    var endPage = (startPage + listOffset - 1 > pageCount) ? pageCount : startPage + listOffset - 1;
    
    var prev2 = "1"//맨처음페이지
    var prev = (startPage > 1 ? startPage - 1 : 1) ; //처음페이지(10개단위)
    var next = (endPage < pageCount ? endPage + 1 : endPage); //다음페이지(10개단위)
    var next2 = pageCount; //맨마지막페이지
    
    var AXGridPagingHtml = '';
        AXGridPagingHtml += '<div class="paging">';
        AXGridPagingHtml += '</div>';
        AXGridPagingHtml += '<span class="arrow">';
        AXGridPagingHtml += '<a href="javascript:fn_search('+prev2+')"><img src="/style2/images/btn_prev2.gif" alt="처음 페이지"></a>';
        AXGridPagingHtml += '<a href="javascript:fn_search('+prev+')"><img src="/style2/images/btn_prev.gif" alt="이전 페이지"></a>';
        AXGridPagingHtml += '</span>';
        AXGridPagingHtml += '<span class="list">';
        for(var i = startPage ; i < endPage ; i++){
            if(i == page){
                AXGridPagingHtml += '<strong>'+i+'</strong>';
            }else{
                AXGridPagingHtml += ' <a href="javascript:fn_search('+i+')">'+i+'</a> ';
            }
        }
        AXGridPagingHtml += '</span>';
        AXGridPagingHtml += '<span class="arrow">';
        AXGridPagingHtml += '<a href="javascript:fn_search('+next+')"><img src="/style2/images/btn_next.gif" alt="다음 페이지"></a>';
        AXGridPagingHtml += '<a href="javascript:fn_search('+next2+')"><img src="/style2/images/btn_next2.gif" alt="마지막 페이지"></a>';
        AXGridPagingHtml += '</span>';
    
    $("#AXGridPaging").html(AXGridPagingHtml);
}
$(document).ready(function() {
    makePage();
});
cs


Posted by 1010
카테고리 없음2016. 11. 7. 15:26
반응형
Chart.defaults.global.responsive = true;
Chart.defaults.global.animation = false;
Chart.defaults.global.maintainAspectRatio = false;

이렇게 옵션주고



<canvas id="canvas" height="220px">


는 조정해주면 됨...




Posted by 1010
카테고리 없음2016. 10. 19. 13:19
반응형

/etc/selinux/config

SELINUX=disabled 라고 수정하고 재부팅


Posted by 1010
카테고리 없음2016. 10. 7. 16:54
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
private static Map<String, Object> EPGS4326_900913(double  lon, double  lat){
        double  x = lon * 20037508.34 / 180;
        double  y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180);
        y = y * 20037508.34 / 180;
        
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("x", x);
        map.put("y", y);
        
        System.out.println(lon+":"+x);
        System.out.println(lat+":"+y);
        
        return map;
    }
    
    private static Map<String, Object> EPGS900913_4326(double  x, double  y){
        double lon = (x / 20037508.34* 180;
        double lat = (y / 20037508.34* 180;
        lat = 180/Math.PI * (2 * Math.atan(Math.exp(lat * Math.PI / 180)) - Math.PI / 2);
 
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("lon", lon);
        map.put("lat", lat);
        
        System.out.println(x+":"+lon);
        System.out.println(y+":"+lat);
        
        return map;
    }
cs


Posted by 1010
카테고리 없음2016. 9. 29. 18:01
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
private static String[] makeArrayToString(String manageContentsSub, int mmsTextSize) {
        if(manageContentsSub == null){
            return null;
        }
        String[] arrayStr = null;
        try {
            byte[] contentsBytes = manageContentsSub.getBytes("UTF-8");
            int contentLength = contentsBytes.length;
            if (contentLength > mmsTextSize){
                int aryLength = (contentLength / mmsTextSize) + (contentLength % mmsTextSize != 0 ? 1 : 0);
                arrayStr = new String[aryLength];
                int endCharIndex = 0;
                String tmp;
                for(int i = 0; i < aryLength; i++){
 
                    if(i == (aryLength - 1)){
                        tmp = manageContentsSub.substring(endCharIndex);
                    }else{
                        int useByteLength = 0;
                        int rSize = 0;
                        for (; endCharIndex < manageContentsSub.length(); endCharIndex++) {
                            if(manageContentsSub.charAt(endCharIndex) > 0x007F){
                                useByteLength += 2;
                            }else{
                                useByteLength++;
                            }
                            if(useByteLength > mmsTextSize){
                                break;
                            }
                            rSize++;
                        }
                        tmp = manageContentsSub.substring((endCharIndex - rSize), endCharIndex);
                    }
                    arrayStr[i] = tmp;
                }
            }else{
                arrayStr = new String[] { manageContentsSub };
            }
        }catch(java.io.UnsupportedEncodingException exception){
            System.out.println("UnsupportedEncodingException : "+exception);
        }
        return arrayStr;
    }
cs


Posted by 1010