기본 콘텐츠로 건너뛰기

6월, 2016의 게시물 표시

프로그래머를 위한 에디터 테마 및 폰트

테마 - Dark Wins White There has been a lot of research on this topic since the 1980s and a lot of it still holds true today. One study from the 1980s states this: However, most studies have shown that  dark characters on a light background are superior to light characters on a dark background (when the refresh rate is fairly high).  For example, Bauer and Cavonius (1980) found that participants were 26% more accurate in reading text when they read it with dark characters on a light background. Reference: Bauer, D., & Cavonius, C., R. (1980). Improving the legibility of visual display units through contrast reversal. In E. Grandjean, E. Vigliani (Eds.), Ergonomic Aspects of Visual Display Terminals (pp. 137-142). London: Taylor & Francis The reason why this matters is because of focus. As  this article on UXMovement  states, "white stimulates all three types of color sensitive visual receptors in the human eye in nearly equal amounts." It causes the eye to fo

좋은 펀드 고르기

펀드는 유형이 다양 하고, 같은 유형 안에서도 수많은 상품이 존재 한다. 때문에 수익률만 따질게 아니라 , BenchMark 를 따져야 한다. 기준가격(기준가) 특정 시점의 집합투자증권(펀드)의 일정단위(보통 1,000좌)당 순자산가액을 의미하며, [펀드의 순자산가액 /잔존 총좌수*1000]의 식으로 계산한다. 거래단위(보통 1,000좌)당 분배가능금액의 의미를 가지며, 집합투자증권의 운용회사가 일별로 산출하여 공시한다. 운용사의 홈페이지 또는 금융투자협회 공시시스템을 통해 확인할 수 있다. 수익률 (환매시 기준가/가입시기준가-1)X100 BM (BenchMark)  펀드가 세운 자산 운용 목표를 나타내는 것으로, 펀드 운용성과를 측정하는 기준이 된다. 벤치마크 기준 주식형 펀드 : KOSPI200 지수 , MMF : 콜금리나 양도성 예금증서 금리 채권형 펀드 : 3년만기 국고채, 1년만기 통화안정 채권의 금리 KOSPI200 지수 를 BM 으로 하는 주식형 펀드가 일정기간동안, KOSPI200 지수가 10% 상승 했는데, 펀드가 15% 수익을 올렸다고 하면, 이 펀드는 우수한 펀드라고 할 수 있다. 수익률과 BM 수익률이 둘 다 좋은지 살펴보고, 3개월 6개월 등 짧은 기간이 아닌 1년 이상 꾸준히 BM 수익률을 초과 했는지가 중요함 표준편차 수익률의 변동성을 측정한 값, -- 편차가 클수록 변동성이 심하고 위험 -- 편차가 작으면 안정된 수익률 덜 위험 베타 벤치마킹 지수의 변화에 따른 펀드 수익률의 변화를 측정한 값 , 베타가 1이면 펀드 수익률이 BM 수익률과 똑같이 움직임. 시장이 좋을때는 베타값이 높은 펀드에 투자, 주식 시장이 나쁠때는 베타값이 높은 펀드에 투자. 샤프지수 시장이나 펀드의 가격이 변하는 상황에서 얼마나 많은 수익률을 낼 수 있는지나타내는 값. 샤프 지수 값이 높을 수록 위험대비 수익률이 우수 함. 트레이너지수 펀드의 베타계수 한 단위당 무위험

java jdbc result json mapper

>code>package com.example; import java.sql.*; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; public class DbMapper { public static JsonArray select(String sql) throws Exception{ Connection dbConnection = CommonConstant.getDbConn(); Statement getFromDb = dbConnection.createStatement(); ResultSet rs = getFromDb.executeQuery(sql); ResultSetMetaData rsmd = rs.getMetaData(); JsonArray recordsArray = new JsonArray(); int numColumns = rsmd.getColumnCount(); String[] arrColumnNames = new String[numColumns]; int[] columnTypes = new int[numColumns]; for (int i = 0; i < arrColumnNames.length; i++) { arrColumnNames[i] = rsmd.getColumnLabel(i + 1); columnTypes[i] = rsmd.getColumnType(i + 1); /*System.out.print(i + " : "); System.out.print(columnNames[i]); System.out.print(i + " = "); System.out.print(columnTypes[i

angularjs 게시판 및 페이징

<table class="basicTb noticeTb"> <thead> <tr> <th>종류</th> <th width="150px">섹터</th> <th>제목</th> <th>등록자</th> <th>등록일</th> </tr> </thead> <tbody id="tb_content"> <!-- <tr> <td class="agC"><span class="bxRed">뉴스</span></td> <td><span class="bxA"><em>A</em>자동차</span></td> <td>현지 주 정부 재협상 요구... 기아차 멕시코 공장 급제동</td> <td class="agC">Peter</td> <td class="agC">2016-05-09</td> </tr> <tr> <td class="agC"><span class="bxDblue">공시</span></td> <td><span class=&q

angularjs ui routing 적용

angularjs ui routing 적용 메뉴 추가 및 컨트롤러 없는 html 적용 # 해시맵 사용 /src/main/resources/static/index.html /src/main/resources/static/home.html /src/main/resources/static/company.html /src/main/resources/static/js/hello.js index.html hello.js home.html company.html <!doctype html> <html> <head> <title>Hello AngularJS</title> <link href="css/angular-bootstrap.css" rel="stylesheet"> <style type="text/css"> [ng\:cloak], [ng-cloak], .ng-cloak { display: none !important; } </style> </head> <body ng-app="hello"> <div class="container"> <h1>Greeting</h1> <div ng-controller="homeController as home" ng-cloak class="ng-cloak"> <p>The ID is {{home.greeting.id}}</p> <p>The content is {{home.greeting.content}}</p> <a href="#/home">home</a> | <a href="#/company&

angularjs ui routing 적용

angularjs ui routing 적용 메뉴 추가 및 컨트롤러 없는 html 적용 # 해시맵 사용 /src/main/resources/static/index.html /src/main/resources/static/home.html /src/main/resources/static/company.html /src/main/resources/static/js/hello.js index.html hello.js home.html company.html <!doctype html> <html> <head> <title>Hello AngularJS</title> <link href="css/angular-bootstrap.css" rel="stylesheet"> <style type="text/css"> [ng\:cloak], [ng-cloak], .ng-cloak { display: none !important; } </style> </head> <body ng-app="hello"> <div class="container"> <h1>Greeting</h1> <div ng-controller="homeController as home" ng-cloak class="ng-cloak"> <p>The ID is {{home.greeting.id}}</p> <p>The content is {{home.greeting.content}}</p> <a href="#/home">home</a> | <a href="#/company&

maven Angular js 설정

Angular js 시작 hello world using json /pom.xml webjar 를 통한 angularjs 실행 설정 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dangun</groupId> <artifactId>boot</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.5.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId>

메이븐 웹 프로젝트 tomcat 배포

메이븐 웹 프로젝트 tomcat 배포 이클립스 톰캣 서버 위치 변경 톰캣 서버 사용자 추가 C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\tomcat-users.xml <?xml version='1.0' encoding='cp949'?> <tomcat-users xmlns="http://tomcat.apache.org/xml"               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"               xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"               version="1.0"> <role rolename="manager-script"/> <user username="admin" password="admin" roles="manager-script"/> </tomcat-users> role 과 사용자를 추가 하였다. maven-war-plugin , tomcat-maven-plugin 추가 및 설정 추가 한 부분은 build node 아래 plugins 노드에 있다. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&qu

2.1. json 규격

java script code 공통부 , 데이터부 로 나뉜다. { common : { msg_code : "0000", msg : "성공" }, data :{ result_1 : [], result_2 : null } } 데이터부는 없을 수 있지만 , 공통부(common)는 항상 존재 한다. 1. 리스트 데이터 { common: { msg_code: "0000", msg: "성공" }, data: { result_1: [ { "NOTE_ID": 8044, "NOTE_CATEGORY": "뉴스", "NOTE_SECTOR": "증권", "NOTE_DATE": "2016-04-18", "NOTE_WRITER": "peter", "NOTE_CONTENT": "안방에서 ISA 가입한다. 일임형에만 온라인 계약 허용 [연합뉴스]\n-", "NOTE_WRITE_DTM": null, "NOTE_MODIFY_DTM": null }, { "NOTE_ID": 8036, "NOTE_CATEGORY": "뉴스", "NOTE_SECTOR": "ITHW", "NOTE_DATE": "2016-04-15", "NOTE_WRITER": "peter",