기본 콘텐츠로 건너뛰기

9월, 2017의 게시물 표시

Java Excel Large File Download 엑셀 대용량 다운로드 구현

java excel 다운로드는 apache poi 로 구현 한다. was 상에서 엑셀을 poi 로 만들때 용량이 크면 jvm 메모리가 플 나게 되어 있다. 최신버전의 poi 는 엑셀을 만들면서 파일로 저장 할 수 있게 지원 하고 있다. * poi 기본 사용 법 및 파일 생성 예제 -- java 로만 구현 * 엑셀로 저장 할 수 있는 데이터 량 확인 * 대용량 테스트를 위한 데이터베이스 연동 * 테스트 데이터 생성 * 기본 다운로드 구현 * 대용량 다운로드 구현 위 순서로 조금씩 업데이트 해 나가고자 한다. 1. apache poi * 엑셀 제약의 이해  Ms 공식 문서    Total number of rows and columns on a worksheet 1,048,576 rows by 16,384 columns

Jsp 서버 아이피 확인

한줄버전 <% String svrIP =  InetAddress.getLocalHost() .getHostAddress(); %> <%@ page language="java" import="java.net.InetAddress" %> InetAddress inet = InetAddress.getLocalHost(); String svrIP = inet.getHostAddress(); Reference http://yoontaesub.egloos.com/m/1925800

가상화폐 이더리움 링크 모음

PC에 장착된 메모리(램)테스트 프로그램 - TestMem5 Eth-proxy 사용법 소규모 채굴자를 위한 전력관리 1050ti 8way 소비전력 가상화폐채굴 총정리 - 이더리움채굴편 ~~~ Ethereum Homestead Documentation https://eth.nanopool.org http://whattomine.com http://comsclub.com 행복쇼핑 Silent Ethereum Mining On EVGA GeForce GTX 1060 at 22 MH/s 노하드 시스템 직접 만들기 GTX 1060 리눅스 채굴 ethminer-genoil 의 새 버젼이 출시 우분투 리눅스 + NVidia 그래픽 카드 환경에서 채굴기 설정하기 어떤 채굴프로그램을 사용하시나요 우분투 Asus P106 모델 그래픽카드 셋업 질답 코인시세 고잉코인 비트코인 이더리움 dapp 관련 책 질답 계약전력 기준 대수 계산 전자화폐에 뛰어들게 만들었던 박경철 강의

Ssh java send command example jcsh

예제 :  http://www.jcraft.com/jsch/examples/Logger.java.html JSch jsch=new JSch(); Session session=jsch.getSession(remoteHostUserName, RemoteHostName, 22); session.setPassword(remoteHostpassword); Properties config = new Properties(); config.put("StrictHostKeyChecking", "no"); session.setConfig(config); session.connect(); ChannelExec channel=(ChannelExec) session.openChannel("exec"); BufferedReader in=new BufferedReader(new InputStreamReader(channel.getInputStream())); channel.setCommand("pwd;"); channel.connect(); 접속 하니 Algorithm negotiation fail 에러가 뜬다 에러 내용을 더 자세히 보기 위해 com.jcraft.jsch.Logger 를 임플리먼트 해서 Jcsh.setLogger 에 추가 해서 상세 내용을 본다 https://stackoverflow.com/questions/16468475/sending-commands-to-remote-server-through-ssh-by-java-with-jsch 결론은 jce.jar 강제 업데이트 By default, JCE policies -which come with your JDK or JRE- don't support such techniques for ciphering like (ase-256,.. etc). For sure you MUST replace your c

Jsp use out from method

<%! private void myFunc ( String Bits , javax . servlet . jsp . JspWriter myOut ) { try { myOut . println ( "<div>" + Bits + "</div>" ); } catch ( Exception eek ) { } } %> ... <% myFunc ( "more difficult than it should be" , out ); %> https://stackoverflow.com/questions/138999/how-to-output-html-from-jsp-block

도스 파일 편집 dos cmd file edit

From a windows command prompt enter  copy con  followed by the target file name. ( copy con c:\file.txt ) Then enter the text you want to put in the file. End and save the file by pressing  CTRL - Z  then  Enter  or  F6  then  Enter . If you want to change text in an existing file simply display the text by using the command  type  followed by the file name and then just copy and paste the text in to the  copy con  command. Reference https://superuser.com/questions/186857/how-do-i-edit-text-files-in-the-windows-command-prompt