기본 콘텐츠로 건너뛰기

java 문자열 숫자로 변환

public class Foo {  public static void main(String args[]) {      String s = "1000";      // 문자열 정의      int i = Integer.parseInt(s) + 1;      // 32비트 정수로 그리고 1을 더하기      System.out.println(i);       // 출력: 1001      long L = Long.parseLong(s) + 1;      // 64비트 정수로 그리고 1을 더하기      System.out.println(L);      // 출력: 1001      float f = Float.parseFloat(s) + 1.0F;      // 32비트 실수로 그리고 1을 더하기      System.out.println(f);       // 출력: 1001.0      double d = Double.parseDouble(s) + 1.0;      // 64비트 실수로 그리고 1을 더하기      System.out.println(d);       // 출력: 1001.0     }  }

Tomcat 7 HTTP to HTTPS redirect

Tomcat 7 HTTP to HTTPS redirect Intro The following article shows how to easily redirect HTTP to HTTP in Tomcat 7 servlet container that it always requires secure connection. It was assumed that the following TCP ports are used for that purpose: 8080 : for HTTP 8443 : for HTTPS  Please, follow the exact steps as described below to get it done. Configuration 1)  Update server.xml configuration file in Tomcat home directory  and change the following part of its configuration: <Connector port="8080" protocol="HTTP/1.1"            connectionTimeout="20000"            URIEncoding="UTF-8"            redirectPort="8443" /> to what's shown below: <Connector port="8080" enableLookups="false"            redirectPort="8443" /> 2) Update web.xml configuration file in Tomcat home directory and a...

Javascript Left, Right 구현

function Left(str, n){ if (n <= 0)   return ""; else if (n > String(str).length)   return str; else   return String(str).substring(0,n); } function Right(str, n){   if (n <= 0)      return "";   else if (n > String(str).length)      return str;   else {      var iLen = String(str).length;      return String(str).substring(iLen, iLen - n);   } }

IE 지원 종료

IE 지원 종료 브라우저 2016년 1월 13일 02시(한국시간기준)부터 아래의 브라우저 버전은 정기 보안 업데이트를 지원 종료한다. 인터넷 익스플로우 8 인터넷 익스플로우 9 인터넷 익스플로우 10 IE 브라우저 버전 확인방법 IE를 실행한다. Shift + Alt + H  단축키로 브라우저 도움말 메뉴를 호출한다. Internet Explorer 정보를 선택한다. Internet Explorer 버전을 확인한다.