목록전체 글 (192)
낭만 프로그래머
1. Atom 설치https://atom.io/ 2. angular 프로젝트 생성 ng new study 3. Atom 실행 cd study atom . 4. atom-typescript 패키지 설치- atom-typescript 로 검색 후 설치 5. linter 패키지 설치- linter 로 검색 후 설치참고 : https://github.com/steelbrain/linter 6. editorconfig 패키지 설치- editorconfig 로 검색 후 설치참고 : https://github.com/sindresorhus/atom-editorconfig 7. file-icons 패키지 설치- file-icons 로 검색 후 설치참고 : https://github.com/file-icons/atom
1. Node.js 설치http://blog.miyam.net/44 2. Angular CLI 설치 npm install -g angular-cli 3. 프로젝트 생성 ng new firstproject 4. 개발서버 시작 cd firstproject ng serve --host 0.0.0.0 --port 4201 --live-reload-port 49153 5. 운영서버 배포를 위한 빌드 ng build -> dist 폴더가 생성됨. 6. 방화벽 해제 ( 4021 Port)http://blog.miyam.net/7
1. https://nodejs.org/ko/download/ 접속해서 url 확인 하기 2. 다운로드 ( https로 되어 있는 것을 http로 변경 )wget http://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz 3. 압축 해제 tar xf node-v6.10.2-linux-x64.tar.xz 4. 위치 이동 mv ./node-v6.10.2-linux-x64 /usr/local/nodejs 5. Path 설정을 위해 profile 수정 vi /etc/profile맨아래에 추가export NODE_HOME=/usr/local/nodejsexport PATH=$PATH:$NODE_HOME/bin source /etc/profile 6. 필요시 서버..
설치 1. http://yum.postgresql.org/ 를 접속하여 버전을 확인 2. 저장소 설치 rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm 3. 설치 가능 패키지 확인 yum list postgres* 4. 패키지 설치 yum install postgresql96-server postgresql96-contrib postgresql96-devel 5. 링크 생성 ln -s /usr/pgsql-9.6/bin/pg_config /usr/bin/pg_config 6. DB 초기화 service postgresql-9.6 initdb 7. 서비스 시작 ..
프로그램을 하다보면 일반 문자열을 특정 형태의 문자열로 변환해야 할 때가 있다.예를 들면 Json 경우 : , -> \, 또는 ' -> \' 과 같이 문자열이 변환Html 경우 : -> > 과 같이 문자열을 변환 이를 위해서 replace를 계속 사용해야 하는데 쉽게 해주는 라이브러리가 StringEscapeUtils 이다 아래는 구현된 메소드들 이다. 이름만 봐도 뭐하는 것인지 알 것이다 escapeCsv(String input) escapeEcmaScript(String input) escapeHtml3(String input) escapeHtml4(String input) escapeJava(String input) escapeJson(String input) escapeXml..
참조 : http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java /* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Th..
apache.commons.exec : 외부 실행 파일을 간편하게 실행하게 해주는 라이브러리 1. 라이브러리 다운로드 1.1. https://commons.apache.org/proper/commons-exec/ 접속하여 Download 클릭 1.2. commons-exec.1.3.bin.zip 클릭하여 다운로드 2. 예제 2.1. 아크로뱃을 실행 String line = "AcroRd32.exe /p /h " + file.getAbsolutePath(); CommandLine cmdLine = CommandLine.parse(line); DefaultExecutor executor = new DefaultExecutor(); executor.setExitValue(1); int exitValue = e..
1. Eclipse SDK 를 다운로드 1.1. http://www.eclipse.org/pde/ 접속하여 Download 클릭 1.2. Lastest Release 를 클릭 1.3. 자신의 OS에 맞는 파일을 다운로드 2. 예제 만들기 2.1 New -> Other... 클릭 2.2. Plug-in Project 선택 후 Next 2.3. Project name 입력 후 Next 클릭 2.4. This plug-in will make contributions to the UI 체크 해제, Would you like to create a rich client applications? No 선택 후 Next 클릭 2.5. Create a plug-in using one of the templates 체크 ..