yjhyjh5369의 등록된 링크

키자드에 등록된 총 966개의 포스트를 확인하실 수 있습니다.

Naver Blog

mysql log delete ( 로그 삭제 )

PURGE BINARY LOGS BEFORE '2009-05-01 00:00:00'; * 1기가 이상의 디렉토리 확인 du -h | grep [0-9]G

Naver Blog

Topics / Queues

Topics In JMS a Topic implements publish and subscribe semantics. When you publish a message it goes to all the subscribers who are interested - so zero to many subscribers will receive a copy of the message. Only subscribers who had an active subscription at the time the broker receives the message will get a copy of the message.Queues A JMS Queue implements load balancer semantics. A single message will be received by exactly one consumer. If there are no consumers available at the time the me

Naver Blog

용어 정리

1. RV(Rendezvous) - 메시지(프로토콜) 종류 1.1. RV란? - TIBCO BASE 제품 - TIB(정보 버스)를 이용하여 UDP 통신 기반으로 TRDP라는 자체 프로토콜을 구현 - MOM으로 버스 방식의 아키텍쳐 사용 - -deamon 파라미터 n App는 TCP를 이용하여 RVD에 접속 n TCP를 정의하기 위한 값 n APP 기동시 RVD가 살아있지 않다면 자도응로 RVD 구동 n 하나 이상의 RVD를 한 호스트에서 수행 가능 - -service 파라미터 n RVD가 네트워크를 통하여 통신하기 위한 port n 각 Transport는 하나의 service 포트를 통해 데이터 송수신 n 하나의 rv 데몬만이 하나의 service 포트를 점유 n Rv 데몬은 여러 service 포트 사용 가능 - -network 파라미터 n Broadcast, Multicast를 결정하는 파라미터 n 3개의 part로 구성됨 ( part1;part2;part3 ) n Default

Naver Blog

IE8이하 버전에서 HTML5 사용하기

http://teilar.tistory.com/entry/IE8%EC%9D%B4%ED%95%98-%EB%B2%84%EC%A0%84%EC%97%90%EC%84%9C-HTML5-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0 IE8이하 버전에서 HTML5 사용하기 자 이제까지 HTML5 문서를 만들기 위한 준비과정을 진행해보았습니다. 새로운 엘리먼트들에 대해서도 알아보았고 새로운 엘리먼트들에 대한 기본 CSS정의도 해보았고 IE에서 새로운 엘리먼트를 인식시키는 방법에 대해서도 알아보았습니다. 그럼 이제 좀 더 견고한 HTML5문서를 만들어 봅시다. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>HTML5</title> <link rel="stylesheet" href="css/common.css" type.. teilar.tistory.com

Naver Blog

구글 접속 오류 ( 구글 접속 안됨 ) / 다음 접속 오류 ( 다음 접속 안됨 )

포멧 후 윈도우를 새로 설치하면 구글 등 특정 사이트에 접속이 안되는 경우가 있어요... ( 처음 당해봄 ㅠㅠ ) 아래와 같이 해결 가능합니다. C:\Windows\System32\drivers\etc 경로로 이동하면 hosts 라는 파일이 있는데, 맨 아래 보면 66.249.89.104 www.google.co.kr 202.131.29.70 www.naver.com 222.231.51.78 www.daum.net 203.84.218.36 kr.yahoo.com 211.115.207.229 windowsforum.kr 이런 내용이 있는데 이것을 모두 삭제 후 저장하면 접속 잘 됩니다. ------------------------------------------------------------------------------------------ * hosts 파일이란? 네트워크를 통해 다른 서버에 접속할 때 도메인 정보를 이용해서 접속하는 경우 도메인 정보를 IP로 바꾸는 과정이 필

Naver Blog

sitemesh left menu

http://okky.kr/article/100893 OKKY | sitemesh에서 decorator 페이지에 데이타를 넘기려면 어떻게 해야 하나요? spring과 sitemesh를 같이 사용중입니다. 궁금한점이 decorator 페이지에 데이타를 넘겨서 메류를 정의하고 싶은데 페이지를 이동하면서 데이타를 넘기면 해당 페이지에서만 접근할수 있고 decorator 페이지에서는 접근이 불가능 합니다. decorator 페이지에서도 데이타를 받고 싶은데 좋은 방법 없을까요? okky.kr http://zenice.tistory.com/22 사이트를 조직화 해주는 프레임워크, SiteMesh 사이트를 조직화 해주는 프레임워크, SiteMesh 개요 불행히도 2005년을 살아가고 있는 개발자들은 다수의 프레임워크를 선택할 수 있는 행운을 갖게 되었다. 하지만 이 행운은 여러 프레임워크의 특성과 장단점, 프레임워크간의 관계를 면밀히 검토해야 할 결코 즐겁지만은 않은 비명을 안겨 주었다. 뿐만

Naver Blog

Spring 3.0 + tiles 2 + maven

1. pom.xml 에 아래 내용 추가 <!-- tiles --> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-api</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-compat</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-core</artifactId> <version>2.1.4</version> </dependency> 2. spring-context.xml 에 아래 내용 추가 <!-- tiles2 layout config --> <bean id="tilesConfigurer"

Naver Blog

jqGrid destroy ( jqgrid 삭제 )

1. html <div id="gridContainer"></div> 2. javascript // grid 초기화 function deleteGrid() { $("#list").jqGrid("clearGridData"); $("#list").jqGrid("GridDestroy"); $("#list").remove(); $("#gridContainer").empty(); } // grid 생성 function initGrid() { var table = document.createElement('table'); var pager = document.createElement('div'); table.id = 'list'; pager.id = 'pager'; $("#gridContainer").append(table); $("#gridContainer").append(pager); $("#list").jqGrid({ ... }); }

Naver Blog

javascript 테스트 - qunit

1. 사이트 http://api.qunitjs.com QUnit API Documentation api.qunitjs.com 2. 사용법 예시 test("replaceAll", function() { equal(replaceAll("2016/03/01", "/", ""), "20160301"); }); 2. API 2.1 equal ( A, B ); - A와 B가 같다면 true

Naver Blog

jqgrid rowspan, jqgrid colspan

jqGrid 4.2.0부터 공식적으로 Header Grouping을 지원합니다. 1. 공식문서 : http://www.trirand.com/jqgridwiki/doku.php?id=wiki:groupingheadar wiki:groupingheadar - jqGrid Wiki www.trirand.com 2. 옵션 설명 - useColSpanStyle : header에 한 줄을 추가 했을 때 rowspan을 할 것인지 여부 - startColumnName : colspan을 시작할 column ( colmodel의 name을 사용 ) - numberOfColumn : 몇개의 column을 merge할 것인가 - titleText : merge된 column의 title 3. 결과 4. 아래와 같은 결과를 원할 경우 grid.jqGrid("setGroupHeaders", { useColSpanStyle: true, groupHeaders: [{ startColumnName: "amou

Naver Blog

Spring에서 엑셀(excel) 다운로드 개발 시, workbook를 통째로 넘기는 방법

1. Controller public ModelAndView downloadExcel(Locale locale, Model model, HttpServletRequest request) throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName("excelDownloadView2"); // workbook 생성 ... // workbook 생성 종료 mav.addObject("workbook", wb); } 2. AbstractExcelView renderMergedOutputModel 변경한다. public abstract class AbstractExcelView extends AbstractView { /** The content type for an Excel response */ private static final String CONTENT_TYPE = "application/vnd.ms-excel"

Naver Blog

엑셀(excel) merge

모든 셀에 border를 미리 준 후에 merge를 해야 한다. CellStyle headerStyle = ExcelUtil.getHeaderStyle(wb); String[][] header = { {"NO", "정산일", "가맹점명", "정산ID", "정산설정", "결제서비스", "", "", "", "원가수수료", "원가VAT", "입금금액", "PG수수료", "", "", "보류", "해제", "상계", "정산금액"}, {"", "", "", "", "", "신용카드", "계좌이체", "가상계좌", "합계", "", "", "", "수수료", "VAT", "합계", "", "", "", ""} }; ExcelUtil.setHeader(sheet, header, headerStyle); ExcelUtil.rowspan(sheet, header); ExcelUtil.colspan(sheet, header); ----------------------------------------

Naver Blog

이클립스 자동 줄맞춤 시 line 의 최대 길이

1. JAVA [Window - Preferences - Java - Code Style - Formatter] 메뉴로 이동 New 버튼 클릭 [Line Wrapping] 탭에서 Maximun line width를 변경 Code 2. HTML [Window - Preferences - HTML Files - Editor] 메뉴에서 Line width를 변경

Naver Blog

request -> map key mapping

@SuppressWarnings("unchecked") public Map getParamMap(HttpServletRequest request) { Enumeration em = request.getParameterNames(); Map map = new HashMap(); while(em.hasMoreElements()) { String key = em.nextElement().toString(); map.put(key, request.getParameter(key)); } return map; }

Naver Blog

HTML문서를 직접 excel로 다운로드

<%@ page language="java" contentType="application/vnd.ms-excel;charset=UTF-8" pageEncoding="UTF-8"%> <!-- 워드 --> <%-- <%@ page language="java" contentType="application/vnd.word;charset=UTF-8" pageEncoding="UTF-8"%> --%> <!-- 한글 --> <%-- <%@ page language="java" contentType="application/hwp;charset=UTF-8" pageEncoding="UTF-8"%> --%> <% //******************************MS excel****************************** // MS excel로 다운로드/실행, filename에 저장될 파일명을 적어준다. response.setHeader("Content-Disposition","att

Naver Blog

jqgrid summary footer

http://thatisgood.tistory.com/entry/jqGrid-%EC%98%88%EC%A0%9C jqGrid footer 그리고 footer sum 예제 결과 그림: //jqGrid $("#grid").jqGrid({ sortable: true, datatype: "local", colNames:['종류','출고', '입고', '정산수량', '금액'], colModel:[ {name:'crateName', index:'crateName', width:160, align:'center', sorttype:'text', sortable:true,}, {name:'outQuantity', index:'outQuantity',width:165, align:"right", sorttype:'int', sortable:true, formatter: 'integer', formatoptions:{thousandsSeparator:",".. thatisgood.tistory.com

Naver Blog

java에서 javascript로 ajax 통신 ( json 형태 ) 할 때 null이 있을 경우 에러가 발생

JSONObject.fromObject()나 JSONArray.fromObject()를 사용 할 경우 value에 null이 있을 경우 error가 발생한다. Gson (com.google.code.gson) 을 사용하면 에러가 발생하지 않음

Naver Blog

jquery - form안의 값을 parameter로 만들기

1. key=value&key=value 형태 $("form[name=mainForm]").serialize() 2. { name: key, value: value } 형태 $("form[name=mainForm]").serializeArray(); 3. { key: value } 형태 $("form[name=mainForm]").serializeObject (); $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; };

Naver Blog

ibatis list에 map을 담아서 넘겼을 때 iterate ( foreach / 반복 / 루프 ) 방법

1. java List<Map<String, String>> list = new ArrayList<Map<String, String>>(); Map<String, String> tmp = new HashMap<String, String>(); tmp.put("code1", "A"); tmp.put("desc1", "A"); list.add(tmp); tmp = null; tmp = new HashMap<String, String>(); tmp.put("code1", "B"); tmp.put("desc1", "B"); list.add(tmp); Map<String, Object> param = new HashMap<String, Object>(); param.put("codeList", list); 2. ibatis ( xml ) SELECT <isNotEmpty property="cardList"> <iterate property="cardList"> user_id AS "$card

Naver Blog

Spring MVC 환경에서 gson 사용시 한글 깨짐 현상

@RequestMapping 에 produces="text/plain;charset=UTF-8" 를 추가하면 정상 출력됨 ex) @RequestMapping(value = "/path", produces="text/plain;charset=UTF-8")

Naver Blog

CSS 속성 선택자

패턴 의미 CSS Level 지원하지 않는 브라우저 E[attr] ‘attr’ 속성이 포함된 요소 E를 선택합니다. 2 IE6 E[attr="val"] ‘attr’ 속성의 값이 정확하게 ‘val’과 일치하는 요소 E를 선택합니다. 2 IE6 E[attr~="val"] ‘attr’ 속성의 값에 ‘val’이 포함되는 요소를 선택합니다. (공백으로 분리된 값이 일치해야 합니다.) 2 IE6 E[attr^="val"] ‘attr’ 속성의 값이 ‘val’으로 시작하는 요소를 선택합니다. 3 IE6 E[attr$="val"] ‘attr’ 속성의 값이 ‘val’으로 끝나는 요소를 선택합니다. 3 IE6 E[attr*="val"] ‘attr’ 속성의 값에 ‘val’이 포함되는 요소를 선택합니다. 3 IE6 E[attr|="val"] ‘attr’ 속성의 값이 정확하게 ‘val’ 이거나 ‘val-’ 으로 시작되는 요소 E를 선택합니다. 2 IE6

Naver Blog

jstl nl2br ( jstl에서 java 함수 사용 )

1. tld 파일 생성( mi-html-util.tld ) <?xml version="1.0" encoding="UTF-8" ?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd" version="1.2"> <tlib-version>1.2</tlib-version> <function> <name>nl2br</name> <function-class>kr.infinisoft.paytus.common.util.StringUtil</function-class> <function-signature>java.lang.String nl2br(java.lang.String)</function-signature> </functio

Naver Blog

spring 국제화 ( messageSource )

1. spring-context에 messageSource bean을 등록한다. - 이 때 id를 messageSource로 해야 한다. ( 그렇지 않으면 동작하지 않음 ) - basename에서 설정된 이름으로 파일을 만들어야한다. - 아래와 같은 경우 message_ko_KR.properties, message, message.properties <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"> <value>messages</value> </property> </bean> 2. /src/main/resources 하위에 properties 파일을 생성한다. - {0}과 {1}은 출력 시 변수처리 될 부분이다. String 배열을 입력받아 메시지를 완성한다. ( ex. MSG={0} {1} 하이 ) - 메시지는

Naver Blog

spring 국제화(다국어 지원) 및 javascript에서의 사용

다국어를 사용 할 때 뿐만 아니라 메시지 관리 차원에서 메시지를 공통으로 많이 사용하고 있다. 1. 인코딩 설정 다국어를 사용하기 위해서는 web.xml에서 인코딩필터를 UTF-8로 설정해야 한다. <filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> 2. Spring 설정 Spring의 application-servlet.xm

Naver Blog

spring json

1. 반드시 POST로 받아야 함. ( method = RequestMethod.POST ) 2. @RequestBody 를 사용해서 받는다. ( @RequestBody AidFeeParamVO param ) 3. javascript에서 JSON.stringify()을 사용

Naver Blog

jqgrid footer

1. footer 옵션을 true로 추가 footerrow: true, userDataOnFooter: true, 2. loadComplete단계에서 이하 작업 추가 loadComplete: function(){ var colSum = $grid.jqGrid('getCol', 'totCnt', false, 'sum'); $grid.jqGrid('footerData', 'set', {app_dt: "합계:", totCnt:colSum}); var colSum = $grid.jqGrid('getCol', 'totAmt', false, 'sum'); $grid.jqGrid('footerData', 'set', {totAmt:colSum}); var colSum = $grid.jqGrid('getCol', 'cardCnt', false, 'sum'); $grid.jqGrid('footerData', 'set', {cardCnt:colSum}); var colSum = $grid.jqGrid

Naver Blog

jqgrid original row data

데이터를 표시할 때 formatter를 사용했을 경우 var row = $("#list").jqGrid("getRowData", rowId); 를 사용하면 가공된 데이터를 return한다. 구글링을 하다보면 jqgrid를 생성 할 때 아래와 같은 옵션 추가를 하라고 나오는데 이렇게 할 경우 footerData를 사용할 수가 없다. jsonReader: { userdata : 'rows' } [해결방법] 1. colModel에 unformat 옵션 추가 <script> jQuery("#grid_id").jqGrid({ ... colModel: [ ... {name:'price', index:'price', width:60, align:"center", editable: true, formatter:imageFormat, unformat:imageUnFormat}, ... ] ... }); function imageFormat( cellvalue, options, rowObject ){

Naver Blog

jqgrid 화면 크기에 맞게 resize

1. grid option autowidth: true, 2. $(window).bind('resize', function() { // 그리드의 width를 div 에 맞춰서 적용 $('#list').setGridWidth($("#gridContainer").width()); //Resized to new width as per window }).trigger('resize');

Naver Blog

현재 URL 주소 가져오기 ( Get current URL in web browser )

Use:window.location.href As noted in the comments, the line below works but is bugged for Firefox.document.URL; 출처 : http://stackoverflow.com/questions/1034621/get-current-url-in-web-browser Get current URL in web browser How do I get the website URL? Not the URL as taken from a link. On the loading page, I want to get the full, current URL of the current web page and store its value in a variable. stackoverflow.com

Naver Blog

jqgrid 페이징 처리

loadComplete: function(){ var grid = $("#" + list), MAX_PAGERS = 10; var i, myPageRefresh = function(e) { var newPage = $(e.target).text(); grid.trigger("reloadGrid",[{page:newPage}]); e.preventDefault(); }; $(grid[0].p.toppager + '_center td.myPager').remove(); var pagerPrevTD = $('<td>', { class: "myPager"}), prevPagesIncluded = 0, pagerNextTD = $('<td>', { class: "myPager"}), nextPagesIncluded = 0, totalStyle = grid[0].p.pginput === false, startIndex = totalStyle? this.p.page-MAX_PAGERS*2: pa

Naver Blog

spring 3.0 트랜젝션 처리

1. spring-context.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/

Naver Blog

spring scope ( 스프링 스코프 )

1. 스코프 종류 - singleton : 하나의 공유객체만 관리 - prototype : 필요한 매 순간에 새로운 bean 객체 생성 - request : request 단위로 생성 - session : ression 단위로 생성 - globalSession 2. 사용법 java 클래스 위에 @Scope("request") 와 같이 사용

Naver Blog

custom tag ( 사용자정의 태그 )

[커스텀 태그(Custom Tag)] - 스크립트 코드와 EL을 혼합해서 사용하는 대신 또 다른 태그를 만들어서 사용할 수 있도록 지원한다. - JSTL 또한 커스텀 태그의 일종으로 커스텀 태그를 모아 놓은 커스텀 태그 라이브러리의 한 종류이다. [커스텀 태그의 장점] - 재사용성 향상 - 쉽고 단순한 JSP 제작 - 코드의 가독성 향상 [커스텀 태그 종류] - JSP 1.2 스타일로 구현한 커스텀 태그 - JSP 2.0 또는 그 이상 버전의 SimpleTag를 사용한 커스텀 태그 - 태그 클래스라고 한다. - JSP 1.2 방식 & SimpleTag 커스텀 태그는 자바 클래스 기반의 커스텀 태그이다. - 작성방법과 서리 방법이 복잡하다 - 소스코드가 공개되지 않는다. - JSP 2.0 또는 그 이상 버전의 태그 파일을 사용한 커스텀 태그 - 태그 파일이라고 한다. - 커스텀 태그의 표준 인터페이스를 구현하거나 클래스를 상속받아서 구현한다. - JSP와 유사한 방식으로 커스텀 태그를

Naver Blog

jqgrid multiselect 사용 시 특정 row 선택 안되도록 설정

1. loadComplete 함수에서 checkbox를 disabled 처리하거나 삭제 loadComplete: function(){ var ids = $("#list").jqGrid('getDataIDs'); $list = $("#list"); $.each(ids, function() { var confirm_cl = $list.jqGrid("getRowData", this).confirm_cl; if("1" === confirm_cl) { $("#jqg_list_" + this).remove(); // $("#jqg_list_" + this).prop("disabled", true); } }); } 2. onSelectAll, beforeSelectRow beforeSelectRow: function(rowid, e) { // 그리드 선택 전 // 체크박스 disabled // var cbsdis = $("tr#"+rowid+".jqgrow > td > input.cbox:dis

Naver Blog

eclipse tomcat 메모리 설정

[Run - Run Configurations] 메뉴에서 Arguments 탭으로 가서 VM arguments의 첫줄에 아래와 같이 추가 -Xms128m -Xmx512m -XX:MaxPermSize=128m [출처] eclipse tomcat 메모리 설정|작성자 리베리오

Naver Blog

JSP 파일에 CSS 파일의 내용을 import

<jsp:include page="index.css"/> 또는 <%@include file="/WEB-INF/include/header.jsp"%>

Naver Blog

HTML로 만들어진 excel에 메모 추가 ( comment )

1. 메모를 넣을 컬럼에 아래와 같이 추가 <![if !supportAnnotations]> <span class=msocomspan1> <span class="msocomspan2" id="_anchor_1" onmouseover="msoCommentShow('_com_1','_anchor_1')" onmouseout="msoCommentHide('_com_1')" language="JavaScript"> <a class=msocomanch href="#_msocom_1" name="_msoanchor_1">[1]</a> </span> </span> <![endif]> 2. 메모를 아래와 같이 추가 <div style='mso-element: comment-list'> <![if !supportAnnotations]> <hr class=msocomhide align=left size=1 width="33%"> <![endif]> <div style='mso-element: comm

Naver Blog

엑셀 excel 파일이 열리지 않을 때 ( 실행만 되고 문서가 열리지 않을 때 )

- 인터넷에서 다운받은 엑셀이 열리지 않는 현상 발생 - 파일을 에디터로 열어서 다시 저장하면 열림 - 열리지 않는 파일을 메신져로 다른 사람에게 보냈다가 다시 받아도 열리는 현상 발행 - 환경 : Microsoft Excel 2010 [해결방법 : 보안 센터에서 제한된 보기 해제] - [파일 > 옵션] 메뉴를 선택합니다. - 옵션 팝업창의 왼쪽 메뉴 중 [보안 센터]를 선택합니다. 그 후 오른쪽 하단의 [보안 센터 설정]을 클릭합니다. - [제한된 보기]를 선택 한 후 오른쪽 화면의 체크박스를 모두 해제 합니다. --------------- 다른 이유로 안열릴 경우 ( 해보지는 않았음 ) --------------- [다른 프로그램과의 충돌로 안열리는 경우] 1. 실행창에 msconfig를 입력해서 시스템 구성 팝업창을 띄웁니다. 2. [서비스] 탭을 선택 후 "모든 Microsoft 서비스 숨기기"의 체크박스를 체크 한 후 "모두 사용 안함" 버튼을 클릭합니다. 3. "시작프로그

Naver Blog

HTML to Excel : mso-number-format style attribute

1. 사용 방법 td { mso-number-format:\@; } 2. format NO Decimals : mso-number-format:”0″ 3 Decimals : mso-number-format:”0\.000″ Comma with 3 dec : mso-number-format:”\#\,\#\#0\.000″ Date7 : mso-number-format:”mm\/dd\/yy” Date9 : mso-number-format:”mmmm\ d\,\ yyyy” D -T AMPM : mso-number-format:”m\/d\/yy\ h\:mm\ AM\/PM” 01/03/1998 : mso-number-format:”Short Date” 01-mar-98 : mso-number-format:”Medium Date” 01-mar-1998 : mso-number-format:”d\-mmm\-yyyy” 5:16 : mso-number-format:”Short Time” 5:16 am :

Naver Blog

javascript 우편번호 서비스

https://spi.maps.daum.net/postcode/guidessl Daum 우편번호 서비스 우편번호 검색과 도로명 주소 입력 기능을 너무 간단하게 적용할 수 있는 방법. Daum 우편번호 서비스를 이용해보세요. 어느 사이트에서나 무료로 제약없이 사용 가능하답니다. spi.maps.daum.net

Naver Blog

IVR ( Interactive Voice Response : 대화형 음성 응답 )

대화형 음성 응답 ( Interactive Voice Response, IVR )은 음성과 키패드를 통한 입력을 통해 컴퓨터와 인간이 상호작용하게 하는 기술을 말한다. IVR은 종종 음성 응답장치( Voice Response Unit, VRU )라는 용어로도 사용되기도 한다. IVR은 대체로 데이터베이스 액세스를 포함하는 대규모 어플리케이션의 일부이다. IVR 어플리케이션에는 일반적으로 다으과 같은 것들이 포함된다. - 텔레뱅킹 - 여론 조사를 포함한 각종 조사 ( 전화 투표 ) - 콜센터의 통화 전달 - 단순한 주문입력 거래 - 선택적인 정보 조회 - 신용카드 관련 업무 처리 IVR 어플리케이션은 적절한 상황, 키패드 신호 논리, 적절한 데이터에의 엑세스 등을 위해 미리 녹음된 음성 응답과, 나중에 처리하기 위한 녹음하는 능력 등을 제공한다. IVR 어플리케이션들은 CTI를 사용하여, 송화자가 원하는 데이터를 디스플레이를 통해 볼 수 있는 담당 직원에게 통화를 넘겨줄 수도 있다.

Naver Blog

JSP에서 LINE 공백(white space) 제거하는 방법

JSP를 사용하다 보면 JSTL이 있던 자리가 HTML로 변경되고 나서 빈 줄 ( white space )로 남아있는 것을 보게 된다. 이 경우 에러가 발생하지는 않지만 디버깅을 할 때 코드의 line 수가 너무 많아서 브라우저가 멈춰버리는 경우가 발생한다. 이것을 해결하는 방법은 아래 3가지가 있다. 1. JSP에 선언하는 방법 <%@ page trimDirectiveWhitespaces="true" %> 2. web.xml에 설정하는 방법 <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <trim-directive-whitespaces>true</trim-directive-whitespaces> </jsp-property-group> </jsp-config> 3. Tomcat의 conf/web.xml에 설정하는 방법 <init-param> <param-name>trimSpaces</param-name> <pa

Naver Blog

IE에서 돋움체 ( DotumChe ) 텍스트 박스에서 잘림 현상

IE11에서 화면을 열었을 때, 텍스트박스의 글자가 잘려보이는 현상이 있었다. 문제가 발생하는 케이스는 아래와 같다. 글자체 : 돋움체 정렬 : 오른쪽 정렬 글자 크기 : 11px 브라우저 : IE11

Naver Blog

HTML/CSS 웹 폰트 사용하기

기존에는 설치되어 있는 글꼴만 사용할 수 있었기 때문에 아래와 같이 굴림체가 없을 경우 궁서체를 사용하고 궁서체도 없으면 Arial체를 사용하라는 방식으로 글자체를 선언했습니다. font-family: "굴림", "궁서", "Arial"; 하지만! CSS3를 사용하면 더 이상 글꼴을 선택 할 때 사용자의 컴퓨터에 설치되어 있는 것만 사용하지 않아도 됩니다. CSS의 웹 폰트는 사용하고 싶은 글꼴을 선언해 주고 해당 글꼴 파일의 경로를 지정해 주면 자동으로 다운로드 받아 브라우저가 출력해 줍니다. 이러한 방법을 사용하려면 @font-face 속성을 이용해서 글꼴의 종류와 글꼴의 파일 경로를 설정해 줍니다. @font-face { font-family: 글꼴이름; src: url('글꼴파일URL경로1'), url('글꼴파일URL경로2') ...; } font-family에 신규 글꼴 이름을 지정하면 해당 이름이 등록됩니다. 나중에 해당 이름을 스타일에 적용하면 그 글꼴로 표시됩니다. s

Naver Blog

내부 스타일 시트에서 사용하는 반응형 웹을 위한 미디어쿼리

<style> /* 스마트폰 */ @media (max-width: 799px) { .login-wrap ul { width: 700px; } } /* 태블릿 PC */ @media only screen and (min-width:800px) and (max-width: 1023px) { } /* PC */ @media only screen and (min-width: 1024px) { .login-wrap ul { width: 400px; } } </style>

Naver Blog

외부 스타일 시트로 반응형 웹 만들기

<link href="style.css" rel="stylesheet" type="text/css" media="screen and(min-width:800px)">

Naver Blog

반응형 웹 만들기

1. 모바일과 데스크톱 PC 인터넷 환경의 차이점 인식 - 이미지 사용 최소화 ( 인터넷이 느릴 경우 렉이 걸림 ) - 다양한 모바일 디바이스의 화면 크기 - 스마트폰 화면 가로 크기는 320~720px까지 다양하다. 데스크톱 PC처럼 가로 크기가 고정되어 있는 상태에서 CSS 작업을 하는 것은 이제 바람직하지 않다. - 중요 스마트폰으로 한정해 놓고 초점을 맞춰야 한다. - 링크의 롤오버 기능은 사용하지 않는다. - 모든 브라우저에서 모두 동일한 화면을 제공해 줄 필요는 없다. - 모든 브라우저에서 동일한 '정보'를 손상없이 제공해 준다는 '콘텐츠 지향'관점으로 만들어야 한다. 2. HTML 작업 - 심플한 시맨틱 마크업 - HTML 작업은 웹 표준에 입각해서 심플하면서도 분명하게 작업해야 한다. - header, article, footer 같은 엘리먼트들을 과감하게 사용한다. ( 단, 하위 브라우저에서도 UI가 깨지지 않도록 작업 ) - 뷰포트 메타데이터 일반적으로 스마트폰 브

Naver Blog

oracle offset limit ( 오라클 페이징 처리 )

오라클은 12버전부터 offset과 limit가 추가되었다. 그 이전 버전은 존재하지 않음. 12 이전 버전은 페이징 처리를 직접 해야 함. 1. 12 이전 버전 SELECT * FROM ( SELECT a.*, ROWNUM AS "rnum" FROM ( <사용자 정의 쿼리 QUERY> ) a WHERE ROWNUM <= end_number ) a WHERE rnum >= start_number 2. 12 이후 버전 SELECT * FROM table_name ORDER BY column_name OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY;

Naver Blog

META-INF를 이용한 JNDI DB연결

sever.xml에 JNDI를 사용하게 되면 프로젝트를 서버에 올릴때 마다 server.xml을 수정해줘야 하는 번거로움이 있다. 이럴때 META-INF 폴더를 이용하면 간편하게 JNDI를 이용할수 있다. 1.webapp 폴더 아래 META-INF폴더생성 2.context.xml 파일 생성 3.context.xml에 JNDI 추가 <?xml version="1.0" encoding="UTF-8"?> <Context> <Resource name="jndi이름" auth="Container" type="javax.sql.DataSource" driverClassName="드라이버" loginTimeout="10" maxWait="5000" username="아이디" password="비밀번호" testOnBorrow="true" url="접속 주소" /> </Context> 4.어플리 케이션에서 JNDI호출 ex)스프링 <bean id="dataSource" class="org.spri

Naver Blog

HTML 태그 제거

http://okky.kr/article/111879 OKKY | HTML 태그 제거 메소드 입니다. HTML 태그 제거 메소드 입니다. html 태그는 물런 script 와 style 태그까지 없애며 순수하게 내용만 가지고 옵니다. 돌려 보시고 조언부탁드립니다. public String htmlRemove(String str) { StringBuffer t = new StringBuffer( okky.kr http://itmir.tistory.com/474 [Java] HTML 태그(Tag) 삭제하기 HTML을 파싱하고난후 결과를 받아보면 HTML의 태그가 존재하는 경우가 간혹 있습니다 <p>안녕하세요<img>~</img></p> 여기서 "안녕하세요"만 얻고 싶은대 <img>까지 같이 오는 경우 아래 메소드로 HTML 태그 삭제가 가능합니다 public String RemoveHTMLTag(String changeStr){ if(changeStr != null && !changeS

Naver Blog

브라우저 캐싱 방지 ( no-cache 설정 )

1. HTML <META http-equiv="Expires" content="-1"> <META http-equiv="Pragma" content="no-cache"> <META http-equiv="Cache-Control" content="No-Cache"> 2. ASP <% Response.Expires = 0 Response.AddHeader "Pragma","no-cache" Response.AddHeader "Cache-Control","no-cache,must-revalidate" %> 3. JSP <% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0); if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control",

Naver Blog

안드로이드 크롬 웹 디버깅. Web debugging on Android.

1. 휴대폰을 디버깅 모드로 변경 (1) 설정모드로 지입하여 디바이스 정보를 Click (2) 소프트웨어 정보 Click (3) 빌드번호를 7회 이상 클릭 - 3번까지 하면 개발자 옵션이 생긴다. http://blog.naver.com/hunees/220758426819 안드로이드 개발자 모드실행 안드로인드 4.0 이하 버젼에선 설정 모드에서 바로 개발자 설정으로 들어갈 수 있었으나 요즈음 마시멜... blog.naver.com 2. PC 크롬에서 아래 주소로 접속 후 inspect 버튼 클릭 chrome://inspect/#devices http://fimtrus.tistory.com/95 안드로이드 용 크롬 웹 디버깅. Web debuging on Android. 예전에는 아래와 같은 방법으로 불편(?)하게 디버깅을 했었는데 킷캣 이상버전부터는 앱에 내장되어 있는 웹뷰에 대해서도 디버깅을 지원한다. (앱에 약간의 코딩을 해준다면...) 먼저 킷캣 이하버전에선 아래의 코드가 동작

Naver Blog

web chrome에서 isp 호출

// 안드로이드의 경우 function callAppScheme(tid) { window.location.href="intent://TID=" + tid + "#Intent;scheme=ispmobile;package=kvp.jjy.MispAndroid320;end"; } // 아이폰의 경우 function callIOSAppScheme(tid) { window.location.href="ispmobile://TID=" + tid; } 기존에는 아래와 같이 만들었으나 크롬이 패치되면서 크롬에서 차단함 <iframe src="intent://TID=" + tid + "#Intent;scheme=ispmobile;package=kvp.jjy.MispAndroid320;end"></iframe> 그래서 iframe으로 test.jsp를 만들어서 호출하고 test.jsp에서 parent.callAppScheme(tid)를 호출하였는데 자꾸 이전페이지로 자동 이동하는 버그 발생하였음. tes

Naver Blog

footer 만드는 방법

1. content 영역 position: relative; min-height: 700px; z-index: 100; /* 스크롤이 맨 아래로 내려올 경우나 스크롤이 없을 경우에만 footer가 보이게 할 경우사용 */ margin-bottom: 68px; /* footer의 height 와 같은 값. 스크롤이 맨 아래로 내려올 경우나 스크롤이 없을 경우에만 footer가 보이게 할 경우사용 */ background: #ffffff; 2. footer 영역 position: fixed; /* 스크롤이 맨 아래로 내려올 경우나 스크롤이 없을 경우에만 footer가 보이게 할 경우사용 */ bottom: 0; /* 스크롤이 맨 아래로 내려올 경우나 스크롤이 없을 경우에만 footer가 보이게 할 경우사용 */ width: 100%; /* 스크롤이 맨 아래로 내려올 경우나 스크롤이 없을 경우에만 footer가 보이게 할 경우사용 */ z-index: 99; /* 스크롤이 맨 아래로 내려

Naver Blog

결제 회사 용어 정리

1. 캐시백 ( Cash-back ) 서비스 - 카드 결제 시 현금을 인출할 수 있게 해주는 캐시백(Cash-back) 서비스 - 편의점이나 마트 등에서 물건을 사면서 카드에 연결된 은행 계좌를 통해 현금을 인출하는 서비스로 만원짜리 물건을 사고, 3만원을 결제하면 차액인 2만원을 현금으로 돌려받는 것 * 관련기사 http://www.newstomato.com/ReadNews.aspx?no=673138 금감원 '캐시백 서비스' 내달 가이드라인 공개 카드 결제 시 현금을 인출할 수 있게 해주는 캐시백(Cash-back) 서비스 최종 가이드라인이 다음 달에 공개된다. 주무 부처인 금융감독원이 '20대 금융관행 개혁과제'의 일환으로 캐시백 서비스를 선정한 만큼, 연내 도입을 위해 속도를 내는 모양새다.이번에 발표되는 가이드라인에는 인출 한도와 이용 가능한 카드, 해외사례, 수수료 원칙 등 큰 틀이 담길 예정이다.금융감독원은 18일 시중은행 부행장급으로 구성된 캐시백 서비스 도입 태스크포스

Naver Blog

지식인에 소스코드 올리는 방법

출처 : http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10601&docId=154505265&qb=7KeA7Iud7J24IOy9lOuTnA==&enc=utf8&section=kin&rank=1&search_sort=0&spq=1&pid=S%2BA9rdoRR18ssZWMMDZsssssstC-155975&sid=tO0KcZRg2B8fxspuIO6NQg%3D%3D 지식인에 소스코드 어떻게 올리는지 궁금합니다. 아래 이미지 처럼 소스코드 어떻게 올리는지 궁금합니다. 관련지식인 링크 : http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10402... kin.naver.com

Naver Blog

윈도우 10 업데이트 이후 스티커 메모 사라짐 현상

윈도우가 업데이트 되면서 스티커 메모가 시작 프로그램에서 보이지 않는 문제가 있습니다. 이 경우 1. 시작메뉴에서 Sticky Notes를 실행하시면 됩니다. ( 이건 스티커메모는 아니고 윈도우 앱 입니다. ) 2. 윈도우 탐색기에서 stikynot 를 검색 한 후에 WinSxS 폴더에 있는 StikyNot.exe를 실행하시면 됩니다.

Naver Blog

javascript history object

1. 설명 문맥에 필요한 Document 들의 연속을 세션 히스토리라고 합니다. History 객체는 문맥의 세션 히스토리에 들어 있는 페이지들을 나타냅니다. 각각의 문맥(중첩된 문맥을 포함)은 유일한 세션 히스토리를 갖습니다. 2. The History Interface [code] interface History { readonly attribute long length; void go(in optional long delta); void back(); void forward(); /* 주어진 타이틀로, 주어진 데이터를 세션 히스토리에 씁니다. URL이 주어졌다면 함께 적용합니다. */ void pushState(in any data, in DOMString title, in optional DOMString url); /* 주어진 타이틀과 세션 히스토리의 현재 항목을 갱신합니다. URL이 주어졌다면 함께 적용합니다. */ void replaceState(in any data,

Naver Blog

iframe auto resize

<iframe src="..." frameborder="0" scrolling="no" onload="resizeIframe(this)" /> <script> function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; } </script> 출처 : http://stackoverflow.com/questions/9975810/make-iframe-automatically-adjust-height-according-to-the-contents-without-using Make iframe automatically adjust height according to the contents without using scrollbar? For example: <iframe name="Stack" src="http://stackoverflow.com/" width="740" f

Naver Blog

동적 table

[code] .list-tb { border-collapse: collapse; } .list-tb tr th { padding: 0 10px; white-space: nowrap; height:25px; background-color:#bccfe3; font-weight:bold; color: #FFF; border: 1px solid #ede9e3; } .list-tb tr td { white-space: nowrap; padding: 0 10px; height: 25px; border: 1px solid #ede9e3;} .list-tb tr:nth-child(odd) { background-color:#F7F7F7; } [/code]

Naver Blog

gmail 아웃룩 설정

1. 컴퓨터에서 Gmail을 엽니다. 2. 오른쪽 상단에서 환경설정 을 클릭합니다. 3. 환경설정을 클릭합니다. 4. 전달 및 POP/IMAP 탭을 클릭합니다. 5. POP 다운로드를 활성화 합니다. 6. 내 계정으로 들어갑니다. 7. 로그인 및 보안으로 들어갑니다. 8. 연결된 앱 사이트에서 보안수준이 낮은 앱 허용을 사용 으로 변경합니다. 9. 아웃룩을 실행합니다. 10. 수동 설정 또는 추가 서버 유형을 선택하고 다음을 클릭합니다. 11. POP 또는 IMAP을 선택하고 다음을 클릭합니다. 12. 기본정보를 입력합니다. - 받는 메일 서버 : pop.gmail.com - 보내는 메일 서버 : smtp.gmail.com 13. 기타설정을 클릭합니다. 14. 보내는 메일 서버 탭에서 보내는 메일 서버 인증필요를 클릭합니다. 15. 고급 탭을 클릭하고 값을 입력합니다. - 받는 메일 서버 : 965 또는 995 - 암호화된 연결(SSL) 필요 클릭 - 보내는 메일 서버 : 465 -

Naver Blog

@ResponseBody로 String 처리할때 한글처리

<mvc:annotation-driven> <mvc:message-converters> <!-- @ResponseBody로 String 처리할때 한글처리 --> <bean class="org.springframework.http.converter.StringHttpMessageConverter"> <property name="supportedMediaTypes"> <list> <value>text/html;charset=UTF-8</value> </list> </property> </bean> </mvc:message-converters> </mvc:annotation-driven>

Naver Blog

WINDOWS SERVER 2008 IIS SMTP 설정

1. 제어판으로 이동 2. 프로그램 및 기능 3. Windows 기능 사용/사용안함 4. 역할 > 웹 서버(IIS) > 역할 서비스 추가 5. 체크되어있는 항목 체크 6. IIS(인터넷 정보 서비스) 6.0 관리자 7. SMTP 가상서버를 생성 후 접근가능 IP, 로깅 방식 등 설정

Naver Blog

Mysql - Alter a column to be AUTO_INCREMENT

ALTER TABLE document MODIFY COLUMN document_id INT auto_increment

Naver Blog

convert json to map

HashMap<String,Object> result = new ObjectMapper().readValue(JSON_SOURCE, HashMap.class);

Naver Blog

custom URI로 exe를 실행 할 경우 예외처리

exe를 브라우저에서 실행하려고 할 경우에 경고창이 뜨는 문제가 발생. [해결방법] [IE] - Registry 이용 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\ProtocolExecute\프로그램이름] "WarnOnOpen"=dword:00000000 [Crome] 크롬의 경우에는 %appData%로 이동 후 상위 폴더로 가서 \Local\Google\Chrome\User Data\Local State 파일을 열어서 /protocol_handler/excluded_schemes/XXXXXXXXXXXX:false 로 설정 하면 되는데.. 문제는 해당 파일에 variations_compressed_seed 라는 값이 존재하여 같지 않으면 원복을 시켜버림

Naver Blog

사용자 계정 컨트롤 (UAC) 설정 변경 방법

시작메뉴에서 uac검색 * 윈도우키 + R 에서는 동작하지 않음

Naver Blog

windows device(machine) uuid

1. wmic csproduct get uuid -> windows xp에서 동작하지 않음 2. regedit에서 HKLM\SOFTWARE\Microsoft\cryptography -> 변조 가능 3. 별도의 프로그램에서 smbios의 uuid를 구한다. -> xp에서 정상동작으로 확인 #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") int main(int argc, char **argv) { HRESULT hres; // Step 1: -------------------------------------------------- // Initialize COM. ------------------------------------------ hres = CoInitializeEx(0, CO

Naver Blog

SVN 단축키 설정

1. Window > Customize Perspective... 메뉴를 선택한 후, Commad Groups Availability 탭을 선택하여 Available comand gruops 에서 SVN 항목을 체크 2. Window > Preferences > Keys 로 이동 후 Binding에서 commit, update의 단축키 설정

Naver Blog

log4j java 설정

1. web.xml에 아래 코드 추가 <servlet> <servlet-name>ServletContextListenerImpl</servlet-name> <servlet-class>Servlet.listener.ServletContextListenerImpl</servlet-class> <load-on-startup>0</load-on-startup> </servlet> 2. java class 추가 package Servlet.listener; import java.io.File; import java.util.StringTokenizer; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.DailyRollingFileAppender; import org.apache.log4j

Naver Blog

[svn] 이클립스(eclipse)에서 특정 폴더 및 파일을 버전관리 대상에서 제외하는 방법

class, classpath와 같은 파일들은 각 서버나 PC의 환경이 모두 다르기 때문에 버전관리를 하지 않아도 됩니다. 이 경우 이클립스에서 버전관리에서 제외하는 방법은 아래와 같습니다. 1. Window > Preferences 메뉴로 이동 2. Team > Ignored Resources 로 이동 3. Add Pattern 버튼을 클릭하여 아래와 같은 패턴 등록 - */classes - */classes/** 출처 : http://zzznara2.tistory.com/694 [Svn] 이클립스(eclipse)에서 특정 폴더 및 파일 버전관리 대상에서 제외하는 방법 컴파일되는 폴더나 파일들... .classpath 같은 파일들은 각 서버나 PC의 환경이 모두 다르기 때문에 굳이 버전관리를 하지 않아도 됩니다. 이런 경우, 이클립스에서 어떻게 버전관리에서 제외하는지 알아보겠습니다. classes 폴더 및 그 하위 폴더 및 파일들을 모두 제외하려면... */classes */cla

Naver Blog

jquery stringify

jQuery.extend({ stringify : function stringify(obj) { // if ("JSON" in window) { // return JSON.stringify(obj); // } var t = typeof (obj); if (t != "object" || obj === null) { // simple data type if (t == "string") obj = '"' + obj + '"'; return String(obj); } else { // recurse array or object var n, v, json = [], arr = (obj && obj.constructor == Array); for (n in obj) { v = obj[n]; t = typeof(v); if (obj.hasOwnProperty(n)) { if(null === v || undefined === v) { v = ""; } if (t == "string") { v =

Naver Blog

svn에 폴더내의 전체 파일이 아닌 일부 파일만 관리

1. svn 저장소에 폴더를 추가 2. 관리할 최상위 폴더에서 마우스 오른쪽 클릭 후 SVN checkout 클릭 3. 나타나는 팝업에서 관리할 파일만 선택 4. OK 클릭 5. 다시 폴더에서 마우스 오른쪽 클릭하여 commit

Naver Blog

[nsis] tomcat service java option 변경 - java utf-8

tomcat 옵션에 -Dfile.encoding=utf8 을 등록해야 하는 상황이됨. //US//Tomcat7 ++JvmOption 을 이용하면 추가되지만, 패키지를 지웠다 다시 깔 때마다 utf이 계속 추가되는 상황 발생 --JvmOptions는 기존에 있던 옵션을 모두 지우고 하나만 남겨두는 옵션이라 사용 불가 최종적으로 -- 옵션을 이용하여 모두 삭제 한 뒤 기존 옵션을 추가하고 utf8로 추가하도록 함. ExecWait '"$StrWasDbSetupDir\Tomcat\bin\Tomcat7.exe" //US//Tomcat7 --JvmOptions=-Dcatalina.home="$StrWasDbSetupDir\Tomcat"' ExecWait '"$StrWasDbSetupDir\Tomcat\bin\Tomcat7.exe" //US//Tomcat7 ++JvmOptions=-Dcatalina.base="$StrWasDbSetupDir\Tomcat"' ExecWait '"$StrWasDb

Naver Blog

자바스크립트 확인창 무시하기 : 지금 보고 있는 웹 페이지에서 창을 닫으려고 합니다. 이 창을 닫으시겠습니까?

보통 윈도우 창을 닫을 때 보통 window.self.close(); 를 사용하는데 이 경우 IE 버전에 따라 '지금 보고 있는 웹 페이지에서 창을 닫으려고 합니다. 이 창을 닫으시겠습니까?' 이런 alert 창이 뜬다. 이 창을 안보이게 하기 위해 검색을 해보니 window.open('about:blank', '_self').close(); 를 하면 된다고 되어있는데 특정 상황에서 문제가 발생. window.open('about:blank', '_self'); opener=window; window.close(); 이렇게 하면 된다.

Naver Blog

DB(sql)를 읽어서 apache spark에 밀어넣기

DB(sql)를 읽어서 apache spark에 밀어넣기 [참조] - https://github.com/sujee81/SparkApps/commit/84c1192aedb5745ca85c3542298a56ecce74d83d Load DB data into Spark Dataset with Spark v2.0.0 · sujee81/SparkApps@84c1192 github.com * 참고사항 위 URL에서는 [code] private static final SparkSession sparkSession = SparkSession.builder().master("local[*]").appName("Spark2JdbcDs").getOrCreate(); [/code] 위와 같이 되어있는데 이 경우 java.net.URISyntaxException 오류 발생 1. JAVA [code] package ddd.dddd; import java.util.List; import java.util.Pr

Naver Blog

ResultSet to JSON

출처 : http://stackoverflow.com/questions/18960446/how-to-convert-a-java-resultset-into-json How to convert a Java resultset into JSON? I have a resultset as a result of a MySQL query using the JDBC connector. So my job is to convert the resultset into a JSON format. So that I can send it to the clientside as a AJAX response. Can s... stackoverflow.com Apache-DBUtils,Gson 사용 [code] public static String resultSetToJson(Connection connection, String query) { List<Map<String, Object>> listOfMaps = nu

Naver Blog

SYS_CONNECT_BY_PATH mysql ( tree 구조의 계층 표시 )

[code] CREATE DEFINER=`prcsadmin`@`%` FUNCTION `menu_sys_connect_by_path`( `rootId` VARCHAR (50), `langCode` VARCHAR(3) ) RETURNS varchar(1000) CHARSET utf8 LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT '' BEGIN DECLARE sParentList VARCHAR (1000); DECLARE sParentTemp VARCHAR(1000); DECLARE sParentNameTemp VARCHAR(1000); SET sParentTemp =CAST(rootId AS CHAR); WHILE sParentTemp IS NOT NULL DO IF (sParentList IS NOT NULL) THEN SET sParentList = CONCAT(sParentNameTemp,' >

Naver Blog

[javascript] 오늘 하루동안 이 창을 열지 않음 ( 팝업,레이어팝업 )

1. HTML // (오늘) 하루동안 열지 않기(소스) <div id="div_laypopup" align="center" style="display:none;border-width:0px;Z-INDEX: 201; POSITION: absolute;left:528px; top:640px;"> <input type="checkbox" name="close" value="OK" onclick="javascript:closeWin('div_laypopup', 1);"/>하루동안 이 창을 열지 않음 <!-- <input type="checkbox" name="close" value="OK" onclick="javascript:closeWinAt00('div_laypopup', 1);"/>오늘만 이 창을 열지 않음 --> </div> <script type="text/javascript"> <!-- openWin('div_laypopup'); --> 2. javascript <script l

Naver Blog

Convert a binary to decimal using MySQL

CONV(BINARY(CONCAT(setting1, setting2)), 2, 10) oracle = bin_to_num

Naver Blog

oracle -> mariadb(mysql) conversion

DECODE(#SESSION_LANG#,'','KO',#SESSION_LANG#) -> IFNULL(#SESSION_LANG#,'KO')

Naver Blog

eclipse에서 server log ( tomcat log )를 저장하는 방법

1. 서버를 더블클릭 2. "Open launch configuration"을 클릭 3. "Common" 탭을 클릭 4. "File"을 체크하고 경로 및 파일명 지정 5. 서버 재시작

Naver Blog

체크박스(checkbox)와 텍스트(text)의 높이 조정하기 ( 라벨(label)을 사용할 경우 )

체크박스와 라벨을 같이 사용할 경우 높이가 맞지 않는 경우가 발생할 수 있다. 이 경우 checkbox의 스타일을 아래와 같이 하면 된다. position: relative; top: 1px; /* top의 높이는 유동적으로 조절 */

Naver Blog

공유(cifs, smbfs)를 외부망에서 사용 ( 139, 445 port ) [작성중]

윈도우의 파일 공유는 NETBIOS 기반으로 제작되었지만, CIFS가 되면서 TCP/IP기반으로 변경 되었습니다. 즉, 내부망이 아닌 외부망에서 자유롭게 사용 가능합니다. 하지만, 보안에 취약하기 때문에 인터넷 업체들이 139, 445 port를 차단했습니다. ( \\8.8.8.8 과 같이 역슬레시 2개로 접근 하는 방법이 차단되었습니다. ) 또한 윈도우의 파일 공유는 포트를 변경 할 수 없고, 변경된 포트로 접근할 수도 없습니다. 따라서 rinetd를 이용하여 포트를 리다이렉트 시켜서 사용합니다. 1. 사용하는 프로그램 - rinetd : https://boutell.com/rinetd/ - 리눅스용, 윈도우용 모두 존재 - hiddenstart : http://www.ntwind.com/software/utilities/hstart.html - rinetd의 콘솔창을 안보이게 하는 용도로 사용. 2. 사용법 ( 클라이언트 ) 2.1 loopback 어뎁터 등록 2.1.1 UI로

Naver Blog

java - network drive connect ( 네트워크 드라이브 연결 )

[code] NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null, "[윈도우계정ID]", "[윈도우계정 비밀번호]"); String path = "smb://8.8.8.8/[네트워크이름]/public/개인정보출력테스트.txt"; String copyPath = "smb://8.8.8.8/[네트워크이름]/public/111111111122222223333333333333.txt"; SmbFile sFile = null; SmbFile sDestFile = null; try { sFile = new SmbFile(path, auth); sDestFile = new SmbFile(copyPath, auth); sFile.copyTo(sDestFile); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } finally {

Naver Blog

mysql 날짜검색시 between 안에 포함되는 날짜전체 출력

select a.Date from ( select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as Date from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b cross

Naver Blog

windows NetBIOS over TCP/IP 사용 안함으로 변경

1. 사용안함으로 변경 wmic nicconfig where Description="Microsoft Loopback Adapter" call SetTcpipNetbios 2 2. 값 확인 wmic nicconfig get caption,index,TcpipNetbiosOptions 3. value The SetTcpipNetbios parameter can have this value: 0 – Use NetBIOS setting from the DHCP server 1 – Enable NetBIOS over TCP/IP 2 – Disable NetBIOS over TCP/IP

Naver Blog

windows &quot;LMHost 조회가능&quot; 체크/체크해제

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters 의 EnableLMHOSTS의 값을 변경한다. 1 : 체크 0 : 체크해제 * 이 옵션을 사용할 경우 모두 드라이브에 값이 변경된다.

Naver Blog

Windows 방화벽: 로컬 포트 예외 허용

지원: Windows XP Professional SP2 이상 Registry Hive HKEY_LOCAL_MACHINE Registry Path SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\GloballyOpenPorts Value Name AllowUserPrefMerge Value Type REG_DWORD Enabled Value 1 Disabled Value 0

Naver Blog

[windows] cmd에서 ip 변경

wmic nicconfig where Description="Microsoft Loopback Adapter" call enablestatic (10.0.0.1),(255.255.255.0) wmic nicconfig where Description="Microsoft Loopback Adapter" call setgateways(10.0.0.254) description 확인 -> wmic nicconfig get description

Naver Blog

Axis2로 Web Service 만들기 (spring + maven + axis2 ( soap ))

[환경] JAVA 8 ( jdk 1.8.0_131 ) Tomcat 8.0.44 1. pom.xml 설정 <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2</artifactId> <version>1.6.2</version> <type>pom</type> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-jaxbri</artifactId> <version>1.6.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> <type>jar</type> <scope>test</scope> </dependency> <dependency>

Naver Blog

JAVA SOAP ( AXIS2 )

1. 환경 - jdk1.8 - tomcat 8 - eclipse 2. Server 2.1 이클립스 환경 설정 2.1.1 axis2 다운로드 - 아래의 주소에 접속하여 Binary 버전 다운로드하고 압축해제 한다. - http://axis.apache.org/axis2/java/core/download.cgi - org.apache.axis2.eclipse.codegen.plugin_1.7.5.jar를 다운받아서 eclipse\dropins 폴더에 넣는다. - jsr311-api-1.1.1.jar를 lib 폴더에 넣는다. - xmlschema-core-2.2.1.jar를 lib 폴더에 넣는다. 2.1.2 이클립스 환경 설정 - [Window - Preferences - Web Services - Axis2 Preferences] 메뉴에서 Axis2 runtime location에 압축 해제한 경로를 지정한다. - 경로 지정 후 Axis2 runtime loaded successful

Naver Blog

DB key값이 무조건 대문자로 return 될 때 해결 방법

CaseInsensitiveMap (Apache Commons Collections 4.1 API) 으로 리턴

Naver Blog

윈도우 공유 폴더 설정하기

net share 명령어 ============================================================== 1. 명령어 net share 공유명=공유위치 /grant:유저명,권한 ex) net share DHubDrive="C:\Dhub" /grant:kim,full /grant:hong,change 2. 권한종류 read, change, full 3. 공유 삭제 net share 공유명 /delete 4. net share /? NET SHARE sharename sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]] [/USERS:number | /UNLIMITED] [/REMARK:"text"] [/CACHE:Manual | Documents| Programs | BranchCache | None ] sharename [/USERS:number | /UNLIMITED] [/REMARK:"text"]

Naver Blog

윈도우 공유 폴더 접근 권한 설정

net use 공유폴더이름 /user:접근허용계정 계정의비밀번호 ex) net use DHubDrive /user:hong pw1234

Naver Blog

NSIS에서 Loopback adapter 설치

1. devcon 다운로드 - https://developer.microsoft.com/ko-kr/windows/hardware/windows-driver-kit WDK(Windows 드라이버 키트) 및 관련 도구 다운로드 – Windows 10 하드웨어 개발자 센터 Windows 10, Visual Studio 및 WDK 시작 Visual Studio 2015 및 WDK 10을 함께 사용하면 Windows 10이 실행되는 디바이스에 효율적인 고품질 드라이버를 만들 수 있는 통합 개발 환경이 구현됩니다. Visual Studio에는 Visual Studio Tools for Windows 10 및 Windows 10용 Microsoft Windows SDK(소프트웨어 개발 키트)가 포함되어 있습니다. 도구를 설치하고 Windows 드라이버를 빌드, 테스트, 디버그 및 배포하세요. 드라이버 개발의... developer.microsoft.com 2. nsis에서 설치 명령어 ; 설치

Naver Blog

NSIS 시작 프로그램에 등록하기

WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "Display Name" "프로그램 경로" 1. 등록 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "hstart_rinetd" "$INSTDIR\rinetd\hstart_rinetd.bat" 2. 삭제 DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "hstart_rinetd"

Naver Blog

NSIS 파일 전체 복사 ( 폴더 복사 )

; 복사할 destination 폴더 생성 CreateDirectory "$INSTDIR\rinetd" ; destination 폴더 지정 SetOutPath "$INSTDIR\rinetd" ; source 폴더 지정 File /nonfatal /a /r ".\Resources\rinetd\"

1 2 3 4 5 6 7 8 9 10